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

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

[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

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

[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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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 > >

[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: -

[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

[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

[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 =