[web2py] Re: MySQL server has gone away - py4web

2020-02-21 Thread Marcello
It's 20191227.1 On Friday, February 21, 2020 at 12:48:32 AM UTC-3, Massimo Di Pierro wrote: > > Can you check which version of pydal you are using? > Need to decide whether to make this the default behavior > > On Tuesday, 18 February 2020 03:35:47 UTC-8, Marcello wrote: >> >> Hi Massimo, >>

[web2py] Re: MySQL server has gone away - py4web

2020-02-20 Thread Massimo Di Pierro
Can you check which version of pydal you are using? Need to decide whether to make this the default behavior On Tuesday, 18 February 2020 03:35:47 UTC-8, Marcello wrote: > > Hi Massimo, > > Great ! > Now worked fine... > > Thanks > > > On Tuesday, February 18, 2020 at 12:22:04 AM UTC-3, Massimo Di

[web2py] Re: MySQL server has gone away - py4web

2020-02-18 Thread Marcello
Hi Massimo, Great ! Now worked fine... Thanks On Tuesday, February 18, 2020 at 12:22:04 AM UTC-3, Massimo Di Pierro wrote: > > sorry. My bad. try: > > +self._adapter.reconnect() > > On Sunday, 16 February 2020 19:17:25 UTC-8, Marcello wrote: >> >> I got this error: >> >> File "/home/par

[web2py] Re: MySQL server has gone away - py4web

2020-02-17 Thread Massimo Di Pierro
sorry. My bad. try: +self._adapter.reconnect() On Sunday, 16 February 2020 19:17:25 UTC-8, Marcello wrote: > > I got this error: > > File "/home/parra/py4web/py4web/core.py", line 239, in on_request > db._adapter.reconnect() > NameError: name 'db' is not defined > > > > > On Sunday, F

[web2py] Re: MySQL server has gone away - py4web

2020-02-16 Thread Marcello
I got this error: File "/home/parra/py4web/py4web/core.py", line 239, in on_request db._adapter.reconnect() NameError: name 'db' is not defined On Sunday, February 16, 2020 at 10:22:48 PM UTC-3, Massimo Di Pierro wrote: > > The db fixture should automatiically try reconnect. > > To help

[web2py] Re: MySQL server has gone away - py4web

2020-02-16 Thread Massimo Di Pierro
The db fixture should automatiically try reconnect. To help me debug can you edit py4web/core.py and add the line below: class DAL(pydal.DAL, Fixture): def on_request(self): threadsafevariable.ThreadSafeVariable.restore(ICECUBE) + db._adapter.reconnect() Does it solve th

[web2py] Re: MySQL server has gone away - py4web

2020-02-15 Thread Marcello
I'm with lastest version... Shouldn't reconnect to db every page load ??? If the server stays 1 hour without serving pages, a reconnection is needed... or not ? On Saturday, February 15, 2020 at 8:30:58 AM UTC-3, Massimo Di Pierro wrote: > > My guess is that there is some timeout in the mysql

[web2py] Re: MySQL server has gone away - py4web

2020-02-15 Thread Massimo Di Pierro
My guess is that there is some timeout in the mysql config example. Can you repro with latest py4web? On Friday, 14 February 2020 14:31:58 UTC-8, Marcello wrote: > > Hi, > > Any informatiion about this ? > Nobody using py4web with mysql ?? > > > > On Tuesday, February 11, 2020 at 6:58:11 PM UTC-3,

[web2py] Re: MySQL server has gone away - py4web

2020-02-14 Thread Marcello
Hi, Any informatiion about this ? Nobody using py4web with mysql ?? On Tuesday, February 11, 2020 at 6:58:11 PM UTC-3, Marcello wrote: > > Hello, > > I'm trying py4web and found something stragne. > Don't know if I'm making something wrong. > > I'm having "MySQL server has gone away" error if I