Hi, I’m getting the same error (using docker-compose)
seafile | Error: the user running the script (“root”) is not the owner of “/shared/seafile/seafile-data” folder, you should use the user “UNKNOWN” to run the script.
The error likely started when I ran a script on my filesystem to repair file permissions/ownership for Unraid OS. I had my seafile instance offline for a while and wasn’t monitoring it, when I started it back up it threw that error.
Any idea how to fix this? My seafile server was running fine for a couple years before this problem. I’ve actually migrated to onedrive so it’s not the end of the world, but still I’d like to fix it…
version: '2.0'
services:
db:
image: mariadb:10.5
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=*** # Requested, set the root's password of MySQL service.
- MYSQL_LOG_CONSOLE=true
volumes:
- /mnt/user/seafile7/opt/seafile-mysql/db:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
- /mnt/user/mybackups/seafile-server:/mybackup # mount for backup destination
networks:
- seafile-net
restart: always
memcached:
image: memcached:1.5.6
container_name: seafile-memcached
entrypoint: memcached -m 256
networks:
- seafile-net
restart: always
elasticsearch:
image: elasticsearch:7.16.2
container_name: seafile-elasticsearch
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 2g
volumes:
- /mnt/user/seafile7/opt/seafile-elasticsearch/data:/usr/share/elasticsearch/data # Requested, specifies the path to Elasticsearch data persistent store.
networks:
- seafile-net
restart: always
seafile:
image: docker.seafile.top/seafileltd/seafile-pro-mc:9.0.4
container_name: seafile
ports:
- "8000:80"
# - "443:443" # If https is enabled, cancel the comment.
- "8583:8082" # seafhttp 8082
- "8584:8080" # seafdav 8080
volumes:
- /mnt/user/seafile7/opt/seafile-data:/shared # Requested, specifies the path to Seafile data persistent store.
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=*** # Requested, the value shuold be root's password of MySQL service.
- TIME_ZONE=America/Los_Angeles # Optional, default is UTC. Should be uncomment and set to your local time zone.
- SEAFILE_ADMIN_EMAIL=*** # Specifies Seafile admin user, default is 'me@example.com'
- SEAFILE_ADMIN_PASSWORD=*** # Specifies Seafile admin password, default is 'asecret'
- SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not
- SEAFILE_SERVER_HOSTNAME=*** # Specifies your host name if https is enabled
depends_on:
- db
- memcached
- elasticsearch
networks:
- seafile-net
restart: always
networks:
seafile-net: