Symptoms
-
Some Plesk functions do not work, E.G:
-
Unable to manage IP addresses in Plesk > Tools & Settings > IP Addresses, tasks are always stuck.
-
The extensions updates in Plesk > Extensions > My extensions hang.
-
Migration is slow or stuck.
-
Attempt to install extensions via CLI fail:
# plesk bin extension -i extension_name
-
Manual domain reconfiguration via command below is stuck:
# /usr/local/psa/admin/bin/httpdmng –reconfigure-domain example.com
-
-
Newly created domains have no webserver configuration files (*.conf) in
/var/www/vhosts/system/example.com/conf/
and shows Web Server’s Default Page. -
Strace of the hung processes shows repetitive messages:
# ps -auxfww | grep httpdmng
…
root 15248 0.0 1.4 305228 30672 ? S Jun19 0:28 /usr/bin/sw-engine -c /opt/psa/admin/conf/php.ini /opt/psa/admin/sbin/httpdmng –reconfigure-batch /opt/psa/tmp/apbZYMh2G# strace -p 15248
…
open(“/run/lock/lmlib/container_locks/plesk.0/global/service/sysuser/web.lock”, O_RDWR) = 11
…
futex(0x7f9fe5c0322c, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 152997, {1529514190, 328613000}, ffffffff) = -1 ETIMEDOUT (Connection timed out) -
Lock files are always presented and never released:
# find /var/run/lock/lmlib/container_locks -name “*.lock”
/var/run/lock/lmlib/container_locks/plesk.0/global/service/ip.lock
/var/run/lock/lmlib/container_locks/plesk.0/global/service/sysuser/web.lock
/var/run/lock/lmlib/container_locks/plesk.0/global/service/sysuser.lock
/var/run/lock/lmlib/container_locks/plesk.0/global/service.lock
/var/run/lock/lmlib/container_locks/plesk.0/global.lock
/var/run/lock/lmlib/container_locks/plesk.0.lock
Cause
Product issue:
-
#PPPM-12447 "Creating a domain for a subscription while simultaneously changing PHP settings for an existing domain belonging to the same subscription no longer results in both processes hanging endlessly."
Fixed in:- Plesk Obsidian 08 December 2020 (Linux)
Resolution
Workaround
If update is not possible for some reason you may try the following
workaround
Until the bug is fixed, use the following steps to fix the issue:
Note: In order to prevent the issue to occur, it is better to wait some time between Plesk operations.
-
Connect to the server via SSH.
-
Stop the
sw-engine
service:# service sw-engine stop
-
Remove the lock files:
# rm -rf /var/lock/lmlib/container_locks
-
Start the
sw-engine
service:# service sw-engine start