Curt H. wrote:
On 12/31/06, Jane firstname.lastname@example.org wrote:
then closes almost immediately.
The problem is occurring here. The Mongrel web server is not starting up
(the console window should stay open and you should see Mongrel status
messages), so you’re not going to be able to proceed and with the
until this is fixed.
First, check these two log files to see if there are any clues in there
tell you what is going wrong:
If that doesn’t tell you anything useful, then manualy open a ruby
window by selecting the menu item:
Rails Applications >> Open Ruby Console Window
Then, move into the cookbook directory (“cd cookbook”) and try to start
Mongrel with this command:
When this fails, you should (hopefully) see some message saying why.
Thanks for the advice but there is still a problem somewhere. Your first
suggestion didn’t show anything (no log files appeared under
InstantRails\rails_apps\cookbook\log\ at all!). I then followed your
second suggestion to open the Ruby Console Window and enter
mongrel_rails start. In this case the Mongrel Server appeared to open
fine with no errors, and the mongrel_debug file appeared under the
InstantRails\rails_apps\cookbook\log\ directory! (note:the Start with
Mongrel button is still just giving an empty window that closes
With the Mongrel server started from the ruby console window, I then
attempted to open http://www.mycookbook.com with my internet browser and
got the following message:
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.
Reason: Error reading from remote server
Apache/1.3.33 Server at www.mycookbook.com Port 80
Please note that I am not using a proxy server in my browser. I next
tried to comment out the following in the Apache config file:
ProxyPass / http://localhost:3001/
ProxyPassReverse / http://localhost:3001
This resulted in the browser coming up with the text from the index.html
file from the www directory, but nothing further.
Any advice welcome!