Seafileltd/seafile-mc:latest strange db user and abuse_reports_abusereport problems

Hi all,

I’m fighting to start a seafile docker instance:

services:
  memcached:
    image: memcached:1.6
    container_name: seafile-memcached
    restart: always
    entrypoint: memcached -m 256

  seafile:
    image: seafileltd/seafile-mc:latest
    container_name: seafile
    depends_on:
      - memcached
    ports:
      - "8000:80"       # Interface Web Seahub
    volumes:
      - ./seafile-data:/opt/seafile-data

    environment:
      - INIT_SEAFILE_MYSQL_ROOT_PASSWORD=qRV
      - DB_HOST=172.21.25.8
      - DB_PORT=3306
      - DB_ROOT_PASSWD=qRV7
      - SEAFILE_ADMIN_EMAIL=admin@example.com
      - SEAFILE_ADMIN_PASSWORD=adminpassword
      - SEAFILE_SERVER_LETSENCRYPT=false

at first startup, I seems to be OK.

But after restarting: ( with INIT_SEAFILE_MYSQL_ROOT_PASSWORD or not ), I got

Access denied for user 'seafile'@'dockerhostname.docker.dom' (using password: YES)

So, it can not connect to remote mariadb.

And, Yes, I have a db issue: it created a very strange db user:

Host: %.%.%.%
User: seafile

So… why ths host variable on mariadb is: %.%.%.% ???

So, I renamed the user seafile’@‘%.%.%.%’ to ‘seafile’@‘%’, and got it working.

But, I got a second issue:

Failed to init seahub database: Table 'abuse_reports_abusereport' already exists

it’s unhappy because the same table exists.

How fix both issues ???

sorry for my poor english.

regard.

To address the installation issues you’re facing while setting up Seafile using Docker, it’s encouraged to follow a structured and standard approach.

  1. Utilize the Official Documentation: Make sure to reference the official Seafile documentation for deploying with Docker, which can be found here: Deploy Seafile Pro with Docker and Seafile Community Edition.
  2. Environment Variables: Ensure that all necessary environment variables are correctly configured. Make sure the database and other services mentioned are reachable at the specified configurations.
  3. Use the official yml files and don’t modify the content of yml files.

thanks for answers, but the doc link is broken.

Sorry. The correct link is Setup community edition - Seafile Admin Manual

thanks. I successfully started dockers. I still having some issues.

  1. I don’t really know how to connect to web interface as http gives a black page and https can not connect.
  2. I got following errors at console: 2025-12-03 10:25:31 5 [Warning] Access denied for user ‘seafile’@‘192.168.160.5’ (using password: YES) I didn’t modify anything, just started dockers after downloading yaml files. but seafile server seams to be started:
This is your configuration
seafile        | ---------------------------------
seafile        | 
seafile        |     server name:            seafile
seafile        |     server ip/domain:       seafile.example.com
seafile        | 
seafile        |     seafile data dir:       /opt/seafile/seafile-data
seafile        |     fileserver port:        8082
seafile        | 
seafile        |     database:               create new
seafile        |     ccnet database:         ccnet_db
seafile        |     seafile database:       seafile_db
seafile        |     seahub database:        seahub_db
seafile        |     database user:          seafile
seafile        | 
seafile        | 
seafile        | Generating seafile configuration ...
seafile        | 
seafile        | done
seafile        | Generating seahub configuration ...
seafile        | 
seafile        | ----------------------------------------
seafile        | Now creating seafevents database tables ...
seafile        | 
seafile        | ----------------------------------------
seafile        | ----------------------------------------
seafile        | Now creating ccnet database tables ...
seafile        | 
seafile        | ----------------------------------------
seafile        | ----------------------------------------
seafile        | Now creating seafile database tables ...
seafile        | 
seafile        | ----------------------------------------
seafile        | ----------------------------------------
seafile        | Now creating seahub database tables ...
seafile        | 
seafile        | ----------------------------------------
seafile        | 
seafile        | creating seafile-server-latest symbolic link ...  done
seafile        | 
seafile        | 
seafile        | 
seafile        | 
seafile        | -----------------------------------------------------------------
seafile        | Your seafile server configuration has been finished successfully.
seafile        | -----------------------------------------------------------------
seafile        | 
seafile        | run seafile server:     ./seafile.sh { start | stop | restart }
seafile        | run seahub  server:     ./seahub.sh  { start <port> | stop | restart <port> }
seafile        | 
seafile        | -----------------------------------------------------------------
seafile        | If you are behind a firewall, remember to allow input/output of these tcp ports:
seafile        | -----------------------------------------------------------------
seafile        | 
seafile        | port of seafile fileserver:   8082
seafile        | port of seahub:               8000
seafile        | 
seafile        | When problems occur, Refer to
seafile        | 
seafile        |         https://download.seafile.com/published/seafile-manual/home.md
seafile        | 
seafile        | for information.
seafile        | 
seafile        | 
seafile        | [2025-12-03 10:25:32] Updating version stamp
seafile        | 
seafile        | Starting seafile server, please wait ...
seadoc         | server is serve on http://127.0.0.1:7070
seadoc         | sdoc-server started
seadoc         | 
seadoc         | [2025-12-03 10:25:32] Start Monitor 
seafile        | Seafile server started
seafile        | 
seafile        | Done.
seafile        | 
seafile        | Starting seahub at port 8000 ...
seafile        | 
seafile        | 
seafile        | 
seafile        | ----------------------------------------
seafile        | Successfully created seafile admin
seafile        | ----------------------------------------
seafile        | 
seafile        | 
seafile        | 
seafile        | 
seafile        | Seahub is started
seafile        | 
seafile        | Done.
seafile        | 
seafile-mysql  | 2025-12-03 10:27:36 17 [Warning] Aborted connection 17 to db: 'seahub_db' user: 'seafile' host: '192.168.160.5' (Got an error reading communication packets)