WolfgangFahl / pymediawikidocker

Python controlled mediawiki docker image installation
Apache License 2.0
6 stars 1 forks source link

Handle Access denied for user 'wikiuser'@' #27

Closed WolfgangFahl closed 1 year ago

WolfgangFahl commented 1 year ago

Currently

Connection to wiki on localhost with user wikiuser failed error: 1045 (28000): Access denied for user 'wikiuser'@'172.18.0.1' (using password: YES)

leads to the full sequence of retry attempts

Trying DB-Connection to wiki on localhost port 9306 with user wikiuser with max 7 tries and 10s timeout per try - initial sleep 2.5s
Connection to wiki on localhost with user wikiuser failed error: 1045 (28000): Access denied for user 'wikiuser'@'172.18.0.1' (using password: YES)
Connection attempt #1 failed will retry in 0.5 secs
Connection to wiki on localhost with user wikiuser failed error: 1045 (28000): Access denied for user 'wikiuser'@'172.18.0.1' (using password: YES)
Connection attempt #2 failed will retry in 1.0 secs
Connection to wiki on localhost with user wikiuser failed error: 1045 (28000): Access denied for user 'wikiuser'@'172.18.0.1' (using password: YES)
Connection attempt #3 failed will retry in 2.0 secs
Connection to wiki on localhost with user wikiuser failed error: 1045 (28000): Access denied for user 'wikiuser'@'172.18.0.1' (using password: YES)
Connection attempt #4 failed will retry in 4.0 secs
Connection to wiki on localhost with user wikiuser failed error: 1045 (28000): Access denied for user 'wikiuser'@'172.18.0.1' (using password: YES)
Connection attempt #5 failed will retry in 8.0 secs
Connection to wiki on localhost with user wikiuser failed error: 1045 (28000): Access denied for user 'wikiuser'@'172.18.0.1' (using password: YES)
Connection attempt #6 failed will retry in 16.0 secs
Connection to wiki on localhost with user wikiuser failed error: 1045 (28000): Access denied for user 'wikiuser'@'172.18.0.1' (using password: YES)
Connection attempt #7 failed will retry in 32.0 secs

which finally fails anyway so the sequence should be stopped immediately in this case and a hint given how to remedy this situation.