Fix
sudo vi /etc/systemd/system.conf
sudo vi /etc/systemd/user.confLook for the DefaultLimitNOFILE and remove the #.
Increase the limit to DefaultLimitNOFILE=65536:524288
Also in the /etc/security/limits.conf, at the bottom of the file add:
* hard nofile 500000
* soft nofile 65536
root hard nofile 500000
root soft nofile 65536Then you have to relogin
Checking the current limit
ulimit -n