Closed pslobo closed 4 years ago
OK, so upon closer inspection it seems as though when the containers came up, their IP was swtiched around and therefore things weren't working as expected (not sure why sp_admin doesn't have privileges for the syspass_app.syspass_default though).
Fixed my issue with manually applying grants:
mysql> GRANT USAGE ON *.* TO 'sp_admin'@'syspass-app.syspass_default' IDENTIFIED BY PASSWORD 'XXXXXXXX';
mysql> GRANT ALL PRIVILEGES ON `syspass`.* TO 'sp_admin'@'syspass-app.syspass_default';
If this won't cause issues moving forward, then feel free to close this issue. Thanks
@pslobo this is one of the most facing issues since almost everyone uses Docker's DHCP network configuration, so it could lead to unexpected behaviors. I was thinking about setting a fixed network in compose file, but it could break some other containers, so I let it so.
I'll add some notes in the doc.
Thanks for the feedback!
Regards
Hi,
Yesterday our server crashed and now I'm unable to connect to syspass. I have an error similar to #5:
Error 1045: SQLSTATE[HY000] [1045] Access denied for user 'sp_admin'@'syspass-app.syspass_default' (using password: YES)
Everything has been working just fine with the default docker-compose and so not entirely sure what could be causing this issue.
Update
A little more info: