-
Notifications
You must be signed in to change notification settings - Fork 117
gitolite_tmp_dir not (re)created, write access not properly checked in Config Test #327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Some more info:
The only time something was actually changed was when I added my pubkey... |
what do you mean? do you have an example? |
The plugin must know about that. Have you updated your settings in Administration -> Redmine Git Hosting -> Config file tab ? |
v0.8-beta branch has been dropped out. Can you try with the v1.0.0-beta branch? |
You can safely delete the whole |
You should not do that. If the |
What is the Git user's shell? Bash?
|
Hi!
I changed the first line of [REDMINE]/plugins/redmine_git_hosting/config/routes.rb (the original one) to this:
I did. I set it to
Oh, ok. Good to know ;)
I know, I just recreated the parent directories (/tmp/redmine_git_hosting/git) manual.
Yes, it's bash. $PATH for the git user is set in .bashrc to [git user home]/bin, which was sufficient for me to setup gitolite (of course...). I actually never bothered to set it in .profile. The error above is gone now. Thanks for the tip. Anyway, the rest of the problem remains: still no /tmp/.../gitolite-admin directory and empty commits (no files changed). |
Hi Nicolas, sorry, I had no time to try v1.0.0-beta earlier... I just updated it completely fresh from git, applied my modifications to (the new) config/routes.rb, ran bundle install and migrated the plugin. By the way: |
I have to write the rake task. |
That may happen. I'm gonna see what I can do... But the simpler would be to add a notice in release notes as it's not critical and the original/default url is proposed next to it. |
Hi!
I've just setup a new redmine server with gitolite (working when used without redmine) and this plugin.
Just in case it matters:
Redmine is running in a subdirectory instead of port 3000, I changed the routes in [REDMINE]/config/routes.rb and for all the plugins as well.
Git hosting is configured to use another configuration file (includes/redmine.conf).
I am using redmine 2.6.0.stable, gitolite v3.6.2-12 and redmine_git_hosting v0.8-beta.
I tried to create a new repository but it did not work, so I investigated the logs and found:
ERROR [GitHosting] Error while getting Gitolite physical repositories list
I've been playing arround with the settings for a while and "rescued" everything several times but it did not help: the error remains and all the parameters in Config Test are green...
In the end I deleted gitolite_tmp_dir at /tmp/redmine_git_hosting/git/gitolite-admin.git (actualy I deleted everything below redmine_git_hosting) and restarted the server. I had the hope it will recover itself.
What I got then was:
But /tmp/redmine_git_hosting/git/gitolite-admin.git was not recreated. It still appeared in green in Config Test.
I recreated the folders manually but it remains empty, whatever I do. Also Config Test seems not to realize if the redmine user does not have write permissions for the folder at all.
Even after a full server reboot the problem remained and gitolite_tmp_dir is not recreated.
The text was updated successfully, but these errors were encountered: