Re: [web2py] Running web2py in a container / Kubernetes

2019-07-11 Thread Stéphane Krikorian
hi
i run both stateless w2p apps and statefull ones on kubernetes.
note that when using web2py framework with authentication you often end up
with a database unless working in a read only mode.
in my architecture : for statefull apps:  database backend (postgres) is
externalized for production (it runs on  VM cluster)
note that in this case I have to delete the app/database dir content to
avoid side effects at the first connection where the database structure is
discovered and synchronized with this  directory.
This is done via a script when the container starts app for the first time.
For stateless I simply don't care about database directory.
Stephane



Le jeu. 11 juil. 2019 à 18:27, backseat  a écrit :

> We're looking to move a web2py app to run in a container under Kubernetes.
>
> I'm interested in experiences of running web2py in a non-persistent
> container. In particular, how have people handled the app/databases
> directory?
>
> Thanks
>
> --
> 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/88be3802-aa08-423e-897f-d1778f0bc139%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAGdSxfOB6P1PmDg6GVyuvMVuQKLUPQC0cjKKnSBkUFHTABkBjg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] web2py scripts (homemade task queues) and python2 compatibility

2019-07-11 Thread Tom Clerckx
Anyone else that can shed some light on this?

On Friday, July 5, 2019 at 3:01:11 PM UTC+2, Tom Clerckx wrote:
>
> Hi Nico,
>
> I tried explicitly with python2.7, by executing: 
> python2.7 web2py.py -S examples -M -R 
> applications/examples/private/script01.py
>
> On a fresh downloaded version of web2py.
> Same result.
>
> In web2py/gluon/shell.py, I notice the following first line:
> from __future__ import print_function
>
> Funny enough, it's only trough an external script that I'm getting this 
> error.
> Using the print statement in a controller function, everything works as 
> expected.
> So I believe it's only when running an 'external' script 
> through web2py/gluon/shell.py that the print() function must be used.
>
> Or am I missing something/making a mistake?
>
> Best, Tom.
>
>
> On Thursday, July 4, 2019 at 10:45:30 PM UTC+2, Nico Zanferrari wrote:
>>
>> Hi Tom,
>>
>> even the latest  2.18.5 version of web2py is still fully compatible with 
>> Python 2.7.
>>
>> I think you're running both of your tests with python 3 ;-) 
>> Another possibility is that you've first run your web2py framework with 
>> python 3 and then with python 2 -  you cannot mix them without cleaning up 
>> caches and dbs... Try test02 a fresh copy of the web2py sources, after 
>> being sure to use python2!
>>
>> Nico
>>
>> Il giorno gio 4 lug 2019 alle ore 17:41 Tom Clerckx  
>> ha scritto:
>>
>>> Can anyone confirm that backward compatibility with python2 is broken 
>>> with respect to web2py scripts (or homemade task queueus)?
>>> I just downloaded version "2.18.5-stable+timestamp.2019.04.08.04.22.03" 
>>> and it looks like the python3 print() function must be used.
>>>
>>> Is there any plan to fix this? If not, it would be good to include this 
>>> information in the web2py book.
>>>
>>>
>>> Test01:
>>> =
>>> script "applications/examples/scrips/script01.py" containing only one 
>>> line:
>>> print("Test print")
>>>
>>> This one executes fine when running:
>>> python web2py.py -S examples -M -R 
>>> applications/examples/scrips/script01.py
>>>
>>>
>>> Test02:
>>> ==
>>> script "applications/examples/scrips/script01.py" containing only one 
>>> line:
>>> print "Test print"
>>>
>>> This one fails fine when running:
>>> python web2py.py -S examples -M -R 
>>> applications/examples/scrips/script01.py
>>>
>>> Traceback (most recent call last):
>>>   File "/home/tclerckx/Downloads/web2py/gluon/shell.py", line 275, in run
>>> execfile(startfile, _env)
>>>   File "applications/examples/scrips/script01.py", line 1
>>> print "Test print"
>>>  ^
>>> SyntaxError: invalid syntax
>>>
>>> -- 
>>> 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 web...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/web2py/4c095bb7-1cd8-47a2-9b71-94a735dd5681%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
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/cfd586b7-89dd-4a17-a16e-e65abd9a1c4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Running web2py in a container / Kubernetes

2019-07-11 Thread Leonel Câmara
I would probably just use InDBMigrator and ditch the databases directory.

-- 
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/53009630-8586-4b12-90c1-5ce0bb598ecf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Maurice Waka
Oh. OK. Let me have a look at it.
Kind regards

On Thu, 11 Jul 2019, 18:50 Jim Steil  wrote:

> Then you're just starting web2py normally, not using nginx and uwsgi.
>
> Have you gone through all the steps in the digital ocean write-up?
>
> Note, there were significant changes in ubuntu between 14.04 and 18 where
> the 14.04 scripts and install notes may not work.
>
> But, if you look in the web2py scripts folder I believe there is a script
> to install web2py on ubuntu 16 and later using nginx and uwsgi that should
> work.
>
> -Jim
>
>
> On Thu, Jul 11, 2019 at 10:46 AM Maurice Waka 
> wrote:
>
>> I do cd web2py, then python3 web2py.py
>>
>> On Thu, 11 Jul 2019, 18:41 Jim Steil  wrote:
>>
>>> Ok, how are you starting your web2py server in this environment?
>>>
>>> On Thu, Jul 11, 2019 at 10:37 AM Maurice Waka 
>>> wrote:
>>>
 Unfortunately, they cant be opened with text editor

 On Thu, Jul 11, 2019 at 6:28 PM Jim Steil  wrote:

> Can't you open the files with a text editor?  Right-click and 'Open
> With Text Editor'
>
> -Jim
>
> On Thu, Jul 11, 2019 at 10:22 AM Maurice Waka 
> wrote:
>
>> FYI
>>
>> On Thu, Jul 11, 2019 at 6:03 PM Lovedie JC 
>> wrote:
>>
>>> How do I show them.
>>> I can see them in the folders but can't show them.
>>>
>>> On Thu, 11 Jul 2019 at 17:27, Jim Steil  wrote:
>>>
 Can you show:

 /etc/nginx/sites-enabled/web2py

 and

 /etc/uwsgi/web2py.ini

 -Jim

 On Thu, Jul 11, 2019 at 9:21 AM Lovedie JC 
 wrote:

> Web2py works well on the local machine. But when I follow the
> steps shown on the links, I get the error message.
>
> On Thu, 11 Jul 2019 at 17:13, Jim Steil 
> wrote:
>
>> Does it work on your local Ubuntu install?
>>
>> -Jim
>>
>> On Thu, Jul 11, 2019 at 9:08 AM Lovedie JC 
>> wrote:
>>
>>> I'm using Ubuntu 18.04 web2py, python 3.6.
>>> I was trying to deploy to digital Ocean
>>>
>>> On Thu, 11 Jul 2019, 16:28 Jim Steil 
>>> wrote:
>>>
 On Windows?  Linux?  Digital Ocean?

 On Thu, Jul 11, 2019 at 8:26 AM Maurice Waka <
 mauricew...@gmail.com> wrote:

> The problem is with the welcome app. I haven't tried any other
> app.
>
>
> On Thu, 11 Jul 2019, 16:23 Jim Steil 
> wrote:
>
>> Sorry then, I'm having trouble following what your problem
>> is.  The first link you gave references a question on a windows 
>> machine
>> having SSL errors.  The traceback here is on a linux machine and 
>> the link
>> at the bottom references installing on Digital Ocean.
>>
>> Could you state the problem you're having now?  Are you
>> seeing the problem with one of your apps or with the welcome 
>> app?  Or,
>> maybe someone else could just in that understands what is going 
>> on.
>>
>> -Jim
>>
>>
>> On Thu, Jul 11, 2019 at 7:40 AM Maurice Waka <
>> mauricew...@gmail.com> wrote:
>>
>>> This has nothing to do with web2py code. The code works well
>>> but only using the above links I showed did I get the error.
>>> Regards
>>>
>>> On Thu, Jul 11, 2019 at 3:04 PM Jim S 
>>> wrote:
>>>
 Can you show some code?  The controller and view where this
 is happening?

 -Jim

 On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice
 Waka wrote:
>
> I couldn't get an answer on this link
> 
> .
>
> My traceback is this
>
> ERROR:Rocket.Errors.Port8000:Traceback (most recent call
> last):
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line
> 555, in listen
> sock = self.wrap_socket(sock)
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line
> 507, in wrap_socket
> ssl_version=ssl.PROTOCOL_SSLv23)
>   File "/usr/lib/python3.6/ssl.py", line 1158, in
> wrap_socket
> ciphers=ciphers)
>   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
> self.do_handshake()
>   File 

[web2py] Running web2py in a container / Kubernetes

2019-07-11 Thread backseat
We're looking to move a web2py app to run in a container under Kubernetes.

I'm interested in experiences of running web2py in a non-persistent 
container. In particular, how have people handled the app/databases 
directory?

Thanks

-- 
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/88be3802-aa08-423e-897f-d1778f0bc139%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Jim Steil
Then you're just starting web2py normally, not using nginx and uwsgi.

Have you gone through all the steps in the digital ocean write-up?

Note, there were significant changes in ubuntu between 14.04 and 18 where
the 14.04 scripts and install notes may not work.

But, if you look in the web2py scripts folder I believe there is a script
to install web2py on ubuntu 16 and later using nginx and uwsgi that should
work.

-Jim


On Thu, Jul 11, 2019 at 10:46 AM Maurice Waka  wrote:

> I do cd web2py, then python3 web2py.py
>
> On Thu, 11 Jul 2019, 18:41 Jim Steil  wrote:
>
>> Ok, how are you starting your web2py server in this environment?
>>
>> On Thu, Jul 11, 2019 at 10:37 AM Maurice Waka 
>> wrote:
>>
>>> Unfortunately, they cant be opened with text editor
>>>
>>> On Thu, Jul 11, 2019 at 6:28 PM Jim Steil  wrote:
>>>
 Can't you open the files with a text editor?  Right-click and 'Open
 With Text Editor'

 -Jim

 On Thu, Jul 11, 2019 at 10:22 AM Maurice Waka 
 wrote:

> FYI
>
> On Thu, Jul 11, 2019 at 6:03 PM Lovedie JC  wrote:
>
>> How do I show them.
>> I can see them in the folders but can't show them.
>>
>> On Thu, 11 Jul 2019 at 17:27, Jim Steil  wrote:
>>
>>> Can you show:
>>>
>>> /etc/nginx/sites-enabled/web2py
>>>
>>> and
>>>
>>> /etc/uwsgi/web2py.ini
>>>
>>> -Jim
>>>
>>> On Thu, Jul 11, 2019 at 9:21 AM Lovedie JC 
>>> wrote:
>>>
 Web2py works well on the local machine. But when I follow the steps
 shown on the links, I get the error message.

 On Thu, 11 Jul 2019 at 17:13, Jim Steil 
 wrote:

> Does it work on your local Ubuntu install?
>
> -Jim
>
> On Thu, Jul 11, 2019 at 9:08 AM Lovedie JC 
> wrote:
>
>> I'm using Ubuntu 18.04 web2py, python 3.6.
>> I was trying to deploy to digital Ocean
>>
>> On Thu, 11 Jul 2019, 16:28 Jim Steil  wrote:
>>
>>> On Windows?  Linux?  Digital Ocean?
>>>
>>> On Thu, Jul 11, 2019 at 8:26 AM Maurice Waka <
>>> mauricew...@gmail.com> wrote:
>>>
 The problem is with the welcome app. I haven't tried any other
 app.


 On Thu, 11 Jul 2019, 16:23 Jim Steil 
 wrote:

> Sorry then, I'm having trouble following what your problem
> is.  The first link you gave references a question on a windows 
> machine
> having SSL errors.  The traceback here is on a linux machine and 
> the link
> at the bottom references installing on Digital Ocean.
>
> Could you state the problem you're having now?  Are you seeing
> the problem with one of your apps or with the welcome app?  Or, 
> maybe
> someone else could just in that understands what is going on.
>
> -Jim
>
>
> On Thu, Jul 11, 2019 at 7:40 AM Maurice Waka <
> mauricew...@gmail.com> wrote:
>
>> This has nothing to do with web2py code. The code works well
>> but only using the above links I showed did I get the error.
>> Regards
>>
>> On Thu, Jul 11, 2019 at 3:04 PM Jim S 
>> wrote:
>>
>>> Can you show some code?  The controller and view where this
>>> is happening?
>>>
>>> -Jim
>>>
>>> On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka
>>> wrote:

 I couldn't get an answer on this link
 
 .

 My traceback is this

 ERROR:Rocket.Errors.Port8000:Traceback (most recent call
 last):
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555
 , in listen
 sock = self.wrap_socket(sock)
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507
 , in wrap_socket
 ssl_version=ssl.PROTOCOL_SSLv23)
   File "/usr/lib/python3.6/ssl.py", line 1158, in
 wrap_socket
 ciphers=ciphers)
   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
 self.do_handshake()
   File "/usr/lib/python3.6/ssl.py", line 1077, in
 do_handshake
 self._sslobj.do_handshake()
   File "/usr/lib/python3.6/ssl.py", line 689, in
 do_handshake
 self._sslobj.do_handshake()
 OSError: [Errno 0] 

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Maurice Waka
I do cd web2py, then python3 web2py.py

On Thu, 11 Jul 2019, 18:41 Jim Steil  wrote:

> Ok, how are you starting your web2py server in this environment?
>
> On Thu, Jul 11, 2019 at 10:37 AM Maurice Waka 
> wrote:
>
>> Unfortunately, they cant be opened with text editor
>>
>> On Thu, Jul 11, 2019 at 6:28 PM Jim Steil  wrote:
>>
>>> Can't you open the files with a text editor?  Right-click and 'Open With
>>> Text Editor'
>>>
>>> -Jim
>>>
>>> On Thu, Jul 11, 2019 at 10:22 AM Maurice Waka 
>>> wrote:
>>>
 FYI

 On Thu, Jul 11, 2019 at 6:03 PM Lovedie JC  wrote:

> How do I show them.
> I can see them in the folders but can't show them.
>
> On Thu, 11 Jul 2019 at 17:27, Jim Steil  wrote:
>
>> Can you show:
>>
>> /etc/nginx/sites-enabled/web2py
>>
>> and
>>
>> /etc/uwsgi/web2py.ini
>>
>> -Jim
>>
>> On Thu, Jul 11, 2019 at 9:21 AM Lovedie JC 
>> wrote:
>>
>>> Web2py works well on the local machine. But when I follow the steps
>>> shown on the links, I get the error message.
>>>
>>> On Thu, 11 Jul 2019 at 17:13, Jim Steil  wrote:
>>>
 Does it work on your local Ubuntu install?

 -Jim

 On Thu, Jul 11, 2019 at 9:08 AM Lovedie JC 
 wrote:

> I'm using Ubuntu 18.04 web2py, python 3.6.
> I was trying to deploy to digital Ocean
>
> On Thu, 11 Jul 2019, 16:28 Jim Steil  wrote:
>
>> On Windows?  Linux?  Digital Ocean?
>>
>> On Thu, Jul 11, 2019 at 8:26 AM Maurice Waka <
>> mauricew...@gmail.com> wrote:
>>
>>> The problem is with the welcome app. I haven't tried any other
>>> app.
>>>
>>>
>>> On Thu, 11 Jul 2019, 16:23 Jim Steil 
>>> wrote:
>>>
 Sorry then, I'm having trouble following what your problem is.
 The first link you gave references a question on a windows machine 
 having
 SSL errors.  The traceback here is on a linux machine and the link 
 at the
 bottom references installing on Digital Ocean.

 Could you state the problem you're having now?  Are you seeing
 the problem with one of your apps or with the welcome app?  Or, 
 maybe
 someone else could just in that understands what is going on.

 -Jim


 On Thu, Jul 11, 2019 at 7:40 AM Maurice Waka <
 mauricew...@gmail.com> wrote:

> This has nothing to do with web2py code. The code works well
> but only using the above links I showed did I get the error.
> Regards
>
> On Thu, Jul 11, 2019 at 3:04 PM Jim S 
> wrote:
>
>> Can you show some code?  The controller and view where this
>> is happening?
>>
>> -Jim
>>
>> On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka
>> wrote:
>>>
>>> I couldn't get an answer on this link
>>> 
>>> .
>>>
>>> My traceback is this
>>>
>>> ERROR:Rocket.Errors.Port8000:Traceback (most recent call
>>> last):
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555,
>>> in listen
>>> sock = self.wrap_socket(sock)
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507,
>>> in wrap_socket
>>> ssl_version=ssl.PROTOCOL_SSLv23)
>>>   File "/usr/lib/python3.6/ssl.py", line 1158, in
>>> wrap_socket
>>> ciphers=ciphers)
>>>   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
>>> self.do_handshake()
>>>   File "/usr/lib/python3.6/ssl.py", line 1077, in
>>> do_handshake
>>> self._sslobj.do_handshake()
>>>   File "/usr/lib/python3.6/ssl.py", line 689, in
>>> do_handshake
>>> self._sslobj.do_handshake()
>>> OSError: [Errno 0] Error
>>>
>>>
>>> Exception in thread Thread-10:
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python3.6/threading.py", line 916, in
>>> _bootstrap_inner
>>> self.run()
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268
>>> , in run
>>> conn = Connection(*conn)
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105,
>>> in __init__
>>> self.socket.settimeout(SOCKET_TIMEOUT)
>>> OSError: [Errno 9] Bad file 

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Jim Steil
Ok, how are you starting your web2py server in this environment?

On Thu, Jul 11, 2019 at 10:37 AM Maurice Waka  wrote:

> Unfortunately, they cant be opened with text editor
>
> On Thu, Jul 11, 2019 at 6:28 PM Jim Steil  wrote:
>
>> Can't you open the files with a text editor?  Right-click and 'Open With
>> Text Editor'
>>
>> -Jim
>>
>> On Thu, Jul 11, 2019 at 10:22 AM Maurice Waka 
>> wrote:
>>
>>> FYI
>>>
>>> On Thu, Jul 11, 2019 at 6:03 PM Lovedie JC  wrote:
>>>
 How do I show them.
 I can see them in the folders but can't show them.

 On Thu, 11 Jul 2019 at 17:27, Jim Steil  wrote:

> Can you show:
>
> /etc/nginx/sites-enabled/web2py
>
> and
>
> /etc/uwsgi/web2py.ini
>
> -Jim
>
> On Thu, Jul 11, 2019 at 9:21 AM Lovedie JC  wrote:
>
>> Web2py works well on the local machine. But when I follow the steps
>> shown on the links, I get the error message.
>>
>> On Thu, 11 Jul 2019 at 17:13, Jim Steil  wrote:
>>
>>> Does it work on your local Ubuntu install?
>>>
>>> -Jim
>>>
>>> On Thu, Jul 11, 2019 at 9:08 AM Lovedie JC 
>>> wrote:
>>>
 I'm using Ubuntu 18.04 web2py, python 3.6.
 I was trying to deploy to digital Ocean

 On Thu, 11 Jul 2019, 16:28 Jim Steil  wrote:

> On Windows?  Linux?  Digital Ocean?
>
> On Thu, Jul 11, 2019 at 8:26 AM Maurice Waka <
> mauricew...@gmail.com> wrote:
>
>> The problem is with the welcome app. I haven't tried any other
>> app.
>>
>>
>> On Thu, 11 Jul 2019, 16:23 Jim Steil  wrote:
>>
>>> Sorry then, I'm having trouble following what your problem is.
>>> The first link you gave references a question on a windows machine 
>>> having
>>> SSL errors.  The traceback here is on a linux machine and the link 
>>> at the
>>> bottom references installing on Digital Ocean.
>>>
>>> Could you state the problem you're having now?  Are you seeing
>>> the problem with one of your apps or with the welcome app?  Or, 
>>> maybe
>>> someone else could just in that understands what is going on.
>>>
>>> -Jim
>>>
>>>
>>> On Thu, Jul 11, 2019 at 7:40 AM Maurice Waka <
>>> mauricew...@gmail.com> wrote:
>>>
 This has nothing to do with web2py code. The code works well
 but only using the above links I showed did I get the error.
 Regards

 On Thu, Jul 11, 2019 at 3:04 PM Jim S 
 wrote:

> Can you show some code?  The controller and view where this is
> happening?
>
> -Jim
>
> On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka
> wrote:
>>
>> I couldn't get an answer on this link
>> 
>> .
>>
>> My traceback is this
>>
>> ERROR:Rocket.Errors.Port8000:Traceback (most recent call last
>> ):
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555,
>> in listen
>> sock = self.wrap_socket(sock)
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507,
>> in wrap_socket
>> ssl_version=ssl.PROTOCOL_SSLv23)
>>   File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket
>> ciphers=ciphers)
>>   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
>> self.do_handshake()
>>   File "/usr/lib/python3.6/ssl.py", line 1077, in
>> do_handshake
>> self._sslobj.do_handshake()
>>   File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
>> self._sslobj.do_handshake()
>> OSError: [Errno 0] Error
>>
>>
>> Exception in thread Thread-10:
>> Traceback (most recent call last):
>>   File "/usr/lib/python3.6/threading.py", line 916, in
>> _bootstrap_inner
>> self.run()
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268,
>> in run
>> conn = Connection(*conn)
>>   File "/home/mauricewaka/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.6/threading.py", line 916, in
>> _bootstrap_inner
>> self.run()

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Maurice Waka
Unfortunately, they cant be opened with text editor

On Thu, Jul 11, 2019 at 6:28 PM Jim Steil  wrote:

> Can't you open the files with a text editor?  Right-click and 'Open With
> Text Editor'
>
> -Jim
>
> On Thu, Jul 11, 2019 at 10:22 AM Maurice Waka 
> wrote:
>
>> FYI
>>
>> On Thu, Jul 11, 2019 at 6:03 PM Lovedie JC  wrote:
>>
>>> How do I show them.
>>> I can see them in the folders but can't show them.
>>>
>>> On Thu, 11 Jul 2019 at 17:27, Jim Steil  wrote:
>>>
 Can you show:

 /etc/nginx/sites-enabled/web2py

 and

 /etc/uwsgi/web2py.ini

 -Jim

 On Thu, Jul 11, 2019 at 9:21 AM Lovedie JC  wrote:

> Web2py works well on the local machine. But when I follow the steps
> shown on the links, I get the error message.
>
> On Thu, 11 Jul 2019 at 17:13, Jim Steil  wrote:
>
>> Does it work on your local Ubuntu install?
>>
>> -Jim
>>
>> On Thu, Jul 11, 2019 at 9:08 AM Lovedie JC 
>> wrote:
>>
>>> I'm using Ubuntu 18.04 web2py, python 3.6.
>>> I was trying to deploy to digital Ocean
>>>
>>> On Thu, 11 Jul 2019, 16:28 Jim Steil  wrote:
>>>
 On Windows?  Linux?  Digital Ocean?

 On Thu, Jul 11, 2019 at 8:26 AM Maurice Waka 
 wrote:

> The problem is with the welcome app. I haven't tried any other app.
>
>
> On Thu, 11 Jul 2019, 16:23 Jim Steil  wrote:
>
>> Sorry then, I'm having trouble following what your problem is.
>> The first link you gave references a question on a windows machine 
>> having
>> SSL errors.  The traceback here is on a linux machine and the link 
>> at the
>> bottom references installing on Digital Ocean.
>>
>> Could you state the problem you're having now?  Are you seeing
>> the problem with one of your apps or with the welcome app?  Or, maybe
>> someone else could just in that understands what is going on.
>>
>> -Jim
>>
>>
>> On Thu, Jul 11, 2019 at 7:40 AM Maurice Waka <
>> mauricew...@gmail.com> wrote:
>>
>>> This has nothing to do with web2py code. The code works well but
>>> only using the above links I showed did I get the error.
>>> Regards
>>>
>>> On Thu, Jul 11, 2019 at 3:04 PM Jim S 
>>> wrote:
>>>
 Can you show some code?  The controller and view where this is
 happening?

 -Jim

 On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka
 wrote:
>
> I couldn't get an answer on this link
> 
> .
>
> My traceback is this
>
> ERROR:Rocket.Errors.Port8000:Traceback (most recent call last
> ):
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555,
> in listen
> sock = self.wrap_socket(sock)
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507,
> in wrap_socket
> ssl_version=ssl.PROTOCOL_SSLv23)
>   File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket
> ciphers=ciphers)
>   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
> self.do_handshake()
>   File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
> self._sslobj.do_handshake()
>   File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
> self._sslobj.do_handshake()
> OSError: [Errno 0] Error
>
>
> Exception in thread Thread-10:
> Traceback (most recent call last):
>   File "/usr/lib/python3.6/threading.py", line 916, in
> _bootstrap_inner
> self.run()
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268,
> in run
> conn = Connection(*conn)
>   File "/home/mauricewaka/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.6/threading.py", line 916, in
> _bootstrap_inner
> self.run()
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268,
> in run
> conn = Connection(*conn)
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105,
> in __init__
> self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] 

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Jim Steil
Can't you open the files with a text editor?  Right-click and 'Open With
Text Editor'

-Jim

On Thu, Jul 11, 2019 at 10:22 AM Maurice Waka  wrote:

> FYI
>
> On Thu, Jul 11, 2019 at 6:03 PM Lovedie JC  wrote:
>
>> How do I show them.
>> I can see them in the folders but can't show them.
>>
>> On Thu, 11 Jul 2019 at 17:27, Jim Steil  wrote:
>>
>>> Can you show:
>>>
>>> /etc/nginx/sites-enabled/web2py
>>>
>>> and
>>>
>>> /etc/uwsgi/web2py.ini
>>>
>>> -Jim
>>>
>>> On Thu, Jul 11, 2019 at 9:21 AM Lovedie JC  wrote:
>>>
 Web2py works well on the local machine. But when I follow the steps
 shown on the links, I get the error message.

 On Thu, 11 Jul 2019 at 17:13, Jim Steil  wrote:

> Does it work on your local Ubuntu install?
>
> -Jim
>
> On Thu, Jul 11, 2019 at 9:08 AM Lovedie JC  wrote:
>
>> I'm using Ubuntu 18.04 web2py, python 3.6.
>> I was trying to deploy to digital Ocean
>>
>> On Thu, 11 Jul 2019, 16:28 Jim Steil  wrote:
>>
>>> On Windows?  Linux?  Digital Ocean?
>>>
>>> On Thu, Jul 11, 2019 at 8:26 AM Maurice Waka 
>>> wrote:
>>>
 The problem is with the welcome app. I haven't tried any other app.


 On Thu, 11 Jul 2019, 16:23 Jim Steil  wrote:

> Sorry then, I'm having trouble following what your problem is.
> The first link you gave references a question on a windows machine 
> having
> SSL errors.  The traceback here is on a linux machine and the link at 
> the
> bottom references installing on Digital Ocean.
>
> Could you state the problem you're having now?  Are you seeing the
> problem with one of your apps or with the welcome app?  Or, maybe 
> someone
> else could just in that understands what is going on.
>
> -Jim
>
>
> On Thu, Jul 11, 2019 at 7:40 AM Maurice Waka <
> mauricew...@gmail.com> wrote:
>
>> This has nothing to do with web2py code. The code works well but
>> only using the above links I showed did I get the error.
>> Regards
>>
>> On Thu, Jul 11, 2019 at 3:04 PM Jim S 
>> wrote:
>>
>>> Can you show some code?  The controller and view where this is
>>> happening?
>>>
>>> -Jim
>>>
>>> On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka
>>> wrote:

 I couldn't get an answer on this link
 
 .

 My traceback is this

 ERROR:Rocket.Errors.Port8000:Traceback (most recent call last):
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555, in
 listen
 sock = self.wrap_socket(sock)
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507, in
 wrap_socket
 ssl_version=ssl.PROTOCOL_SSLv23)
   File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket
 ciphers=ciphers)
   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
 self.do_handshake()
   File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
 self._sslobj.do_handshake()
   File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
 self._sslobj.do_handshake()
 OSError: [Errno 0] Error


 Exception in thread Thread-10:
 Traceback (most recent call last):
   File "/usr/lib/python3.6/threading.py", line 916, in
 _bootstrap_inner
 self.run()
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268,
 in run
 conn = Connection(*conn)
   File "/home/mauricewaka/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.6/threading.py", line 916, in
 _bootstrap_inner
 self.run()
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268,
 in run
 conn = Connection(*conn)
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in
 __init__
 self.socket.settimeout(SOCKET_TIMEOUT)
 OSError: [Errno 9] Bad file descriptor


 Exception in thread Thread-12:
 Traceback (most recent call last):
   File "/usr/lib/python3.6/threading.py", line 916, in
 _bootstrap_inner
 

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Maurice Waka
FYI

On Thu, Jul 11, 2019 at 6:03 PM Lovedie JC  wrote:

> How do I show them.
> I can see them in the folders but can't show them.
>
> On Thu, 11 Jul 2019 at 17:27, Jim Steil  wrote:
>
>> Can you show:
>>
>> /etc/nginx/sites-enabled/web2py
>>
>> and
>>
>> /etc/uwsgi/web2py.ini
>>
>> -Jim
>>
>> On Thu, Jul 11, 2019 at 9:21 AM Lovedie JC  wrote:
>>
>>> Web2py works well on the local machine. But when I follow the steps
>>> shown on the links, I get the error message.
>>>
>>> On Thu, 11 Jul 2019 at 17:13, Jim Steil  wrote:
>>>
 Does it work on your local Ubuntu install?

 -Jim

 On Thu, Jul 11, 2019 at 9:08 AM Lovedie JC  wrote:

> I'm using Ubuntu 18.04 web2py, python 3.6.
> I was trying to deploy to digital Ocean
>
> On Thu, 11 Jul 2019, 16:28 Jim Steil  wrote:
>
>> On Windows?  Linux?  Digital Ocean?
>>
>> On Thu, Jul 11, 2019 at 8:26 AM Maurice Waka 
>> wrote:
>>
>>> The problem is with the welcome app. I haven't tried any other app.
>>>
>>>
>>> On Thu, 11 Jul 2019, 16:23 Jim Steil  wrote:
>>>
 Sorry then, I'm having trouble following what your problem is.  The
 first link you gave references a question on a windows machine having 
 SSL
 errors.  The traceback here is on a linux machine and the link at the
 bottom references installing on Digital Ocean.

 Could you state the problem you're having now?  Are you seeing the
 problem with one of your apps or with the welcome app?  Or, maybe 
 someone
 else could just in that understands what is going on.

 -Jim


 On Thu, Jul 11, 2019 at 7:40 AM Maurice Waka 
 wrote:

> This has nothing to do with web2py code. The code works well but
> only using the above links I showed did I get the error.
> Regards
>
> On Thu, Jul 11, 2019 at 3:04 PM Jim S  wrote:
>
>> Can you show some code?  The controller and view where this is
>> happening?
>>
>> -Jim
>>
>> On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka
>> wrote:
>>>
>>> I couldn't get an answer on this link
>>> 
>>> .
>>>
>>> My traceback is this
>>>
>>> ERROR:Rocket.Errors.Port8000:Traceback (most recent call last):
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555, in
>>> listen
>>> sock = self.wrap_socket(sock)
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507, in
>>> wrap_socket
>>> ssl_version=ssl.PROTOCOL_SSLv23)
>>>   File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket
>>> ciphers=ciphers)
>>>   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
>>> self.do_handshake()
>>>   File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
>>> self._sslobj.do_handshake()
>>>   File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
>>> self._sslobj.do_handshake()
>>> OSError: [Errno 0] Error
>>>
>>>
>>> Exception in thread Thread-10:
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python3.6/threading.py", line 916, in
>>> _bootstrap_inner
>>> self.run()
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in
>>> run
>>> conn = Connection(*conn)
>>>   File "/home/mauricewaka/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.6/threading.py", line 916, in
>>> _bootstrap_inner
>>> self.run()
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in
>>> run
>>> conn = Connection(*conn)
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in
>>> __init__
>>> self.socket.settimeout(SOCKET_TIMEOUT)
>>> OSError: [Errno 9] Bad file descriptor
>>>
>>>
>>> Exception in thread Thread-12:
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python3.6/threading.py", line 916, in
>>> _bootstrap_inner
>>> self.run()
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in
>>> run
>>> conn = Connection(*conn)
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in
>>> __init__
>>> self.socket.settimeout(SOCKET_TIMEOUT)
>>> OSError: [Errno 9] Bad 

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Jim S
Can't you copy/paste them or take a screenshot?

Or, on digital ocean, are they in a different location?  I've not worked 
with digital ocean but use nginx/uwsgi on my ubuntu server.

-Jim

On Thursday, July 11, 2019 at 10:03:13 AM UTC-5, Lovedie JC wrote:
>
> How do I show them. 
> I can see them in the folders but can't show them.
>
> On Thu, 11 Jul 2019 at 17:27, Jim Steil > 
> wrote:
>
>> Can you show:
>>
>> /etc/nginx/sites-enabled/web2py
>>
>> and 
>>
>> /etc/uwsgi/web2py.ini
>>
>> -Jim
>>
>> On Thu, Jul 11, 2019 at 9:21 AM Lovedie JC > > wrote:
>>
>>> Web2py works well on the local machine. But when I follow the steps 
>>> shown on the links, I get the error message.
>>>
>>> On Thu, 11 Jul 2019 at 17:13, Jim Steil > 
>>> wrote:
>>>
 Does it work on your local Ubuntu install?

 -Jim

 On Thu, Jul 11, 2019 at 9:08 AM Lovedie JC >>> > wrote:

> I'm using Ubuntu 18.04 web2py, python 3.6.
> I was trying to deploy to digital Ocean 
>
> On Thu, 11 Jul 2019, 16:28 Jim Steil > 
> wrote:
>
>> On Windows?  Linux?  Digital Ocean?
>>
>> On Thu, Jul 11, 2019 at 8:26 AM Maurice Waka > > wrote:
>>
>>> The problem is with the welcome app. I haven't tried any other app.
>>>
>>>
>>> On Thu, 11 Jul 2019, 16:23 Jim Steil >> > wrote:
>>>
 Sorry then, I'm having trouble following what your problem is.  The 
 first link you gave references a question on a windows machine having 
 SSL 
 errors.  The traceback here is on a linux machine and the link at the 
 bottom references installing on Digital Ocean.

 Could you state the problem you're having now?  Are you seeing the 
 problem with one of your apps or with the welcome app?  Or, maybe 
 someone 
 else could just in that understands what is going on.

 -Jim


 On Thu, Jul 11, 2019 at 7:40 AM Maurice Waka >>> > wrote:

> This has nothing to do with web2py code. The code works well but 
> only using the above links I showed did I get the error.
> Regards
>
> On Thu, Jul 11, 2019 at 3:04 PM Jim S  > wrote:
>
>> Can you show some code?  The controller and view where this is 
>> happening?
>>
>> -Jim
>>
>> On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka 
>> wrote:
>>>
>>> I couldn't get an answer on this link 
>>> 
>>> .
>>>
>>> My traceback is this
>>>
>>> ERROR:Rocket.Errors.Port8000:Traceback (most recent call last):
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555, in 
>>> listen
>>> sock = self.wrap_socket(sock)
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507, in 
>>> wrap_socket
>>> ssl_version=ssl.PROTOCOL_SSLv23)
>>>   File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket
>>> ciphers=ciphers)
>>>   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
>>> self.do_handshake()
>>>   File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
>>> self._sslobj.do_handshake()
>>>   File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
>>> self._sslobj.do_handshake()
>>> OSError: [Errno 0] Error
>>>
>>>
>>> Exception in thread Thread-10:
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python3.6/threading.py", line 916, in 
>>> _bootstrap_inner
>>> self.run()
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in 
>>> run
>>> conn = Connection(*conn)
>>>   File "/home/mauricewaka/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.6/threading.py", line 916, in 
>>> _bootstrap_inner
>>> self.run()
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in 
>>> run
>>> conn = Connection(*conn)
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in 
>>> __init__
>>> self.socket.settimeout(SOCKET_TIMEOUT)
>>> OSError: [Errno 9] Bad file descriptor
>>>
>>>
>>> Exception in thread Thread-12:
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python3.6/threading.py", line 916, in 
>>> _bootstrap_inner
>>> self.run()
>>>   File 

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Lovedie JC
How do I show them.
I can see them in the folders but can't show them.

On Thu, 11 Jul 2019 at 17:27, Jim Steil  wrote:

> Can you show:
>
> /etc/nginx/sites-enabled/web2py
>
> and
>
> /etc/uwsgi/web2py.ini
>
> -Jim
>
> On Thu, Jul 11, 2019 at 9:21 AM Lovedie JC  wrote:
>
>> Web2py works well on the local machine. But when I follow the steps shown
>> on the links, I get the error message.
>>
>> On Thu, 11 Jul 2019 at 17:13, Jim Steil  wrote:
>>
>>> Does it work on your local Ubuntu install?
>>>
>>> -Jim
>>>
>>> On Thu, Jul 11, 2019 at 9:08 AM Lovedie JC  wrote:
>>>
 I'm using Ubuntu 18.04 web2py, python 3.6.
 I was trying to deploy to digital Ocean

 On Thu, 11 Jul 2019, 16:28 Jim Steil  wrote:

> On Windows?  Linux?  Digital Ocean?
>
> On Thu, Jul 11, 2019 at 8:26 AM Maurice Waka 
> wrote:
>
>> The problem is with the welcome app. I haven't tried any other app.
>>
>>
>> On Thu, 11 Jul 2019, 16:23 Jim Steil  wrote:
>>
>>> Sorry then, I'm having trouble following what your problem is.  The
>>> first link you gave references a question on a windows machine having 
>>> SSL
>>> errors.  The traceback here is on a linux machine and the link at the
>>> bottom references installing on Digital Ocean.
>>>
>>> Could you state the problem you're having now?  Are you seeing the
>>> problem with one of your apps or with the welcome app?  Or, maybe 
>>> someone
>>> else could just in that understands what is going on.
>>>
>>> -Jim
>>>
>>>
>>> On Thu, Jul 11, 2019 at 7:40 AM Maurice Waka 
>>> wrote:
>>>
 This has nothing to do with web2py code. The code works well but
 only using the above links I showed did I get the error.
 Regards

 On Thu, Jul 11, 2019 at 3:04 PM Jim S  wrote:

> Can you show some code?  The controller and view where this is
> happening?
>
> -Jim
>
> On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka wrote:
>>
>> I couldn't get an answer on this link
>> 
>> .
>>
>> My traceback is this
>>
>> ERROR:Rocket.Errors.Port8000:Traceback (most recent call last):
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555, in
>> listen
>> sock = self.wrap_socket(sock)
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507, in
>> wrap_socket
>> ssl_version=ssl.PROTOCOL_SSLv23)
>>   File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket
>> ciphers=ciphers)
>>   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
>> self.do_handshake()
>>   File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
>> self._sslobj.do_handshake()
>>   File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
>> self._sslobj.do_handshake()
>> OSError: [Errno 0] Error
>>
>>
>> Exception in thread Thread-10:
>> Traceback (most recent call last):
>>   File "/usr/lib/python3.6/threading.py", line 916, in
>> _bootstrap_inner
>> self.run()
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in
>> run
>> conn = Connection(*conn)
>>   File "/home/mauricewaka/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.6/threading.py", line 916, in
>> _bootstrap_inner
>> self.run()
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in
>> run
>> conn = Connection(*conn)
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in
>> __init__
>> self.socket.settimeout(SOCKET_TIMEOUT)
>> OSError: [Errno 9] Bad file descriptor
>>
>>
>> Exception in thread Thread-12:
>> Traceback (most recent call last):
>>   File "/usr/lib/python3.6/threading.py", line 916, in
>> _bootstrap_inner
>> self.run()
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in
>> run
>> conn = Connection(*conn)
>>   File "/home/mauricewaka/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.6/threading.py", line 916, in
>> 

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Jim Steil
Can you show:

/etc/nginx/sites-enabled/web2py

and

/etc/uwsgi/web2py.ini

-Jim

On Thu, Jul 11, 2019 at 9:21 AM Lovedie JC  wrote:

> Web2py works well on the local machine. But when I follow the steps shown
> on the links, I get the error message.
>
> On Thu, 11 Jul 2019 at 17:13, Jim Steil  wrote:
>
>> Does it work on your local Ubuntu install?
>>
>> -Jim
>>
>> On Thu, Jul 11, 2019 at 9:08 AM Lovedie JC  wrote:
>>
>>> I'm using Ubuntu 18.04 web2py, python 3.6.
>>> I was trying to deploy to digital Ocean
>>>
>>> On Thu, 11 Jul 2019, 16:28 Jim Steil  wrote:
>>>
 On Windows?  Linux?  Digital Ocean?

 On Thu, Jul 11, 2019 at 8:26 AM Maurice Waka 
 wrote:

> The problem is with the welcome app. I haven't tried any other app.
>
>
> On Thu, 11 Jul 2019, 16:23 Jim Steil  wrote:
>
>> Sorry then, I'm having trouble following what your problem is.  The
>> first link you gave references a question on a windows machine having SSL
>> errors.  The traceback here is on a linux machine and the link at the
>> bottom references installing on Digital Ocean.
>>
>> Could you state the problem you're having now?  Are you seeing the
>> problem with one of your apps or with the welcome app?  Or, maybe someone
>> else could just in that understands what is going on.
>>
>> -Jim
>>
>>
>> On Thu, Jul 11, 2019 at 7:40 AM Maurice Waka 
>> wrote:
>>
>>> This has nothing to do with web2py code. The code works well but
>>> only using the above links I showed did I get the error.
>>> Regards
>>>
>>> On Thu, Jul 11, 2019 at 3:04 PM Jim S  wrote:
>>>
 Can you show some code?  The controller and view where this is
 happening?

 -Jim

 On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka wrote:
>
> I couldn't get an answer on this link
> 
> .
>
> My traceback is this
>
> ERROR:Rocket.Errors.Port8000:Traceback (most recent call last):
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555, in
> listen
> sock = self.wrap_socket(sock)
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507, in
> wrap_socket
> ssl_version=ssl.PROTOCOL_SSLv23)
>   File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket
> ciphers=ciphers)
>   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
> self.do_handshake()
>   File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
> self._sslobj.do_handshake()
>   File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
> self._sslobj.do_handshake()
> OSError: [Errno 0] Error
>
>
> Exception in thread Thread-10:
> Traceback (most recent call last):
>   File "/usr/lib/python3.6/threading.py", line 916, in
> _bootstrap_inner
> self.run()
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in
> run
> conn = Connection(*conn)
>   File "/home/mauricewaka/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.6/threading.py", line 916, in
> _bootstrap_inner
> self.run()
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in
> run
> conn = Connection(*conn)
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in
> __init__
> self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
>
> Exception in thread Thread-12:
> Traceback (most recent call last):
>   File "/usr/lib/python3.6/threading.py", line 916, in
> _bootstrap_inner
> self.run()
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in
> run
> conn = Connection(*conn)
>   File "/home/mauricewaka/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.6/threading.py", line 916, in
> _bootstrap_inner
> self.run()
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in
> run
> conn = Connection(*conn)
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in
> __init__
> 

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Lovedie JC
Web2py works well on the local machine. But when I follow the steps shown
on the links, I get the error message.

On Thu, 11 Jul 2019 at 17:13, Jim Steil  wrote:

> Does it work on your local Ubuntu install?
>
> -Jim
>
> On Thu, Jul 11, 2019 at 9:08 AM Lovedie JC  wrote:
>
>> I'm using Ubuntu 18.04 web2py, python 3.6.
>> I was trying to deploy to digital Ocean
>>
>> On Thu, 11 Jul 2019, 16:28 Jim Steil  wrote:
>>
>>> On Windows?  Linux?  Digital Ocean?
>>>
>>> On Thu, Jul 11, 2019 at 8:26 AM Maurice Waka 
>>> wrote:
>>>
 The problem is with the welcome app. I haven't tried any other app.


 On Thu, 11 Jul 2019, 16:23 Jim Steil  wrote:

> Sorry then, I'm having trouble following what your problem is.  The
> first link you gave references a question on a windows machine having SSL
> errors.  The traceback here is on a linux machine and the link at the
> bottom references installing on Digital Ocean.
>
> Could you state the problem you're having now?  Are you seeing the
> problem with one of your apps or with the welcome app?  Or, maybe someone
> else could just in that understands what is going on.
>
> -Jim
>
>
> On Thu, Jul 11, 2019 at 7:40 AM Maurice Waka 
> wrote:
>
>> This has nothing to do with web2py code. The code works well but only
>> using the above links I showed did I get the error.
>> Regards
>>
>> On Thu, Jul 11, 2019 at 3:04 PM Jim S  wrote:
>>
>>> Can you show some code?  The controller and view where this is
>>> happening?
>>>
>>> -Jim
>>>
>>> On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka wrote:

 I couldn't get an answer on this link
 
 .

 My traceback is this

 ERROR:Rocket.Errors.Port8000:Traceback (most recent call last):
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555, in
 listen
 sock = self.wrap_socket(sock)
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507, in
 wrap_socket
 ssl_version=ssl.PROTOCOL_SSLv23)
   File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket
 ciphers=ciphers)
   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
 self.do_handshake()
   File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
 self._sslobj.do_handshake()
   File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
 self._sslobj.do_handshake()
 OSError: [Errno 0] Error


 Exception in thread Thread-10:
 Traceback (most recent call last):
   File "/usr/lib/python3.6/threading.py", line 916, in
 _bootstrap_inner
 self.run()
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in
 run
 conn = Connection(*conn)
   File "/home/mauricewaka/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.6/threading.py", line 916, in
 _bootstrap_inner
 self.run()
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in
 run
 conn = Connection(*conn)
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in
 __init__
 self.socket.settimeout(SOCKET_TIMEOUT)
 OSError: [Errno 9] Bad file descriptor


 Exception in thread Thread-12:
 Traceback (most recent call last):
   File "/usr/lib/python3.6/threading.py", line 916, in
 _bootstrap_inner
 self.run()
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in
 run
 conn = Connection(*conn)
   File "/home/mauricewaka/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.6/threading.py", line 916, in
 _bootstrap_inner
 self.run()
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in
 run
 conn = Connection(*conn)
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in
 __init__
 self.socket.settimeout(SOCKET_TIMEOUT)
 OSError: [Errno 9] Bad file descriptor

 Is there any solution to this?

 I'm trying out my app on digitalocean, on this link
 

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Jim Steil
Does it work on your local Ubuntu install?

-Jim

On Thu, Jul 11, 2019 at 9:08 AM Lovedie JC  wrote:

> I'm using Ubuntu 18.04 web2py, python 3.6.
> I was trying to deploy to digital Ocean
>
> On Thu, 11 Jul 2019, 16:28 Jim Steil  wrote:
>
>> On Windows?  Linux?  Digital Ocean?
>>
>> On Thu, Jul 11, 2019 at 8:26 AM Maurice Waka 
>> wrote:
>>
>>> The problem is with the welcome app. I haven't tried any other app.
>>>
>>>
>>> On Thu, 11 Jul 2019, 16:23 Jim Steil  wrote:
>>>
 Sorry then, I'm having trouble following what your problem is.  The
 first link you gave references a question on a windows machine having SSL
 errors.  The traceback here is on a linux machine and the link at the
 bottom references installing on Digital Ocean.

 Could you state the problem you're having now?  Are you seeing the
 problem with one of your apps or with the welcome app?  Or, maybe someone
 else could just in that understands what is going on.

 -Jim


 On Thu, Jul 11, 2019 at 7:40 AM Maurice Waka 
 wrote:

> This has nothing to do with web2py code. The code works well but only
> using the above links I showed did I get the error.
> Regards
>
> On Thu, Jul 11, 2019 at 3:04 PM Jim S  wrote:
>
>> Can you show some code?  The controller and view where this is
>> happening?
>>
>> -Jim
>>
>> On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka wrote:
>>>
>>> I couldn't get an answer on this link
>>> 
>>> .
>>>
>>> My traceback is this
>>>
>>> ERROR:Rocket.Errors.Port8000:Traceback (most recent call last):
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555, in
>>> listen
>>> sock = self.wrap_socket(sock)
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507, in
>>> wrap_socket
>>> ssl_version=ssl.PROTOCOL_SSLv23)
>>>   File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket
>>> ciphers=ciphers)
>>>   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
>>> self.do_handshake()
>>>   File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
>>> self._sslobj.do_handshake()
>>>   File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
>>> self._sslobj.do_handshake()
>>> OSError: [Errno 0] Error
>>>
>>>
>>> Exception in thread Thread-10:
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python3.6/threading.py", line 916, in
>>> _bootstrap_inner
>>> self.run()
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
>>> conn = Connection(*conn)
>>>   File "/home/mauricewaka/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.6/threading.py", line 916, in
>>> _bootstrap_inner
>>> self.run()
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
>>> conn = Connection(*conn)
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in
>>> __init__
>>> self.socket.settimeout(SOCKET_TIMEOUT)
>>> OSError: [Errno 9] Bad file descriptor
>>>
>>>
>>> Exception in thread Thread-12:
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python3.6/threading.py", line 916, in
>>> _bootstrap_inner
>>> self.run()
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
>>> conn = Connection(*conn)
>>>   File "/home/mauricewaka/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.6/threading.py", line 916, in
>>> _bootstrap_inner
>>> self.run()
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
>>> conn = Connection(*conn)
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in
>>> __init__
>>> self.socket.settimeout(SOCKET_TIMEOUT)
>>> OSError: [Errno 9] Bad file descriptor
>>>
>>> Is there any solution to this?
>>>
>>> I'm trying out my app on digitalocean, on this link
>>> 
>>>
>>> Regards
>>>
>>> --
>> 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)

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Lovedie JC
I'm using Ubuntu 18.04 web2py, python 3.6.
I was trying to deploy to digital Ocean

On Thu, 11 Jul 2019, 16:28 Jim Steil  wrote:

> On Windows?  Linux?  Digital Ocean?
>
> On Thu, Jul 11, 2019 at 8:26 AM Maurice Waka 
> wrote:
>
>> The problem is with the welcome app. I haven't tried any other app.
>>
>>
>> On Thu, 11 Jul 2019, 16:23 Jim Steil  wrote:
>>
>>> Sorry then, I'm having trouble following what your problem is.  The
>>> first link you gave references a question on a windows machine having SSL
>>> errors.  The traceback here is on a linux machine and the link at the
>>> bottom references installing on Digital Ocean.
>>>
>>> Could you state the problem you're having now?  Are you seeing the
>>> problem with one of your apps or with the welcome app?  Or, maybe someone
>>> else could just in that understands what is going on.
>>>
>>> -Jim
>>>
>>>
>>> On Thu, Jul 11, 2019 at 7:40 AM Maurice Waka 
>>> wrote:
>>>
 This has nothing to do with web2py code. The code works well but only
 using the above links I showed did I get the error.
 Regards

 On Thu, Jul 11, 2019 at 3:04 PM Jim S  wrote:

> Can you show some code?  The controller and view where this is
> happening?
>
> -Jim
>
> On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka wrote:
>>
>> I couldn't get an answer on this link
>> 
>> .
>>
>> My traceback is this
>>
>> ERROR:Rocket.Errors.Port8000:Traceback (most recent call last):
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555, in
>> listen
>> sock = self.wrap_socket(sock)
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507, in
>> wrap_socket
>> ssl_version=ssl.PROTOCOL_SSLv23)
>>   File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket
>> ciphers=ciphers)
>>   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
>> self.do_handshake()
>>   File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
>> self._sslobj.do_handshake()
>>   File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
>> self._sslobj.do_handshake()
>> OSError: [Errno 0] Error
>>
>>
>> Exception in thread Thread-10:
>> Traceback (most recent call last):
>>   File "/usr/lib/python3.6/threading.py", line 916, in
>> _bootstrap_inner
>> self.run()
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
>> conn = Connection(*conn)
>>   File "/home/mauricewaka/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.6/threading.py", line 916, in
>> _bootstrap_inner
>> self.run()
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
>> conn = Connection(*conn)
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in
>> __init__
>> self.socket.settimeout(SOCKET_TIMEOUT)
>> OSError: [Errno 9] Bad file descriptor
>>
>>
>> Exception in thread Thread-12:
>> Traceback (most recent call last):
>>   File "/usr/lib/python3.6/threading.py", line 916, in
>> _bootstrap_inner
>> self.run()
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
>> conn = Connection(*conn)
>>   File "/home/mauricewaka/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.6/threading.py", line 916, in
>> _bootstrap_inner
>> self.run()
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
>> conn = Connection(*conn)
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in
>> __init__
>> self.socket.settimeout(SOCKET_TIMEOUT)
>> OSError: [Errno 9] Bad file descriptor
>>
>> Is there any solution to this?
>>
>> I'm trying out my app on digitalocean, on this link
>> 
>>
>> Regards
>>
>> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> 

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Jim Steil
On Windows?  Linux?  Digital Ocean?

On Thu, Jul 11, 2019 at 8:26 AM Maurice Waka  wrote:

> The problem is with the welcome app. I haven't tried any other app.
>
>
> On Thu, 11 Jul 2019, 16:23 Jim Steil  wrote:
>
>> Sorry then, I'm having trouble following what your problem is.  The first
>> link you gave references a question on a windows machine having SSL
>> errors.  The traceback here is on a linux machine and the link at the
>> bottom references installing on Digital Ocean.
>>
>> Could you state the problem you're having now?  Are you seeing the
>> problem with one of your apps or with the welcome app?  Or, maybe someone
>> else could just in that understands what is going on.
>>
>> -Jim
>>
>>
>> On Thu, Jul 11, 2019 at 7:40 AM Maurice Waka 
>> wrote:
>>
>>> This has nothing to do with web2py code. The code works well but only
>>> using the above links I showed did I get the error.
>>> Regards
>>>
>>> On Thu, Jul 11, 2019 at 3:04 PM Jim S  wrote:
>>>
 Can you show some code?  The controller and view where this is
 happening?

 -Jim

 On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka wrote:
>
> I couldn't get an answer on this link
> .
>
> My traceback is this
>
> ERROR:Rocket.Errors.Port8000:Traceback (most recent call last):
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555, in listen
> sock = self.wrap_socket(sock)
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507, in
> wrap_socket
> ssl_version=ssl.PROTOCOL_SSLv23)
>   File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket
> ciphers=ciphers)
>   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
> self.do_handshake()
>   File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
> self._sslobj.do_handshake()
>   File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
> self._sslobj.do_handshake()
> OSError: [Errno 0] Error
>
>
> Exception in thread Thread-10:
> Traceback (most recent call last):
>   File "/usr/lib/python3.6/threading.py", line 916, in
> _bootstrap_inner
> self.run()
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
> conn = Connection(*conn)
>   File "/home/mauricewaka/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.6/threading.py", line 916, in
> _bootstrap_inner
> self.run()
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
> conn = Connection(*conn)
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in
> __init__
> self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
>
> Exception in thread Thread-12:
> Traceback (most recent call last):
>   File "/usr/lib/python3.6/threading.py", line 916, in
> _bootstrap_inner
> self.run()
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
> conn = Connection(*conn)
>   File "/home/mauricewaka/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.6/threading.py", line 916, in
> _bootstrap_inner
> self.run()
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
> conn = Connection(*conn)
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in
> __init__
> self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
> Is there any solution to this?
>
> I'm trying out my app on digitalocean, on this link
> 
>
> Regards
>
> --
 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 a topic in the
 Google Groups "web2py-users" group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/pEYZ6BmYS8U/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/web2py/6ebbaead-0b80-4bcc-8f5c-7390e4747898%40googlegroups.com
 

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Maurice Waka
The problem is with the welcome app. I haven't tried any other app.


On Thu, 11 Jul 2019, 16:23 Jim Steil  wrote:

> Sorry then, I'm having trouble following what your problem is.  The first
> link you gave references a question on a windows machine having SSL
> errors.  The traceback here is on a linux machine and the link at the
> bottom references installing on Digital Ocean.
>
> Could you state the problem you're having now?  Are you seeing the problem
> with one of your apps or with the welcome app?  Or, maybe someone else
> could just in that understands what is going on.
>
> -Jim
>
>
> On Thu, Jul 11, 2019 at 7:40 AM Maurice Waka 
> wrote:
>
>> This has nothing to do with web2py code. The code works well but only
>> using the above links I showed did I get the error.
>> Regards
>>
>> On Thu, Jul 11, 2019 at 3:04 PM Jim S  wrote:
>>
>>> Can you show some code?  The controller and view where this is happening?
>>>
>>> -Jim
>>>
>>> On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka wrote:

 I couldn't get an answer on this link
 .

 My traceback is this

 ERROR:Rocket.Errors.Port8000:Traceback (most recent call last):
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555, in listen
 sock = self.wrap_socket(sock)
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507, in
 wrap_socket
 ssl_version=ssl.PROTOCOL_SSLv23)
   File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket
 ciphers=ciphers)
   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
 self.do_handshake()
   File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
 self._sslobj.do_handshake()
   File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
 self._sslobj.do_handshake()
 OSError: [Errno 0] Error


 Exception in thread Thread-10:
 Traceback (most recent call last):
   File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
 self.run()
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
 conn = Connection(*conn)
   File "/home/mauricewaka/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.6/threading.py", line 916, in _bootstrap_inner
 self.run()
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
 conn = Connection(*conn)
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in
 __init__
 self.socket.settimeout(SOCKET_TIMEOUT)
 OSError: [Errno 9] Bad file descriptor


 Exception in thread Thread-12:
 Traceback (most recent call last):
   File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
 self.run()
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
 conn = Connection(*conn)
   File "/home/mauricewaka/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.6/threading.py", line 916, in _bootstrap_inner
 self.run()
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
 conn = Connection(*conn)
   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in
 __init__
 self.socket.settimeout(SOCKET_TIMEOUT)
 OSError: [Errno 9] Bad file descriptor

 Is there any solution to this?

 I'm trying out my app on digitalocean, on this link
 

 Regards

 --
>>> 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 a topic in the
>>> Google Groups "web2py-users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/web2py/pEYZ6BmYS8U/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> web2py+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/web2py/6ebbaead-0b80-4bcc-8f5c-7390e4747898%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Resources:
>> - http://web2py.com
>> - 

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Jim Steil
Sorry then, I'm having trouble following what your problem is.  The first
link you gave references a question on a windows machine having SSL
errors.  The traceback here is on a linux machine and the link at the
bottom references installing on Digital Ocean.

Could you state the problem you're having now?  Are you seeing the problem
with one of your apps or with the welcome app?  Or, maybe someone else
could just in that understands what is going on.

-Jim


On Thu, Jul 11, 2019 at 7:40 AM Maurice Waka  wrote:

> This has nothing to do with web2py code. The code works well but only
> using the above links I showed did I get the error.
> Regards
>
> On Thu, Jul 11, 2019 at 3:04 PM Jim S  wrote:
>
>> Can you show some code?  The controller and view where this is happening?
>>
>> -Jim
>>
>> On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka wrote:
>>>
>>> I couldn't get an answer on this link
>>> .
>>>
>>> My traceback is this
>>>
>>> ERROR:Rocket.Errors.Port8000:Traceback (most recent call last):
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555, in listen
>>> sock = self.wrap_socket(sock)
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507, in
>>> wrap_socket
>>> ssl_version=ssl.PROTOCOL_SSLv23)
>>>   File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket
>>> ciphers=ciphers)
>>>   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
>>> self.do_handshake()
>>>   File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
>>> self._sslobj.do_handshake()
>>>   File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
>>> self._sslobj.do_handshake()
>>> OSError: [Errno 0] Error
>>>
>>>
>>> Exception in thread Thread-10:
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
>>> self.run()
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
>>> conn = Connection(*conn)
>>>   File "/home/mauricewaka/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.6/threading.py", line 916, in _bootstrap_inner
>>> self.run()
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
>>> conn = Connection(*conn)
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in __init__
>>> self.socket.settimeout(SOCKET_TIMEOUT)
>>> OSError: [Errno 9] Bad file descriptor
>>>
>>>
>>> Exception in thread Thread-12:
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
>>> self.run()
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
>>> conn = Connection(*conn)
>>>   File "/home/mauricewaka/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.6/threading.py", line 916, in _bootstrap_inner
>>> self.run()
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
>>> conn = Connection(*conn)
>>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in __init__
>>> self.socket.settimeout(SOCKET_TIMEOUT)
>>> OSError: [Errno 9] Bad file descriptor
>>>
>>> Is there any solution to this?
>>>
>>> I'm trying out my app on digitalocean, on this link
>>> 
>>>
>>> Regards
>>>
>>> --
>> 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 a topic in the
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/web2py/pEYZ6BmYS8U/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> web2py+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/web2py/6ebbaead-0b80-4bcc-8f5c-7390e4747898%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 a topic in the
> Google Groups "web2py-users" 

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Maurice Waka
This has nothing to do with web2py code. The code works well but only using
the above links I showed did I get the error.
Regards

On Thu, Jul 11, 2019 at 3:04 PM Jim S  wrote:

> Can you show some code?  The controller and view where this is happening?
>
> -Jim
>
> On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka wrote:
>>
>> I couldn't get an answer on this link
>> .
>>
>> My traceback is this
>>
>> ERROR:Rocket.Errors.Port8000:Traceback (most recent call last):
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555, in listen
>> sock = self.wrap_socket(sock)
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507, in
>> wrap_socket
>> ssl_version=ssl.PROTOCOL_SSLv23)
>>   File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket
>> ciphers=ciphers)
>>   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
>> self.do_handshake()
>>   File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
>> self._sslobj.do_handshake()
>>   File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
>> self._sslobj.do_handshake()
>> OSError: [Errno 0] Error
>>
>>
>> Exception in thread Thread-10:
>> Traceback (most recent call last):
>>   File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
>> self.run()
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
>> conn = Connection(*conn)
>>   File "/home/mauricewaka/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.6/threading.py", line 916, in _bootstrap_inner
>> self.run()
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
>> conn = Connection(*conn)
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in __init__
>> self.socket.settimeout(SOCKET_TIMEOUT)
>> OSError: [Errno 9] Bad file descriptor
>>
>>
>> Exception in thread Thread-12:
>> Traceback (most recent call last):
>>   File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
>> self.run()
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
>> conn = Connection(*conn)
>>   File "/home/mauricewaka/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.6/threading.py", line 916, in _bootstrap_inner
>> self.run()
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
>> conn = Connection(*conn)
>>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in __init__
>> self.socket.settimeout(SOCKET_TIMEOUT)
>> OSError: [Errno 9] Bad file descriptor
>>
>> Is there any solution to this?
>>
>> I'm trying out my app on digitalocean, on this link
>> 
>>
>> Regards
>>
>> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/pEYZ6BmYS8U/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/6ebbaead-0b80-4bcc-8f5c-7390e4747898%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CALkNK57PZ0YzCvCZJJSzKzwNUW7KyiyzGnAuWmzfvikWkMVGjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Jim S
Can you show some code?  The controller and view where this is happening?

-Jim

On Thursday, July 11, 2019 at 2:00:44 AM UTC-5, Maurice Waka wrote:
>
> I couldn't get an answer on this link 
> .
>
> My traceback is this
>
> ERROR:Rocket.Errors.Port8000:Traceback (most recent call last):
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 555, in listen
> sock = self.wrap_socket(sock)
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 507, in 
> wrap_socket
> ssl_version=ssl.PROTOCOL_SSLv23)
>   File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket
> ciphers=ciphers)
>   File "/usr/lib/python3.6/ssl.py", line 817, in __init__
> self.do_handshake()
>   File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
> self._sslobj.do_handshake()
>   File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
> self._sslobj.do_handshake()
> OSError: [Errno 0] Error
>
>
> Exception in thread Thread-10:
> Traceback (most recent call last):
>   File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
> self.run()
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
> conn = Connection(*conn)
>   File "/home/mauricewaka/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.6/threading.py", line 916, in _bootstrap_inner
> self.run()
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
> conn = Connection(*conn)
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in __init__
> self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
>
> Exception in thread Thread-12:
> Traceback (most recent call last):
>   File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
> self.run()
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
> conn = Connection(*conn)
>   File "/home/mauricewaka/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.6/threading.py", line 916, in _bootstrap_inner
> self.run()
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
> conn = Connection(*conn)
>   File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in __init__
> self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
> Is there any solution to this?
>
> I'm trying out my app on digitalocean, on this link 
> 
>
> Regards
>
>

-- 
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/6ebbaead-0b80-4bcc-8f5c-7390e4747898%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Error PIL path

2019-07-11 Thread Nico de Groot
The example code assumes that the images are in the standard  ‘uploads’ folder. 
Without looking at at your code, it seems that you defined - in your model file 
- the download folder to be ‘imageuploads’. That would explain why the 
thumbnail is not found.

Nico de Groot   

-- 
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/20f37e0e-df44-4eba-a037-74ae476e21fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: recaptcha language settings How ?

2019-07-11 Thread icodk
Thanks it works
Here is what works:
form.element('table').insert(-1, TR('' ,Recaptcha2(request, 'PUBLIC_KEY', 
'PRIVATE_KEY',options={'hl':'da'}), ''))



On Thursday, July 11, 2019 at 9:37:49 AM UTC+2, Nico de Groot wrote:
>
> Looks like the parameter is ‘hl’ not ‘nl’. I think hl: ‘da’ might work.

-- 
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/5070dde5-e2fa-43b2-b87e-722174c8acb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] recaptcha language settings How ?

2019-07-11 Thread Nico de Groot
Looks like the parameter is ‘hl’ not ‘nl’. I think hl: ‘da’ might work.

-- 
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/fc287f27-319e-4a7b-b93d-62ab84be50f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Maurice Waka
I couldn't get an answer on this link 
.

My traceback is this

ERROR:Rocket.Errors.Port8000:Traceback (most recent call last):
  File "/home/mauricewaka/web2py/gluon/rocket.py", line 555, in listen
sock = self.wrap_socket(sock)
  File "/home/mauricewaka/web2py/gluon/rocket.py", line 507, in wrap_socket
ssl_version=ssl.PROTOCOL_SSLv23)
  File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket
ciphers=ciphers)
  File "/usr/lib/python3.6/ssl.py", line 817, in __init__
self.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
self._sslobj.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()
OSError: [Errno 0] Error


Exception in thread Thread-10:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
  File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
conn = Connection(*conn)
  File "/home/mauricewaka/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.6/threading.py", line 916, in _bootstrap_inner
self.run()
  File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
conn = Connection(*conn)
  File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in __init__
self.socket.settimeout(SOCKET_TIMEOUT)
OSError: [Errno 9] Bad file descriptor


Exception in thread Thread-12:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
  File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
conn = Connection(*conn)
  File "/home/mauricewaka/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.6/threading.py", line 916, in _bootstrap_inner
self.run()
  File "/home/mauricewaka/web2py/gluon/rocket.py", line 1268, in run
conn = Connection(*conn)
  File "/home/mauricewaka/web2py/gluon/rocket.py", line 105, in __init__
self.socket.settimeout(SOCKET_TIMEOUT)
OSError: [Errno 9] Bad file descriptor

Is there any solution to this?

I'm trying out my app on digitalocean, on this link 


Regards

-- 
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/6c5958ab-fa87-4f65-836d-52757e512402%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.