What is your version of web2py?

-Jim

On Thursday, April 23, 2020 at 11:12:02 AM UTC-5, VJ Sosa wrote:
>
> I have tried the same command, running web2py with python 2.7.17 and it 
> works:
>
> python web2py.py -c web2py.crt -k web2py.key -i 0.0.0.0 -p 8080 --nogui -a 
> 'Password'
>
>
> The problem occurs when running web2py with  python3.
> I found the same discussion in this link < here 
> <https://www.mail-archive.com/web2py@googlegroups.com/msg170386.html> >, 
> but it seems that the error still persists.
> Any help? 
>
> Regards,
> Víctor.
>
> El jueves, 23 de abril de 2020, 14:55:21 (UTC+2), VJ Sosa escribió:
>>
>> Hello Everyone,
>>
>> Maybe this is a silly question, but I run web2py using the following 
>> command:
>>
>> python3 web2py.py -i 0.0.0.0 -p 8080 --nogui -a 'Password'
>>
>> Everything goes well. My application is working . My application includes 
>> an authentication part,
>> and so far it is running on HTTP, so browsers warns me about I'm using an 
>> insecure conexion . I was ignoring those messages so far..
>>
>> However,  i would like to activate the SSL conexion in the Rocket server.
>> I tried to execute web2py using the following command:
>>
>> python3 web2py.py -c web2py.crt -k web2py.key -i 0.0.0.0 -p 8080 --nogui 
>> -a 'Password'
>>
>> It runs, but when I try to connect to the server (my app) using my 
>> browser:
>> xx.xx.xx.xx:8080/myapp
>>
>> The browser (Chrome) tells me that it is not possible to connect to the 
>> site.
>> And the server part shows a list of errors, I'm including some of them:
>> <<<<
>> Exception in thread Thread-2:
>> Traceback (most recent call last):
>>   File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
>>     self.run()
>>   File "/home/vsosa/Applications/web2py/gluon/rocket.py", line 1268, in 
>> run
>>     conn = Connection(*conn)
>>   File "/home/vsosa/Applications/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.6/threading.py", line 916, in _bootstrap_inner
>>     self.run()
>>   File "/home/vsosa/Applications/web2py/gluon/rocket.py", line 1268, in 
>> run
>>     conn = Connection(*conn)
>>   File "/home/vsosa/Applications/web2py/gluon/rocket.py", line 105, in 
>> __init__
>>     self.socket.settimeout(SOCKET_TIMEOUT)
>> OSError: [Errno 9] Bad file descriptor
>>
>> <<<
>>
>> am I missing something?
>> is this the right way to execute web2py on Rocket using SSL:
>>
>> python3 web2py.py -c web2py.crt -k web2py.key -i 0.0.0.0 -p 8080 --nogui 
>> -a 'Password'
>>
>> Thank you in advance.
>>
>> Best regards,
>> Víctor
>>
>>
>>
>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/3da4de49-6ed9-4b3c-a4cc-22fc6c5a638f%40googlegroups.com.

Reply via email to