- Plesk for Linux
Plesk is installed on OpenVZ container.
502 Bad Gatewayerror.
The following error can be found in
CONFIG_TEXT: [alert] 557#0: *18 socket() failed (12: Cannot allocate memory) while connecting to upstream, client: 203.0.113.2, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "192.0.2.2:8443"
While there is enough free RAM on the server:
# free -m
total used free shared buffers cached
Mem: 2048 571 1476 0 0 290
-/+ buffers/cache: 280 1767
Swap: 0 0 0
The maximum number of non-TCP sockets limit for the container was reached and fail counter grows with each attempt to access Plesk interface:
# cat /proc/user_beancounters
uid resource held maxheld barrier limit failcnt
numothersock 255 256 256 256 3224
The socket cannot be created due to the reached maximum number of non-TCP sockets limit for the container.
Note: the following actions must be performed by a hardware node administrator.
Connect to the hardware node via SSH.
numothersockvalue for the container. For example:
# grep -i numothersock /etc/vz/conf/4000.conf
4000is the ID of affected container.
Restart the container:
# vzctl restart 4000