Seafile Docker Deployment Fails Despite Following Official Documentation

Hi all,

I’m trying to run Seafile in Docker with a MariaDB backend (and memcached), following the official guide step by step, but I keep getting authentication errors:
• Access denied for user ‘root’@‘…’ (using password: YES) when Seafile waits for the DB
• Or later: Access denied for user ‘seafile’@‘…’ when creating the seahub_db

Root and the seafile user both connect fine when I log into MariaDB manually, and I’ve granted %-host access to both. Everything matches the docs, but Seafile’s startup script still can’t authenticate.

Has anyone encountered this? Any ideas what I might be missing or how to debug further? Thanks!

We will give it a check in the next week.

Try running a mysql client in docker and see if you get the same error.
docker run -it --rm mysql:latest mysql -h host.docker.internal -u seafile -p
Chances are that your server privileges are not set correctly.

I use the official docker compose, don’t work i have try with incus script, Seafile repository dosn’t exist… The self-host is no simple.

@daniel.pan > Hello, have you had a chance to take a look?

I just walked throught step by step manual at /12.0/setup/setup_ce_by_docker/ page.
Only changes i made is disable seafile and caddy, set passwords for mysql and JWT in .env file. All works fine, seahub successfully started

Hi @Denis,

I just wanted to let you know that I finally got everything up and running! I was originally testing with Seafile version 11, but after switching to version 12 it all works perfectly. Huge thanks to everyone here for your help and guidance—couldn’t have done it without you!