I have installed seafile via docker on a machine also running omv (debian). i followed the official docker install instructions. worked. well. however i can’t login using the credential set in the compose.yml
i know some encountered a similar issue when using mysql but i am using mariadb.
I hope someone can help
NB- solved by running the seafile-server-latest/reset-admin.sh script in the seafile container
This is my docker-compose.yml:
db:
image: mariadb:latest
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=***** # Required, set the root's password of MySQL service.
- MYSQL_LOG_CONSOLE=true
- MARIADB_AUTO_UPGRADE=1
volumes:
- /opt/seafile-mysql/db:/var/lib/mysql # Required, specifies the path to MySQL data persistent store.
networks:
- seafile-net
memcached:
image: memcached:1.6.18
container_name: seafile-memcached
entrypoint: memcached -m 256
networks:
- seafile-net
seafile:
image: seafileltd/seafile-mc:11.0-latest
container_name: seafile
ports:
- "8080:80"
# - "443:443" # If https is enabled, cancel the comment.
volumes:
- /opt/seafile-data:/shared # Required, specifies the path to Seafile data persistent store.
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=***** # Required, the value should be root's password of MySQL service.
# - TIME_ZONE=Etc/UTC # Optional, default is UTC. Should be uncomment and set to your local time zone.
- SEAFILE_ADMIN_EMAIL=*****@gmail.com # Specifies Seafile admin user, default is 'me@example.com'.
- SEAFILE_ADMIN_PASSWORD=asecret # Specifies Seafile admin password, default is 'asecret'.
- SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not.
# - SEAFILE_SERVER_HOSTNAME=docs.seafile.com # Specifies your host name if https is enabled.
depends_on:
- db
- memcached
networks:
- seafile-net
networks:
seafile-net:
This is the log output of MariaDB:
2025-02-22 08:48:38+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.11+maria~ubu2204 started.
2025-02-22 08:48:39+00:00 [Warn] [Entrypoint]: /sys/fs/cgroup///memory.pressure not writable, functionality unavailable to MariaDB
2025-02-22 08:48:39+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2025-02-22 08:48:39+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.11+maria~ubu2204 started.
2025-02-22 08:48:39+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
2025-02-22 8:48:40 0 [Note] Starting MariaDB 10.11.11-MariaDB-ubu2204 source revision e69f8cae1a15e15b9e4f5e0f8497e1f17bdc81a4 server_uid j1L7IdH8Pg6F+C/pHoy+coe9XzY= as process 1
2025-02-22 8:48:40 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2025-02-22 8:48:40 0 [Note] InnoDB: Number of transaction pools: 1
2025-02-22 8:48:40 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2025-02-22 8:48:40 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
2025-02-22 8:48:40 0 [Warning] mariadbd: io_uring_queue_init() failed with errno 1
2025-02-22 8:48:40 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
2025-02-22 8:48:40 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2025-02-22 8:48:40 0 [Note] InnoDB: Completed initialization of buffer pool
2025-02-22 8:48:40 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes)
2025-02-22 8:48:40 0 [Note] InnoDB: End of log at LSN=1119580
2025-02-22 8:48:40 0 [Note] InnoDB: 128 rollback segments are active.
2025-02-22 8:48:40 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2025-02-22 8:48:40 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2025-02-22 8:48:40 0 [Note] InnoDB: log sequence number 1119580; transaction id 915
2025-02-22 8:48:40 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2025-02-22 8:48:40 0 [Note] Plugin 'FEEDBACK' is disabled.
2025-02-22 8:48:40 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
2025-02-22 8:48:40 0 [Note] Server socket created on IP: '0.0.0.0'.
2025-02-22 8:48:40 0 [Note] Server socket created on IP: '::'.
2025-02-22 8:48:40 0 [Note] mariadbd: ready for connections.
Version: '10.11.11-MariaDB-ubu2204' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
2025-02-22 8:48:40 0 [Note] InnoDB: Buffer pool(s) load completed at 250222 8:48:40
2025-02-22 8:48:46 6 [Warning] Aborted connection 6 to db: 'seahub_db' user: 'seafile' host: '172.18.0.4' (Got an err