Seafile: Can not download files, can not preview pdf

please share
seahub_settings.py

/var/www/seafile/conf/seahub_settings.py

# -*- coding: utf-8 -*-

# WARNING: Don't edit this file. All change will be removed after each app upgrade

SECRET_KEY = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'seahubdb',
        'USER': 'seafile',
        'PASSWORD': 'XXXXXXXXXXXXXXXXXXXXXXXX,
        'HOST': '127.0.0.1',
        'PORT': '3306',
        'OPTIONS': {'charset': 'utf8mb4'},
    }
}

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.redis.RedisCache',
        'LOCATION': 'redis://127.0.0.1:6379/0',
    },
}

FILE_SERVER_ROOT = "https://example.noho.st/seafhttp"
SERVE_STATIC = False
MEDIA_URL = "/seafile/media/"
COMPRESS_URL = MEDIA_URL
STATIC_URL = MEDIA_URL + 'assets/'
LOGIN_URL = '/seafile/accounts/login/'

#
# LDAP
#

ENABLE_LDAP = True

# The URL of LDAP server
LDAP_SERVER_URL = 'ldap://127.0.0.1:389'

# The root node of users who can log in to Seafile in the LDAP server
LDAP_BASE_DN = 'ou=users,dc=exampleuser,dc=org'

# DN of the administrator used to query the LDAP server for information.
# For OpenLDAP, it maybe cn=admin,dc=example,dc=com
LDAP_ADMIN_DN = '' # Need to leave empty to work with anonymous authentication

# Password of LDAP_ADMIN_DN
LDAP_ADMIN_PASSWORD = '' # Need to leave empty to work with anonymous authentication

# Identify the source of the user, used in
# the table social_auth_usersocialauth, defaults to 'ldap'
LDAP_PROVIDER = 'ldap'

# User's attribute used to log in to Seafile.
# It should be a unique identifier for the user in LDAP server.
# Learn more about this id from the descriptions at begining of this section.
LDAP_LOGIN_ATTR = 'mail'

# LDAP user's contact_email attribute
LDAP_CONTACT_EMAIL_ATTR = 'mail'

# LDAP user's role attribute
LDAP_USER_ROLE_ATTR = ''

# For sync user's first name
LDAP_USER_FIRST_NAME_ATTR = 'givenName'

# For sync user's last name
LDAP_USER_LAST_NAME_ATTR = 'sn'

# Whether to reverse the user's first and last name
LDAP_USER_NAME_REVERSE = False

# Additional filter conditions, users who meet the filter conditions can log in, otherwise they cannot log in
LDAP_FILTER = 'permission=cn=seafile.main,ou=permission,dc=exampleuser,dc=org'

#
# SSO
#

ENABLE_REMOTE_USER_AUTHENTICATION = True

# Optional, HTTP header, which is configured in your web server conf file,
# used for Seafile to get user's unique id, default value is 'HTTP_REMOTE_USER'.
REMOTE_USER_HEADER = 'HTTP_YNH_USER_EMAIL'

# Optional, when the value of HTTP_REMOTE_USER is not a valid email address,
# Seafile will build a email-like unique id from the value of 'REMOTE_USER_HEADER'
# and this domain, e.g. user1@example.com.
# REMOTE_USER_DOMAIN = 'example.com'

# Optional, whether to create new user in Seafile system, default value is True.
# If this setting is disabled, users doesn't preexist in the Seafile DB cannot login.
# The admin has to first import the users from external systems like LDAP.
REMOTE_USER_CREATE_UNKNOWN_USER = False

# Optional, whether to activate new user in Seafile system, default value is True.
# If this setting is disabled, user will be unable to login by default.
# the administrator needs to manually activate this user.
# REMOTE_USER_ACTIVATE_USER_AFTER_CREATION = True

# Optional, map user attribute in HTTP header and Seafile's user attribute.
# REMOTE_USER_ATTRIBUTE_MAP = {
#     'HTTP_DISPLAYNAME': 'name',
#     'HTTP_EMAIL': 'contact_email',
#
#     # for user info
#     "HTTP_GIVENNAME": 'givenname',
#     "HTTP_SN": 'surname',
# }
REMOTE_USER_PROTECTED_PATH = ['/seafile', '/seafile/accounts/login', '/seafile/sso']
REMOTE_USER_IMPORT_FROM_LDAP = True

#
# Security settings
#

# For security consideration, please set to match the host/domain of your site, e.g., ALLOWED_HOSTS = ['.example.com'].
# Please refer https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts for details.
ALLOWED_HOSTS = ['example.noho.st', '127.0.0.1']

# Whether to use a secure cookie for the CSRF cookie
# https://docs.djangoproject.com/en/3.2/ref/settings/#csrf-cookie-secure
CSRF_COOKIE_SECURE = True

# The value of the SameSite flag on the CSRF cookie
# https://docs.djangoproject.com/en/3.2/ref/settings/#csrf-cookie-samesite
CSRF_COOKIE_SAMESITE = 'Strict'

# https://docs.djangoproject.com/en/3.2/ref/settings/#csrf-trusted-origins
CSRF_TRUSTED_ORIGINS = ['https://example.noho.st']

#
# User options
#

# Enalbe or disalbe registration on web. Default is `False`.
# ENABLE_SIGNUP = False

# Activate or deactivate user when registration complete. Default is `True`.
# If set to `False`, new users need to be activated by admin in admin panel.
# ACTIVATE_AFTER_REGISTRATION = True

# Whether to send email when a system admin adding a new member. Default is `True`.
# SEND_EMAIL_ON_ADDING_SYSTEM_MEMBER = True

# Whether to send email when a system admin resetting a user's password. Default is `True`.
# SEND_EMAIL_ON_RESETTING_USER_PASSWD = True

# Send system admin notify email when user registration is complete. Default is `False`.
# NOTIFY_ADMIN_AFTER_REGISTRATION = False

# Remember days for login. Default is 7
# LOGIN_REMEMBER_DAYS = 7

# Attempt limit before showing a captcha when login.
# LOGIN_ATTEMPT_LIMIT = 3

# deactivate user account when login attempts exceed limit
# Since version 5.1.2 or pro 5.1.3
# FREEZE_USER_ON_LOGIN_FAILED = False

# Age of cookie, in seconds (default: 2 weeks).
# SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2

# Whether a user's session cookie expires when the Web browser is closed.
# SESSION_EXPIRE_AT_BROWSER_CLOSE = False

# Whether to save the session data on every request. Default is `False`
# SESSION_SAVE_EVERY_REQUEST = False

# Whether enable the feature "published library". Default is `False`
# Since 6.1.0 CE
ENABLE_WIKI = True

# In old version, if you use Single Sign On, the password is not saved in Seafile.
# Users can't use WebDAV because Seafile can't check whether the password is correct.
# Since version 6.3.8, you can enable this option to let user's to specific a password for WebDAV login.
# Users login via SSO can use this password to login in WebDAV.
# Enable the feature. pycryptodome should be installed first.
# sudo pip install pycryptodome==3.12.0
ENABLE_WEBDAV_SECRET = True
WEBDAV_SECRET_MIN_LENGTH = 20

# LEVEL for the password, based on four types of input:
# num, upper letter, lower letter, other symbols
# '3' means password must have at least 3 types of the above.
WEBDAV_SECRET_STRENGTH_LEVEL = 3

# Since version 7.0.9, you can force a full user to log in with a two factor authentication.
# The prerequisite is that the administrator should 'enable two factor authentication' in the 'System Admin -> Settings' page.
# Then you can add the following configuration information to the configuration file.
# ENABLE_FORCE_2FA_TO_ALL_USERS = False

#
# Library options
#

# if enable create encrypted library
# ENABLE_ENCRYPTED_LIBRARY = True

# version for encrypted library
# should only be `2` or `4`.
# version 3 is insecure (using AES128 encryption) so it's not recommended any more.
# ENCRYPTED_LIBRARY_VERSION = 2

# mininum length for password of encrypted library
# REPO_PASSWORD_MIN_LENGTH = 8

# force use password when generate a share/upload link (since version 8.0.9)
# SHARE_LINK_FORCE_USE_PASSWORD = False

# mininum length for password for share link (since version 4.4)
# SHARE_LINK_PASSWORD_MIN_LENGTH = 8

# LEVEL for the password of a share/upload link
# based on four types of input:
# num, upper letter, lower letter, other symbols
# '3' means password must have at least 3 types of the above. (since version 8.0.9)
# SHARE_LINK_PASSWORD_STRENGTH_LEVEL = 3

# Default expire days for share link (since version 6.3.8)
# Once this value is configured, the user can no longer generate an share link with no expiration time.
# If the expiration value is not set when the share link is generated, the value configured here will be used.
# SHARE_LINK_EXPIRE_DAYS_DEFAULT = 5

# minimum expire days for share link (since version 6.3.6)
# SHARE_LINK_EXPIRE_DAYS_MIN should be less than SHARE_LINK_EXPIRE_DAYS_DEFAULT (If the latter is set).
# SHARE_LINK_EXPIRE_DAYS_MIN = 3 # default is 0, no limit.

# maximum expire days for share link (since version 6.3.6)
# SHARE_LINK_EXPIRE_DAYS_MIN should be greater than SHARE_LINK_EXPIRE_DAYS_DEFAULT (If the latter is set).
# SHARE_LINK_EXPIRE_DAYS_MAX = 8 # default is 0, no limit.

# Default expire days for upload link (since version 7.1.6)
# Once this value is configured, the user can no longer generate an upload link with no expiration time.
# If the expiration value is not set when the upload link is generated, the value configured here will be used.
# UPLOAD_LINK_EXPIRE_DAYS_DEFAULT = 5

# minimum expire days for upload link (since version 7.1.6)
# UPLOAD_LINK_EXPIRE_DAYS_MIN should be less than UPLOAD_LINK_EXPIRE_DAYS_DEFAULT (If the latter is set).
# UPLOAD_LINK_EXPIRE_DAYS_MIN = 3 # default is 0, no limit.

# maximum expire days for upload link (since version 7.1.6)
# UPLOAD_LINK_EXPIRE_DAYS_MAX should be greater than UPLOAD_LINK_EXPIRE_DAYS_DEFAULT (If the latter is set).
# UPLOAD_LINK_EXPIRE_DAYS_MAX = 8 # default is 0, no limit.

# force user login when view file/folder share link (since version 6.3.6)
# SHARE_LINK_LOGIN_REQUIRED = False

# enable water mark when view(not edit) file in web browser (since version 6.3.6)
# ENABLE_WATERMARK = True

# Disable sync with any folder. Default is `False`
# NOTE: since version 4.2.4
# DISABLE_SYNC_WITH_ANY_FOLDER = False

# Enable or disable library history setting
# ENABLE_REPO_HISTORY_SETTING = True

# Enable or disable normal user to create organization libraries
# Since version 5.0.5
# ENABLE_USER_CREATE_ORG_REPO = True

# Enable or disable user share library to any group
# Since version 6.2.0
# ENABLE_SHARE_TO_ALL_GROUPS = True

# Enable or disable user to clean trash (default is True)
# Since version 6.3.6
# ENABLE_USER_CLEAN_TRASH = True

# Add a report abuse button on download links. (since version 7.1.0)
# Users can report abuse on the share link page, fill in the report type, contact information, and description.
# Default is false.
# ENABLE_SHARE_LINK_REPORT_ABUSE = False

#
# Online preview
#

# Whether to use pdf.js to view pdf files online. Default is `True`,  you can turn it off.
# NOTE: since version 1.4.
# USE_PDFJS = True

# Online preview maximum file size, defaults to 30M.
# FILE_PREVIEW_MAX_SIZE = 30 * 1024 * 1024

# Extensions of previewed text files.
# NOTE: since version 6.1.1
# TEXT_PREVIEW_EXT = """ac, am, bat, c, cc, cmake, cpp, cs, css, diff, el, h, html,
# htm, java, js, json, less, make, org, php, pl, properties, py, rb,
# scala, script, sh, sql, txt, text, tex, vi, vim, xhtml, xml, log, csv,
# groovy, rst, patch, go"""

# Enable or disable thumbnails
# NOTE: since version 4.0.2
ENABLE_THUMBNAIL = True

# Seafile only generates thumbnails for images smaller than the following size.
# Since version 6.3.8 pro, suport the psd online preview.
# THUMBNAIL_IMAGE_SIZE_LIMIT = 30 # MB

# video thumbnails
ENABLE_VIDEO_THUMBNAIL = True

# Use the frame at 5 second as thumbnail
# NOTE: this option is deprecated in version 7.1
# THUMBNAIL_VIDEO_FRAME_TIME = 5

# Absolute filesystem path to the directory that will hold thumbnail files.
# THUMBNAIL_ROOT = '/haiwen/seahub-data/thumbnail/thumb/'

# Default size for picture preview. Enlarge this size can improve the preview quality.
# NOTE: since version 6.1.1
# THUMBNAIL_SIZE_FOR_ORIGINAL = 1024

#
# Other options
#

# This is outside URL for Seahub(Seafile Web).
# The domain part (i.e., www.example.com) will be used in generating share links and download/upload file via web.
# Note: Outside URL means "if you use Nginx, it should be the Nginx's address"
# Note: SERVICE_URL is moved to seahub_settings.py since 9.0.0
SERVICE_URL =  "https://example.noho.st/seafile"

# Disable settings via Web interface in system admin->settings
# Default is True
# Since 5.1.3
# ENABLE_SETTINGS_VIA_WEB = True

# Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = "Europe/Berlin"

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
# Default language for sending emails.
LANGUAGE_CODE = 'de'

# Custom language code choice.
# LANGUAGES = ( )

# Set this to your website/company's name. This is contained in email notifications and welcome message when user login for the first time.
SITE_NAME = 'Seafile'

# Browser tab's title
SITE_TITLE = 'Private Seafile'

# If you don't want to run seahub website on your site's root path, set this option to your preferred path.
# e.g. setting it to '/seahub/' would run seahub on http://example.com/seahub/.
SITE_ROOT = "/seafile/"

# Max number of files when user upload file/folder.
# Since version 6.0.4
# MAX_NUMBER_OF_FILES_FOR_FILEUPLOAD = 500

# Control the language that send email. Default to user's current language.
# Since version 6.1.1
# SHARE_LINK_EMAIL_LANGUAGE = ''

# Interval for browser requests unread notifications
# Since PRO 6.1.4 or CE 6.1.2
# UNREAD_NOTIFICATIONS_REQUEST_INTERVAL = 3 * 60 # seconds

# Get web api auth token on profile page.
# ENABLE_GET_AUTH_TOKEN_BY_SESSION = True

# Since 8.0.6 CE/PRO version.
# Url redirected to after user logout Seafile.
# Usually configured as Single Logout url.
LOGOUT_REDIRECT_URL = 'https://example.noho.st/yunohost/sso/?action=logout'

# Enable system admin add T&C, all users need to accept terms before using. Defaults to `False`.
# Since version 6.0
# ENABLE_TERMS_AND_CONDITIONS = False

# Enable two factor authentication for accounts. Defaults to `False`.
# Since version 6.0
# ENABLE_TWO_FACTOR_AUTH = False

# Enable user select a template when he/she creates library.
# When user select a template, Seafile will create folders releated to the pattern automaticly.
# Since version 6.0
# LIBRARY_TEMPLATES = {
#     'Technology': ['/Develop/Python', '/Test'],
#     'Finance': ['/Current assets', '/Fixed assets/Computer']
# }

# Enable a user to change password in 'settings' page. Default to `True`
# Since version 6.2.11
# ENABLE_CHANGE_PASSWORD = True

# If show contact email when search user.
# ENABLE_SHOW_CONTACT_EMAIL_WHEN_SEARCH_USER = True

#
# Mail
#

EMAIL_USE_TLS = True
EMAIL_HOST = "example.noho.st"
EMAIL_HOST_USER = "seafile"
EMAIL_HOST_PASSWORD = "XXXXXXXXXXXXXXXXXXXXXXXX"
EMAIL_PORT = "587"
REPLACE_FROM_EMAIL = True
ADD_REPLY_TO_HEADER = True
DEFAULT_FROM_EMAIL = "seafile@example.noho.st"
SERVER_EMAIL = "seafile@example.noho.st"

#
# RESTful API
#

# API throttling related settings. Enlarger the rates if you got 429 response code during API calls.
# REST_FRAMEWORK = {
#     'DEFAULT_THROTTLE_RATES': {
#         'ping': '600/minute',
#         'anon': '5/minute',
#         'user': '300/minute',
#     },
#     'UNICODE_JSON': False,
# }

# Throtting whitelist used to disable throttle for certain IPs.
# e.g. REST_FRAMEWORK_THROTTING_WHITELIST = ['127.0.0.1', '192.168.1.1']
# Please make sure `REMOTE_ADDR` header is configured in Nginx conf according to https://manual.seafile.com/deploy/deploy_with_nginx.html.
# REST_FRAMEWORK_THROTTING_WHITELIST = []

The file is not complete. Please share it using

sudo yunohost log share filename

Seafile is installed on a subdomain, without subfolder (note that this is a local domain)

Yes, I do (although without slash : https://seafile.domain.localseafile.domain.local/seafhttp) and I can’t see any difference (except paths and domain names) between your seahub_settings.py and mine…:man_shrugging:

The file is complete. You need to click the little expand icon in the upper right corner of the code field to see the whole file. But just to be safe here it is on pastebin:

@otm33 I got this feeling the domain is the reason, just can’t prove it.

I am sorry, the file is incomplete: No onlyoffice settings as quoted in

For example

ENABLE_ONLYOFFICE = True
ONLYOFFICE_APIJS_URL = 'https://seafile.example.com:6233/web-apps/apps/api/documents/api.js'
ONLYOFFICE_JWT_SECRET = '<your jwt secret>'

# NOTE
# The following two configurations, do NOT need to configure them explicitly.
# The default values are as follows.
# If you have custom needs, you can also configure them, which will override the default values.
ONLYOFFICE_FILE_EXTENSION = ('doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'odt', 'fodt', 'odp', 'fodp', 'ods', 'fods', 'ppsx', 'pps', 'csv')
ONLYOFFICE_EDIT_FILE_EXTENSION = ('docx', 'pptx', 'xlsx', 'csv')
OFFICE_PREVIEW_MAX_SIZE = 30 * 1024 * 1024 # preview size, 30 MB

Those lines were removed when @idunno performed a forced upgrade. They are not part of the default seahub_settings.py but need to be added if the user wants to use OO with seafile.

Well, it is difficult to help without analyzing setting files and/or log files’.

To me, it appears that onlyOffice and Seafile are mounted on separate URLs, which is a specific installation according to Seafile manual. It needs so specific lines in settings files of onlyoffice and seafile.

As a newbie in seafile and onlyoffice, i would recommend to check these files, because it seems the basic thing to check. For this we need sharing all settings files of onlyoffice and seafile, on yunohost pastebin system

But if you are sure that settings are obviously correct, then i will let you continue without me.

OnlyOffice is totally out of the picture for now. It is not enabled at all. Seafile still does not work. The issue is not OnlyOffice not working, in fact, when it was enabled OnlyOffice worked fine in seafile, I could view and edit files with it. The issue is me not being able to download individual files on my seafile instance. I included the fact that and how I installed OnlyOffice as well just for the sake of including all details. Sorry if that sent you down the wrong path.
If you need additional config or log files to help me further just let me know, I am happy to share everything.

Does this issue happen to a specific file or to all pdf files?

You can try to fix permissions chown -R seafile:seafile /home/yunohost.app/seafile

Retry to open/download that pdf and check the logs of seafile services (in the webadmin >tools >services) you may encounter an obvious issue. And open the browser console before open/download that pdf, the tab network and look for any errors.

I can not download any individual file, no matter the file format. Only thing I can download is a whole folder (gets put in a zip automatically). I can not preview any pdf file either.

You can try to fix permissions chown -R seafile:seafile /home/yunohost.app/seafile

sadly did not change anything.

Retry to open/download that pdf and check the logs of seafile services (in the webadmin >tools >services) you may encounter an obvious issue. And open the browser console before open/download that pdf, the tab network and look for any errors.

In webadmin → tools → services, for the five seafile services, there are no new entries after I restarted the services the last time, two days ago, and no errors.
Debugging with the browser when trying to load a pdf gives me this:

Source map error: Error: request failed with status 404
Stack in the worker:networkRequest@resource://devtools/client/shared/source-map-loader/utils/network-request.js:43:9

Resource URL: https://example.noho.st/seafile/media/js/pdf/web/viewer.js
Source Map URL: viewer.js.map

This pretty much confirms what I found out before: This is basically the same error as not being able to download the file.

@idunno Would you mind sharing a pdf file from your seafile ?

Don’t want to make my domain public, but sent you a private message!

OK. Would you have customize the nginx file ? e.g removing a trailing slash in this block:

location /seafhttp/ {
        proxy_pass http://127.0.0.1:8082/; #is the / present ?
        include proxy_params_no_auth;
        proxy_connect_timeout  36000s;
        proxy_read_timeout  36000s;
        proxy_send_timeout  36000s;

        client_max_body_size 0;
        proxy_request_buffering off;
}

Well, trying to fix the issue I did edit the file, but assuming I did not screw up, I restored everything to stock! And issue appeared before I ever touched any nginx configs for sure. The block you quoted looks exactly the same for me.

/etc/nginx/conf.d/example.noho.st.d/seafile.conf


location /seafile {
        proxy_pass         http://127.0.0.1:8001;
        include proxy_params_with_auth;

        proxy_read_timeout 1200s;
        client_max_body_size 0;
}

location /seafile/media/ {
        alias  /var/www/seafile/seafile_image/opt/seafile/seafile-server-13.0.19/seahub/media/;
}

location /seafile/media/avatars/ {
        alias  /home/yunohost.app/seafile/seahub-data/avatars/;
}

location /seafhttp/ {
        proxy_pass http://127.0.0.1:8082/;
        include proxy_params_no_auth;
        proxy_connect_timeout  36000s;
        proxy_read_timeout  36000s;
        proxy_send_timeout  36000s;

        client_max_body_size 0;
        proxy_request_buffering off;
}

location /notification/ping {
        proxy_pass http://127.0.0.1:8083/ping;
        include proxy_params_no_auth;
}

location /notification {
        proxy_pass http://127.0.0.1:8083/;
        include proxy_params_no_auth;
}

location /seafdav {
        rewrite ^/seafdav$ /seafdav/ permanent;
}

location /seafdav/ {
        proxy_pass         http://127.0.0.1:8081/seafdav/;
        include proxy_params_no_auth;
        proxy_set_header   Authorization        $http_authorization;

        proxy_read_timeout  1200s;
        client_max_body_size 0;
        proxy_request_buffering off;
}

location /seafile/sdoc/ {
        proxy_pass         http://127.0.0.1:8084/;
        include proxy_params_no_auth;
        proxy_redirect     off;

        client_max_body_size 100m;
}

location /seafile/thumbnail/ {
        proxy_pass         http://127.0.0.1:8085;
        include proxy_params_no_auth;
        proxy_redirect     off;

        client_max_body_size 100m;
}

location /socket.io {
        proxy_pass http://127.0.0.1:8084;
        include proxy_params_no_auth;
        proxy_redirect off;

        proxy_buffers 8 32k;
        proxy_buffer_size 64k;
        proxy_set_header X-NginX-Proxy true;
}

We are OK that /seafile is not the real path of your seafile server?

Can you share or check the nginx logs, looking for an error or warning related to the pdf loading? [edit] in the webadmin

seafile.domain.tld-access.log
seafile.domain.tld-error.log

And

lsof -i :8001 -i :8082 -i :8083 -i :8081 -i :8084 -i :8085

Yes, thats my custom “subfolder” for seafile! I will call it in “seafilesubfolder” in future, and the custom subdomain part “mainnohostsubdomain” to avoid any confusion. So the format is:
https://mainnohostsubdomain.noho.st/seafilesubfolder
But you got the real one as well already. :slightly_smiling_face:

Can you share or check the nginx logs, looking for an error or warning related to the pdf loading? [edit] in the webadmin

Not sure if I am looking at the right ones, and looking at the through ssh, let me know if those are wrong:

/var/log/nginx/mainnohostsubdomain.noho.st-error.log
nothing changes here when opening that pdf link I shared with you.

/var/log/nginx/mainnohostsubdomain.noho.st-access.log

Summary
192.168.1.1 - yunohost [26/Mar/2026:22:51:38 +0100] "GET /seafilesubfolder/media/js/pdf/web/viewer.css HTTP/2.0" 200 63481 "https://mainnohostsubdomain.noho.st/seafilesubfolder/f/1abf6c25b81b41a6804c/" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:38 +0100] "GET /seafilesubfolder/media/js/pdf/web/custom.css HTTP/2.0" 200 726 "https://mainnohostsubdomain.noho.st/seafilesubfolder/f/1abf6c25b81b41a6804c/" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:38 +0100] "GET /seafilesubfolder/media/assets/frontend/static/js/commons.6827012b.c387d06cc864.js HTTP/2.0" 200 5642500 "https://mainnohostsubdomain.noho.st/seafilesubfolder/f/1abf6c25b81b41a6804c/" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/avatars/e/e/5b4cc7f147454b9afeb954a340c217/resized/256/5889fdfe1cbc618807a614620c11b8d4.png HTTP/2.0" 200 43192 "https://mainnohostsubdomain.noho.st/seafilesubfolder/f/1abf6c25b81b41a6804c/" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/toolbarButton-viewThumbnail.svg HTTP/2.0" 200 1396 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/viewer.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/toolbarButton-viewOutline.svg HTTP/2.0" 200 332 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/viewer.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/toolbarButton-viewAttachments.svg HTTP/2.0" 200 570 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/viewer.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/toolbarButton-viewLayers.svg HTTP/2.0" 200 671 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/viewer.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/custom/thumbnail.svg HTTP/2.0" 200 865 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/custom.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/custom/first-page.svg HTTP/2.0" 200 932 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/custom.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/custom/previous-page.svg HTTP/2.0" 200 679 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/custom.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/custom/next-page.svg HTTP/2.0" 200 676 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/custom.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/custom/last-page.svg HTTP/2.0" 200 848 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/custom.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/toolbarButton-openFile.svg HTTP/2.0" 200 1400 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/viewer.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/toolbarButton-print.svg HTTP/2.0" 200 927 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/viewer.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/toolbarButton-download.svg HTTP/2.0" 200 1036 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/viewer.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/toolbarButton-editorFreeText.svg HTTP/2.0" 200 915 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/viewer.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/toolbarButton-editorInk.svg HTTP/2.0" 200 1189 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/viewer.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/toolbarButton-secondaryToolbarToggle.svg HTTP/2.0" 200 1080 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/viewer.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/toolbarButton-zoomOut.svg HTTP/2.0" 200 472 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/viewer.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/toolbarButton-menuArrow.svg HTTP/2.0" 200 681 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/viewer.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/images/toolbarButton-zoomIn.svg HTTP/2.0" 200 958 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/js/pdf/web/viewer.css" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/css/sf_font2/seafile-font2.woff HTTP/2.0" 200 7120 "https://mainnohostsubdomain.noho.st/seafilesubfolder/media/css/seahub_react.css?t=20250806" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/locale/locale.properties HTTP/2.0" 200 4606 "https://mainnohostsubdomain.noho.st/seafilesubfolder/f/1abf6c25b81b41a6804c/" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/js/pdf/web/locale/en-US/viewer.properties HTTP/2.0" 200 11103 "https://mainnohostsubdomain.noho.st/seafilesubfolder/f/1abf6c25b81b41a6804c/" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:39 +0100] "GET /seafilesubfolder/media/img/file/256/pdf.png HTTP/2.0" 200 7794 "https://mainnohostsubdomain.noho.st/seafilesubfolder/f/1abf6c25b81b41a6804c/" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - yunohost [26/Mar/2026:22:51:40 +0100] "GET /seafilesubfolder/media/js/pdf/build/pdf.worker.js HTTP/2.0" 200 1964707 "https://mainnohostsubdomain.noho.st/seafilesubfolder/f/1abf6c25b81b41a6804c/" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"
192.168.1.1 - - [26/Mar/2026:22:51:40 +0100] "GET /seafhttp/f/1abf6c25b81b41a6804c/ HTTP/2.0" 500 1 "https://mainnohostsubdomain.noho.st/seafilesubfolder/f/1abf6c25b81b41a6804c/" "Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0"

lsof -i :8001 -i :8082 -i :8083 -i :8081 -i :8084 -i :8085

COMMAND    PID    USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
fileserve 1678 seafile    6u  IPv6  23338      0t0  TCP *:8082 (LISTEN)
nodejs    1750 seafile   18u  IPv6  25979      0t0  TCP *:8084 (LISTEN)
notificat 1757 seafile    7u  IPv4  24297      0t0  TCP localhost:8083 (LISTEN)
python3   1760 seafile    7u  IPv4  26772      0t0  TCP localhost:8085 (LISTEN)
python3   1808 seafile    7u  IPv4  25015      0t0  TCP *:tproxy (LISTEN)
python3   1826 seafile   10u  IPv4  25084      0t0  TCP localhost:8001 (LISTEN)
python3   1922 seafile    7u  IPv4  25015      0t0  TCP *:tproxy (LISTEN)
python3   2013 seafile   10u  IPv4  25084      0t0  TCP localhost:8001 (LISTEN)
python3   2014 seafile   10u  IPv4  25084      0t0  TCP localhost:8001 (LISTEN)
python3   2015 seafile   10u  IPv4  25084      0t0  TCP localhost:8001 (LISTEN)
python3   2016 seafile   10u  IPv4  25084      0t0  TCP localhost:8001 (LISTEN)
python3   2021 seafile   10u  IPv4  25084      0t0  TCP localhost:8001 (LISTEN)

and what does return curl -i http://127.0.0.1:8082? A 404 I guess… ?

Try adding a trayling slash at the end of these

Exactly:

curl -i http://127.0.0.1:8082
HTTP/1.1 404 Not Found
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
Date: Fri, 27 Mar 2026 00:07:19 GMT
Content-Length: 19

404 page not found

First, nginx refuses to start at all:

2026/03/27 01:20:29 [emerg] 901#901: duplicate location "/seafdav/" in /etc/nginx/conf.d/mainnohostsubdomain.noho.st.d/seafile.conf:43

Changing that block back to:

location /seafdav {
        rewrite ^/seafdav$ /seafdav/ permanent;
}

… makes nginx start again, but then I can not reach seafile at all at https://mainnohostsubdomain.noho.st/seafilesubfolder