Skip to content

Fix permissions before migrations #114

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
wants to merge 2 commits into from
Closed

Conversation

Silex
Copy link

@Silex Silex commented May 24, 2018

This fixes permissions issues when you bind a host volume to /usr/src/redmine/log in order to have the logs outside.

This is visible due to the contacts helpdesk plugin, without it the migration works but is redirected to STDERR which is why it was not noticed before I think.

....
Using rbpdf 1.19.3
Using redcarpet 3.4.0
Using redmine_crm 0.0.37
Using request_store 1.0.5
Using rmagick 2.16.0
Using roadie 3.2.2
Using roadie-rails 1.1.1
Using ruby-ole 1.2.12.1
Using spreadsheet 0.6.9
Using vcard 0.2.15
Bundle complete! 36 Gemfile dependencies, 60 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into `/usr/local/bundle`
Rails Error: Unable to access log file. Please ensure that /usr/src/redmine/log/production.log exists and is writable (ie, make it writable for user and group: chmod 0664 /usr/src/redmine/log/production.log). The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
rake aborted!
Errno::EACCES: Permission denied @ rb_sysopen - /usr/src/redmine/log/redmine_helpdesk.log
/usr/src/redmine/plugins/redmine_contacts_helpdesk/lib/redmine_helpdesk.rb:36:in `new'

Should I also modify the templates in the subdirectories?

@Silex
Copy link
Author

Silex commented Nov 3, 2018

👍

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

Successfully merging this pull request may close these issues.

1 participant