List Info

Thread: tutorial - error and does not run




tutorial - error and does not run
country flaguser name
United States
2007-03-09 09:59:09
One odd thing, I cannot visit http://localhost:8080/ and
get a
webpage...

The connection was refused when attempting to contact
localhost:8080.

Now, telnet localhost 8080 works just fine... but the
resulting page
is broken with the 3.01 stable release I just downloaded:

<!-- ~/tmp tbrannon --> telnet localhost 8080
Trying ::1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP/1.0

HTTP/1.1 500 Internal Server Error
Date: Fri, 09 Mar 2007 15:45:27 GMT
Content-Length: 1109
Content-Type: text/html
Server: CherryPy/3.0.1

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type"
content="text/html;
charset=utf-8"></meta>
    <title>500 Internal Server Error</title>
    <style type="text/css">
    #powered_by {
        margin-top: 20px;
        border-top: 2px solid black;
        font-style: italic;
    }

    #traceback {
        color: red;
    }
    </style>
</head>
    <body>
        <h2>500 Internal Server Error</h2>
        <p>The server encountered an unexpected
condition which
prevented it from fulfilling the request.</p>
        <pre id="traceback">Traceback (most
recent call last):
  File
"/sw/lib/python2.5/site-packages/cherrypy/_cprequest.py
", line
524, in respond
    self.process_headers()
  File
"/sw/lib/python2.5/site-packages/cherrypy/_cprequest.py
", line
599, in process_headers
    host = dict.__getitem__(headers, 'Host')
KeyError: 'Host'
</pre>
    <div id="powered_by">
    <span>Powered by <a href="http://www.
cherrypy.org">CherryPy 3.0.1</
a></span>
    </div>
    </body>
</html>
Connection closed by foreign host.
<!-- ~/tmp tbrannon -->


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: tutorial - error and does not run
country flaguser name
United States
2007-03-09 10:13:54
Hi, all -

First off, I am not an expert on this, but the situation
sounds very 
familiar to me...

It looks like CP is not getting all the information it needs
to complete 
the request  - in my case, courtesy of 'Dowski, these
suggestions made 
it work:
1) in your apache conf file make sure you have the server
name correct, 
especially if you are running virtual domains
2) Consider adding a 'hosts' file entry with the name of
your CP server/app.

Example:
    CP app expects to see headers named 'cpapp'
Solution:
    1) In your apache conf file make sure that the server
name is 'cpapp'
    2) create an entry in hosts such as this:      
             127.0.0.1  cpapp
    3) In your browser try going to http://cpapp:8080

As an aside, I noticed that a whole new section was posted
on the CP 
page yesterday, dealing with apache configurations.  From
the home page 
pick 'Recent Changes' than 'ModProxy'.  That looked pretty
good to me, 
you may even want to consult that page first...

Tom Fillmore


metaperl wrote:
> One odd thing, I cannot visit http://localhost:8080/ and
get a
> webpage...
>
> The connection was refused when attempting to contact
localhost:8080.
>
> Now, telnet localhost 8080 works just fine... but the
resulting page
> is broken with the 3.01 stable release I just
downloaded:
>
> <!-- ~/tmp tbrannon --> telnet localhost 8080
> Trying ::1...
> Connected to localhost.
> Escape character is '^]'.
> GET / HTTP/1.0
>
> HTTP/1.1 500 Internal Server Error
> Date: Fri, 09 Mar 2007 15:45:27 GMT
> Content-Length: 1109
> Content-Type: text/html
> Server: CherryPy/3.0.1
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://
>
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html>
> <head>
>     <meta http-equiv="Content-Type"
content="text/html;
> charset=utf-8"></meta>
>     <title>500 Internal Server
Error</title>
>     <style type="text/css">
>     #powered_by {
>         margin-top: 20px;
>         border-top: 2px solid black;
>         font-style: italic;
>     }
>
>     #traceback {
>         color: red;
>     }
>     </style>
> </head>
>     <body>
>         <h2>500 Internal Server Error</h2>
>         <p>The server encountered an unexpected
condition which
> prevented it from fulfilling the request.</p>
>         <pre id="traceback">Traceback
(most recent call last):
>   File
"/sw/lib/python2.5/site-packages/cherrypy/_cprequest.py
", line
> 524, in respond
>     self.process_headers()
>   File
"/sw/lib/python2.5/site-packages/cherrypy/_cprequest.py
", line
> 599, in process_headers
>     host = dict.__getitem__(headers, 'Host')
> KeyError: 'Host'
> </pre>
>     <div id="powered_by">
>     <span>Powered by <a href="http://www.
cherrypy.org">CherryPy 3.0.1</
> a></span>
>     </div>
>     </body>
> </html>
> Connection closed by foreign host.
> <!-- ~/tmp tbrannon -->
>
>
> >
>
>
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: tutorial - error and does not run
country flaguser name
United States
2007-03-09 10:29:39
Well I'm using the built-in webserver not apache...

On Mar 9, 11:13 am, Tom Fillmore <tfill...socalbahai.org> wrote:
> Hi, all -
>
> First off, I am not an expert on this, but the
situation sounds very
> familiar to me...
>
> It looks like CP is not getting all the information it
needs to complete
> the request  - in my case, courtesy of 'Dowski, these
suggestions made
> it work:
> 1) in your apache conf file make sure you have the
server name correct,
> especially if you are running virtual domains
> 2) Consider adding a 'hosts' file entry with the name
of your CP server/app.
>
> Example:
>     CP app expects to see headers named 'cpapp'
> Solution:
>     1) In your apache conf file make sure that the
server name is 'cpapp'
>     2) create an entry in hosts such as this:
>              127.0.0.1  cpapp
>     3) In your browser try going tohttp://cpapp:8080
>
> As an aside, I noticed that a whole new section was
posted on the CP
> page yesterday, dealing with apache configurations. 
From the home page
> pick 'Recent Changes' than 'ModProxy'.  That looked
pretty good to me,
> you may even want to consult that page first...
>
> Tom Fillmore
>
> metaperl wrote:
> > One odd thing, I cannot visithttp://localhost:8080/and get a
> > webpage...
>
> > The connection was refused when attempting to
contact localhost:8080.
>
> > Now, telnet localhost 8080 works just fine... but
the resulting page
> > is broken with the 3.01 stable release I just
downloaded:
>
> > <!-- ~/tmp tbrannon --> telnet localhost
8080
> > Trying ::1...
> > Connected to localhost.
> > Escape character is '^]'.
> > GET / HTTP/1.0
>
> > HTTP/1.1 500 Internal Server Error
> > Date: Fri, 09 Mar 2007 15:45:27 GMT
> > Content-Length: 1109
> > Content-Type: text/html
> > Server: CherryPy/3.0.1
>
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.0 Transitional//EN" "http://
>
>www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&g
t;
> > <html>
> > <head>
> >     <meta http-equiv="Content-Type"
content="text/html;
> > charset=utf-8"></meta>
> >     <title>500 Internal Server
Error</title>
> >     <style type="text/css">
> >     #powered_by {
> >         margin-top: 20px;
> >         border-top: 2px solid black;
> >         font-style: italic;
> >     }
>
> >     #traceback {
> >         color: red;
> >     }
> >     </style>
> > </head>
> >     <body>
> >         <h2>500 Internal Server
Error</h2>
> >         <p>The server encountered an
unexpected condition which
> > prevented it from fulfilling the
request.</p>
> >         <pre
id="traceback">Traceback (most recent call
last):
> >   File
"/sw/lib/python2.5/site-packages/cherrypy/_cprequest.py
", line
> > 524, in respond
> >     self.process_headers()
> >   File
"/sw/lib/python2.5/site-packages/cherrypy/_cprequest.py
", line
> > 599, in process_headers
> >     host = dict.__getitem__(headers, 'Host')
> > KeyError: 'Host'
> > </pre>
> >     <div id="powered_by">
> >     <span>Powered by <a href="http://www.
cherrypy.org">CherryPy 3.0.1</
> > a></span>
> >     </div>
> >     </body>
> > </html>
> > Connection closed by foreign host.
> > <!-- ~/tmp tbrannon -->


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: tutorial - error and does not run
country flaguser name
United States
2007-03-09 10:37:58
Just as follow Version Two of Cherrypy works without a
hitch.

On Mar 9, 10:59 am, "metaperl" <metap...gmail.com> wrote:
> One odd thing, I cannot visithttp://localhost:8080/and get a
> webpage...
>
> The connection was refused when attempting to contact
localhost:8080.
>
> Now, telnet localhost 8080 works just fine... but the
resulting page
> is broken with the 3.01 stable release I just
downloaded:
>
> <!-- ~/tmp tbrannon --> telnet localhost 8080
> Trying ::1...
> Connected to localhost.
> Escape character is '^]'.
> GET / HTTP/1.0
>
> HTTP/1.1 500 Internal Server Error
> Date: Fri, 09 Mar 2007 15:45:27 GMT
> Content-Length: 1109
> Content-Type: text/html
> Server: CherryPy/3.0.1
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transiti
onal.dtd">
> <html>
> <head>
>     <meta http-equiv="Content-Type"
content="text/html;
> charset=utf-8"></meta>
>     <title>500 Internal Server
Error</title>
>     <style type="text/css">
>     #powered_by {
>         margin-top: 20px;
>         border-top: 2px solid black;
>         font-style: italic;
>     }
>
>     #traceback {
>         color: red;
>     }
>     </style>
> </head>
>     <body>
>         <h2>500 Internal Server Error</h2>
>         <p>The server encountered an unexpected
condition which
> prevented it from fulfilling the request.</p>
>         <pre id="traceback">Traceback
(most recent call last):
>   File
"/sw/lib/python2.5/site-packages/cherrypy/_cprequest.py
", line
> 524, in respond
>     self.process_headers()
>   File
"/sw/lib/python2.5/site-packages/cherrypy/_cprequest.py
", line
> 599, in process_headers
>     host = dict.__getitem__(headers, 'Host')
> KeyError: 'Host'
> </pre>
>     <div id="powered_by">
>     <span>Powered by <a href="http://www.
cherrypy.org">CherryPy 3.0.1</
> a></span>
>     </div>
>     </body>
> </html>
> Connection closed by foreign host.
> <!-- ~/tmp tbrannon -->


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: tutorial - error and does not run
country flaguser name
United States
2007-03-09 10:55:34
Woops.  Guess I jumped the gun on this one...

Sorry! 

Tom

metaperl wrote:
> Well I'm using the built-in webserver not apache...
>
> On Mar 9, 11:13 am, Tom Fillmore <tfill...socalbahai.org> wrote:
>   
>> Hi, all -
>>
>> First off, I am not an expert on this, but the
situation sounds very
>> familiar to me...
>>
>> It looks like CP is not getting all the information
it needs to complete
>> the request  - in my case, courtesy of 'Dowski,
these suggestions made
>> it work:
>> 1) in your apache conf file make sure you have the
server name correct,
>> especially if you are running virtual domains
>> 2) Consider adding a 'hosts' file entry with the
name of your CP server/app.
>>
>> Example:
>>     CP app expects to see headers named 'cpapp'
>> Solution:
>>     1) In your apache conf file make sure that the
server name is 'cpapp'
>>     2) create an entry in hosts such as this:
>>              127.0.0.1  cpapp
>>     3) In your browser try going tohttp://cpapp:8080
>>
>> As an aside, I noticed that a whole new section was
posted on the CP
>> page yesterday, dealing with apache configurations.
 From the home page
>> pick 'Recent Changes' than 'ModProxy'.  That looked
pretty good to me,
>> you may even want to consult that page first...
>>
>> Tom Fillmore
>>
>> metaperl wrote:
>>     
>>> One odd thing, I cannot visithttp://localhost:8080/and get a
>>> webpage...
>>>       
>>> The connection was refused when attempting to
contact localhost:8080.
>>>       
>>> Now, telnet localhost 8080 works just fine...
but the resulting page
>>> is broken with the 3.01 stable release I just
downloaded:
>>>       
>>> <!-- ~/tmp tbrannon --> telnet localhost
8080
>>> Trying ::1...
>>> Connected to localhost.
>>> Escape character is '^]'.
>>> GET / HTTP/1.0
>>>       
>>> HTTP/1.1 500 Internal Server Error
>>> Date: Fri, 09 Mar 2007 15:45:27 GMT
>>> Content-Length: 1109
>>> Content-Type: text/html
>>> Server: CherryPy/3.0.1
>>>       
>>> <!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Transitional//EN" "http://
>>>
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>> <html>
>>> <head>
>>>     <meta
http-equiv="Content-Type"
content="text/html;
>>> charset=utf-8"></meta>
>>>     <title>500 Internal Server
Error</title>
>>>     <style type="text/css">
>>>     #powered_by {
>>>         margin-top: 20px;
>>>         border-top: 2px solid black;
>>>         font-style: italic;
>>>     }
>>>       
>>>     #traceback {
>>>         color: red;
>>>     }
>>>     </style>
>>> </head>
>>>     <body>
>>>         <h2>500 Internal Server
Error</h2>
>>>         <p>The server encountered an
unexpected condition which
>>> prevented it from fulfilling the
request.</p>
>>>         <pre
id="traceback">Traceback (most recent call
last):
>>>   File
"/sw/lib/python2.5/site-packages/cherrypy/_cprequest.py
", line
>>> 524, in respond
>>>     self.process_headers()
>>>   File
"/sw/lib/python2.5/site-packages/cherrypy/_cprequest.py
", line
>>> 599, in process_headers
>>>     host = dict.__getitem__(headers, 'Host')
>>> KeyError: 'Host'
>>> </pre>
>>>     <div id="powered_by">
>>>     <span>Powered by <a href="http://www.
cherrypy.org">CherryPy 3.0.1</
>>> a></span>
>>>     </div>
>>>     </body>
>>> </html>
>>> Connection closed by foreign host.
>>> <!-- ~/tmp tbrannon -->
>>>       
>
>
> >
>
>
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )