I installed an application based on Dancer at the beginning of the week and notice that the connection to the mysql DB got lost after a few days of running.
Logs report crashed: DBI connect('database=xxxxx','xxxxx',...) failed: Access denied for user 'xxx'@'localhost' (using password: YES)
The authentication method is user/password and they are of course correct. Mysql was fine at the time the application was crashing and I could connect with mysql client using the application credentials.
Restarting the application solved the problem.
The application is deployed with plask:
sudo -u www-data /usr/local/bin/plackup -E production -s Starman --workers=1 -l /tmp/plack.sock -a bin/app.pl &
I am using the Dancer::Database plugin with connection_check_threshold: 10
Has anybody experienced this problem ? What could cause an access denied ? According to mysql doc, this message means wrong password. Could the in-memory password just get lost ? Weird.
In reply to Dancer app losing DB connection by jeromek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |