I have a recurring problem that the cells installation either fails during the final step or if it succeds, cells won’t start properly. Some services will start, but many won’t, failing with the message runtime/cgo: pthread_create failed: Resource temporarily unavailable
. Sometimes this will result in the start command to fully crash, sometimes only some services crash. If I get a running instance and login, I get an Internal Server Error
-Popup at the bottom and can’t do anything useful beside looking at the server settings.
All I found regarding this error that it has to do with process / thread limitations, which I don’t see on my system. Here are the (I think) important stats:
I’m trying to run cells as a dedicated user “pydio” on a Linux V-Server running Ubuntu 18.04 LTS and Plesk Onyx as a managing frontend.
$ uname -a
Linux <redacted> 4.15.0 #1 SMP Thu Apr 11 18:11:44 MSK 2019 x86_64 x86_64 x86_64 GNU/Linux
$ ./cells version
Warning: no private IP detected for binding broker. Will bind to <redacted>, which may give public access to the broker.
Pydio Cells Home Edition (1.5.2)
Published on 07 May 19 15:06 +0000
Revision number 4ae5255e1b28b01d9dea14ec1b386069194aa547
$ cat /proc/sys/kernel/pid_max
32768
$ cat /proc/sys/kernel/threads-max
3092863
$ ulimit -Sa
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 1546431
max locked memory (kbytes, -l) 16384
max memory size (kbytes, -m) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 62987
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
$ ulimit -Ha
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 1546431
max locked memory (kbytes, -l) 16384
max memory size (kbytes, -m) unlimited
open files (-n) 1048576
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 62987
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
$ mysqld --version
mysqld Ver 10.3.11-MariaDB-1:10.3.11+maria~bionic for debian-linux-gnu on x86_64 (mariadb.org binary distribution)
Memory usage is at about 800MiB/8GiB, no swap available and only ~60 processes running when starting cells. Here are two example outputs [1] [2] that I encounter.
Any help or clue on how to gather more information or solve this issue is greatly welcome.