Parallels Plesk shows a '502 Bad Gateway' error as the
psa service is not started.
When attempting to start the service manually, the following error appears:
[root@vzcontainer ~]# service psa start Starting psa... Starting sw-engine-fpm: Fri Jul 18 22:57:06 2014 (8118): Fatal Error Unable to allocate shared memory segment of 104857600 bytes: mmap: Cannot allocate memory (12) [FAILED] failed Starting xinetd service... done Starting sw-cp-server service... done Starting mysqld service... done Starting named service... done Starting postgresql service... not installed Starting spamassassin service... not installed Plesk: Starting Mail Server... already started Starting psa... Starting sw-engine-fpm: Fri Jul 18 22:57:08 2014 (8223): Fatal Error Unable to allocate shared memory segment of 104857600 bytes: mmap: Cannot allocate memory (12) [FAILED] failed
Plesk is installed inside a Virtuozzo container. The container is experiencing a lack of some UBC resources. For example, 'shmpages':
[root@vzcontainer ~]# cat /proc/user_beancounters
uid resource held maxheld barrier limit failcnt
shmpages 17604 17604 20480 20480 18
From the above output, we can see that there were 18 attempts to overuse. There are several memory-related UBC limits that can also cause this issue. Please refer to this article for more information.
If you have access to the Hardware Node, use the resolution below. If not, contact your hosting provider.
You will need to increase the amount of the corresponding UBC limit for the container (while logged into the Virtuozzo node) to at least 40960:
[root@vznode ~]# vzctl set 10001 --shmpages 40960 --save
If you do not have access to the Hardware Node, contact your provider to increase the limit for you.
Alternatively, you can decrease PHP memory consumption in
'/usr/local/psa/admin/conf/php.ini', having changed the parameter(create if does not exist) 'opcache.memory_consumption' from 100 to 64: