Open christophdb opened 1 week ago
If this is the case, the docs should also be updated.
https://manual.seafile.com/11.0/deploy_pro/multiple_storage_backends/#defining-storage-backends suggests:
[
{
"storage_id": "cold_storage",
"name": "Cold Storage",
"is_default": false,
"fs": {
"backend": "fs",
"dir": "/storage/seafile/seafile-data"
},
"commits": {
"backend": "fs",
"dir": "/storage/seafile/seafile-data"
},
"blocks": {
"backend": "fs",
"dir": "/storage/seafile/seaflle-data"
}
}
]
(ignore the typo for the blocks dir)
I was wrong.
The JSON in the issue description is invalid: The quotes before /opt/seafile/seafile-data
are missing!
BUT: The error message is totally stupid. If you fix the errors, it works. Seafile automatically creates storage/{blocks,commits,fs}
subdirectories inside the configured directory.
As a quick "fix", we can add a JSON syntax check to our entrypoint script if SEAFILE__storage__storage_classes_file
is set to prevent errors like these.
Currently it seems not possible to use the storage_classes file for nfs shares. The error message is:
the storage class file looked like this:
Probably it is possible to use different subfolders like /opt/seafile/seafile-data/fs, /opt/seafile/seafile-data/blocks, ...