File "/var/www/web2py/gluon/dal.py", line 5481, in select
return self.db._adapter.select(self.query,fields,attributes)
File "/var/www/web2py/gluon/dal.py", line 1192, in select
return self.parse(rows,self._colnames)
File "/var/www/web2py/gluon/dal.py", line 1421, in parse
colset[fieldname] = base64.b64decode(str(value))
File "/usr/lib64/python2.6/base64.py", line 76, in b64decode
raise TypeError(msg)
TypeError: Incorrect padding
Error: (<type 'exceptions.AssertionError'>, AssertionError('Result length not requested length:\nExpected=97. Actual=31. Position: 299. Data Length: 330',))The odd thing is that I can do these queries via mysql command line, even when running mysql on the webserver to connect to the DB host, and they return instantly... although I guess I'm not sure if the assertion error comes from MySQL or is part of web2py's DB adapter?
We used wireshark to determine that the TCP packets were being incessantly retransmitted ... but only sometimes. The Padding/Assertion Errors seem to be related to VMs since migrating the machine to a different physical host and back resolves the issue immediately.