Re: [web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-10-22 Thread hasan alnator
Dear Martin, i am using web2py 1.9.9 on a windows server , everything is fine but i keep getting this error everything i update web2py to the new one , i hope you can help me to solve this problem .. Regards, On Mon, Oct 22, 2012 at 11:31 PM, Martin Weissenboeck wrote: > I have tried several t

Re: [web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-10-22 Thread Martin Weissenboeck
I have tried several things, but I am not sure what solved the problem: - DAL with pool_size=10 - All Linux-files got the same rights (755) Sorry, I think this is not much help. 2012/10/22 hasan alnator > Dear Cliff, > > Can you give me more guides on how to apply this ? > > Best Regards

Re: [web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-10-22 Thread hasan alnator
Dear Cliff, Can you give me more guides on how to apply this ? Best Regards, On Mon, Oct 22, 2012 at 10:30 PM, Cliff Kachinske wrote: > You can install Linux alongside Windows using the dual boot option. That > way you won't have to manually ensure file perms are correct. > > I ran this way

Re: [web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-10-22 Thread Cliff Kachinske
You can install Linux alongside Windows using the dual boot option. That way you won't have to manually ensure file perms are correct. I ran this way for a time, but then I dropped Windows completely. On Wednesday, September 19, 2012 1:51:23 PM UTC-4, mweissen wrote: > > Solved. > The permissio

Re: [web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-10-22 Thread Hassan Alnatour
Dear mweissen i am having the same problem but on a windows server !? can you help me ? from where should i start ?? regards, On Wednesday, September 19, 2012 8:51:23 PM UTC+3, mweissen wrote: > > Solved. > The permission of a lot files have been wrong: > I develop an application on a win

Re: [web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-09-19 Thread Martin Weissenboeck
Solved. The permission of a lot files have been wrong: I develop an application on a windows system and the target system is a linux machine. Some permissions got wrong values after copying the application files. 2012/9/17 Massimo Di Pierro > You error seems to indicate there is a lock object i

Re: [web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-09-17 Thread Massimo Di Pierro
You error seems to indicate there is a lock object in session. Can you try check by printing the session.keys() before saving the session? On Monday, 17 September 2012 12:54:54 UTC-5, mweissen wrote: > > Yes, I have stored a lot of information in session, but only strings and > dicts. The applic

Re: [web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-09-17 Thread Martin Weissenboeck
Yes, I have stored a lot of information in session, but only strings and dicts. The application works fine on my development pc (a windows 7 pc). The problem arises after I have put the application on the target machine (ubuntu with apache2). 2012/9/17 Massimo Di Pierro > Looks like the problem

Re: [web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-09-17 Thread Massimo Di Pierro
Looks like the problem is that you try pus something in session that is not pickleable. On Monday, 17 September 2012 02:59:54 UTC-5, mweissen wrote: > > From the /var/log/apache2/error.log: > > [Mon Sep 17 09:39:09 2012] [error] ERROR:web2py:Traceback (most recent > call last): > [Mon Sep 17 09:

Re: [web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-09-17 Thread Martin Weissenboeck
>From the /var/log/apache2/error.log: [Mon Sep 17 09:39:09 2012] [error] ERROR:web2py:Traceback (most recent call last): [Mon Sep 17 09:39:09 2012] [error] File "/users/www-data/web2py/gluon/main.py", line 547, in wsgibase [Mon Sep 17 09:39:09 2012] [error] session._try_store_on_disk(request

[web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-09-17 Thread Paolo
Dear all, occasionally, I am getting this error too (with and without lazy_table) Which OS are you using ? Could you post your db model? Paolo On Monday, September 17, 2012 7:21:42 AM UTC+2, mweissen wrote: > > I have read some threads about this error message - I got it too: > > Version web2py

[web2py] Re: ProgrammingError: Cannot operate on a closed database. in generator

2012-05-04 Thread François Delpierre
WhoooO ! Thanks for the answer Niphold, but a bit slower please ;-) If I understand your answer, my problem with asking web2py to stream a generator is not working anymore since I changed from the provided web server to Apache. BTW, I tried by removing the database accesses, and it does not beh

[web2py] Re: ProgrammingError: Cannot operate on a closed database. in generator

2012-05-04 Thread Niphlod
If I'm not mistaken as long as you're not going with green threads with uwsgi (and then some, nothing is too simple with green threads) you need to remember that returning a generator in a wsgi app basically means that the webserver will pile up the complete response before actually starting to