Project

General

Profile

[redmine 3.0.3] can not open redmine page. All other pages served by apache2 died with same error page.

Added by Abu Faldy about 9 years ago

Hi anyone,

Yesterday I managed to install REDMINE 3.0.3 in my Ubuntu server 14.04.2 with Passenger and MySQL. Everything was find until now ...

Would you help me figure out what had happened and how to fix it?

Thanks.

I got this error page when trying to access redmine with my browser: (picture is attached)

APACHE2 error.log

[Tue May 12 14:57:40.977918 2015] [mpm_prefork:notice] [pid 3673] AH00169: caught SIGTERM, shutting down
[ 2015-05-12 14:57:42.1109 4183/b73fb700 agents/Watchdog/Main.cpp:538 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'www-data', 'default_python' => 'python', 
'default_ruby' => '/usr/bin/ruby', 'default_user' => 'www-data', 'log_level' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/lib/ruby/vendor_ruby/phusion_passenger/locat
ions.ini', 'passenger_version' => '4.0.37', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gatew
ay_port' => '443', 'user_switching' => 'true', 'web_server_passenger_version' => '4.0.37', 'web_server_pid' => '4182', 'web_server_type' => 'apache', 'web_server_worker_gid' => '3
3', 'web_server_worker_uid' => '33' }
[ 2015-05-12 14:57:42.1238 4186/b73e6700 agents/HelperAgent/Main.cpp:643 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.4182/generation-0/request
[ 2015-05-12 14:57:42.1420 4191/b6ac4700 agents/LoggingAgent/Main.cpp:321 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.4182/generation-0/logging
[ 2015-05-12 14:57:42.1430 4183/b73fb700 agents/Watchdog/Main.cpp:728 ]: All Phusion Passenger agents started!
[Tue May 12 14:57:43.001006 2015] [:notice] [pid 4182] ModSecurity for Apache/2.7.7 (http://www.modsecurity.org/) configured.
[Tue May 12 14:57:43.001205 2015] [:notice] [pid 4182] ModSecurity: APR compiled version="1.5.1-dev"; loaded version="1.5.1-dev" 
[Tue May 12 14:57:43.001219 2015] [:notice] [pid 4182] ModSecurity: PCRE compiled version="8.31 "; loaded version="8.31 2012-07-06" 
[Tue May 12 14:57:43.001229 2015] [:notice] [pid 4182] ModSecurity: LUA compiled version="Lua 5.1" 
[Tue May 12 14:57:43.001237 2015] [:notice] [pid 4182] ModSecurity: LIBXML compiled version="2.9.1" 
[ 2015-05-12 14:57:43.0703 4206/b746f700 agents/Watchdog/Main.cpp:538 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'www-data', 'default_python' => 'python', 
'default_ruby' => '/usr/bin/ruby', 'default_user' => 'www-data', 'log_level' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/lib/ruby/vendor_ruby/phusion_passenger/locat
ions.ini', 'passenger_version' => '4.0.37', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gatew
ay_port' => '443', 'user_switching' => 'true', 'web_server_passenger_version' => '4.0.37', 'web_server_pid' => '4203', 'web_server_type' => 'apache', 'web_server_worker_gid' => '3
3', 'web_server_worker_uid' => '33' }
[ 2015-05-12 14:57:43.0833 4209/b73c0700 agents/HelperAgent/Main.cpp:643 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.4203/generation-0/request
[ 2015-05-12 14:57:43.1021 4214/b6a14700 agents/LoggingAgent/Main.cpp:321 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.4203/generation-0/logging
[ 2015-05-12 14:57:43.1076 4206/b746f700 agents/Watchdog/Main.cpp:728 ]: All Phusion Passenger agents started!
[Tue May 12 14:57:44.013219 2015] [mpm_prefork:notice] [pid 4203] AH00163: Apache/2.4.7 (Ubuntu) Phusion_Passenger/4.0.37 mod_perl/2.0.8 Perl/v5.18.2 configured -- resuming normal
 operations
[Tue May 12 14:57:44.013319 2015] [core:notice] [pid 4203] AH00094: Command line: '/usr/sbin/apache2'
App 4254 stdout: 
App 4254 stdout: 
[ 2015-05-12 14:58:00.3551 4209/b61bdb40 Pool2/Implementation.cpp:883 ]: Could not spawn process for group /opt/redmine/redmine-3.0.3#default: An error occured while starting up t
he preloader.
     in 'void Passenger::ApplicationPool2::SmartSpawner::handleErrorResponse(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)' (SmartSpawner.h:455)
     in 'std::string Passenger::ApplicationPool2::SmartSpawner::negotiatePreloaderStartup(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)' (SmartSpawner.h:566)
     in 'void Passenger::ApplicationPool2::SmartSpawner::startPreloader()' (SmartSpawner.h:206)
     in 'virtual Passenger::ApplicationPool2::ProcessPtr Passenger::ApplicationPool2::SmartSpawner::spawn(const Passenger::ApplicationPool2::Options&)' (SmartSpawner.h:752)
     in 'void Passenger::ApplicationPool2::Group::spawnThreadRealMain(const SpawnerPtr&, const Passenger::ApplicationPool2::Options&, unsigned int)' (Implementation.cpp:804)

[ 2015-05-12 14:58:00.3555 4209/b5fffb40 agents/HelperAgent/RequestHandler.h:2088 ]: [Client 20] Cannot checkout session.
Error page:
uninitialized constant ActiveRecord::Observer (NameError)
  /opt/redmine/redmine-3.0.3/plugins/redmine_scm/app/models/repository_observer.rb:1:in `<top (required)>'
  /opt/redmine/redmine-3.0.3/plugins/redmine_scm/init.rb:18:in `<top (required)>'
  /opt/redmine/redmine-3.0.3/lib/redmine/plugin.rb:155:in `block in load'
  /opt/redmine/redmine-3.0.3/lib/redmine/plugin.rb:146:in `each'
  /opt/redmine/redmine-3.0.3/lib/redmine/plugin.rb:146:in `load'
  /opt/redmine/redmine-3.0.3/config/initializers/30-redmine.rb:21:in `<top (required)>'
  /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/engine.rb:652:in `block in load_config_initializer'
  /var/lib/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/notifications.rb:166:in `instrument'
  /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/engine.rb:651:in `load_config_initializer'
  /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
  /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/engine.rb:615:in `each'
  /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/engine.rb:615:in `block in <class:Engine>'
  /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `instance_exec'
  /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `run'
  /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
  /usr/lib/ruby/1.9.1/tsort.rb:150:in `block in tsort_each'
  /usr/lib/ruby/1.9.1/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
  /usr/lib/ruby/1.9.1/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
  /usr/lib/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from'
  /usr/lib/ruby/1.9.1/tsort.rb:209:in `block in each_strongly_connected_component_from'
  /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:44:in `each'
  /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:44:in `tsort_each_child'
  /usr/lib/ruby/1.9.1/tsort.rb:203:in `each_strongly_connected_component_from'
  /usr/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'
  /usr/lib/ruby/1.9.1/tsort.rb:180:in `each'
  /usr/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component'
  /usr/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each'
  /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:54:in `run_initializers'
  /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/application.rb:352:in `initialize!'
  /opt/redmine/redmine-3.0.3/config/environment.rb:14:in `<top (required)>'
  config.ru:3:in `require'
  config.ru:3:in `block in <main>'
  /var/lib/gems/1.9.1/gems/rack-1.6.1/lib/rack/builder.rb:55:in `instance_eval'
  /var/lib/gems/1.9.1/gems/rack-1.6.1/lib/rack/builder.rb:55:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:112:in `eval'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:112:in `preload_app'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:158: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>'

When I tried to run ruby script/about, this is what i've got:

fahmy@fhysvr:/opt/redmine/redmine-3.0.3$ RAILS_ENV=production ruby script/about
script/about no longer exists, please use bin/about instead.
fahmy@fhysvr:/opt/redmine/redmine-3.0.3$
fahmy@fhysvr:/opt/redmine/redmine-3.0.3$ RAILS_ENV=production ruby bin/about
/opt/redmine/redmine-3.0.3/plugins/redmine_scm/app/models/repository_observer.rb:1:in `<top (required)>': uninitialized constant ActiveRecord::Observer (NameError)
    from /opt/redmine/redmine-3.0.3/plugins/redmine_scm/init.rb:18:in `<top (required)>'
    from /opt/redmine/redmine-3.0.3/lib/redmine/plugin.rb:155:in `block in load'
    from /opt/redmine/redmine-3.0.3/lib/redmine/plugin.rb:146:in `each'
    from /opt/redmine/redmine-3.0.3/lib/redmine/plugin.rb:146:in `load'
    from /opt/redmine/redmine-3.0.3/config/initializers/30-redmine.rb:21:in `<top (required)>'
    from /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/engine.rb:652:in `block in load_config_initializer'
    from /var/lib/gems/1.9.1/gems/activesupport-4.2.1/lib/active_support/notifications.rb:166:in `instrument'
    from /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/engine.rb:651:in `load_config_initializer'
    from /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
    from /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/engine.rb:615:in `each'
    from /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/engine.rb:615:in `block in <class:Engine>'
    from /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `instance_exec'
    from /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `run'
    from /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /usr/lib/ruby/1.9.1/tsort.rb:150:in `block in tsort_each'
    from /usr/lib/ruby/1.9.1/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
    from /usr/lib/ruby/1.9.1/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
    from /usr/lib/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from'
    from /usr/lib/ruby/1.9.1/tsort.rb:209:in `block in each_strongly_connected_component_from'
    from /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:44:in `each'
    from /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:44:in `tsort_each_child'
    from /usr/lib/ruby/1.9.1/tsort.rb:203:in `each_strongly_connected_component_from'
    from /usr/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'
    from /usr/lib/ruby/1.9.1/tsort.rb:180:in `each'
    from /usr/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component'
    from /usr/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each'
    from /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/initializable.rb:54:in `run_initializers'
    from /var/lib/gems/1.9.1/gems/railties-4.2.1/lib/rails/application.rb:352:in `initialize!'
    from /opt/redmine/redmine-3.0.3/config/environment.rb:14:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from bin/about:4:in `<main>'
fahmy@fhysvr:/opt/redmine/redmine-3.0.3$ 

I thought it was about passenger issue. This is what I checked:

fahmy@fhysvr:~$ sudo passenger-memory-stats 
Version: 4.0.37
Date   : 2015-05-12 14:52:13 +0000

------- Apache processes --------

### Processes: 0
### Total private dirty RSS: 0.00 MB

-------- Nginx processes --------

### Processes: 0
### Total private dirty RSS: 0.00 MB

---- Passenger processes ----
PID   VMSize   Private  Name
-----------------------------
3676  7.0 MB   0.2 MB   PassengerWatchdog
3679  32.3 MB  0.5 MB   PassengerHelperAgent
3684  16.8 MB  0.8 MB   PassengerLoggingAgent
### Processes: 3
### Total private dirty RSS: 1.49 MB
fahmy@fhysvr:~$ 
fahmy@fhysvr:~$ 
fahmy@fhysvr:~$ sudo passenger-status 
Version : 4.0.37
Date    : 2015-05-12 14:52:16 +0000
Instance: 3673
----------- General information -----------
Max pool size : 6
Processes     : 0
Requests in top-level queue : 0

----------- Application groups -----------
/opt/redmine/redmine-3.0.3#default:
  App root: /opt/redmine/redmine-3.0.3
  Requests in queue: 0

General RUBY info:

General Ruby interpreter information
RUBY_VERSION = 1.9.3
RUBY_PLATFORM = i686-linux
RUBY_ENGINE = ruby
RubyGems version = 1.8.23
redmine-error-page.png (213 KB) redmine-error-page.png error page when I opened my redmine

Replies (1)

RE: [redmine 3.0.3] can not open redmine page. All other pages served by apache2 died with same error page. - Added by Abu Faldy about 9 years ago

hi anyone,

FYI. Seems the problem has gone after I remove this plugin "redmine_scm-0.5.0b" from redmin/plugins folder.
The plugin had never worked anyway. During installation, I have never successfully install "Octokit".

Now I can access my redmine and all other pages served by Apache2 in my machine.

Cheers,

    (1-1/1)