# \[solved\] Hangs when adding lots of files

**URL:** <https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686>\
**Category:** 💻 Desktop\
**Created:** [January 18, 2017, 2:58am UTC](https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686 "2017-01-18T02:58:34Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lox](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lox/32/881_2.png) [@Lox](https://help.nextcloud.com/u/Lox)\
**Post date:** [January 18, 2017, 2:58am UTC](https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686/1 "2017-01-18T02:58:34Z")

</div>

I added a folder with many mp3 (6Go of mp3s)

It uploads very fast and then suddenly hangs. After a while I get a timeout error in the client.  
It then starts the synch process again. It can happens randomly after 5 files uploaded, 8 or once after 200 files got uploaded. I cannot find anything interesting in nginx, php-fpm or nextcloud logs.

- [Nginx front proxy config](https://gist.github.com/laurentdinclaux/139361b88514e49440145a3c45a6b940).

- [Nextcloud server config](https://gist.github.com/laurentdinclaux/130445468cadc79489ec33f5201e757f)

[edit] It seems like the files on which Nextcloud hangs are being permanently locked, thus impossible to delete without manually cleaning redis cache

[edit] before most retries I get a notice windows about conflicting files and asking whether to continue normal sync or keep local conflict files

---

<div class="post-metadata">

**Author:** ![Sanook](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sanook/32/13847_2.png) [@Sanook](https://help.nextcloud.com/u/Sanook)\
**Post date:** [January 18, 2017, 3:03am UTC](https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686/2 "2017-01-18T03:03:49Z")

</div>

What does

`tload`

say?

---

<div class="post-metadata">

**Author:** ![Lox](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lox/32/881_2.png) [@Lox](https://help.nextcloud.com/u/Lox)\
**Post date:** [January 18, 2017, 3:14am UTC](https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686/3 "2017-01-18T03:14:54Z")

</div>

0.02, 0.05, 0.08

1.07 before hanging

---

<div class="post-metadata">

**Author:** ![Lox](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lox/32/881_2.png) [@Lox](https://help.nextcloud.com/u/Lox)\
**Post date:** [January 29, 2017, 11:25pm UTC](https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686/4 "2017-01-29T23:25:30Z")

</div>

Please guys doesn’t anyone have an idea of what could be wrong ?

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/5_5575768a8748004e209b776fc1b2916d.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [January 29, 2017, 11:45pm UTC](https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686/5 "2017-01-29T23:45:35Z")

</div>

I hope you don’t use sqlite. You seem to use redis, I haven’t seen such problems yet. What kind of device are you using as server? Can you estimate after how many files your error appears?

Is this your normal primary storage, no shared folders, no external storage?

---

<div class="post-metadata">

**Author:** ![Lox](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lox/32/881_2.png) [@Lox](https://help.nextcloud.com/u/Lox)\
**Post date:** [January 30, 2017, 12:27am UTC](https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686/6 "2017-01-30T00:27:15Z")

</div>

Intel® Core™ i5-4670 CPU @ 3.40GHz  
System memory size: 23GiB

Nextcloud runs in an LXC container, with an Nginx front proxy in another LXC container, both running on the high performance ZFS file system.  
The primary storage is different than from the LXC system filesystem. It comes from another ZFS container on large disks (on the same computer):

```
lxc config device show nextcloud 
data:
  path: /srv/www/nextcloud/data
  source: /tank/cloud/
  type: disk
root:
  path: /
  type: disk

```

I have other applications like gitlab running this way and no issue at system level, no filesystem errors at all or anything related. I am pretty sure something is wrong in my config (most probably nginxes config) but I can’t iron it out…

For the “how many files” question, it is quite random, but the pattern is around 200 files at first attempt and then less that 10 for each retry.

---

<div class="post-metadata">

**Author:** ![Lox](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lox/32/881_2.png) [@Lox](https://help.nextcloud.com/u/Lox)\
**Post date:** [January 30, 2017, 1:37am UTC](https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686/7 "2017-01-30T01:37:32Z")

</div>

I upgraded to 11.0.1: exact same issue.

Stucks after 184 mp3s uploaded by the client, the highest load I got was 0.4 … After a while it started again and stucked after 3 files.

---

<div class="post-metadata">

**Author:** ![Lox](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lox/32/881_2.png) [@Lox](https://help.nextcloud.com/u/Lox)\
**Post date:** [January 30, 2017, 1:44am UTC](https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686/8 "2017-01-30T01:44:09Z")

</div>

> [@tflidd](#):
>
> I hope you don’t use sqlite

```
mysql --version
mysql Ver 15.1 Distrib 10.0.29-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

```

---

<div class="post-metadata">

**Author:** ![Lox](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lox/32/881_2.png) [@Lox](https://help.nextcloud.com/u/Lox)\
**Post date:** [January 30, 2017, 3:09am UTC](https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686/9 "2017-01-30T03:09:54Z")

</div>

**Bug found: Nextant App**

**When nextant is enabled it caused the issue described.**

---

<div class="post-metadata">

**Author:** ![Sanook](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sanook/32/13847_2.png) [@Sanook](https://help.nextcloud.com/u/Sanook)\
**Post date:** [January 30, 2017, 3:20am UTC](https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686/10 "2017-01-30T03:20:12Z")

</div>

@Lox could you file a bug here please?

> **[nextcloud/fulltextsearch](https://github.com/nextcloud/fulltextsearch/issues)**
>
> fulltextsearch - 🔍 Core of the full-text search framework for Nextcloud

Thanks!

---

<div class="post-metadata">

**Author:** ![Lox](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lox/32/881_2.png) [@Lox](https://help.nextcloud.com/u/Lox)\
**Post date:** [January 30, 2017, 3:27am UTC](https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686/11 "2017-01-30T03:27:33Z")

</div>

> <https://github.com/nextcloud/fulltextsearch/issues/136>

---

<div class="post-metadata">

**Author:** ![Influenist](https://help.nextcloud.com/user_avatar/help.nextcloud.com/influenist/32/6134_2.png) [@Influenist](https://help.nextcloud.com/u/Influenist)\
**Post date:** [January 16, 2018, 1:00pm UTC](https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686/12 "2018-01-16T13:00:16Z")

</div>

Could it be your redis service? I have a similar issue. All properly configured yet redis suddenly stop caching items or passing the requests. When I restart redis the images and file loads correctly.

---

<div class="post-metadata">

**Author:** ![Lox](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lox/32/881_2.png) [@Lox](https://help.nextcloud.com/u/Lox)\
**Post date:** [January 19, 2018, 12:56am UTC](https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686/13 "2018-01-19T00:56:53Z")

</div>

As semaphore support has been removed, I do not have the issue anymore.  
See the github issue referenced.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 4:17pm UTC](https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686/14 "2024-12-14T16:17:22Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 4:17pm UTC](https://help.nextcloud.com/t/solved-hangs-when-adding-lots-of-files/7686/15 "2024-12-14T16:17:23Z")

</div>


