Skip to content

Can't retrieve Gitolite param : for sudo -n -u git -i gitolite query-rc GL_BINDIR #649

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

Closed
hamdijmii1992 opened this issue Feb 2, 2017 · 2 comments
Assignees

Comments

@hamdijmii1992
Copy link

After reaching (successfully) step (7) in http://redmine-git-hosting.io/get_started/ tutorial, I tried to open "Redmine Git Hosting" menu but I got this error from redmine log :

Rendered settings/plugin.html.erb within layouts/admin (31.7ms)
Completed 500 Internal Server Error in 41.5ms

ActionView::Template::Error (Permission denied @ rb_sysopen - /opt/redmine/redmine/log/git_hosting.log):
   4:
   5:   %tr
   6:     %td= l(:label_temp_dir_writeable)
   7:     %td= render_temp_dir_writeable(RedmineGitHosting::Config.temp_dir_writeable?(reset: true), RedmineGitHosting::Config.gitolite_admin_dir)
   8:
   9:   %tr
   10:     %td= l(:label_redmine_user)

from git_hosting.log I got this log

2017-02-01 17:23:03 -0800 [INFO] Testing if Redmine user 'root' can sudo to Gitolite user 'git'...
2017-02-01 17:23:04 -0800 [INFO] OK!
2017-02-01 17:23:04 -0800 [ERROR] Can't retrieve Gitolite param : Non-zero exit code pid 62464 exit 127 for `sudo -n -u git -i gitolite query-rc GL_BINDIR`
@n-rodriguez
Copy link
Contributor

n-rodriguez commented Feb 16, 2017

Hi! I think you have 2 bugs here :

The first one is a permission issue :
ActionView::Template::Error (Permission denied @ rb_sysopen - /opt/redmine/redmine/log/git_hosting.log):

The second one :
Can't retrieve Gitolite param : Non-zero exit code pid 62464 exit 127 for `sudo -n -u git -i gitolite query-rc GL_BINDIR is fixed by #646

By the way you should not run Redmine with the root user :
Testing if Redmine user 'root' can sudo to Gitolite user 'git'...

@PowerKiKi
Copy link
Collaborator

As discussed in #732 (comment), issues related to Redmine < 4.0 or severely outdated issues are being closed to help clean up the issue tracker.

If this issue is still relevant to you and you are running Redmine >= 4.0, please open a new issue including all new relevant information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants