SAP Knowledge Base Article - Preview

3805948 - Error: "Failed to create server shutdown socket on address [localhost] and port [8005] (base port [8005] and offset [0])" causes pods keep restarting

Symptom

Pods keep restarting.

Found logs like:

{
  "instant": {
    "epochSecond": 1789091615,
    "nanoOfSecond": 382780075
  },
  "thread": "Catalina-utility-1",
  "level": "INFO",
  "loggerName": "org.jgroups.protocols.FD_SOCK2",
  "message": "server listening on *:8005",
  "contextMap": {
    "Tenant": ""
  },
  "endOfBatch": false,
  "loggerFqcn": "org.apache.logging.log4j.spi.AbstractLogger",
  "threadId": 29,
  "threadPriority": 1,
  "origin": "PLATFORM"
}
-------------------------------------------------------------------

GMS: address=hybrisnode-7, cluster=prod-broadcast, physical address=10.245.15.27:7905

......

{
  "origin": "catalina",
  "timeMillis": 1789094117145,
  "thread": "main",
  "level": "INFO",
  "loggerName": "org.apache.catalina.startup.Catalina",
  "threadId": 1,
  "threadPriority": 5,
  "message": "Server startup in [149420] milliseconds",
  "contextMap": {
    "sourceClassName": "org.apache.catalina.startup.Catalina",
    "sourceMethodName": "start"
  }
}

{
  "origin": "catalina",
  "timeMillis": 1789094117146,
  "thread": "main",
  "level": "SEVERE",
  "loggerName": "org.apache.catalina.core.StandardServer",
  "threadId": 1,
  "threadPriority": 5,
  "message": "Failed to create server shutdown socket on address [localhost] and port [8005] (base port [8005] and offset [0])",
  "contextMap": {
    "sourceClassName": "org.apache.catalina.core.StandardServer",
    "sourceMethodName": "await"
  },
  "thrown": {
    "localizedMessage": "Address already in use",
    "message": "Address already in use",
    "name": "java.net.BindException",
    "extendedStackTrace": [
      {
        "class": "sun.nio.ch.Net",
        "method": "bind0",
        "file": "Net.java",
        "line": -2
      },
      {
        "class": "sun.nio.ch.Net",
        "method": "bind",
        "file": "Net.java",
        "line": 577
      },
      {
        "class": "sun.nio.ch.Net",
        "method": "bind",
        "file": "Net.java",
        "line": 566
      },
      {
        "class": "sun.nio.ch.NioSocketImpl",
        "method": "bind",
        "file": "NioSocketImpl.java",
        "line": 636
      },
      {
        "class": "java.net.ServerSocket",
        "method": "bind",
        "file": "ServerSocket.java",
        "line": 391
      },
      {
        "class": "java.net.ServerSocket",
        "method": "<init>",
        "file": "ServerSocket.java",
        "line": 278
      },
      {
        "class": "org.apache.catalina.core.StandardServer",
        "method": "await",
        "file": "StandardServer.java",
        "line": 531
      },
      {
        "class": "org.apache.catalina.startup.Catalina",
        "method": "await",
        "file": "Catalina.java",
        "line": 848
      },
      {
        "class": "org.apache.catalina.startup.Catalina",
        "method": "start",
        "file": "Catalina.java",
        "line": 796
      },
      {
        "class": "jdk.internal.reflect.DirectMethodHandleAccessor",
        "method": "invoke",
        "file": "DirectMethodHandleAccessor.java",
        "line": 103
      },
      {
        "class": "java.lang.reflect.Method",
        "method": "invoke",
        "file": "Method.java",
        "line": 580
      },
      {
        "class": "org.apache.catalina.startup.Bootstrap",
        "method": "start",
        "file": "Bootstrap.java",
        "line": 342
      },
      {
        "class": "org.apache.catalina.startup.Bootstrap",
        "method": "main",
        "file": "Bootstrap.java",
        "line": 473
      }
    ]
  }
}


Read more...

Environment

SAP Commerce Cloud

Product

SAP Commerce Cloud all versions

Keywords

pods restarting, port 8005, address already in use, BindException, Tomcat shutdown port, JGroups FD_SOCK2, cluster.broadcast.method.jgroups.tcp.bind_port, 7905, 7800, 7900, deployment failure, deployment stuck , KBA , CEC-SCC-CLA-DEP , Deployments , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.