thanks for letting us know.

On Monday, 18 February 2019 11:36:05 UTC-8, Yi Liu wrote:
>
> It may be a problem with my /etc/hosts setup
>
> I found out that my web2py launch time is slow. Then I read this post:
>
> https://groups.google.com/forum/#!searchin/web2py/slow$20launch%7Csort:date/web2py/eyBE5JP6I44/5DkQNGqlxGgJ
>
> So I added my local hostname YiMBPr.local to /etc/hosts. The error is gone.
>
> I also check my previous web2py profiler log:
>
> utils.py(getipaddrinfo) takes 10 secs
> socket.py(getfqdn) takes 5 secs
>
> So it is some problem with my network settings. Thanks anyway.
>
> On Sunday, February 17, 2019 at 10:55:03 PM UTC-8, Yi Liu wrote:
>>
>> Thanks for reply, Massimo.
>>
>> Yesterday, it seems it throws this error whenever I load a different app 
>> (I have three apps), not subsequent actions.
>>
>> Today, it seems it is fine when I first load an app. After 1-3 refreshes, 
>> it throws this error.
>>
>> I checked web2py.log, basically it records the same message.
>>
>> I checked httpserver.log, all returned 200, no 500 request.
>>
>> How should I catch this?
>>
>> On Sunday, February 17, 2019 at 10:36:52 PM UTC-8, Massimo Di Pierro 
>> wrote:
>>>
>>> How often? Cany chance you can identify from the logs which http 
>>> requests causes this?
>>>
>>> On Sunday, 17 February 2019 22:15:36 UTC-8, Yi Liu wrote:
>>>>
>>>> Hi, I switch my server and local macbook web2py to Python 3 
>>>> successfully without any change to web2py or applications, except  minor 
>>>> 2to3 syntax changes. Amazing!
>>>>
>>>> On my local macbook, I start to have this error in the terminal. And it 
>>>> seems does not affect anything at the app. All the app loads fine in the 
>>>> browser.
>>>>
>>>> I wonder if it is a bug that needs to be fixed.
>>>>
>>>> Best, Yi
>>>>
>>>> 2019-02-17 22:04:07,033 - Rocket.Errors.Thread-6 - ERROR - Traceback (most 
>>>> recent call last):
>>>>
>>>>   File "/Users/LaVie/Documents/Python/web2py/gluon/rocket.py", line 
>>>> 1319, in run
>>>>     self.run_app(conn)
>>>>
>>>>   File "/Users/LaVie/Documents/Python/web2py/gluon/rocket.py", line 
>>>> 1812, in run_app
>>>>     self.environ = environ = self.build_environ(sock_file, conn)
>>>>
>>>>   File "/Users/LaVie/Documents/Python/web2py/gluon/rocket.py", line 
>>>> 1632, in build_environ
>>>>     request = self.read_request_line(sock_file)
>>>>
>>>>   File "/Users/LaVie/Documents/Python/web2py/gluon/rocket.py", line 
>>>> 1370, in read_request_line
>>>>     d = sock_file.readline()
>>>>
>>>>   File 
>>>> "/Users/LaVie/.pyenv/versions/miniconda3-4.3.11/lib/python3.7/socket.py"
>>>> , line 589, in readinto
>>>>     return self._sock.recv_into(b)
>>>>
>>>> ConnectionResetError: [Errno 54] Connection reset by peer
>>>>
>>>> 2019-02-17 22:04:07,034 - Rocket.Errors.Thread-6 - ERROR - Tried to 
>>>> send "500 Server Error" to client but received socket error
>>>>
>>>>
>>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to