URL: https://linuxfr.org/forums/linux-debian-ubuntu/posts/redmine-1-3-2-passenger-installe-dans-un-container-lxc Title: Redmine 1.3.2 + passenger, installé dans un container LXC Authors: NeoX Date: 2012年09月06日T16:00:40+02:00 Tags: ubuntu Score: 1 Bonjour à tous, voici mon probleme, et tu vas voir que toi aussi, tu vas y perdre des cheveux (ou pas). soit un container LXC avec Ubuntu 12.04 LTS dedans créé par ``` lxc-create -t ubuntu -n forge ``` dedans j'ai installé redmine, apache2 et libapache2-mod-passenger en version packagées par le systeme. installation avec les options par defaut (redmine avec sqlite etc) pendant un moment je lancais les machines virtuelles avec ``` lxc-start -d -n forge ``` et je n'avais aucun probleme. puis j'ai voulu mettre ca en ligne avec virt-manager, libvirt, etc. pas de souci particulier, j'arrete le container, le lance virt-manager, me connecte à lxc:/// creer une nouvelle instance de type lxc, en precisant que le dossier existe deja, et je vais chercher l'arborescence existante. la machine se lance, j'ai la main dessus au travers du reseau, je vois la machine dans virt-manager, c'est cool seulement voila, apache2 se lance bien, mais l'appli redmine au travers de passenger, non. le seul moyen que j'ai trouvé, et qui est vraiment "sale" car il faut le refaire tous les jours, c'est de faire un ``` tail -f /var/log/apache2/error.log ``` et de rafraichir la page de mon navigateur, et là ca marche la page de plantage apache/passenger (dont on retrouve la meme chose dans le log apache) ``` Ruby on Rails application could not be started These are the possible causes: There may be a syntax error in the application's code. Please check for such errors and fix them. A required library may not installed. Please install all libraries that this application requires. The application may not be properly configured. Please check whether all configuration files are written correctly, fix any incorrect configurations, and restart this application. A service that the application relies on (such as the database server or the Ferret search engine server) may not have been started. Please start that service. Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem. Error message: Permission denied Exception class: Errno::EACCES Application root: /usr/share/redmine Backtrace: # File Line Location 0 /usr/lib/ruby/1.8/phusion_passenger/utils.rb 219 in `write' 1 /usr/lib/ruby/1.8/phusion_passenger/utils.rb 219 in `send' 2 /usr/lib/ruby/1.8/phusion_passenger/utils.rb 219 in `method_missing' 3 /usr/lib/ruby/vendor_ruby/1.8/rubygems/deprecate.rb 62 in `warn' 4 /usr/lib/ruby/vendor_ruby/1.8/rubygems/deprecate.rb 62 in `source_index' 5 /usr/share/redmine/vendor/rails/railties/lib/rails/gem_dependency.rb 21 in `add_frozen_gem_path' 6 /usr/share/redmine/config/boot.rb 52 in `load_initializer' 7 /usr/share/redmine/config/boot.rb 43 in `run' 8 /usr/share/redmine/config/boot.rb 16 in `boot!' 9 /usr/share/redmine/config/boot.rb 119 10 /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb 36 in `gem_original_require' 11 /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb 36 in `require' 12 /usr/share/redmine/config/environment.rb 25 13 /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb 36 in `gem_original_require' 14 /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb 36 in `require' 15 /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb 303 in `preload_application' 16 /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb 252 in `initialize_server' 17 /usr/lib/ruby/1.8/phusion_passenger/utils.rb 255 in `report_app_init_status' 18 /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb 237 in `initialize_server' 19 /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb 194 in `start_synchronously' 20 /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb 163 in `start' 21 /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb 213 in `start' 22 /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 262 in `spawn_rails_application' 23 /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb 126 in `lookup_or_add' 24 /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 256 in `spawn_rails_application' 25 /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb 80 in `synchronize' 26 /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb 79 in `synchronize' 27 /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 255 in `spawn_rails_application' 28 /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 154 in `spawn_application' 29 /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 287 in `handle_spawn_application' 30 /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb 352 in `__send__' 31 /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb 352 in `main_loop' 32 /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb 196 in `start_synchronously' 33 /usr/lib/phusion_passenger/passenger-spawn-server 61 ``` j'ai changé les proprietaires du dossier /usr/share/redmine pour que ca appartienne à www-data puisque passenger semble lancé avec ce userid