Skip to content

Settings not being respected #16

@malexmave

Description

@malexmave

I am running redmine 1.3.2.stable with the latest git master of gitolite and redmine_git_hosting.

The install went almost without problems (missing dependencies were not reported, but I figured them out and installed them, plus some problems with missing dirs in /tmp and wrong permissions, which I believe I also fixed).

In the config page in the redmine backend (Administration => Plugins => Configure), I set the gitolite user to "gitolite" and the server to my domain name, followed by the port information (domain.com:portnumber). But if I try to create a new repository, it fails (giving some HTML / JS / Whatever output (Element.update("tab-content-repository", [...], tell me if you need more). When I check the redmine log, I see:

[GitHosting] Got projects, move on!
[GitHosting] Cloning gitolite-admin repository to /tmp/redmine_git_hosting/gitolite/gitolite-admin
***> [GitHosting] Command failed (return 128): env GIT_SSH=/usr/share/redmine/vendor/plugins/redmine_git_hosting/bin/gitolite_admin_ssh git clone ssh://gitolite@localhost/gitolite-admin.git /tmp/redmine_git_hosting/gitolite/gitolite-admin
***>   Cloning into '/tmp/redmine_git_hosting/gitolite/gitolite-admin'...
***>   ssh: connect to host localhost port 22: Connection refused
***>   fatal: The remote end hung up unexpectedly
[GitHosting] Attempting to restore repository access key:
[GitHosting] Cloning administrative repo directly as gitolite in /tmp/fixrepo/gitolite/gitolite-admin
[GitHosting] Establishing 'id_gitolite.pub' as the redmine_git_hosting administrative key
[GitHosting] Additional administrative key(s): 'User.pub'
[GitHosting] Pushing fixes using gl-admin-push
***> [GitHosting] Command failed (return 127): /usr/share/redmine/vendor/plugins/redmine_git_hosting/bin/run_as_git_user "cd /tmp/fixrepo/gitolite/gitolite-admin; gl-admin-push -f"
***>   -bash: gl-admin-push: command not found
***> [GitHosting] gl-admin-push failed (pre 2.0.3 gitolite?). Trying 'gl-setup /tmp/fixrepo/gitolite/gitolite-admin/keydir/id_gitolite.pub'
***> [GitHosting] Command failed (return 127): /usr/share/redmine/vendor/plugins/redmine_git_hosting/bin/run_as_git_user "gl-setup /tmp/fixrepo/gitolite/gitolite-admin/keydir/id_gitolite.pub"
***>   -bash: gl-setup: command not found
***> [GitHosting] Failed to reestablish gitolite admin key.
***> Shell Error
[...]
***> [GitHosting] update_repositories() failed

(I left out some stacktrace'y stuff, again: if you need it, I can provide it, but I wanted to avoid bloating this issue).

As you can see above, it still tries to connect to git@localhost instead of [email protected]:[portnr].

I already tried to re-generate the scripts using rake redmine_git_hosting:install_scripts RAILS_ENV=production WEB_USER=www-data, to no avail.

Please let me know if you need any further information.

Thanks in advance,
malexmave

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions