I can't address the first error, but the second is probbaly due to you
using a wrapper over your HTTP server that doesn't allow printing to
stdout. You should probably set server.log_to_screen = False (and
server.log_file to some physical file location if you haven't already).
Robert Brewer
System Architect
Amor Ministries
fuma...@amor.org
A story:
A couple months ago, I couldn't for the life of me figure out why Google
wasn't indexing my site. I had submitted it to be crawled, emailed
Google to beg for mercy, blah blah blah... Nothing. I was digging
around in my logs one day when I noticed I wasn't really getting any
404s, but a *bunch* of 500s. This struck me as odd. Then I noticed
that even requests for robots.txt were returning a 500! I tried
browsing to robots.txt an got the "Unrecoverable error in the server"
message.
I finally figured out that it was due to running the CP server detached
from a terminal with logToScreen=True. Doh! The Googlebot is now
frequenting my site regularly.
Just-so-you-don't-feel-lonely yr's,
Christian
http://www.dowski.com
A story:
A couple months ago, I couldn't for the life of me figure out why Google
wasn't indexing my site. I had submitted it to be crawled, emailed
Google to beg for mercy, blah blah blah... Nothing. I was digging
around in my logs one day when I noticed I wasn't really getting any
404s, but a *bunch* of 500s. This struck me as odd. Then I noticed
that even requests for robots.txt were returning a 500! I tried
browsing to robots.txt an got the "Unrecoverable error in the server"
message.
I finally figured out that it was due to running the CP server detached
from a terminal with logToScreen=True. Doh! The Googlebot is now
Well, having server.logToScreen=True on my server was causing any CP
exception (even NotFound, aka 404) to foul up something internal and
generate the internal server error, thus the 500 HTTP status code.
I usually ssh into my box after starting it up and do a "python
myserver.py &" to get the server running in the background. Then I quit
the ssh session, and the CP server keeps running. I think it loses its
terminal or something like that when I end my ssh session though.
I then have Apache proxy requests for projects.dowski.com to my CP app.
The reason the Googlebot was staying away had to do with it getting a
500 status when trying to read robots.txt. Your setup might be
different enough from mine that you aren't getting exactly the same
behavior as I was.
It just sounded like a similar situation.
Christian
http://www.dowski.com
I usually ssh into my box after starting it up and do a "python
myserver.py &" to get the server running in the background. Then I quit
the ssh session, and the CP server keeps running. I think it loses its
terminal or something like that when I end my ssh session though.
It just sounded like a similar situation.
You guys need to take a look at using screen. Not only does screen
provide a terminal to programs, but you can reconnect to them if the
connection gets cut. I generally keep any number of remote terminals
open and then reconnect to them after I have sshed in with a simple
screen -x.
Just a thought.
Jason Earl