This usually means you need to adjsut the kernel parameters. Please see the install guide for instructions.
Here are my notes on this error.
Resources
Resource temporarily unavailable is a minor error that happens when there is too many processes that are currently running to start a new one. The limit is set in the /etc/security/limits.d/90-nproc.conf file. Changing this may cause you system to experience a higher load as it is able to perform more processes.
Restart running processes after these changes are made.
To see the current system parameters:
cat /proc/sys/kernel/shmmax
cat /proc/sys/kernel/sem
cat /proc/sys/fs/file-max
Double the kernel parameters:
sudo echo “kernel.shmmax=68719476736” >> /etc/sysctl.conf
sudo echo “kernel.sem=500 64000 128 1024” >> /etc/sysctl.conf
sudo echo “fs.file-max=386529” >> /etc/sysctl.conf
sudo sysctl -p
To see current limits: ulimit -a
Update the limits:
sudo vim /etc/security/limits.d/90-nproc.conf
# Doubled the limits to 2048
# This file controls the default soft values for users
sudo vim /etc/audit/audit.rules
# Found line that has -b 320
# Doubled it to read -b 640
sudo vim /etc/security/limits.conf
# Increase hard limits for hci
hci hard nofile 32768
hci hard nproc 32768
The soft limits can be be modified by the the user. They can not exceed the hard limits.
# .profile.local.end
# Increase hard limits for hci
ulimit -d unlimited
ulimit -s 4194304
ulimit -f unlimited
ulimit -m unlimited
ulimit -n 32768
ulimit -t unlimited
ulimit -u 32768
ulimit -c 0