Report this

What is the reason for this report?

Can't get memcached daemon to work post update of litespeed server.

Posted on May 16, 2020
service memcached status
● memcached.service - memcached daemon
   Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Sat 2020-05-16 23:46:47 UTC; 3s ago
     Docs: man:memcached(1)
  Process: 905 ExecStart=/usr/share/memcached/scripts/systemd-memcached-wrapper /etc/memcached.conf (code=exited, status=0/SUCCESS)
 Main PID: 905 (code=exited, status=0/SUCCESS)

May 16 23:42:00 openlitespeed-wordpress-ubuntu systemd[1]: Started memcached daemon.
May 16 23:42:00 openlitespeed-wordpress-ubuntu systemd-memcached-wrapper[905]: Could not open the pid file /var/run/memcached/memcached.pid.tmp for writing: Permission denied
May 16 23:46:47 openlitespeed-wordpress-ubuntu systemd-memcached-wrapper[905]: Signal handled: Terminated.
May 16 23:46:47 openlitespeed-wordpress-ubuntu systemd[1]: Stopping memcached daemon...
May 16 23:46:47 openlitespeed-wordpress-ubuntu systemd[1]: Stopped memcached daemon.
root@openlitespeed-wordpress-ubuntu:~# service memcached start
root@openlitespeed-wordpress-ubuntu:~# service memcached status
● memcached.service - memcached daemon
   Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2020-05-16 23:47:00 UTC; 3s ago
     Docs: man:memcached(1)
 Main PID: 1854 (memcached)
    Tasks: 10 (limit: 1151)
   CGroup: /system.slice/memcached.service
           └─1854 /usr/bin/memcached -m 64 -p 11211 -u www-data -l 127.0.0.1 -P /var/run/memcached/memcached.pid -s /var/www/memcached.sock -a 0770 -p /tmp/memcached.pid

May 16 23:47:00 openlitespeed-wordpress-ubuntu systemd[1]: Started memcached daemon.
May 16 23:47:00 openlitespeed-wordpress-ubuntu systemd-memcached-wrapper[1854]: Could not open the pid file /var/run/memcached/memcached.pid.tmp for writing: Permission denied

Any idea how to fix it?



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.

It’s just an idea, if you remove the pid, will it work?

mv /var/run/memcached/memcached.pid.tmp /tmp
service memcached restart

Best, Eric

what if you do

nc -U /path/to/memcached.sock stats

and/or

telnet 127.0.0.1 11211 stats

what do they respond ?

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.