Content
Problem installing on a clean Debian
Added by Berten Vandebroek over 10 years ago
I’m using a clean install of Debian 7.4 x64 and followed the instructions from Step By Step how to install OP 3.0 with Apache (autostart) on Debian 7.4. Installation went flawless untill starting Apache, but I managed to solve this. But when I try to access OP through IP:port, I receive an error stating: Web application could not be started.
I haven’t got the slightest knowledge of Ruby/Passenger, so I wouldn’t even know where to begin searching for the cause of this. I’ve started all over from scratch for a 2nd time by reinstalling Debian again and following the OP tutorial again to the letter, but unfortunately … no success.
I’ve looked over every relevant log but could not find anything usefull.If I need to post logs or other outputs, please ask.
problem with apache was a wrong path in apache2.conf:
LoadModule passenger_module /home/openproject/.rvm/gems/ruby-2.1.0/gems/passenger-4.0.37/buildout/apache2/mod_passenger.so => LoadModule passenger_module /home/openproject/.rvm/gems/ruby-2.1.0/gems/passenger-4.0.41/buildout/apache2/mod_passenger.so
openproject@op-server:~/openproject$ RAILS_ENV=“production” bundle exec rake assets:precompile —trace
require 'rails/all'... 1.650s Bundler.require... 4.250s ** Invoke assets:precompile (first_time) ** Execute assets:precompile /home/openproject/.rvm/rubies/ruby-2.1.0/bin/ruby /home/openproject/.rvm/rubies/ruby-2.1.0/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace require 'rails/all'... 1.650s Bundler.require... 4.230s ** Invoke assets:precompile:all (first_time) ** Execute assets:precompile:all ** Invoke assets:precompile:primary (first_time) ** Invoke assets:environment (first_time) ** Execute assets:environment ** Invoke environment (first_time) ** Execute environment Application.initialize!... rake aborted! no implicit conversion of Fixnum into String /home/openproject/.rvm/gems/ruby-2.1.0/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect' /home/openproject/.rvm/gems/ruby-2.1.0/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `initialize' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `new' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `mysql2_connection' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/model_schema.rb:224:in `table_exists?' /home/openproject/openproject/config/initializers/30-redmine.rb:32:in `<top (required)>' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:245:in `load' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:245:in `block in load' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:245:in `load' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/engine.rb:593:in `block (2 levels) in <class:Engine>' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/engine.rb:592:in `each' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/engine.rb:592:in `block in <class:Engine>' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `instance_exec' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `run' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:55:in `block in run_initializers' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `each' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `run_initializers' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/application.rb:136:in `initialize!' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/railtie/configurable.rb:30:in `method_missing' /home/openproject/openproject/config/environment.rb:36:in `block in <top (required)>' /home/openproject/openproject/config/application.rb:44:in `block in bench' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:279:in `measure' /home/openproject/openproject/config/application.rb:43:in `bench' /home/openproject/openproject/config/environment.rb:34:in `<top (required)>' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency' /home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/application.rb:103:in `require_environment!' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:236:in `call' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:236:in `block in execute' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:231:in `each' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:231:in `execute' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:175:in `block in invoke_with_call_chain' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:168:in `invoke_with_call_chain' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:161:in `invoke' /home/openproject/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.17/lib/sprockets/assets.rake:93:in `block (2 levels) in <top (required)>' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:236:in `call' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:236:in `block in execute' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:231:in `each' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:231:in `execute' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:175:in `block in invoke_with_call_chain' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:168:in `invoke_with_call_chain' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:197:in `block in invoke_prerequisites' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:195:in `each' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:195:in `invoke_prerequisites' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:174:in `block in invoke_with_call_chain' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:168:in `invoke_with_call_chain' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:161:in `invoke' /home/openproject/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.17/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:236:in `call' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:236:in `block in execute' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:231:in `each' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:231:in `execute' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:175:in `block in invoke_with_call_chain' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:168:in `invoke_with_call_chain' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:161:in `invoke' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:149:in `invoke_task' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:106:in `block (2 levels) in top_level' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:106:in `each' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:106:in `block in top_level' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:115:in `run_with_threads' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:100:in `top_level' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:78:in `block in run' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:165:in `standard_exception_handling' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:75:in `run' /home/openproject/.rvm/rubies/ruby-2.1.0/bin/rake:33:in `<main>' Tasks: TOP => environment rake aborted! Command failed with status (1): [/home/openproject/.rvm/rubies/ruby-2.1.0/b...] /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/file_utils.rb:54:in `block in create_shell_runner' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/file_utils.rb:45:in `call' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/file_utils.rb:45:in `sh' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/file_utils_ext.rb:37:in `sh' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/file_utils.rb:82:in `ruby' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/file_utils_ext.rb:37:in `ruby' /home/openproject/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.17/lib/sprockets/assets.rake:12:in `ruby_rake_task' /home/openproject/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.17/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task' /home/openproject/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.17/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:236:in `call' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:236:in `block in execute' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:231:in `each' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:231:in `execute' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:175:in `block in invoke_with_call_chain' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:168:in `invoke_with_call_chain' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/task.rb:161:in `invoke' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:149:in `invoke_task' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:106:in `block (2 levels) in top_level' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:106:in `each' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:106:in `block in top_level' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:115:in `run_with_threads' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:100:in `top_level' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:78:in `block in run' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:165:in `standard_exception_handling' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/rake/application.rb:75:in `run' /home/openproject/.rvm/rubies/ruby-2.1.0/bin/rake:33:in `<main>' Tasks: TOP => assets:precompile