Non-root domain crashes Seafile ( seahub.sh start' returned non-zero exit status 1 )

Hi

I am trying to use this doc deploy_seahub_at_non-root_domain (I cant include links) to setup Seafile under a subpath with Apache.

My Seafile server runs fine when I am serving it over my LAN. Everything works but when I try to change the SERVICE_URL in the ccnet.conf Seafile crashes. Please see the crash log at the bottom.

ccnet.conf

[General]
SERVICE_URL = https://DOMAIN.COM/seafile

[Database]
ENGINE = mysql
HOST = db
PORT = 3306
USER = seafile
PASSWD = xxxxxxx
DB = ccnet_db
CONNECTION_CHARSET = utf8


[Client]
UNIX_SOCKET = /opt/seafile/ccnet.sock

seahub_settings.py

# -*- coding: utf-8 -*-
SECRET_KEY = "b'6fr0xvob%phh+d3l63u#c620id1ua%78%*#2%_^r!9=@wzxr(+'"

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'seahub_db',
        'USER': 'seafile',
        'PASSWORD': 'xxxxxxx',
        'HOST': 'db',
        'PORT': '3306'
    }
}


CACHES = {
    'default': {
        'BACKEND': 'django_pylibmc.memcached.PyLibMCCache',
        'LOCATION': 'memcached:11211',
    },
    'locmem': {
        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
    },
}
COMPRESS_CACHE_BACKEND = 'locmem'
TIME_ZONE = 'Etc/UTC'

#SERVE_STATIC = False
#MEDIA_URL = ‘/datashare/media/’
#COMPRESS_URL = MEDIA_URL
#STATIC_URL = MEDIA_URL + ‘assets/’
#SITE_ROOT = ‘/datashare/’
#LOGIN_URL = ‘/datashare/accounts/login/’

FILE_SERVER_ROOT = ‘https://DOMAIN.COM/seafhttp’
SERVE_STATIC = False
MEDIA_URL = '/seafmedia/'
COMPRESS_URL = MEDIA_URL
STATIC_URL = MEDIA_URL + 'assets/'
SITE_ROOT = '/seafile/'
LOGIN_URL = '/seafile/accounts/login/'

apache proxy :443


#SEAFILE
		  Alias /seafmedia  /home/user/haiwen/seafile-server-latest/seahub/media

		  <Location /seafmedia>
			ProxyPass !
			Require all granted
		  </Location>

		  RewriteEngine On

		  ProxyPass /seafhttp http://127.0.0.1:10082
		  ProxyPassReverse /seafhttp http://127.0.0.1:10082
		  RewriteRule ^/seafhttp - [QSA,L]

		  SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape
		  SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
		  ProxyPreserveHost On
		  ProxyPass /seafile http://127.0.0.1:10080/seafile
                  ProxyPassReverse /seafile http://127.0.0.1:10080/seafile

compose

version: '2.0'
services:
  db:
    image: mariadb:10.1
    container_name: seafile-mysql
    environment:
      - MYSQL_ROOT_PASSWORD=xxxxx
      - MYSQL_LOG_CONSOLE=true
    volumes:
      - /media/seafile/mysql:/var/lib/mysql  # Requested, specifies the path to MySQL data persistent store.
    networks:
      - seafile-net

  memcached:
    image: memcached:1.5.6
    container_name: seafile-memcached
    entrypoint: memcached -m 256
    networks:
      - seafile-net

  seafile:
    image: seafileltd/seafile-mc:latest
    container_name: seafile
    ports:
      - "10080:80"
      - "10082:8082"

    volumes:
      - /media/seafile/data:/shared   # Requested, specifies the path to Seafile data persistent store.
    environment:
      - DB_HOST=db
      - DB_ROOT_PASSWD=xxxxx  # Requested, the value shuold 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=contact@DOMAIN.COM # Specifies Seafile admin user, default is 'me@example.com'.
      - SEAFILE_ADMIN_PASSWORD=xxxxx     # Specifies Seafile admin password, default is 'asecret'.
      - SEAFILE_SERVER_LETSENCRYPT=false   # Whether to use https or not.
      - SEAFILE_SERVER_HOSTNAME=DOMAIN.COM/seafile # Specifies your host name if https is enabled.
    depends_on:
      - db
      - memcached
    networks:
      - seafile-net

networks:
  seafile-net:

crash

eafile      | renaming the gunicorn.conf to gunicorn.conf.py ...
seafile      | 
seafile      | Done
seafile      | 
seafile      | ------------------------------
seafile      | migrating avatars ...
seafile      | 
seafile      | 
seafile      | DONE
seafile      | ------------------------------
seafile      | 
seafile      | 
seafile      | Moving the elasticsearch's configuration file ...
seafile      | 
seafile      | 
seafile      | updating seafile-server-latest symbolic link to /opt/seafile/seafile-server-8.0.5 ...
seafile      | 
seafile      | DONE
seafile      | ------------------------------
seafile      | 
seafile      | 
seafile      | Starting seafile server, please wait ...
seafile      | ** Message: 16:11:41.557: seafile-controller.c(536): No seafevents.
seafile      | 
seafile      | Seafile server started
seafile      | 
seafile      | Done.
seafile      | 
seafile      | Starting seahub at port 8000 ...
seafile      | Error:Seahub failed to start.
seafile      | Please try to run "./seahub.sh start" again
seafile      | [2021-06-17 16:11:40] Skip running setup-seafile-mysql.py because there is existing seafile-data folder.
seafile      | Traceback (most recent call last):
seafile      |   File "/scripts/start.py", line 86, in <module>
seafile      |     main()
seafile      |   File "/scripts/start.py", line 72, in main
seafile      |     call('{} start'.format(get_script('seahub.sh')))
seafile      |   File "/scripts/utils/__init__.py", line 70, in call
seafile      |     return subprocess.check_call(*a, **kw)
seafile      |   File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
seafile      |     raise CalledProcessError(retcode, cmd)
seafile      | subprocess.CalledProcessError: Command '/opt/seafile/seafile-server-8.0.5/seahub.sh start' returned non-zero exit status 1.
seafile      | *** /scripts/start.py exited with status 1.
seafile      | *** Shutting down runit daemon (PID 24)...
seafile      | *** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown...
seafile      | *** Killing all processes...
seafile exited with code 1