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
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 443web2py Web FrameworkCreated by Massimo Di Pierro, Copyright 2007-2019Version 2.18.5-stable+timestamp.2019.04.07.21.13.59Database drivers available: sqlite3, psycopg2, imaplib, pymysql, pyodbc
please visit: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 socketplan 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
yes. I run it in Administrator Command prompt.What else could I be missing ?Will try on another Windows 10 machine and linux.
netstat -ab
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.
$ sudo nc -l -p 443
$ python3 web2py.py -c cert/ca.crt -k cert/ca.key -a "password" -i 192.168.1.223 -p 8000web2py Web FrameworkCreated by Massimo Di Pierro, Copyright 2007-2019Version 2.18.5-stable+timestamp.2019.04.07.21.13.59Database drivers available: sqlite3, imaplib, pymysql
please visit: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
Now I tried both another Windows 10 machine and ubuntu with similar errorsAs you can see bellow I used port 8000 on liniux because using port 443 gave the following error:However, netstat didn't revile any process using 443 and nc could listen on this portERROR: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.$ sudo nc -l -p 443and receive connections from another machine (telnet 192.168.1.223 443)
Appreciate your effort to help me, tahnks. I use Rocket as development server, and it served me well with python2 and web2py up to 2.17.1.Production runs with nginx with ssl on aws. I thought I will try to upgrade my app to python3 and 2.18.5 and the easyest would be Rocket. I will try it with http but it is not optimal for me because I have some IoT devices thatuse https.Wished somebody could help because it is part of the core functionality of web2py development (IMHO) and one of the things that make web2py development so easy to get up and running.
The whole point for me is to prepare my app to python3 that seems to be the default on newer virtual machines on AWS and others.I am sure it can run with 2.18.5.If anybody on this forum managed to run web2py 2.18.5, python3 and Rocket without errors, please let me know.