Upload to Seafile fails with: Can not connect the server

1,971 views
Skip to first unread message

Niclas

unread,
Jun 22, 2014, 4:49:52 PM6/22/14
to sea...@googlegroups.com
Hi ! Since Friday I cannot upload any files anymore. It doesn't matter whether via desktop client (Windows) or web interface. It even doesn't matter whether connection is established via local IP/LAN or vis DynDNS.
Downloading from Seafile is no problem, browsing through the libraries is no ptoblem, user management also and creating and deleting libraries, too. Only uploading fails with this message (in web interface).
The ccnet.log only says:

[06/22/14 22:42:46] ../common/session.c(385): Listen on 127.0.0.1 134
[06/22/14 22:42:46] ../common/session.c(257): Update pubinfo file
[06/22/14 22:42:46] ../common/connect-mgr.c(515): Opened port 4916 to
[06/22/14 22:42:47] ../common/session.c(365): Accepted a local client
[06/22/14 22:42:47] ../common/session.c(365): Accepted a local client
[06/22/14 22:42:47] ../common/session.c(365): Accepted a local client
[06/22/14 22:42:47] ../common/session.c(365): Accepted a local client
[06/22/14 22:42:49] ../common/connect-mgr.c(266): Unknown peer d7e151
[06/22/14 22:42:53] ../common/session.c(365): Accepted a local client
[06/22/14 22:43:00] ../common/session.c(365): Accepted a local client
[06/22/14 22:43:00] ../common/peer.c(942): Local peer down
[06/22/14 22:43:37] ../common/session.c(365): Accepted a local client
[06/22/14 22:43:42] ../common/session.c(365): Accepted a local client
[06/22/14 22:44:40] ../common/session.c(365): Accepted a local client

I haven't changed anything and don't know why uploading suddenly is not possible anymore while downloading is fine.

Shuai Lin

unread,
Jun 22, 2014, 9:44:29 PM6/22/14
to sea...@googlegroups.com
Does you quota exceed the default upper limit?


--
You received this message because you are subscribed to the Google Groups "seafile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seafile+u...@googlegroups.com.
To post to this group, send email to sea...@googlegroups.com.
Visit this group at http://groups.google.com/group/seafile.
For more options, visit https://groups.google.com/d/optout.

Niclas

unread,
Jun 23, 2014, 10:05:32 AM6/23/14
to sea...@googlegroups.com
Hmm....it shouldn't. Thought that default is 2 GB and I was 1 GB below that value. But I raised itto 5 GB now and will check later when being at home.
Thanks for replying !

Niclas

unread,
Jun 23, 2014, 10:09:10 AM6/23/14
to sea...@googlegroups.com
Ok, 2 GB isn't default - it was the example in your Wiki.
Btw.: I don't have a folder called "seafile-data" and can't find the "seafile.conf" to set a global value for all users.

Shuai Lin

unread,
Jun 23, 2014, 10:18:55 AM6/23/14
to sea...@googlegroups.com
Are you using seafile windows server or seafile linux server ?

windows:

- right click the seafile server tray icon -> click on "open seafile-server folder" menu item, then a folder would be opened, and you'll see seafile-data folder in it

Linux:

seafile-data folder is in the same level with your uncompressed seafile server package





--

Niclas

unread,
Jun 23, 2014, 3:28:29 PM6/23/14
to sea...@googlegroups.com

Ok, was just checking uploads: unsuccesfully. Client and web interface start uploading with a certain speed which is quickly dropping to 0 KB/s until an "!" appears in the Windows desktop client and the error message in the web interface.

Quota is set to 5 GB, from which currently 958 MB are used.

Seafile server is running on Wheezy (Linux) on my Raspberry Pi and I'm searching for the folder in:

/home/seafile

There I only see "seahub-data" besides "ccnet", "conf", "logs" etc. and "seafile-server.3.0.4". The seafile server directory also doesn't contain the "seafile-data" folder.


Am Sonntag, 22. Juni 2014 22:49:52 UTC+2 schrieb Niclas:

Shuai Lin

unread,
Jun 23, 2014, 8:17:30 PM6/23/14
to sea...@googlegroups.com
OK, seems you have set seafile-data to some other place. Run "cat ccnet/seafile.init" to see the location of "seafile-data" folder.


--

Niclas

unread,
Jun 24, 2014, 6:53:14 AM6/24/14
to sea...@googlegroups.com
Ok, found it. It is on my mounted USB stick on which Seafile stores the uploaded files.
Well, quota is set (per user and via web interface) and upload max filesize was and still is set to 1000 (1 GB). This can't be the issue.


Am Sonntag, 22. Juni 2014 22:49:52 UTC+2 schrieb Niclas:

Shuai Lin

unread,
Jun 24, 2014, 8:32:51 AM6/24/14
to sea...@googlegroups.com
What's the output of the command "df -h"?


--

Niclas

unread,
Jun 25, 2014, 4:23:46 AM6/25/14
to sea...@googlegroups.com
Oh, wow ! NOW I see !!!

My /dev/sdb1, my mounted storage device, is 100% used ! This makes me wonder, since there are only a few files which only have a total size of around 500 MB ! This is at least what the Seafile web interface tells me.
I just checked the used disk space with "ncdu" (NCurses Disk Usage) and see that those three entries are the largest ones causing this issue:

10.5GiB [##########] /blocks
 5.4GiB [#####     ] /storage
73.5MiB [          ] /backup

Is there anything I can delete in these folders ?



Am Sonntag, 22. Juni 2014 22:49:52 UTC+2 schrieb Niclas:

Shuai Lin

unread,
Jun 25, 2014, 10:59:22 AM6/25/14
to sea...@googlegroups.com
What's the full path of /blocks, /storage, and /backup ?


--

Niclas

unread,
Jun 25, 2014, 3:36:37 PM6/25/14
to sea...@googlegroups.com
/media/usbstick16gb/backup
/media/usbstick16gb/blocks
/media/usbstick16gb/storage

They are on the USB drive which should be used for storing my files in Seafile.

Shuai Lin

unread,
Jun 25, 2014, 10:25:37 PM6/25/14
to sea...@googlegroups.com
Seems you have use /media/usbtick16gb as the seafile-data folder during setup.

If your seafile server version is 3.x, you can delete the whole blocks/ folder,  since in the new layout the data are all migrated to the storage/ folder.

To ensure that my assumption is correct, before you delete anything please tell me:

- The exact version of your seafile server
- the output of "ls /media/usbstick16gb"

Niclas

unread,
Jun 26, 2014, 4:21:29 AM6/26/14
to sea...@googlegroups.com
Hi Shuai Lin,

Server version is 3.0.4

The output of /media/usbstick16GB is:

backup          httptemp                   seafile.db.20131027102956
blocks          library-template           seafile.db.20131102083824
chunkserver.db  pids                       storage
commits         seafile.conf               tmpfiles
config.db       seafile.db
fs              seafile.db.20131026223259

The output of /storage is:

blocks commits fs

Here's the output of ncdu for "storage":

 /media/usbstick16gb/storage
 5.4GiB [##########] /blocks
10.3MiB [          ] /fs
 6.1MiB [          ] /commits

"blocks" is always pretty large and consumes a lot of disk space. Why is this directory always that large although only 500 MB of files are currently stored in Seafile ? Does it contain "Thrash" also or what's stored in it and how can it be recued before also reaching the 10 GB, soon ?

So obvioulsy I made something wrong during installation. Can I change the settings afterwards so Seafile stops using the storage device for it's program files ? On the other hand: Wheezy is running on an 8 GB SD-card which contains the OS and the installation files of other running applications. So it also hasn't endless storage space.
And what about the seafile.dbs ? As it looks like they're from October and November, 2013. Are they still used by Seafile 3.0.4 or can they be deleted ?

Shuai Lin

unread,
Jun 26, 2014, 5:47:42 AM6/26/14
to sea...@googlegroups.com
Yon can delete the folder /media/usbstick16gb/blocks to free disk space.

In seafile 2.x, we use <seafile-data>/blocks to store file blocks, in seafile 3.x, we use <seafile-data>/storage/blocks to store file blocks, and the update_2.2_3.0.sh script have migrated your data from <seafile-data>/blocks to <seafile-data>/storage/blocks, so the former is no longer needed.

The difference between 500MB and 5.4GB is mainly because seafile keep full history of files by default. If your want to change this behavior, go check:

https://github.com/haiwen/seafile/wiki/Seafile-server-configuration-options#Default_history_length_limit_seafileconf

Also check:

https://github.com/haiwen/seafile/wiki/Garbage-Collecting-Unused-Blocks-on-Seafile-Server

Finally, for the files seafile.db.2013XXXX, they can be deleted now.





Niclas

unread,
Jun 26, 2014, 3:49:16 PM6/26/14
to sea...@googlegroups.com
Great ! Thanks for the support ! I will check the links also.
Many thanks.

Niclas

unread,
Jun 27, 2014, 3:30:47 AM6/27/14
to sea...@googlegroups.com
Concerning the GC part as described on: https://github.com/haiwen/seafile/wiki/Garbage-Collecting-Unused-Blocks-on-Seafile-Server

cd seafile-server-{version}/seafile
export LD_LIBRARY_PATH=./lib:${LD_LIBRARY_PATH}
./bin/seafserv-gc -c ../../ccnet -d ../../seafile-data

Do I have to add the line "./bin/seafserv-gc -c ../../ccnet -d ../../seafile-data" to the export document which opens by executing "export LD_LIBRARY_PATH=./lib:${LD_LIBRARY_PATH}" or dies it have to be run separately afterwards ?
Also, when executing "export LD_LIBRARY_PATH=./lib:${LD_LIBRARY_PATH}" a blank document is opened. Is that intended to do so ? And do I have to replace the variable "LD_LIBRARY_PATH" manually or does it get it's values automatically ?


Am Donnerstag, 26. Juni 2014 11:47:42 UTC+2 schrieb Shuai Lin:
Reply all
Reply to author
Forward
0 new messages