Access denied after a few hours #1181
-
How Shlink is set-up
SummaryI'm migrated an existing Shlink database using url.cnx-software.com to a new server and a new domain (url2.cnx-software.com), and it's working fine but only for a time, usually a few hours. After that the URL will not resolve with the error similar to "unexpected error" showing in the web browser. If I use the CLI application (sudo -u www-data php8.0 bin/cli api-key:list) it shows a mysql 1045 access denied issue (Sorry, I don't have the error message right now). The way I "fix" the issue right now is to run the bin/install script, and it's working. But I'd expect it to fail again soon. I'll make sure to update the report with the exact error message once it happens. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Here's the exact error I get in the web browser: shlink.error is empty. Example of command that fails: `sudo -u www-data php8.0 bin/cli api-key:list In AbstractMySQLDriver.php line 112: An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for u In Exception.php line 18: SQLSTATE[HY000] [1045] Access denied for user 'shlink'@'localhost' (using p In PDOConnection.php line 39: SQLSTATE[HY000] [1045] Access denied for user 'shlink'@'localhost' (using p api-key:list [-e|--enabled-only] [--enabledOnly]` It's like shlink will forget the password after a while... |
Beta Was this translation helpful? Give feedback.
Here's the exact error I get in the web browser:
"An unexpected error occurred"
shlink.error is empty.
Example of command that fails:
`sudo -u www-data php8.0 bin/cli api-key:list
In AbstractMySQLDriver.php line 112:
An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for u
ser 'shlink'@'localhost' (using password: YES)
In Exception.php line 18:
SQLSTATE[HY000] [1045] Access denied for user 'shlink'@'localhost' (using p
assword: YES)
In PDOConnection.php line 39:
SQLSTATE[HY000] [1045] Access denied for user 'shlink'@'localhost' (using p
assword: YES)
api-key:list [-e|--enabled-only] [--enabledOnly]`
It's like shlink will forget the password after a while...