After installing Seafile 12 with docker I’m facing a discspace issue:
While uploading directories, I get a “sever error”. This is caused my running out of diskspace. If I type df
I get /dev/loop0 8154588 8054588 100000 0% /
I’m confused, because I defined in my seafile.yml this:
volumes:
- ${SEAFILE_VOLUME:-/media/usbdrive/Seafile-Daten/seafile-data:/shared}:/shared}
Same in .env:
SEAFILE_VOLUME=/media/usbdrive/Seafile-Daten/seafile-data
Running seafile, the folder media/usbdrive/Seafile-Daten/seafile-data is crated, but it’s empty.
It seems, uploaded data is stored anywhere in the docker container.
What should I change?
- ${SEAFILE_VOLUME:-/media/usbdrive/Seafile-Daten/seafile-data:/shared}:/shared}
There is an extra } in there. It should end “/shared”. Inside your container you have a /shared where the files are being written, and a /shared} where the storage is mounted.
Also there was need to change that from the default because the “:-” part is just defining a default value for this variable to get if it isn’t defined in the .env file. But since you have it in .env, the part after the - to the } will just be ignored. But with that said, it’s not supposed to have the “:/shared” inside the {} because if that variable was not defined in .env, it would get added on to the part after the }, so would be “/media/usbdrive/Seafile-Daten/seafile-data:/shared:/shared”
tl;dr - Change that line to this, and restart:
- ${SEAFILE_VOLUME:-/media/usbdrive/Seafile-Daten/seafile-data}:/shared
1 Like
Thanks for your advice 
It’s working fine now.