Web application could not be started - Permission denied

Added by Clément V 3 months ago

Hi all,

I have a problem restarting redmine after a system reboot, i check out log file :

Permission denied @ rb_sysopen - /usr/share/redmine/instances/default/config/secret_key.txt (Errno::EACCES)
  /usr/share/redmine/config/application.rb:79:in `instance_eval'
  (eval):39:in `<class:Application>'
  /usr/share/redmine/config/application.rb:79:in `instance_eval'
  /usr/share/redmine/config/application.rb:79:in `<class:Application>'
  /usr/share/redmine/config/application.rb:8:in `<module:RedmineApp>'
  /usr/share/redmine/config/application.rb:7:in `<top (required)>'
  /usr/share/redmine/config/environment.rb:2:in `require'
  /usr/share/redmine/config/environment.rb:2:in `<top (required)>'
  config.ru:3:in `require'
  config.ru:3:in `block in <main>'
  /usr/lib/ruby/vendor_ruby/rack/builder.rb:55:in `instance_eval'
  /usr/lib/ruby/vendor_ruby/rack/builder.rb:55:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /var/lib/gems/2.3.0/gems/passenger-5.1.2/src/helper-scripts/rack-preloader.rb:110:in `eval'
  /var/lib/gems/2.3.0/gems/passenger-5.1.2/src/helper-scripts/rack-preloader.rb:110:in `preload_app'
  /var/lib/gems/2.3.0/gems/passenger-5.1.2/src/helper-scripts/rack-preloader.rb:156:in `<module:App>'
  /var/lib/gems/2.3.0/gems/passenger-5.1.2/src/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
  /var/lib/gems/2.3.0/gems/passenger-5.1.2/src/helper-scripts/rack-preloader.rb:29:in `<main>'

It seems that the permission changed, someone can help me to fix this ?

Thanks

Clément