开发者

Rails Mongrel server won't load anything anymore

开发者 https://www.devze.com 2023-04-06 20:26 出处:网络
For a long time, I\'ve been using Mongrel to run my rails app. Unfortunately, yesterday, it decided to stop working.

For a long time, I've been using Mongrel to run my rails app. Unfortunately, yesterday, it decided to stop working.

Here's what happens when I try to start up localhost to see my app:

root@whatever> RAILS_ENV=production script/server

This has always started the Mongrel server, listening to port 3000. I access it by going to localhost:3000.

Rails 2.3.5 application starting on http://0.0.0.0:3000 no page on localhost:3000 will load. It just says "loading..." forever.

The strange part is that it will successfully load about two pages be开发者_如何学编程fore it decides to never load anything again. If I restart my computer, it may or may not let me load a page or two, but it always just stops loading anything shortly thereafter. Might the server just be incredibly slow, and I only think that it won't load anything? Even still, how would I ascertain that and then fix it?

Naturally, this has made it practically impossible for me to get anything done! Any help is appreciated.

If it matters, I am running Rails 2.3.5, Ruby 1.8.7, Mongrel 1.1.5, on Ubuntu 10.04 LTS.


I figured it out. In case anyone was ultra-curious, it had nothing to do with either Rails or Mongrel. The user account I was trying to log into had some random SQL query associated with it that was really huge. I don't know why it was there, but trying to log into a certain account was killing everything.

The reason it would occasionally load pages was because that was when I would log in with a different account.

Moral of the story: don't have massive SQL queries associated with random test accounts!

0

精彩评论

暂无评论...
验证码 换一张
取 消