Do you have try... except in your program? This may be cause by a wrong query in a try...except not followed by a db.rollback().
On Thursday, 24 January 2013 01:03:37 UTC-6, Saurabh Kumar wrote: > > Hi, > > I have a Web2py app running on Mysql. In my apache logs, I get to see a > lot of mysql errors (error code 2014): > Exception _mysql_exceptions.ProgrammingError: (2014, "Commands out of > sync; you can't run this command now") > > How should I proceed to track which part of the code is causing this bug? > Are there any guidelines to follow to avoid this bug? > > Thanks, > Saurabh > --