Content
403 Forbidden message after installing OpenProject in Ubuntu 16.04.2
Added by Julio Ordonez about 8 years ago
Hi all!
I am new to OpenProject, and I just installed it for the first time on my server, which is running Ubuntu 16.04.2.
I followed the instructions on the following link: https://www.openproject.org/open-source/download/manual-installation-guide/
However, when I try to access the OpenProject installation, I get the 403 Forbidden message.
The first time I tried it creating the VirtualHosts as per the installation guide and, looking at the apache error log, this is what it says:
[Thu Mar 02 01:07:38.841206 2017] [autoindex:error] [pid 18123] [client 174.88.188.54:61607] AH01276: Cannot serve directory /home/openproject/openproject-ce/public/: No matching DirectoryIndex (i$ [Thu Mar 02 01:10:22.481847 2017] [mpm_prefork:notice] [pid 13188] AH00169: caught SIGTERM, shutting down [Thu Mar 02 01:10:23.559694 2017] [passenger:error] [pid 21426] *** Passenger could not be initialized because of this error: Unable to start Phusion Passenger: Support binary PassengerAgent not f$ [Thu Mar 02 01:10:23.571673 2017] [passenger:error] [pid 21427] *** Passenger could not be initialized because of this error: Unable to start Phusion Passenger: Support binary PassengerAgent not f$ [Thu Mar 02 01:10:23.612696 2017] [mpm_prefork:notice] [pid 21427] AH00163: Apache/2.4.18 (Ubuntu) Phusion_Passenger/5.1.2 configured -- resuming normal operations [Thu Mar 02 01:10:23.612749 2017] [core:notice] [pid 21427] AH00094: Command line: '/usr/sbin/apache2' [Thu Mar 02 01:21:30.259340 2017] [mpm_prefork:notice] [pid 21427] AH00169: caught SIGTERM, shutting down [Thu Mar 02 01:21:31.340189 2017] [passenger:error] [pid 21491] *** Passenger could not be initialized because of this error: Unable to start Phusion Passenger: Support binary PassengerAgent not f$ [Thu Mar 02 01:21:31.352315 2017] [passenger:error] [pid 21492] *** Passenger could not be initialized because of this error: Unable to start Phusion Passenger: Support binary PassengerAgent not f$ [Thu Mar 02 01:21:31.385529 2017] [mpm_prefork:notice] [pid 21492] AH00163: Apache/2.4.18 (Ubuntu) Phusion_Passenger/5.1.2 configured -- resuming normal operations [Thu Mar 02 01:21:31.385574 2017] [core:notice] [pid 21492] AH00094: Command line: '/usr/sbin/apache2' [Thu Mar 02 01:21:41.241594 2017] [authz_core:error] [pid 21496] [client 174.88.188.54:62362] AH01630: client denied by server configuration: /home/openproject/openproject-ce [Thu Mar 02 01:28:33.109743 2017] [mpm_prefork:notice] [pid 21492] AH00169: caught SIGTERM, shutting down [Thu Mar 02 01:28:34.209346 2017] [passenger:error] [pid 21555] *** Passenger could not be initialized because of this error: Unable to start Phusion Passenger: Support binary PassengerAgent not f$ [Thu Mar 02 01:28:34.223101 2017] [passenger:error] [pid 21556] *** Passenger could not be initialized because of this error: Unable to start Phusion Passenger: Support binary PassengerAgent not f$ [Thu Mar 02 01:28:34.258890 2017] [mpm_prefork:notice] [pid 21556] AH00163: Apache/2.4.18 (Ubuntu) Phusion_Passenger/5.1.2 configured -- resuming normal operations [Thu Mar 02 01:28:34.258946 2017] [core:notice] [pid 21556] AH00094: Command line: '/usr/sbin/apache2' [Thu Mar 02 01:29:35.511716 2017] [mpm_prefork:notice] [pid 21556] AH00169: caught SIGTERM, shutting down [Thu Mar 02 01:29:36.583552 2017] [passenger:error] [pid 21620] *** Passenger could not be initialized because of this error: Unable to start Phusion Passenger: Support binary PassengerAgent not f$ [Thu Mar 02 01:29:36.595632 2017] [passenger:error] [pid 21621] *** Passenger could not be initialized because of this error: Unable to start Phusion Passenger: Support binary PassengerAgent not f$ [Thu Mar 02 01:29:36.626147 2017] [mpm_prefork:notice] [pid 21621] AH00163: Apache/2.4.18 (Ubuntu) Phusion_Passenger/5.1.2 configured -- resuming normal operations [Thu Mar 02 01:29:36.626214 2017] [core:notice] [pid 21621] AH00094: Command line: '/usr/sbin/apache2'
But because with the instructions, only the OpenProject site is enabled (the apache default site gets disabled), and I need to serve other pages with apache, I decided to enable back the apache default site (disabling the openproject site), and rather add a Directory with an alias to the apache2.conf, like this:
Alias /openproject /home/openproject/openproject-ce/public <Directory /home/openproject/openproject-ce/public> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>
And now I don’t see the 403 message, but I see the Index of /openproject (directory list), and the error log says:
[Thu Mar 02 02:17:15.518180 2017] [passenger:error] [pid 21794] *** Passenger could not be initialized because of this error: Unable to start Phusion Passenger: Support binary PassengerAgent not f$ [Thu Mar 02 02:17:15.554070 2017] [mpm_prefork:notice] [pid 21794] AH00163: Apache/2.4.18 (Ubuntu) Phusion_Passenger/5.1.2 configured -- resuming normal operations [Thu Mar 02 02:17:15.554118 2017] [core:notice] [pid 21794] AH00094: Command line: '/usr/sbin/apache2'
I am just wondering if there is something I am missing, or maybe I did something wrong during the installation process?
Any help is very appreciated!
Julio.
Replies (3)
The configuration looks correct, I suspect the error to be behind this log message:
assenger could not be initialized because of this error: Unable to start Phusion Passenger: Support binary PassengerAgent not f(ound)
.Your passenger configuration for Apache is probably incorrect.
Best,
Oliver
Oliver Günther wrote:
Thanks Oliver!
So, I reinstalled passenger and now I don’t get that error on the apache error log. I went back to using the VirtualHost just so I was following exactly what is on the installation guide, for the sake of mitigating any other errors, and now I get the following message when I try to access the tool through my server: “Incomplete response received from application”.
I went back to the apache error log, and this is what it says:
App 16303 stdout: App 16303 stderr: /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/fog-1.23.0/lib/fog/rackspace/mock_data.rb:42: warning: key "name" is duplicated and overwritten on line 80 App 16303 stderr: /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/bundler/gems/svg-graph-e79abffa6663/lib/SVG/Graph/Graph.rb:142: warning: key :y_label_font_size is duplicated and overwritten on line 144 App 16303 stderr: /home/openproject/openproject-ce/app/seeders/random_data/work_package_seeder.rb:84: warning: key :user is duplicated and overwritten on line 87 App 16324 stdout: App 16303 stderr: [ 2017-03-03 02:53:34.3067 16324/0x0055d6e1854e78(Worker 1) utils.rb:87 ]: *** Exception RuntimeError in Rack application object (Missing `secret_token` and `secret_key_base` for 'production' environment, set these values in `config/secrets.yml`) (process 16324, thread 0x0055d6e1854e78(Worker 1)): App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/application.rb:534:in `validate_secret_key_config!' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/application.rb:246:in `env_config' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/engine.rb:514:in `call' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/application.rb:165:in `call' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:in `public_send' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:in `method_missing' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/bundler/gems/rack-protection-5a7d1bd2f05c/lib/rack/protection/frame_options.rb:31:in `call' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/bundler/gems/rack-protection-5a7d1bd2f05c/lib/rack/protection/json_csrf.rb:18:in `call' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/urlmap.rb:66:in `block in call' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in `each' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in `call' App 16303 stderr: from /home/openproject/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/passenger-5.1.2/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request' App 16303 stderr: from /home/openproject/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/passenger-5.1.2/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:152:in `accept_and_process_next_request' App 16303 stderr: from /home/openproject/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/passenger-5.1.2/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop' App 16303 stderr: from /home/openproject/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/passenger-5.1.2/src/ruby_supportlib/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads' App 16303 stderr: from /home/openproject/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/passenger-5.1.2/src/ruby_supportlib/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception' [ 2017-03-03 02:53:34.3078 16267/7f52c4a5a700 age/Cor/Con/InternalUtils.cpp:112 ]: [Client 1-1] Sending 502 response: application did not send a complete response App 16303 stderr: [ 2017-03-03 03:08:36.2026 16324/0x0055d6e1854e78(Worker 1) utils.rb:87 ]: *** Exception RuntimeError in Rack application object (Missing `secret_token` and `secret_key_base` for 'production' environment, set these values in `config/secrets.yml`) (process 16324, thread 0x0055d6e1854e78(Worker 1)): App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/application.rb:534:in `validate_secret_key_config!' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/application.rb:246:in `env_config' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/engine.rb:514:in `call' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/application.rb:165:in `call' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:in `public_send' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:in `method_missing' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/bundler/gems/rack-protection-5a7d1bd2f05c/lib/rack/protection/frame_options.rb:31:in `call' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/bundler/gems/rack-protection-5a7d1bd2f05c/lib/rack/protection/json_csrf.rb:18:in `call' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/urlmap.rb:66:in `block in call' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in `each' App 16303 stderr: from /home/openproject/openproject-ce/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in `call' App 16303 stderr: from /home/openproject/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/passenger-5.1.2/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request' App 16303 stderr: from /home/openproject/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/passenger-5.1.2/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:152:in `accept_and_process_next_request' App 16303 stderr: from /home/openproject/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/passenger-5.1.2/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop' App 16303 stderr: from /home/openproject/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/passenger-5.1.2/src/ruby_supportlib/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads' App 16303 stderr: from /home/openproject/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/passenger-5.1.2/src/ruby_supportlib/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception' [ 2017-03-03 03:08:36.2035 16267/7f52affff700 age/Cor/Con/InternalUtils.cpp:112 ]: [Client 2-1] Sending 502 response: application did not send a complete response
Again, any help is appreciated.
Thanks!
You do not expose a
secret_key_base
so the Rails application does not start.Please see the following links for more information:
https://www.openproject.org/open-source/download/manual-installation-guide/
http://stackoverflow.com/questions/32442181/