Report this

What is the reason for this report?

Openlitespeed 503 - lsphp states: no space left on device but there is enough free space available on the server

Posted on June 7, 2020
m86

By m86

I set up a server following the tutorial on: https://docs.litespeedtech.com/cloud/images/wordpress

I regularly get a 503 error; when I check the logs I see the following:

ERROR   [lsphp]: Failed to listen socket [/tmp/lshttpd/lsphp.sock]: No space left on device
WARN    [uds://tmp/lshttpd/lsphp.sock] Can not start this external application.

However, there is plenty of space left when I check:

Filesystem      Size  Used Avail Use% Mounted on
udev            2.0G     0  2.0G   0% /dev
tmpfs           395M  628K  394M   1% /run
/dev/vda1        78G  6.7G   71G   9% /
tmpfs           2.0G  1.2M  2.0G   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/vda15      105M  3.6M  101M   4% /boot/efi
/dev/loop0      1.5G   25M  1.3G   2% /tmp
tmpfs           395M     0  395M   0% /run/user/0

Also, the image should have set the following limits:

Max SSL Connections	5000	10000
lsphp Max Connections	35	100
PHP_LSAPI_CHILDREN	35	100

However my limit are this:

max ssl connections 1000 (not even the 5000 as it should been standard?)
lsphp Max Connections 35
PHP_LSAPI_CHILDREN=35

How come the image didn’t set those and can I just change them via the webadmin console?

Thanks.

Regards,



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

Hey. Could not solve the problem? I have exactly the same problem, the server often crashes …

After a reboot, after a couple of days of work, the server again crashes and the error logs:

[ERROR] [abudhab.655340]: Failed to listen socket [/tmp/lshttpd/abudhab.sock]: No space left on device
[WARN] [UDS://tmp/lshttpd/abudhab.sock] Can not start this external application.

df -i and sudo ipcs -a have similar values, inodes use 1% and ipcs is empty…

I was able to “fix” this, by upping the numbers manually in openlitespeed:

Max SSL Connections 10000 lsphp Max Connections 100 PHP_LSAPI_CHILDREN 100

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.