Forums

web2py apps cant connect to database

I haven't attempted any of my apps in a while, but I came on today to notice they can't connect to their mysql databases. I'm pretty confident I've made no code/db changes since last time it worked fine. Any ideas?

Error: <type 'exceptions.RuntimeError'> Failure to connect, tried 5 times:

I've triple checked my db.py settings and it all appears to be normal, and I've tried "reloading" the web app.

Opening a mysql console seems to work fine, however.

I'm using: (edited for privacy, user/password/db) db = DAL('mysql://user:password@mysql.server/user$db',pool_size=10)

further along in the error is (1105, '(proxy) all backends are down') . Forum searching seems to indicate this is a server problem but I didn't see any reported outages

Sadly glad to hear it (means I didnt screw anything up ;). Mine went down too, it sounds like it might be a repeat of this issue: https://www.pythonanywhere.com/forums/topic/979/

Hi there -- I'll post updates to this thread