Welcome to Centmin Mod Community
Become a Member

500 error after updates

Discussion in 'System Administration' started by Meirami, May 6, 2019.

  1. Meirami

    Meirami Member

    130
    17
    18
    Dec 21, 2017
    Ratings:
    +44
    Local Time:
    7:39 PM
    I did update nginx, php, centmin etc.
    PHP were updated over few versions, nginx propably one version and centmin were updated since few weeks ago. Yum updates were also done.
    Now my Nextcloud 14 is http 500 error. I can't resolve the problem. I did check configs, googled a lot, but I can't make it working. I have Redis socket and Mariadb on same server like everything else.
    Centmin is now latest beta. Centos 7.

    Here's error.log. Can someone point to the right direction?

    Code:
    [error] 29180#29180: *55 FastCGI sent in stderr: "PHP message: PHP Warning:  Redis::connect(): connect() failed: No such file or directory in /home/nginx/domains/domain.name/public/lib/private/RedisFactory.php on line 84
    PHP message: PHP Fatal error:  Uncaught RedisException: Redis server went away in /home/nginx/domains/domain.name/public/lib/private/Memcache/Redis.php:54
    Stack trace:
    #0 /home/nginx/domains/domain.name/public/lib/private/Memcache/Redis.php(54): Redis->get('c21ef1cb459af52...')
    #1 /home/nginx/domains/domain.name/public/lib/autoloader.php(150): OC\Memcache\Redis->get('OC_User')
    #2 [internal function]: OC\Autoloader->load('OC_User')
    #3 /home/nginx/domains/domain.name/public/lib/private/Log/File.php(102): spl_autoload_call('OC_User')
    #4 /home/nginx/domains/domain.name/public/lib/private/Log.php(325): OC\Log\File->write('PHP', 'RedisException:...', 3)
    #5 /home/nginx/domains/domain.name/public/lib/private/Log.php(218): OC\Log->writeLog('PHP', 'RedisException:...', 3)
    #6 /home/nginx/domains/domain.name/public/lib/private/Log.php(130): OC\Log->log(3, 'RedisException:...', Array)
    #7 /home/nginx/domains/domain.name/public/lib/private/Log/ErrorHandler.php(81): OC\Log->critical('RedisException:...', Array)
    #8 [internal function]: O...
    PHP message: PHP Fatal error:  Uncaught RedisException: Redis server went away in /home/nginx/domains/domain.name/public/lib/private/Memcache/Redis.php:54
    Stack trace:
    #0 /home/nginx/domains/domain.name/public/lib/private/Memcache/Redis.php(54): Redis->get('c21ef1cb459af52...')
    #1 /home/nginx/domains/domain.name/public/lib/autoloader.php(150): OC\Memcache\Redis->get('OC_User')
    #2 [internal function]: OC\Autoloader->load('OC_User')
    #3 /home/nginx/domains/domain.name/public/lib/private/Log/File.php(102): spl_autoload_call('OC_User')
    #4 /home/nginx/domains/domain.name/public/lib/private/Log.php(325): OC\Log\File->write('PHP', 'Uncaught RedisE...', 3)
    #5 /home/nginx/domains/domain.name/public/lib/private/Log.php(218): OC\Log->writeLog('PHP', 'Uncaught RedisE...', 3)
    #6 /home/nginx/domains/
    
    

     
  2. eva2000

    eva2000 Administrator Staff Member

    41,274
    9,260
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,207
    Local Time:
    2:39 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    is redis server running ?
     
    • Like Like x 1
  3. Meirami

    Meirami Member

    130
    17
    18
    Dec 21, 2017
    Ratings:
    +44
    Local Time:
    7:39 PM
    'redis-cli -s /tmp/redis.sock ping' says PONG
    'redis-cli -s /tmp/redis.sock monitor' says OK
    'systemctl status redis' says active (running)

    Thanks for checking. I bet it's something very easy. I just can't see it.
     
  4. Meirami

    Meirami Member

    130
    17
    18
    Dec 21, 2017
    Ratings:
    +44
    Local Time:
    7:39 PM
    After some searching I found similar problem. Solution was to move redis.sock from /tmp to /var/run/redis/. Tryed the same and it worked.
     
    • Informative Informative x 1
  5. eva2000

    eva2000 Administrator Staff Member

    41,274
    9,260
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,207
    Local Time:
    2:39 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    i see so you were running redis as a unix socket instead of TCP
     
  6. Meirami

    Meirami Member

    130
    17
    18
    Dec 21, 2017
    Ratings:
    +44
    Local Time:
    7:39 PM
    That's right.
    Looks like there's no socket type mentioned... Sorry for typo.