Threat Report: Exposing Malware in Linux-Based Multi-Cloud Environments | Download Now

Redis won't start due to port in use

Redis won't start due to port in use

Version

Cb Response 5.x

Issue

Redis won't start and has this error message in /var/log/cb/redis/redis.log or /var/log/cb/redis/startup.log

Opening port 6379: bind: Address already in use

Cause

Another application or another instance of Redis is already using the port.

Solution

  1. Stop services

    service cb-enterprise stop (if it’s a cluster, use “/usr/share/cb/cbcluster stop”)

  2. See what is holding the port
    netstat -nlp |grep 6379
    Note: If the port is owned by cb and you just upgraded, follow this guide: Upgrading to 5.2 with a Custom Datastore Directory 
    1. Otherwise kill the process to allow the cb-redis service to start
      kill -9 <PID>
    2. Kill all cb owned processes
      killall -KILL -u cb
    3. Start services
      service cb-enterprise start (if it’s a cluster, use “/usr/share/cb/cbcluster start”)

    Labels (1)
    Was this article helpful? Yes No
    No ratings
    Article Information
    Author:
    Creation Date:
    ‎10-07-2016
    Views:
    895
    Contributors