# Too many open files V. 1.0.1

**URL:** https://forum.syncthing.net/t/too-many-open-files-v-1-0-1/12958
**Category:** Support
**Created:** [March 3, 2019, 8:07am UTC](https://forum.syncthing.net/t/too-many-open-files-v-1-0-1/12958 "2019-03-03T08:07:30Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![cromoduro](https://forum.syncthing.net/user_avatar/forum.syncthing.net/cromoduro/32/5975_2.png) [@cromoduro](https://forum.syncthing.net/u/cromoduro)
#### Post date: [March 3, 2019, 8:07am UTC](https://forum.syncthing.net/t/too-many-open-files-v-1-0-1/12958/1 "2019-03-03T08:07:30Z")

</div>

Hi, I read this thread, I waited some months till new version was released in the libreelec OS for the raspberry, but it doesn’t seem to be working.

> [@Too Many Open Files](https://forum.syncthing.net/t/too-many-open-files/10998/92):
>
> The fix for this issue discussed in this thread is in the current release candidates. If your problem still happens with the current release candidate, please open a new thread - thanks.

My folders don’t synchronize, and I get this message:

```
    2019-03-03 09:02:15: Syncthing should not run as a privileged or system user. Please consider using a normal user account.

2019-03-03 09:02:16: Listen (BEP/tcp): Accepting connection: accept tcp [::]:22000: accept4: too many open files

2019-03-03 09:02:17: Listen (BEP/tcp): Accepting connection: accept tcp [::]:22000: accept4: too many open files

2019-03-03 09:02:19: Listen (BEP/tcp): Accepting connection: accept tcp [::]:22000: accept4: too many open files

```

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [March 3, 2019, 9:23am UTC](https://forum.syncthing.net/t/too-many-open-files-v-1-0-1/12958/2 "2019-03-03T09:23:05Z")

</div>

What does `ulimit -n` say when run from a shell?

---

<div class="post-metadata">

### Author: ![cromoduro](https://forum.syncthing.net/user_avatar/forum.syncthing.net/cromoduro/32/5975_2.png) [@cromoduro](https://forum.syncthing.net/u/cromoduro)
#### Post date: [March 3, 2019, 12:06pm UTC](https://forum.syncthing.net/t/too-many-open-files-v-1-0-1/12958/3 "2019-03-03T12:06:15Z")

</div>

It says: 1024

I am testing with just a folder with a few ringtones. Some months ago it worked like a charm with big folders.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [March 3, 2019, 12:13pm UTC](https://forum.syncthing.net/t/too-many-open-files-v-1-0-1/12958/4 "2019-03-03T12:13:53Z")

</div>

Yeah that should probably be enough. I don’t know what you’re running into.

---

<div class="post-metadata">

### Author: ![bt90](https://forum.syncthing.net/user_avatar/forum.syncthing.net/bt90/32/18565_2.png) [@bt90](https://forum.syncthing.net/u/bt90)
#### Post date: [March 4, 2019, 8:33am UTC](https://forum.syncthing.net/t/too-many-open-files-v-1-0-1/12958/5 "2019-03-04T08:33:53Z")

</div>

The limits reported by ulimit might not apply here if syncthing is started by systemd: [https://wiki.archlinux.org/index.php/Limits.conf](https://wiki.archlinux.org/index.php/Limits.conf)

---

<div class="post-metadata">

### Author: ![bt90](https://forum.syncthing.net/user_avatar/forum.syncthing.net/bt90/32/18565_2.png) [@bt90](https://forum.syncthing.net/u/bt90)
#### Post date: [March 4, 2019, 9:55am UTC](https://forum.syncthing.net/t/too-many-open-files-v-1-0-1/12958/6 "2019-03-04T09:55:03Z")

</div>

@calmh it might be worth to examine `/proc/<pid>/limits` on Unix platforms and add it to the log as this seems to be a frequent issue.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [March 4, 2019, 9:58am UTC](https://forum.syncthing.net/t/too-many-open-files-v-1-0-1/12958/7 "2019-03-04T09:58:09Z")

</div>

No need for proc interaction, we [already attempt](https://github.com/syncthing/syncthing/blob/e2e8f6e940e3f77e1c172e3916e35b4e75127be7/cmd/syncthing/main.go#L629-L632) to raise the soft limit to the hard limit and know the result of the operation (that function returns the new limit). We don’t specifically log anything about it, although we could do so and flag a warning if it’s scary low.

---

<div class="post-metadata">

### Author: ![bt90](https://forum.syncthing.net/user_avatar/forum.syncthing.net/bt90/32/18565_2.png) [@bt90](https://forum.syncthing.net/u/bt90)
#### Post date: [March 4, 2019, 11:52am UTC](https://forum.syncthing.net/t/too-many-open-files-v-1-0-1/12958/8 "2019-03-04T11:52:38Z")

</div>

I think we should log it as the issue seems to arise every now and then: [https://forum.syncthing.net/search?context=topic&context\_id=12958&q=too%20many%20open%20files&skip\_context=true](https://forum.syncthing.net/search?context=topic&context_id=12958&q=too%20many%20open%20files&skip_context=true)

---

<div class="post-metadata">

### Author: ![bt90](https://forum.syncthing.net/user_avatar/forum.syncthing.net/bt90/32/18565_2.png) [@bt90](https://forum.syncthing.net/u/bt90)
#### Post date: [March 6, 2019, 5:46am UTC](https://forum.syncthing.net/t/too-many-open-files-v-1-0-1/12958/11 "2019-03-06T05:46:47Z")

</div>

> [@Catfriend1](#):
>
> Android is simply never uniform …

I guess we can agree on that one 😄

---

<div class="post-metadata">

### Author: ![cromoduro](https://forum.syncthing.net/user_avatar/forum.syncthing.net/cromoduro/32/5975_2.png) [@cromoduro](https://forum.syncthing.net/u/cromoduro)
#### Post date: [March 23, 2019, 10:56pm UTC](https://forum.syncthing.net/t/too-many-open-files-v-1-0-1/12958/13 "2019-03-23T22:56:13Z")

</div>

And this problem (if you had it) disappeared?

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [April 23, 2019, 10:05am UTC](https://forum.syncthing.net/t/too-many-open-files-v-1-0-1/12958/15 "2019-04-23T10:05:08Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
