On Tuesday, June 25, 2019 at 10:04:39 AM UTC-7, icodk wrote:
>
> Now I tried both another Windows 10 machine and ubuntu with similar errors
> As you can see bellow I used port 8000 on liniux because using port 443 
> gave the following error:
>
> ERROR:Rocket.Errors.Port443:Socket 0.0.0.0:443 in use by other process 
> and it won't share.
> WARNING:Rocket.Errors.Port443:Listener started when not ready.
>
> However, netstat didn't revile any process using 443 and nc could listen 
> on this port 
> $ sudo nc -l  -p 443
>
>
> and receive connections from another machine (telnet 192.168.1.223 443)
>
>
>
Well, I've used all my rounds.  I have run Rocket on port 443, but that was 
with a 2.15.4 version on AWS Linux.   And when I renewed the certificates, 
I got something messed up, couldn't figure it out, and so I finished the 
move to Nginx.  I don't think Rocket has had many changes, although the 
Python3 effort may have had to touch it some.

I have not tried 443 on Windows (just 8000, 8080, 8800, ...), and I have 
not tried the Nginx Windows port (I believe it is still marked 
"experimental").

As a relatively easy choice of alternate technology, you can do a real 
simple Node.js server that echos your request.  Mercurial includes a 
webserver (might not be stand-alone on Windows) and I believe it's in the 
standard release package, just waiting to be turned on.

Good luck!

/dps


> The error from the server on linux
> $ python3 web2py.py -c cert/ca.crt -k cert/ca.key -a "password" -i 
> 192.168.1.223 -p 8000
> web2py Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2019
> Version 2.18.5-stable+timestamp.2019.04.07.21.13.59
> Database drivers available: sqlite3, imaplib, pymysql
>
> please visit:
>         https://192.168.1.223:8000/
> use "kill -SIGTERM 7818" to shutdown the web2py server
>
>
> Exception in thread Thread-2:
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
>     self.run()
>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
>     conn = Connection(*conn)
>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
>     self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
> Exception in thread Thread-3:
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
>     self.run()
>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
>     conn = Connection(*conn)
>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
>     self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
> Exception in thread Thread-4:
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
>     self.run()
>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
>     conn = Connection(*conn)
>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
>     self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
> Exception in thread Thread-5:
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
>     self.run()
>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
>     conn = Connection(*conn)
>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
>     self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
> Exception in thread Thread-6:
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
>     self.run()
>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
>     conn = Connection(*conn)
>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
>     self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
> Exception in thread Thread-7:
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
>     self.run()
>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
>     conn = Connection(*conn)
>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
>     self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
> Exception in thread Thread-9:
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
>     self.run()
>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
>     conn = Connection(*conn)
>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
>     self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
> Exception in thread Thread-10:
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
>     self.run()
>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
>     conn = Connection(*conn)
>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
>     self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
> Exception in thread Thread-11:
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
>     self.run()
>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
>     conn = Connection(*conn)
>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
>     self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
> Exception in thread Thread-8:
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
>     self.run()
>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
>     conn = Connection(*conn)
>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
>     self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
>
>
>
> On Tuesday, June 25, 2019 at 11:26:55 AM UTC+2, icodk wrote:
>>
>> yes and it is python.exe that own the prort. Also the server serves the 
>> index.html page but then it hangs
>>
>>
>> On Tuesday, June 25, 2019 at 5:14:50 AM UTC+2, Dave S wrote:
>>>
>>>
>>>
>>> On Monday, June 24, 2019 at 2:37:32 PM UTC-7, icodk wrote:
>>>>
>>>> yes. I run it in  Administrator Command prompt. 
>>>> What else could I be missing ?
>>>> Will try on another Windows 10  machine  and linux.
>>>>
>>>>
>>> Did you check if port 443 was already in use?  Try
>>> netstat -ab
>>> (note the dash)
>>>
>>> /dps
>>>  
>>>
>>>> On Monday, June 24, 2019 at 10:27:05 PM UTC+2, Dave S wrote:
>>>>>
>>>>>
>>>>>
>>>>> On Sunday, June 23, 2019 at 4:19:41 AM UTC-7, icodk wrote:
>>>>>>
>>>>>> plan web2py 2.18.5 installation on windows from source on Windows 10 
>>>>>> running the welcome application without errors.
>>>>>> However trying to run it with SSL gives the following errors:
>>>>>> Command :
>>>>>> C:\Python37\python.exe C:\temp\web2py\web2py.py -c C:\temp\web2py\
>>>>>> cert\ca.crt -k C:\temp\web2py\cert\ca.key -a "password" -i 192.168.
>>>>>> 1.100 -p 443
>>>>>>
>>>>>>
>>>>> Are you running with elevated privilege (i.e., opening cmd.exe with 
>>>>> "Run as Administrator") ?
>>>>>
>>>>> Port 443  requires privilege on Linux, and it wouldn't be a surprise 
>>>>> if that was the case on Windows.
>>>>>
>>>>>
>>>>> Errors:
>>>>>>
>>>>>> C:\Temp\web2py>C:\Python37\python.exe C:\temp\web2py\web2py.py -c 
>>>>>> C:\temp\web2py\cert\ca.crt -k C:\temp\web2py\cert\ca.key -a "password" 
>>>>>> -i 
>>>>>> 192.168.1.100 -p 443
>>>>>> web2py Web Framework
>>>>>> Created by Massimo Di Pierro, Copyright 2007-2019
>>>>>> Version 2.18.5-stable+timestamp.2019.04.07.21.13.59
>>>>>> Database drivers available: sqlite3, psycopg2, imaplib, pymysql, 
>>>>>> pyodbc
>>>>>>
>>>>>> please visit:
>>>>>>         https://192.168.1.100:443/
>>>>>> use "taskkill /f /pid 13408" to shutdown the web2py server
>>>>>>
>>>>>>
>>>>>> Exception in thread Thread-2:
>>>>>> Traceback (most recent call last):
>>>>>>   File "C:\Python37\lib\threading.py", line 917, in _bootstrap_inner
>>>>>>     self.run()
>>>>>>   File "C:\temp\web2py\gluon\rocket.py", line 1268, in run
>>>>>>     conn = Connection(*conn)
>>>>>>   File "C:\temp\web2py\gluon\rocket.py", line 105, in __init__
>>>>>>     self.socket.settimeout(SOCKET_TIMEOUT)
>>>>>> OSError: [WinError 10038] An operation was attempted on something 
>>>>>> that is not a socket
>>>>>>
>>>>>> Exception in thread Thread-3:
>>>>>> Traceback (most recent call last):
>>>>>>   File "C:\Python37\lib\threading.py", line 917, in _bootstrap_inner
>>>>>>     self.run()
>>>>>>   File "C:\temp\web2py\gluon\rocket.py", line 1268, in run
>>>>>>     conn = Connection(*conn)
>>>>>>   File "C:\temp\web2py\gluon\rocket.py", line 105, in __init__
>>>>>>     self.socket.settimeout(SOCKET_TIMEOUT)
>>>>>> OSError: [WinError 10038] An operation was attempted on something 
>>>>>> that is not a socket
>>>>>>
>>>>>> Exception in thread Thread-5:
>>>>>> Traceback (most recent call last):
>>>>>>   File "C:\Python37\lib\threading.py", line 917, in _bootstrap_inner
>>>>>>     self.run()
>>>>>>   File "C:\temp\web2py\gluon\rocket.py", line 1268, in run
>>>>>>     conn = Connection(*conn)
>>>>>>   File "C:\temp\web2py\gluon\rocket.py", line 105, in __init__
>>>>>>     self.socket.settimeout(SOCKET_TIMEOUT)
>>>>>> OSError: [WinError 10038] An operation was attempted on something 
>>>>>> that is not a socket
>>>>>>
>>>>>> Exception in thread Thread-6:
>>>>>> Traceback (most recent call last):
>>>>>>   File "C:\Python37\lib\threading.py", line 917, in _bootstrap_inner
>>>>>>     self.run()
>>>>>>   File "C:\temp\web2py\gluon\rocket.py", line 1268, in run
>>>>>>     conn = Connection(*conn)
>>>>>>   File "C:\temp\web2py\gluon\rocket.py", line 105, in __init__
>>>>>>     self.socket.settimeout(SOCKET_TIMEOUT)
>>>>>> OSError: [WinError 10038] An operation was attempted on something 
>>>>>> that is not a socket
>>>>>>
>>>>>> Exception in thread Thread-7:
>>>>>> Traceback (most recent call last):
>>>>>>   File "C:\Python37\lib\threading.py", line 917, in _bootstrap_inner
>>>>>>     self.run()
>>>>>>   File "C:\temp\web2py\gluon\rocket.py", line 1268, in run
>>>>>>     conn = Connection(*conn)
>>>>>>   File "C:\temp\web2py\gluon\rocket.py", line 105, in __init__
>>>>>>     self.socket.settimeout(SOCKET_TIMEOUT)
>>>>>> OSError: [WinError 10038] An operation was attempted on something 
>>>>>> that is not a socket
>>>>>>
>>>>>> Exception in thread Thread-8:
>>>>>> Traceback (most recent call last):
>>>>>>   File "C:\Python37\lib\threading.py", line 917, in _bootstrap_inner
>>>>>>     self.run()
>>>>>>   File "C:\temp\web2py\gluon\rocket.py", line 1268, in run
>>>>>>     conn = Connection(*conn)
>>>>>>   File "C:\temp\web2py\gluon\rocket.py", line 105, in __init__
>>>>>>     self.socket.settimeout(SOCKET_TIMEOUT)
>>>>>> OSError: [WinError 10038] An operation was attempted on something 
>>>>>> that is not a socket
>>>>>>
>>>>>> Exception in thread Thread-9:
>>>>>> Traceback (most recent call last):
>>>>>>   File "C:\Python37\lib\threading.py", line 917, in _bootstrap_inner
>>>>>>     self.run()
>>>>>>   File "C:\temp\web2py\gluon\rocket.py", line 1268, in run
>>>>>>     conn = Connection(*conn)
>>>>>>   File "C:\temp\web2py\gluon\rocket.py", line 105, in __init__
>>>>>>     self.socket.settimeout(SOCKET_TIMEOUT)
>>>>>> OSError: [WinError 10038] An operation was attempted on something 
>>>>>> that is not a socket
>>>>>>
>>>>>  
>>>>>
>>>>> /dps
>>>>>
>>>>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/a692edab-1674-40df-99f1-39e6b961c5c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to