Hi all,
I try to setup seadoc as described in “SeaDoc and Seafile docker are deployed on the same host”
sdoc_db and operation_log table have been created successfully, and there is nothing importand in sdoc-server/logs.
Seadoc is also enabled in seahub_settings.py with the key from /conf/sdoc_server_config.json as follows:
ENABLE_SEADOC = True
SEADOC_PRIVATE_KEY = 'ocby+3+io38j0^ut-#0y0x-)q7z%$&7f9^1ei(!+%p$w*-4+wb'
SEADOC_SERVER_URL = 'https://cloud.mydomain.com/sdoc-server' # sdoc-server service url
# When SeaDoc and Seafile/Seafile docker are deployed on the same host, SEADOC_SERVER_URL should be 'https://seafile.example.com/sdoc-server'
FILE_CONVERTER_SERVER_URL = 'http://sdoc-server:8888' # converter-server url
# When SeaDoc and Seafile are deployed on the same host, FILE_CONVERTER_SERVER_URL should be LAN address 'http://127.0.0.1:8888'
# When SeaDoc and Seafile docker are deployed on the same host, FILE_CONVERTER_SERVER_URL should be http://sdoc-server:8888
In Seahub is a new Button available to create a new seadoc file.
With this button a new file is created, but I am not able to open this file in sdoc-server and get the follwing result in red font: Load doc content error
In sdoc-server.log:
[2024-06-15 12:20:32] [ERROR] document-controller.js[56] - Get doc download link error
[2024-06-15 12:20:32] [ERROR] document-controller.js[64] - Get doc download link error. request url is: https://cloud.mydomain.com/api/v2.1/seadoc/download-link/07996b2c-d619-4c59-a9e7-3bad581b6ab2/
When visiting the URL from log file I get:
{
"error_msg": "Permission denied."
}
But visiting https://cloud.mydomain.com/sdoc-server/
Welcome to sdoc-server. The current version is 0.7.0
seafile/logs/seahub.log contains not more than:
2024-06-15 12:46:10,959 [INFO] xmlschema:1266 include_schema Resource 'XMLSchema.xsd' is already loaded
docker-compose.yml:
...
seafile:
image: docker.seadrive.org/seafileltd/seafile-pro-mc:11.0-latest
container_name: seafile
ports:
- "80:80"
- "443:443" # If https is enabled, cancel the comment.
volumes:
- /opt/seafile-data:/shared # Required, specifies the path to Seafile data persistent store.
- /mnt/seafile-data:/shared/seafile/seafile-data
environment:
- DB_HOST=db.mydomain.local
- DB_PORT=3306
- DB_ROOT_PASSWD=rootDbPasswd
- TIME_ZONE=Europe/Berlin
- SEAFILE_ADMIN_EMAIL=admin@mydomain.com
- SEAFILE_ADMIN_PASSWORD=asecretPass
- SEAFILE_SERVER_LETSENCRYPT=false
- SEAFILE_SERVER_HOSTNAME=cloud.mydomain.com
- FORCE_HTTPS_IN_CONF=true
depends_on:
#- db
- memcached
- elasticsearch
networks:
- seafile-net
restart: unless-stopped
...
sdoc-server:
image: seafileltd/sdoc-server:latest
container_name: sdoc-server
#ports:
#- 80:80
# - 443:443
# - 7070:7070
# - 8888:8888
volumes:
- /opt/seadoc-data/:/shared
environment:
- DB_HOST=db.mydomain.local
- DB_PORT=3306
- DB_USER=seafile
- DB_PASSWD=myDbPasswd
- DB_NAME=sdoc_db
- TIME_ZONE=Europe/Berlin
- SDOC_SERVER_LETSENCRYPT=true # true or false make no difference
- SDOC_SERVER_HOSTNAME=cloud.mydomain.com
- SEAHUB_SERVICE_URL=https://cloud.mydomain.com
networks:
- seafile-net
restart: unless-stopped
...
Please let me know how to solve this issue, or how to get more details?