I am trying to set up a server on a OVH VPS, using OVH object storage as storage backend.
Here is my seafile.conf:
[fileserver]
port = 8082[database]
type = mysql
host = 127.0.0.1
port = 3306
user = seafile
password = *
db_name = seafile_db
connection_charset = utf8
[block_backend]
name = swift
tenant = *
user_name = *
password = *
container = seafile-blocks
auth_host = auth.cloud.ovh.net
auth_ver = v2.0
region = GRA3
use_https = true
[commit_object_backend]
name = swift
tenant = *
user_name = *
password = *
container = seafile-commits
auth_host = auth.cloud.ovh.net
auth_ver = v2.0
region = GRA3
use_https = true
[fs_object_backend]
name = swift
tenant = *
user_name = *
password = *
container = seafile-fs
auth_host = auth.cloud.ovh.net
auth_ver = v2.0
region = GRA3
use_https = true
I can connect to the web interface, create libraries, create new files. The containers seafile-fs and seafile-commits contain some objects. Yet, I cannot upload anything to the server (Internal Server error)âŚ
Here is the tail of my seafile.log [10/29/2017 02:52:47 PM] ../common/fs-mgr.c(554): failed to commit chunk 29d10aba005db15ba4567cb4134496a8a27aa886. [10/29/2017 02:52:47 PM] repo-op.c(1100): failed to index blocks[10/29/2017 02:53:02 PM] ../common/block-backend-swift.c(496): Put block 29d10aba005db15ba4567cb4134496a8a27aa886 error 404. Response: ``<html><h1>Not Found</h1><p>The resource could not be found.</p></html>`` [10/29/2017 02:53:02 PM] ../common/fs-mgr.c(554): failed to commit chunk 29d10aba005db15ba4567cb4134496a8a27aa886. [10/29/2017 02:53:02 PM] repo-op.c(1100): failed to index blocks[10/29/2017 03:30:21 PM] filelock-mgr.c(917): Cleaning expired file locks.
Would you have any idea of what I am doing wrong?
Many thanks,
Romain
I since have installed a similar setup, and reproduce exactly the same issue. Simple install. Donât start it. Update the seafile.conf for swift. ./seafile.sh start. Check logs/seafile.log. There are already similar errors to yours. And these are the very first lines in the log file. This is the auto-creation of the default content of the âMy Libraryâ for the admin user which fails.
Well thank you for having tried! So, do you believe the problem is independent of my setup? Do you have any idea of where the problem is located and what could be a solution? I admit to be quite a beginnerâŚ
Many thanks again.
Well⌠I have no insider experience with Seafile (especially on OpenStack Swift). What I can say is that it probably is not an authentication issue : I have set it up with 3 containers as recommend and after my test I do have one object stored in the commits container. But nothing in the blocks container.
A this stage, I have no clue on what goes wrong with the blocks container. Or if this is read error while attempting to re-read the commit that got stored in the commits container.
I donât think this feature (Swift support) is built in the community edition, so it isnât a path to review that part of the source code and get a better understanding of whatâs going on.
I have a paid commercial license for the Pro edition, I will contact Seafile support with a pointer to this forum thread.
Yes, I did. I ran into the same error a little bit defferent :
[11/09/2017 03:04:46 PM] âŚ/common/obj-backend-swift.c(319): Put object e8b030de1c83ff3d000a3a6bcef2ac690bbdbf37 >error 404. Response:
< html>< h1>Not Found< /h1>< p>The resource could not be found.< /p>< /html>
[11/09/2017 03:04:46 PM] repo-mgr.c(5890): Failed to add commit.
[11/09/2017 03:04:46 PM] seafile-session.c(502): Failed to create system default repo.
[11/09/2017 03:05:01 PM] âŚ/common/fs-mgr.c(1893): [fs mgr] Failed to read dir >73fe86f8a264a6bd87f4c059be6d260fdb454f42.
I am totaly lost. I think OVH have change something, because this configuration works well until 18/09/2017, then after this date I encountered this issue. During this period, i didnât chnage anything on my server (debian 8, seafile server pro for one user, or package updates).
Same problem here on OVH Object Storage. I had a working seafile but since a few days, I got a 404 error from the swift library so all my files are not available anymore.
I tried to do a ./seaf-fsck --repair but all my files were replaced with 0 bytes files.
I will investigate more and give any updates here.
I was in contact with the team in charge of Object Storage and we realized that Seafile was trying to reach different regions even if the region is set in the seafile.conf file. This error then sometimes result in 404 errors as the container is not found.
Also, this error appeared recently because they added a new region in the catalog which change its order.
If no region is set, the client takes the first region in the catalog.
So it seems that a some point the region variable is not used/set in Seafile.
As the version using swift object storage is not open source, I canât fix it.
Iâve contacted Seafile and will let you know whatâs up.
For the seafile-fs and seafile-commits containers the right region is used but not for seafile-blocks.
Even if the region is set to the same value for the three containers in the seafile.conf file.