Hello!
I’ve been working with solace for a while now, and i’ve allways ran it localy on docker.
I’ve switched to linux recently and a stange thing happened.
Yesterday I was running solace ok on my machine, with docker, but today, I can not make it work.
Nothing major has changed but solace just wont work on docker.
This is the docker-compose i use:
Hello @uherbst
That was the first thing i did and the logs did not change with the request.
There was only the boot logs.
I even put it on watch and made the login and nothing happened
Thanks
Fun fact, just reinstalled linux and the problem persists.
Which leads me to belive that is a problem with Docker it self (which is odd given mongo works just fine) or a problem with the image.
Hello @uherbst
So i did teh exec -it and it did not work, it gave me an error after 3 seconds
and stating solace the other way did nothing as far as i can tell
Hello, same issue of @PedromDimas here. @uherbst do you have the chance to have a look?
You can find my report below.
Command:
% docker run -d -p 8080:8080 -p 55554:55555 -p 8008:8008 -p 1883:1883 -p 8000:8000 -p 5672:5672 -p 9000:9000 -p 2222:2222 --shm-size=4g --env username_admin_globalaccesslevel=admin --env username_admin_password=admin --memory=“3g” --name=solace solace/solace-pubsub-standard
macOS 10.15.7 (Intel architecture)
Docker version 20.10.9, build c2ea9bc
To run Docker I (have to) use Rancher Desktop. It doesn’t give any particular problems though.
When the container is started the solace cli has not effect (see below)
% docker exec -it solace cli SolOS startup in progress, status: ‘Finishing pre-startup actions’ Please try again later… % docker exec -it solace cli %
When I try to log in using the web interface I get the timeout message
Timeout of 30000ms exceeded
and the container dies. After that I get the logs below:
% docker logs solace Host Boot ID: ffbd1abc-f121-4a1d-846f-eac3e7452658 Starting PubSub+ Software Event Broker Container: Tue May 24 10:18:40 UTC 2022 Setting umask to 077 SolOS Version: soltr_9.13.1.38 2022-05-24T10:18:41.434+00:00 <syslog.info> 0f7cda9acb01 rsyslogd: [origin software=“rsyslogd” swVersion=“8.2102.0-5.el8” x-pid=“115” x-info=" https://www.rsyslog.com"] start 2022-05-24T10:18:42.433+00:00 <local6.info> 0f7cda9acb01 appuser[113]: rsyslog startup 2022-05-24T10:18:43.457+00:00 <local0.info> 0f7cda9acb01 appuser: EXTERN_SCRIPT INFO: Log redirection enabled, beginning playback of startup log buffer 2022-05-24T10:18:43.470+00:00 <local0.info> 0f7cda9acb01 appuser: EXTERN_SCRIPT INFO: /usr/sw/var/soltr_9.13.1.38/db/dbBaseline does not exist, generating from confd template 2022-05-24T10:18:43.510+00:00 <local0.info> 0f7cda9acb01 appuser: EXTERN_SCRIPT INFO: repairDatabase.py: no database to process 2022-05-24T10:18:43.534+00:00 <local0.info> 0f7cda9acb01 appuser: EXTERN_SCRIPT INFO: Finished playback of log buffer 2022-05-24T10:18:43.555+00:00 <local0.info> 0f7cda9acb01 appuser: EXTERN_SCRIPT INFO: Updating dbBaseline with dynamic instance metadata 2022-05-24T10:18:43.861+00:00 <local0.info> 0f7cda9acb01 appuser: EXTERN_SCRIPT INFO: Generating SSH key ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 2022-05-24T10:18:44.257+00:00 <local0.info> 0f7cda9acb01 appuser: EXTERN_SCRIPT INFO: Starting solace process 2022-05-24T10:18:46.490+00:00 <local0.info> 0f7cda9acb01 appuser: EXTERN_SCRIPT INFO: Launching solacedaemon: /usr/sw/loads/soltr_9.13.1.38/bin/solacedaemon --vmr -z -f /var/lib/solace/config/SolaceStartup.txt -r -1 2022-05-24T10:18:50.584+00:00 <local0.info> 0f7cda9acb01 appuser[200]: unknownDir post:262 (EXTERN_SCRIP - 0x00000000) unknownThread WARN POST Violation [023]:Recommended system resource missing, System CPUs do not support invariant TSC (nonstop_tsc) File: / Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 3bh/59d Inode: 4328695 Links: 1 Access: (0755/drwxr-xr-x) Uid: ( 0/ appuser) Gid: ( 0/ root) Access: 2022-05-24 10:18:50.880007748 +0000 Modify: 2022-05-24 10:18:40.190007682 +0000 Change: 2022-05-24 10:18:43.460007702 +0000 Birth: 2022-05-24 10:18:40.190007682 +0000 2022-05-24T10:18:53.183+00:00 <local0.warning> 0f7cda9acb01 appuser[1]: /usr/sw main.cpp:752 (SOLDAEMON - 0x00000000) main(0)@solacedaemon WARN Determining platform type: [ OK ] 2022-05-24T10:18:53.221+00:00 <local0.warning> 0f7cda9acb01 appuser[1]: /usr/sw main.cpp:752 (SOLDAEMON - 0x00000000) main(0)@solacedaemon WARN Generating license file: [ OK ] 2022-05-24T10:18:53.409+00:00 <local0.warning> 0f7cda9acb01 appuser[1]: /usr/sw main.cpp:752 (SOLDAEMON - 0x00000000) main(0)@solacedaemon WARN Running pre-startup checks: [ OK ] 2022-05-24T10:18:53.459+00:00 <local0.warning> 0f7cda9acb01 appuser[271]: /usr/sw ipcCommon.cpp:447 (BASE_IPC - 0x00000000) main(0)@cli(?) WARN SolOS is not currently up - aborting attempt to start cli process Unable to raise event; rc(would block)
Obviously this is a show stopper because not being able to use PubSub+ in a containerized environment means no automatic tests.
Thank you
Daniele
Please identify the root volume for the solace container in your filesystem.
Inside that volume, please search for /usr/sw/jail/logs/event.log and debug.log.
If you like - post them here.
In the meantime, I tried your docker command at my Mac (12.3.1):
docker run -d -p 8080:8080 -p 55554:55555 -p 8008:8008 -p 1883:1883 -p 8000:8000 -p 5672:5672 -p 9000:9000 -p 2222:2222 --shm-size=4g --env username_admin_globalaccesslevel=admin --env username_admin_password=admin --memory=“3g” --name=solace solace/solace-pubsub-standard
=> works as expected. So it’s not your docker-run-command.
Hi,
thank you uherbst.
I wasn’t able to find any volume for this image inside macOS. Instead I could access those files using the shell of the solace container.
Please note that the container dies after about 3 minutes, so I had to read event.log and debug.log in 2 different runs.
I need to split the message in three because of a limitation in this forum.
% docker exec -it solace /bin/sh sh-4.4$ less /usr/sw/jail/logs/event.log
T13:17:56.496+00:00 <local3.notice> ac46edc01f72 event: SYSTEM: SYSTEM_AD_MSG_SPOOL_CHG: - - Message spool on Primary Virtual Router operational state change from AD-Unknown to AD-NotReady
T13:17:56.496+00:00 <local3.notice> ac46edc01f72 event: SYSTEM: SYSTEM_AD_MSG_SPOOL_CHG: - - Message spool on Primary Virtual Router operational state change from AD-NotReady to AD-Disabled
T13:17:56.497+00:00 <local3.notice> ac46edc01f72 event: SYSTEM: SYSTEM_AD_MSG_SPOOL_CHG: - - Message spool on Backup Virtual Router operational state change from AD-Unknown to AD-NotReady
T13:17:56.497+00:00 <local3.notice> ac46edc01f72 event: SYSTEM: SYSTEM_AD_MSG_SPOOL_CHG: - - Message spool on Backup Virtual Router operational state change from AD-NotReady to AD-Disabled
T13:17:56.497+00:00 <local3.warning> ac46edc01f72 event: SYSTEM: SYSTEM_LINK_ADB_LINK_DOWN: - - ADB Mate link 1/3/1 changed from Unknown to LOS due to N/A
T13:17:56.497+00:00 <local3.info> ac46edc01f72 event: SYSTEM: SYSTEM_LINK_ADB_LINK_UP: - - ADB Mate link 1/3/2 changed from Unknown to Ok
T13:17:56.497+00:00 <local3.err> ac46edc01f72 event: SYSTEM: SYSTEM_LINK_ADB_HELLO_PROTOCOL_DOWN: - - ADB Mate link hello protocol is down due to mate-link down
T13:17:59.247+00:00 <local3.info> ac46edc01f72 event: SYSTEM: SYSTEM_SERVICE_LISTEN_PORT_ENABLE: - - Service SEMP Listen Port 8080 enabled
T13:17:59.248+00:00 <local3.info> ac46edc01f72 event: SYSTEM: SYSTEM_SERVICE_LISTEN_PORT_ENABLE: - - Service SEMP SSL Listen Port 1943 enabled
T13:17:59.250+00:00 <local3.info> ac46edc01f72 event: SYSTEM: SYSTEM_SERVICE_LISTEN_PORT_ENABLE: - - Service SMF Listen Port 55555 enabled
T13:17:59.250+00:00 <local3.info> ac46edc01f72 event: SYSTEM: SYSTEM_SERVICE_LISTEN_PORT_ENABLE: - - Service SMFC Listen Port 55003 enabled
T13:17:59.250+00:00 <local3.info> ac46edc01f72 event: SYSTEM: SYSTEM_SERVICE_LISTEN_PORT_ENABLE: - - Service SMF Listen Port 55556 enabled
T13:17:59.251+00:00 <local3.info> ac46edc01f72 event: SYSTEM: SYSTEM_SERVICE_LISTEN_PORT_ENABLE: - - Service SMF-SSL Listen Port 55443 enabled
T13:17:59.251+00:00 <local3.info> ac46edc01f72 event: SYSTEM: SYSTEM_SERVICE_LISTEN_PORT_ENABLE: - - Service Matelink Listen Port 8741 enabled
T13:17:59.252+00:00 <local3.info> ac46edc01f72 event: SYSTEM: SYSTEM_SERVICE_LISTEN_PORT_ENABLE: - - Service HealthCheck Listen Port 5550 enabled
T13:17:59.254+00:00 <local3.info> ac46edc01f72 event: SYSTEM: SYSTEM_SERVICE_LISTEN_PORT_ENABLE: - - Service Web Transport Listen Port 8008 enabled
T13:17:59.254+00:00 <local3.info> ac46edc01f72 event: SYSTEM: SYSTEM_SERVICE_LISTEN_PORT_ENABLE: - - Service Web Transport SSL Listen Port 1443 enabled
T13:17:59.368+00:00 <local3.notice> ac46edc01f72 event: SYSTEM: SYSTEM_AD_MSG_SPOOL_CHG: - - Message spool on Primary Virtual Router operational state change from AD-Disabled to AD-Standby
T13:17:59.590+00:00 <local3.warning> ac46edc01f72 event: SYSTEM: SYSTEM_CFGSYNC_DOWN: - - The Config-Sync feature is operationally down.
1/3