On a small VPS runing CyberPanel and NextCloud the NextCloud pages were loading forever. When checking the cyberpanel error log the following error stood out:
No request delivery notification has been received from LSAPI application, possible dead lock.
After restarting the LiteSpeed service, NextCloud started loading but after a few minutes failed again with the same error. upon rechecking the error log again, I noticed that the LSWS service upon restart re-creates swap file and unlocks pid file [/tmp/lshttpd/lsphp.sock.pid]
but when going to the /tmp/lshttpd folder the last modified date wasn’t changed, indicating that for some reason (permissions) LiteSpeed failed to recreate them. For a quick fix, instead of changing the permissions, simply stop litespeed web service, rename the directory and restart litespeed. That way Litespeed recreates the entire lshttpd folder in /tmp.
service litespeed stop
mv /tmp/lshttpd/ /tmp/lshttpd1/
service litespeed start