Fail to run solace in docker

aleeeeexxxx
aleeeeexxxx Member Posts: 2 New User

"runParameters":

-d -p 8080:8080 -p 5550:5550  -p 5672:5672 -e username_admin_globalaccesslevel=admin -e username_admin_password=admin -e system_scaling_maxconnectioncount=100 --shm-size=1g --entrypoint /usr/sbin/boot.sh

I curl following api for health check, and got 503

http://127.0.0.1:5550/health-check/guaranteed-active

It works good before but break today.

I did no change.

Logs attached.


Tagged:

Answers

  • aleeeeexxxx
    aleeeeexxxx Member Posts: 2 New User

    Got this log:

    2024-09-27T06:46:46.501+00:00 <local0.warning> 3787660b5581 appuser[329]: /usr/sw                        watchdog.cpp:1419                     (WATCHDOG     - 0x00000000) Watchdog(3)@watchdog(15)                      WARN     Did not get poll response from MplThread(3)@mgmtplane(9), sequence number = 3, attempt = 1
    

  • Aaron
    Aaron Member, Administrator, Moderator, Employee Posts: 594 admin

    Hi @aleeeeexxxx, welcome to the forum! I'm guessing this is a "not enough memory" issue. Here's my Docker run command, try this and see if it's better. (note: if you are on Mac OSX, you need to expose port 55554 instead of Solace's default 55555 since Apple uses that now)

    #!/bin/bash
    docker create \
    --hostname=solace1081 \
    --shm-size=2g \
    --ulimit core=-1 \
    --ulimit memlock=-1 \
    --ulimit nofile=2448:38048 \
    --cap-add=IPC_LOCK \
    --cap-add=SYS_NICE \
    -p 8080:8080 \
    -p 2222:2222 \
    -p 55555:55555 \
    -p 55003:55003 \
    -p 8008:8008 \
    -p 1883-1885:1883-1885 \
    -p 8000-8002:8000-8002 \
    -p 5672-5674:5672-5674 \
    -p 9000-9002:9000-9002 \
    -p 5550:5550 \
    --env 'username_admin_globalaccesslevel=admin' \
    --env 'username_admin_password=admin' \
    --restart unless-stopped \
    --name=solace1081 solace/solace-pubsub-standard:latest