Permission denied /dev/null
Added by Christian Müller over 9 years ago
Hi,
from time to time I get this error in the apache error log:
[ 2015-08-13 14:35:44.4647 25800/7fe63bf7e700 age/Cor/Req/CheckoutSession.cpp:252 ]: [Client 3-2] Cannot checkout session because a spawning error occurred. The identifier of the error is 90bbe1f3. Please see earlier logs for details about the error. App 26684 stdout: App 26684 stdout: [ 2015-08-13 14:35:54.5457 25800/7fe638cf3700 App/Implementation.cpp:303 ]: Could not spawn process for application /var/www/redmine-3.1.0: An error occured while starting up the preloader. Error ID: 938457b2 Error details saved to: /tmp/passenger-error-KTJGtM.html Message from application: Permission denied - /dev/null (Errno::EACCES) /usr/lib/ruby/1.9.1/rubygems/user_interaction.rb:544:in `initialize' /usr/lib/ruby/1.9.1/rubygems/user_interaction.rb:544:in `open' /usr/lib/ruby/1.9.1/rubygems/user_interaction.rb:544:in `initialize' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/ui/rg_proxy.rb:9:in `initialize' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler.rb:100:in `new' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler.rb:100:in `ui=' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler.rb:96:in `ui' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/rubygems_integration.rb:51:in `validate' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler.rb:370:in `block in load_gemspec_uncached' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/shared_helpers.rb:53:in `chdir' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/shared_helpers.rb:53:in `block in chdir' /usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/shared_helpers.rb:52:in `chdir' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler.rb:363:in `load_gemspec_uncached' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler.rb:353:in `load_gemspec' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/source/path.rb:135:in `block in load_spec_files' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/source/path.rb:134:in `each' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/source/path.rb:134:in `load_spec_files' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/source/git.rb:188:in `load_spec_files' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/source/path.rb:92:in `local_specs' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/source/git.rb:159:in `specs' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/lazy_specification.rb:53:in `__materialize__' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/spec_set.rb:88:in `block in materialize' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/spec_set.rb:85:in `map!' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/spec_set.rb:85:in `materialize' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/definition.rb:140:in `specs' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/definition.rb:185:in `specs_for' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/definition.rb:174:in `requested_specs' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/environment.rb:18:in `requested_specs' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/runtime.rb:13:in `setup' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler.rb:127:in `setup' /var/lib/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/setup.rb:18:in `<top (required)>' /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:406:in `activate_gem' /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:288:in `block in run_load_path_setup_code' /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:411:in `running_bundler' /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:287:in `run_load_path_setup_code' /usr/share/passenger/helper-scripts/rack-preloader.rb:99:in `preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:153:in `<module:App>' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>' /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>' [ 2015-08-13 14:35:54.5613 25800/7fe63b6fc700 age/Cor/Req/CheckoutSession.cpp:252 ]: [Client 4-2] Cannot checkout session because a spawning error occurred. The identifier of the error is 938457b2. Please see earlier logs for details about the error.
When I do a 'chmod 777 /dev/null' all is OK again. How to prevent the need of chmoding all the time?
It is a redmine 3.1.0 on an Ubuntu 12.04 Server.
Thanks
Christian
Replies (1)
RE: Permission denied /dev/null - Added by Martin Denizet (redmine.org team member) over 9 years ago
Hello Christian,
Seems your /dev/null
is broken.
Rebooting should fix that.
Alternatively, it seems there are commands to recreate it:
rm /dev/null; mknod -m 666 /dev/null c 1 3
Source: http://unix.stackexchange.com/questions/146633/bash-dev-null-permission-denied