Cannot Upload and Download Files

Hi everyone,

I recently set up Seafile on my Raspberry Pi 3B+ using Docker.
The web interface loads correctly — I can log in, create libraries, browse around — everything seems fine at first.

However, when I try to upload or download files, it doesn’t work.
Uploads fail immediately, and downloads do not start at all. The classical network error.

I’m posting my docker-compose.yml configuration below:

version: '2.0'
services:
  db:
    platform: linux/arm64
    image: mariadb:10.11
    container_name: seafile-mysql
    environment:
      - MYSQL_ROOT_PASSWORD=XXX  # Requested, set the root's password of MySQL service.
      - MYSQL_LOG_CONSOLE=true
      - MARIADB_AUTO_UPGRADE=1
    volumes:
      - ./seafile-mysql/db:/var/lib/mysql  # Requested, specifies the path to MySQL data persistent store.
    networks:
      - seafile-net

  memcached:
    image: memcached:1.6.18
    container_name: seafile-memcached
    entrypoint: memcached -m 256
    networks:
      - seafile-net
  seafile:
    #image: seafileltd/seafile-mc:9.0.7-arm
    image: seafileltd/seafile-mc:11.0-latest
    container_name: seafile
    ports:
     - "8080:80"
     - "443:443"  # If https is enabled, cancel the comment.
     - "8082:8082"
    volumes:
      -  /mnt/seafile_disk/seafile_data/shared:/shared
 # Requested, specifies the path to Seafile data persistent store.
    environment:
      - DB_HOST=db
      - DB_ROOT_PASSWD=XXX  # 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=XXX@XXX.de'.
      - SEAFILE_ADMIN_PASSWORD=XXX     # Specifies Seafile admin password, default is 'asecret'.
      - SEAFILE_SERVER_LETSENCRYPT=false   # Whether to use https or not.
      #- SEAFILE_SERVER_HOSTNAME=192.168.201.254 # Specifies your host name if https is enabled.
      #- FILE_SERVER_ROOT=http://192.168.201.254/seafhttp
      - SEAFILE_SERVER_HOSTNAME=http://192.168.201.254
      - FILE_SERVER_ROOT=http://192.168.201.254/seafhttp
      - SERVICE_URL=http://192.168.201.254:8080
    depends_on:
      - db
      - memcached
    networks:
      - seafile-net

networks:
  seafile-net:

The server IP is 192.168.201.254.
I suspect it might have something to do with FILE_SERVER_ROOT or internal networking, but I’m not sure. I am running this fileserver only in my local network at home and it shall also only accessable there.

Does anyone know what could be wrong?
Is there anything else I should check inside the containers or logs?
Maybe pihole also has an influence?

Thanks a lot for your help!

I’m afraid I can’t really help, as I’m facing similar problems and haven’t found a soloution yet.
So you are using version 11 via plain (unencrypted) http to port 8080 - right?
Take a look at the download url that you are presented in the download error page. Is it an https or http link?
Do we need to add :8080 to the FILE_SERVER_ROOT?

ah no worries muelmar, then we are in the same boat. Yes exactly i’m using version 11 since i read somewhere that is the latest version which is supported by my rasperry but I don’t know. An yes i am only using http since the server is not exposed to the internet only in my local network. With regard to the 8080 I don’t really know as well.

Nobody any solution? I am desperade because I cannot find a solution :smiley:

Hi @MichaelScUniBW, I’m not a developer but hopefully I can help you.
1- Can you share a screenshot of the error that you get when uploading/downloading files?
2- When you try to download/upload, do you see any errors in the Console tab of the Developer Tools of your browser?
3- Do you see anything odd in the docker container logs?

I’ll need some more details to fix this. But first, is you’re problem solved yet?

Hi Both,

From memory, I believe you need to change the max file upload size in the Seahub settings and NGINX proxy setup (at least this was the case with the distribution setup).

Have you tried removing the :8080 and running on the standard http port?

Hi Guys,

thank you a lot for your help and sorry for my late reply. Temporary i fixed it. The problem was in seahub_settings.py. Since i specified SEAFILE_SERVER_HOSTNAME=http://192.168.201.254 and added automatically another http in the seahub_settings.py. Therefore, in that file there was set http://http://192.168.201.254. Uploading files in the webinterface as well as via the app was working perfectly. I had to reinstall seafile for some reasons and the same issued arose again. No upload via the web interface but via the desktop app everything works fine. Sadly I don’t have enough knowledge and therefore would appreciate your help :slight_smile: Let me know if i can share any file with you.