client icon indicating copy to clipboard operation
client copied to clipboard

ownCloud linux client 1.2.1 opens too many sockets

Open funkey opened this issue 13 years ago • 7 comments

After a complete download of directories with a large number of files and directories (1696 files in 408 directories in my case), the ownCloud linux client opens too many files (most of them sockets) and synchronization fails at the next attempt to open another file or directory. I observed the following csync error message:

opendir failed for [...] (errno 24)

I could get the synchronization to work by increasing the allowed number of open files (default on Ubuntu is 1024). After that, the client had more than a thousand open files, most of them (1011) sockets.

$ lsof -c owncloud | wc -l
$ 1249

After a restart of the client on the freshly synced directory, the number of open files is about 230 for the same directory.

Expected behaviour

Less than 1024 files should be open at the same time.

Actual behaviour

More than 1024 files are open at the same time.

Steps to reproduce

  1. On machine A: Create an upload directory with a lot of files and directories.
  2. On machine A: Upload it.
  3. On machine B: Set up an empty directory to be synced with the large remote directory.
  4. On machine B: Observe the number of open files of the client.

Client configuration

Client version: 1.2.1

Operating system: Ubuntu 12.04

OS language: English

Installation path of client: /usr/bin/owncloud

Logs

opendir failed for [...] (errno 24)

funkey avatar Mar 12 '13 11:03 funkey

I am experiencing the same issue. Error: [opendir failed for [...](errno 24)]

Ubuntu 12.04/Client 1.2.1

devserghini avatar Mar 15 '13 17:03 devserghini

I too am experiencing the same problem:

03-20 08:21:15:890 csync_ftw: Uniq ID read from Database: Programming/My Website/Backup/wp-includes/js/tinymce/themes/advanced/skins/o2k7/img -> 50ff8cd3ce8204.32368218 03-20 08:21:15:890 csync_ftw: walk: /home/perry/ownCloud/Programming/My Website/Backup/wp-includes/js/tinymce/themes/advanced/skins/o2k7/img 03-20 08:21:15:890 csync_walker: directory: /home/perry/ownCloud/Programming/My Website/Backup/wp-includes/js/tinymce/themes/advanced/skins/o2k7/img 03-20 08:21:15:890 _csync_detect_update: file: Programming/My Website/Backup/wp-includes/js/tinymce/themes/advanced/skins/o2k7/img - hash 15191917783428389666, mtime: 1358759980 03-20 08:21:15:890 _csync_detect_update: time compare: 1358759980 <-> 1358759980, md5: 50ff8cd3ce8204.32368218 <-> 50ff8cd3ce8204.32368218 03-20 08:21:15:890 _csync_detect_update: file: Programming/My Website/Backup/wp-includes/js/tinymce/themes/advanced/skins/o2k7/img, instruction: INSTRUCTION_NONE 03-20 08:21:15:890 csync_ftw: Incoming read_from_db-Flag for /home/perry/ownCloud/Programming/My Website/Backup/wp-includes/js/tinymce/themes/advanced/skins/o2k7/img: 0 03-20 08:21:15:890 csync_ftw: opendir failed for /home/perry/ownCloud/Programming/My Website/Backup/wp-includes/js/tinymce/themes/advanced/skins/o2k7/img - (errno 24)

Ubuntu 12.04.1 - Client 1.2.1

perry-mitchell avatar Mar 19 '13 22:03 perry-mitchell

same problem

debian sid owncloud-client 1.2.1-1 ibocsync-plugin-owncloud 0.70.4-1

abeelen avatar Mar 26 '13 09:03 abeelen

This is obviously an upstream problem with the gnutls library shipped with the operating systems. Can one of you try to address that problem upstream?

dragotin avatar Mar 26 '13 09:03 dragotin

I had the same problem, downloaded the source and tried to debug. But the problem disappeared! Try downloading and building from source, worked for me. Ubuntu 12.04 amd64. I have no idea why.

homann avatar Mar 27 '13 14:03 homann

@homann (Part of) the problem disappears if you install the debug package of gnutls.

danimo avatar Mar 27 '13 14:03 danimo

Fixed with ec3138f45ae0662fff8191185c83e9095321773e. Will be in 1.2.5.

danimo avatar Apr 22 '13 10:04 danimo