Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aborted connection # to db: 'unconnected' user: 'unauthenticated' host: 'x.x.x.x' (This connection closed normally without authentication) #420

Open
sastromo opened this issue Oct 31, 2024 · 4 comments

Comments

@sastromo
Copy link

Hello
Since omnivore is going down, I decided to try wallabag, but I hit a snag.

I'm trying to install via docker compose.
Everything gets installed
Screenshot_67

But...
Mariadb returns:
[Warning] Aborted connection 3 to db: 'unconnected' user: 'unauthenticated' host: '172.29.0.4' (This connection closed normally without authentication)

I found the supposed solution to this issue at the mariadb-docker github page:
Adding this
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
to the mariadb compose would fix the problem..

So I did and nothing changed.. it still returns the same error.

I already tried:

  • several different mariadb versions from 10.4 to 11.4.2.
  • only --character-set-server=utf8mb4 in command

Have anyone gone through the same problem?
Thank you!

@mpcrossley
Copy link

Yes! Same problem here...

@paulr24
Copy link

paulr24 commented Nov 7, 2024

Same

@euinor
Copy link

euinor commented Nov 8, 2024

I had the same error, no matter which database type I used (tried sqlite, mariadb and postgres).

This reddit comment helped me.

Similar commands are also referenced here: #392

TL;DR
Add POPULATE_DATABASE=false to your compose file (under the Wallabag service)
In terminal run the following:
docker container ls -a
Take the ID of wallabag and use it in these commands

docker exec -t <ID> /var/www/wallabag/bin/console wallabag:install --env=prod --no-interaction
docker exec -t <ID> /var/www/wallabag/bin/console doctrine:migrations:migrate --env=prod --no-interaction

Had some permission errors in the Wallabag log after, so had to run this to stop them.
docker exec -t wallabag chown -R nobody:nobody /var/www/wallabag

@mateus2k2
Copy link

Same problem @euinor steps did work to get it running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants