Redmine server freezes very often
Added by Hugo Raben about 14 years ago
Hello,
I've been using redmine on a production server for a year or so. These past months, the server has been freezing very often (every 1 or 2 days).
I'm using the last release of redmine.
I don't know where to start but I really need your help on this, because I can't continue to work this way. Here is the information I'm able to give you right now, don't hesitate to ask for more details:
- I'm using redmine 1.0.2 and I'm upgrading to the last version each time it's available
- I'm using Phusion Passenger
- I've attached a screenshot of htop when the server hangs (I need to kill the service)
- You'll find below some details about ruby stuff:
RAILS_ENV=production script/about /var/lib/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement About your application's environment Ruby version 1.8.7 (i486-linux) RubyGems version 1.3.7 Rack version 1.0 Rails version 2.3.5 Active Record version 2.3.5 Active Resource version 2.3.5 Action Mailer version 2.3.5 Active Support version 2.3.5 Application root /srv/Data_Redmine/redmine Environment production Database adapter postgresql Database schema version 20100819172912
Thanks a lot.
redmine.png (238 KB) redmine.png | htop on redmine server |
Replies (11)
RE: Redmine server freezes very often - Added by Felix Schäfer about 14 years ago
Mmh, I can't see anything bad ad hoc. Is this with the deb or the source version?
Anyway, I see your redmine eats up lots of memory, correct? Might it be that you down- or upload large files often from/to redmine?
RE: Redmine server freezes very often - Added by Hugo Raben about 14 years ago
This is the source version. The deb is, obviously, not up to date AFAIK.
We don't upload anything big no.
I'm looking for a way to track down this problem. Do I need to look at a log file, if yes which one?
RE: Redmine server freezes very often - Added by Felix Schäfer about 14 years ago
Well, you could look at the apache log files to see if passenger blurbs up anything, other than that redmine/rails produces a log to log/production.log
in the redmine directory.
RE: Redmine server freezes very often - Added by Hugo Raben about 14 years ago
I can see these kind of exceptions in error.log (apache):
*** Exception Errno::EPIPE in Passenger RequestHandler (Broken pipe) (process 23699): from /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:109:in `write' from /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:109:in `process_request' from /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:10:in `each' from /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/response.rb:156:in `each' from /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:9:in `each' from /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:108:in `process_request' from /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop' from /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler' from /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application' from /usr/lib/ruby/1.8/phusion_passenger/utils.rb:252:in `safe_fork' from /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application' from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__' from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop' from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously' from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start' from /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:222:in `start' from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:253:in `spawn_rails_application' from /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:247:in `spawn_rails_application' from /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' from /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:246:in `spawn_rails_application' from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:145:in `spawn_application' from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:278:in `handle_spawn_application' from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__' from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop' from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously' from /usr/lib/phusion_passenger/passenger-spawn-server:61
The only strange lines I can see in log/production.log are like these:
ActionView::TemplateError (undefined method `<=' for nil:NilClass) on line #156 of app/views/gantts/show.html.erb: 153: 154: <% top = headers_height + 10 %> 155: 156: <%= @gantt.lines(:top => top, :zoom => zoom, :g_width => g_width ) %> 157: 158: <% 159: # lib/redmine/helpers/gantt.rb:301:in `line_for_project' lib/redmine/helpers/gantt.rb:172:in `render_project' lib/redmine/helpers/gantt.rb:154:in `lines' lib/redmine/helpers/gantt.rb:153:in `lines' app/views/gantts/show.html.erb:156 app/controllers/gantts_controller.rb:26:in `show' app/controllers/gantts_controller.rb:25:in `show' /usr/lib/ruby/1.8/rack/head.rb:9:in `call' /usr/lib/ruby/1.8/rack/methodoverride.rb:24:in `call' /usr/lib/ruby/1.8/rack/lock.rb:11:in `call' /usr/lib/ruby/1.8/rack/lock.rb:11:in `synchronize' /usr/lib/ruby/1.8/rack/lock.rb:11:in `call' /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in `process_request' /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/utils.rb:252:in `safe_fork' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:222:in `start' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:253:in `spawn_rails_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:247:in `spawn_rails_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:246:in `spawn_rails_application' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:145:in `spawn_application' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:278:in `handle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously' /usr/lib/phusion_passenger/passenger-spawn-server:61 Rendering /srv/Data_Redmine/redmine/public/500.html (500 Internal Server Error)
RE: Redmine server freezes very often - Added by Felix Schäfer about 14 years ago
The second error is something with the code, I think there are still some issues with the gantt rewrite in trunk. The first error is probably the one causing your freezes, and google yields enough results for that that you should be able to untangle that on your own :-)
RE: Redmine server freezes very often - Added by Hugo Raben about 14 years ago
Woah, I wish it will be that easy to solve. I didn't really know where to look in ruby's logs, but if it's an Apache problem then I'll have a look at phusion passenger.
Thank you very much for your help, I appreciate it.
I'll reply to this topic once again if the problem persists.
RE: Redmine server freezes very often - Added by Felix Schäfer about 14 years ago
Hugo Raben wrote:
Woah, I wish it will be that easy to solve. I didn't really know where to look in ruby's logs, but if it's an Apache problem then I'll have a look at phusion passenger.
IIRC the fixes I found were all about upgrading passenger, you might want to try that.
RE: Redmine server freezes very often - Added by Hugo Raben about 14 years ago
In fact, we already use the latest version of Passenger. It does not seem to be the problem. :(
RE: Redmine server freezes very often - Added by Bintintan Andrei over 13 years ago
Hello,
I am experiencing the same problem. I don't use redmine very oft, a few times a week, but I noticed that after I add/change something sometimes the server freezes.
It's running on Ubuntu 10.04 LTS. If necesarry I can provide more details about the installation.
Any solutions/ideas?
RE: Redmine server freezes very often - Added by Colin Mollenhour almost 13 years ago
Same problem here.. Server has plenty of memory, apache stops responding, Ubuntu 10.04.
Anybody?
RE: Redmine server freezes very often - Added by Bintintan Andrei almost 13 years ago
Colin Mollenhour wrote:
Same problem here.. Server has plenty of memory, apache stops responding, Ubuntu 10.04.
Anybody?
Hi,
Don't expect much feedback. I've reinstalled it from the scratch with the latest stable version on a clean server and seems to work now well. It's still slow(I think this is more ruby related), but it's running well.
I'm a software developer as well, no experience with Ruby, but I find this ruby/gem/rails stuff very dependent, if you're using the wrong version it's just not working.
Regards, Andrei.