jeromek has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dancer app losing DB connection
by Anonymous Monk on Aug 15, 2014 at 06:49 UTC | |
by jeromek (Novice) on Aug 15, 2014 at 09:25 UTC | |
|
Re: Dancer app losing DB connection
by locked_user sundialsvc4 (Abbot) on Aug 15, 2014 at 13:08 UTC | |
by jeromek (Novice) on Aug 16, 2014 at 01:27 UTC | |
by locked_user sundialsvc4 (Abbot) on Aug 16, 2014 at 11:23 UTC | |
|
Re: Dancer app losing DB connection
by Anonymous Monk on Aug 16, 2014 at 01:36 UTC | |
by Anonymous Monk on Aug 16, 2014 at 07:27 UTC | |
by jeromek (Novice) on Aug 16, 2014 at 08:13 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |