Hello aleonserra, Thank you very much for your answer. The problem is that I have no admin access to the server so I cannot execute that command, and in my local server everything works fine, so I cannot replicate the error.
On the other hand I've searched through all my code and I never close the db connection (I'm not sure how to close the connection, but if I have to call close() I never call that). Anyway, if I call any of my others web services, for example, one that write a data in the DDBB and one that read that data from the database, everything works fine, so it seems that web2py can access the DDBB without problems. There are only 2 web services with that error and both use session.activity, so could it be a problem with sessions?? Maybe I have to say that session.activity stores all the lifetime activity of a user, so that variable can store a high amount of data. But I create a new user (whose lifetime activity is empty), called that two web services and I got the same error, so it seems that there is no problem with the amount of data stored in session.activity. Kind regards and thank you again. Rubén. On Friday, May 9, 2014 12:23:07 PM UTC+2, aleon...@gmail.com wrote: > > The error suggest that dal couldnt connect to the database. It doesnt look > like a web2py problem but a db one. > at line 4 add .select() to execute the statement. > row = db(db.auth_user.username == username).select() > > Also start a web2py shell session (web2py -a <yourpassword> -M)and test > the database by executing the line above. > Check if theres any line on your code that closes the connection. > > > -- 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. For more options, visit https://groups.google.com/d/optout.