Skip to main content

Issues With Memcached When Running With Socket

Comments

8 comments

  • cPanelMichael
    It seems like it starts up and runs ok, service memcached status is fine. But when trying to start Railgun I notice it fails because it cannot connect to Memcached.

    Hello :) Could you paste the specific failure message? Thank you.
    0
  • Dradden45
    Hi :) Yeah that would help :P
    Starting railgun (via systemctl): Job for railgun.service failed because a configured resource limit was exceeded. See "systemctl status railgun.service" and "journalctl -xe" for details.
    Railgun successfully backgrounded, ensuring proper startup... [FAILED] Error starting Railgun as a daemon. Running in foreground... su (to railgun) root on none Error starting: Error connecting to memcached server /tmp/memcached.sock: dial unix /tmp/memcached.sock: no such file or directory [FAILED] PID 572965 read from file /var/run/railgun/railgun.pid does not exist or is a zombie. Failed to start LSB: Railgun listener. Unit railgun.service entered failed state. railgun.service failed.
    root@s1 [~]# service memcached status Redirecting to /bin/systemctl status memcached.service ? memcached.service - Memcached Loaded: loaded (/usr/lib/systemd/system/memcached.service; disabled; vendor preset: disabled) Active: active (running) since Thu 2016-02-11 21:03:56 EST; 4min 21s ago Main PID: 572604 (memcached) CGroup: /system.slice/memcached.service ??572604 /usr/bin/memcached -u memcached -p -m 512 -c 1024
    There is no /tmp/memcached.sock memcached config
    #PORT="11211" USER="memcached" MAXCONN="1024" CACHESIZE="512" OPTIONS="" -s /tmp/memcached.sock -a 0777
    0
  • Dradden45
    I also have issues tracking down the pid file for memcached. It should be in /var/run or am I mistaken?
    0
  • cPanelMichael
    What method did you use to install Memcached? Thank you.
    0
  • Dradden45
    Hi Michael,
    yum install memcached.x86_64 php-pecl-memcache.x86_64
    Than I tried to add through Software > Module Installers > PHP Pecl It complained about:
    checking for libmemcached location... configure: error: memcached support requires libmemcached. Use --with-libmemcached-dir= to specify the prefix where libmemcached headers and library are located ERROR: `/root/tmp/pear/memcached/configure --with-php-config=/usr/local/bin/php-config --with-libmemcached-dir=no' failed The memcached.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20131226
    So I did:
    yum install cyrus-sasl-devel cd ~ wget http://launchpad.net/libmemcached/1.0/1.0.4/+download/libmemcached-1.0.4.tar.gz tar -zxvf libmemcached-1.0.4.tar.gz cd libmemcached-1.0.4 ./configure make && make install pecl install memcached
    That still didn't get it going I had to again rebuild through Software > Module Installers > PECL > Memcached After that everything for the most part worked fine as long as using port instead of socket. i did actually have it working on socket but than I resized /tmp and ever since than I get the behavior I posted about.
    0
  • cPanelMichael
    i did actually have it working on socket but than I resized /tmp and ever since than I get the behavior I posted about.

    Have you tried reverting your /tmp partition to it's original state? Also, what are the current permissions and mount options for your /tmp partition? Thank you.
    0
  • Dradden45
    Out of the blue working now, no idea why now it works nothing changed. Will have to see if it persists after the next reboot. Thanks for the help.
    0
  • cPanelMichael
    I am happy to see it's now working well. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.