Network error when upload file

Hello, I followed the installation instructions at Installation - Seafile Admin Manual , and everything is working, but I can’t upload any files. I keep getting network errors.

/opt/seafile$ grep "SEAFILE_SERVER" conf/.env
SEAFILE_SERVER_PROTOCOL=https
SEAFILE_SERVER_HOSTNAME=fr4.sisi-systems.ovh

Here logs from nginx and seafile:

[root@fr4 nginx]# cat access.log 
84.184.0.0 - - [13/Dec/2025:08:14:28 +0100] "POST /seafhttp/upload-aj/caddf42d-626d-40bc-895e-5b26630464d3?ret-json=1 HTTP/1.1" 404 5 "https://fr4.sisi-systems.ovh/library/21bc98f9-27d7-4231-b31c-bdd17be76864/ca2/" "Mozilla/5.0 (X11; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0" "-"

[root@fr4 nginx]# cat error.log 
2025/12/13 08:14:28 [warn] 1007378#1007378: *1 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000001, client: 84.184.98.172, server: fr4.sisi-systems.ovh, request: "POST /seafhttp/upload-aj/caddf42d-626d-40bc-895e-5b26630464d3?ret-json=1 HTTP/1.1", host: "fr4.sisi-systems.ovh", referrer: "https://fr4.sisi-systems.ovh/library/21bc98f9-27d7-4231-b31c-bdd17be76864/ca2/"

[root@fr4 nginx]# cat seahub.access.log
84.184.0.0 - - [13/Dec/2025:08:14:28 +0100] "GET /api2/repos/21bc98f9-27d7-4231-b31c-bdd17be76864/upload-link/?p=%2F&from=web HTTP/1.1" 200 86 "https://fr4.sisi-systems.ovh/library/21bc98f9-27d7-4231-b31c-bdd17be76864/ca2/" "Mozilla/5.0 (X11; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0"
84.184.0.0 - - [13/Dec/2025:08:14:28 +0100] "GET /api/v2.1/repos/21bc98f9-27d7-4231-b31c-bdd17be76864/file-uploaded-bytes/?parent_dir=%2F&file_name=fblogo.png HTTP/1.1" 200 19 "https://fr4.sisi-systems.ovh/library/21bc98f9-27d7-4231-b31c-bdd17be76864/ca2/" "Mozilla/5.0 (X11; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0"

seafile@fr4:/opt/seafile/logs$ cat seafile-monitor.log
WARNING:root:Memcached has not been set up
Traceback (most recent call last):
  File "/usr/lib/python3.13/logging/config.py", line 604, in configure
    handler = self.configure_handler(handlers[name])
  File "/usr/lib/python3.13/logging/config.py", line 869, in configure_handler
    result = factory(**kwargs)
  File "/usr/lib/python3.13/logging/handlers.py", line 161, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding=encoding,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                 delay=delay, errors=errors)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/logging/handlers.py", line 64, in __init__
    logging.FileHandler.__init__(self, filename, mode=mode,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                 encoding=encoding, delay=delay,
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                 errors=errors)
                                 ^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/logging/__init__.py", line 1219, in __init__
    StreamHandler.__init__(self, self._open())
                                 ~~~~~~~~~~^^
  File "/usr/lib/python3.13/logging/__init__.py", line 1248, in _open
    return open_func(self.baseFilename, self.mode,
                     encoding=self.encoding, errors=self.errors)
PermissionError: [Errno 13] Permission denied: '/tmp/seahub.log'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/seafile/seafile-pro-server-13.0.14/seahub/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/opt/seafile/seafile-pro-server-13.0.14/seahub/thirdpart/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
    ~~~~~~~~~~~~~~~^^
  File "/opt/seafile/seafile-pro-server-13.0.14/seahub/thirdpart/django/core/management/__init__.py", line 416, in execute
    django.setup()
    ~~~~~~~~~~~~^^
  File "/opt/seafile/seafile-pro-server-13.0.14/seahub/thirdpart/django/__init__.py", line 19, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/seafile/seafile-pro-server-13.0.14/seahub/thirdpart/django/utils/log.py", line 76, in configure_logging
    logging_config_func(logging_settings)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/logging/config.py", line 935, in dictConfig
    dictConfigClass(config).configure()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/logging/config.py", line 611, in configure
    raise ValueError('Unable to configure handler '
                     '%r' % name) from e
ValueError: Unable to configure handler 'default'
INFO:root:starts to index files
INFO:root:starts to index wiki files
WARNING:root:Memcached has not been set up
Traceback (most recent call last):
  File "/usr/lib/python3.13/logging/config.py", line 604, in configure
    handler = self.configure_handler(handlers[name])
  File "/usr/lib/python3.13/logging/config.py", line 869, in configure_handler
    result = factory(**kwargs)
  File "/usr/lib/python3.13/logging/handlers.py", line 161, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding=encoding,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                 delay=delay, errors=errors)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/logging/handlers.py", line 64, in __init__
    logging.FileHandler.__init__(self, filename, mode=mode,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                 encoding=encoding, delay=delay,
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                 errors=errors)
                                 ^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/logging/__init__.py", line 1219, in __init__
    StreamHandler.__init__(self, self._open())
                                 ~~~~~~~~~~^^
  File "/usr/lib/python3.13/logging/__init__.py", line 1248, in _open
    return open_func(self.baseFilename, self.mode,
                     encoding=self.encoding, errors=self.errors)
PermissionError: [Errno 13] Permission denied: '/tmp/seahub.log'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/seafile/seafile-pro-server-13.0.14/seahub/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/opt/seafile/seafile-pro-server-13.0.14/seahub/thirdpart/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
    ~~~~~~~~~~~~~~~^^
  File "/opt/seafile/seafile-pro-server-13.0.14/seahub/thirdpart/django/core/management/__init__.py", line 416, in execute
    django.setup()
    ~~~~~~~~~~~~^^
  File "/opt/seafile/seafile-pro-server-13.0.14/seahub/thirdpart/django/__init__.py", line 19, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/seafile/seafile-pro-server-13.0.14/seahub/thirdpart/django/utils/log.py", line 76, in configure_logging
    logging_config_func(logging_settings)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/logging/config.py", line 935, in dictConfig
    dictConfigClass(config).configure()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/logging/config.py", line 611, in configure
    raise ValueError('Unable to configure handler '
                     '%r' % name) from e
ValueError: Unable to configure handler 'default'

If you need more information please ask. Have someone a idea?

Silvio

If you cannot upload files to Seafile via Web UI, You can try the following steps to debug the issue

  • Check browser’s console to find the exact error
  • Verify that SEAFILE_SERVER_PROTOCOL and SEAFILE_SERVER_HOSTNAME are set correctly.
    Note, SEAFILE_SERVER_PROTOCOL and SEAFILE_SERVER_HOSTNAME should be consistent with the URL that you access your Seafile server from internet. If you use https://seafile.example.com to access Seafile service in your browser, you should set SEAFILE_SERVER_PROTOCOL to https and SEAFILE_SERVER_HOSTNAME to seafile.example.com.

Hi, thanks SEAFILE_SERVER_PROTOCOL and SEAFILE_SERVER_HOSTNAME are right.

(python-venv) seafile@fr4:/opt/seafile$ cat conf/.env | grep SEAFILE_SERVER
SEAFILE_SERVER_PROTOCOL=https
SEAFILE_SERVER_HOSTNAME=fr4.sisi-systems.ovh

The Browser Console:

Right Click: No Table Found content.js:19:17
XHRPOST
https://fr4.sisi-systems.ovh/seafhttp/upload-aj/716fc285-873a-4c1a-9b46-81d2707a867f?ret-json=1
[HTTP/1.1 404 Not Found 20ms]

    
POST
    https://fr4.sisi-systems.ovh/seafhttp/upload-aj/716fc285-873a-4c1a-9b46-81d2707a867f?ret-json=1
Status
404
Not Found
VersionHTTP/1.1
Übertragen5,60 kB (0 B Größe)
Referrer Policystrict-origin-when-cross-origin
DNS-AuflösungSystem

    
Connection
    keep-alive
Date
    Sat, 13 Dec 2025 15:06:30 GMT
Server
    nginx
Transfer-Encoding
    chunked
    
Accept
    application/json; text/javascript, */*; q=0.01
Accept-Encoding
    gzip, deflate, br, zstd
Accept-Language
    de,en-US;q=0.7,en;q=0.3
Cache-Control
    no-cache
Connection
    keep-alive
Content-Disposition
    attachment; filename="logo.png"
Content-Length
    4533
Content-Range
    bytes 0-3022/3023
Content-Type
    multipart/form-data; boundary=----geckoformboundaryc7b53670ac79b8f470fc9f9ca5c319f9
Cookie
    sfcsrftoken=
DNT
    1
Host
    fr4.sisi-systems.ovh
Origin
    https://fr4.sisi-systems.ovh
Pragma
    no-cache
Referer
    https://fr4.sisi-systems.ovh/library/21bc98f9-27d7-4231-b31c-bdd17be76864/ca2/
Sec-Fetch-Dest
    empty
Sec-Fetch-Mode
    cors
Sec-Fetch-Site
    same-origin
Sec-GPC
    1
User-Agent
    Mozilla/5.0 (X11; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0
XML-Verarbeitungsfehler: Kein Wurzel-Element gefunden
Adresse: https://fr4.sisi-systems.ovh/seafhttp/upload-aj/716fc285-873a-4c1a-9b46-81d2707a867f?ret-json=1
Zeile Nr. 1, Spalte 1: 716fc285-873a-4c1a-9b46-81d2707a867f:1:1
Error: Promised response from onMessage listener went out of scope ExtensionMessagingService.js:89:34

The error come from nginx configuration.

rewrite ^/seafhttp(.*)$1 break; > wrong

rewrite ^/seafhttp(.*)$ $1 break;

Thanks