IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

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:
    988
    Contributors