microstack.init stops at Waiting for RabbitMQ

Bug #1875755 reported by Csaba Magyar
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
MicroStack
Invalid
Undecided
Unassigned

Bug Description

microstack.init stops at "Waiting for RabbitMQ to start" on Ubuntu 20.04 LTS

~$ sudo snap list
microstack stein 196 latest/beta canonical✓ classic

~$ sudo microstack.init --auto
2020-04-28 20:43:29,286 - microstack_init - INFO - Configuring networking ...
2020-04-28 20:43:30,056 - microstack_init - INFO - Setting up ipv4 forwarding...
2020-04-28 20:43:31,207 - microstack_init - INFO - Opening horizon dashboard up to *
2020-04-28 20:43:31,819 - microstack_init - INFO - Waiting for RabbitMQ to start ...
Waiting for 10.20.20.1:5672

~$ sudo lsof -n -i4TCP:5672 | grep LISTEN
~$ sudo lsof -n -i6TCP:5672 | grep LISTEN
beam.smp 31288 root 53u IPv6 523056 0t0 TCP *:amqp (LISTEN)

~$ sudo ss --tcp -f inet --listening --numeric --processes | grep -e :1883 -e :5671 -e :5672 -e :15671 -e :15672 -e :25672
LISTEN 0 128 0.0.0.0:25672 0.0.0.0:* users:(("beam.smp",pid=35717,fd=44))

~$ sudo ss --tcp -f inet6 --listening --numeric --processes | grep -e :1883 -e :5671 -e :5672 -e :15671 -e :15672 -e :25672
LISTEN 0 128 *:5672 *:* users:(("beam.smp",pid=35717,fd=53))

~$ systemctl status snap.microstack.rabbitmq-server
● snap.microstack.rabbitmq-server.service - Service for snap application microstack.rabbitmq-server
     Loaded: loaded (/etc/systemd/system/snap.microstack.rabbitmq-server.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2020-04-28 21:54:10 CEST; 1min 10s ago
   Main PID: 31127 (rabbitmq-server)
      Tasks: 108 (limit: 19016)
     Memory: 73.3M
     CGroup: /system.slice/snap.microstack.rabbitmq-server.service
             ├─31127 /bin/sh /snap/microstack/196/usr/sbin/rabbitmq-server
             ├─31148 /bin/sh /snap/microstack/196/usr/lib/rabbitmq/bin/rabbitmq-server
             ├─31234 /snap/microstack/196/usr/lib/erlang/erts-9.2/bin/epmd -daemon
             ├─31288 /snap/microstack/196/usr/lib/erlang/erts-9.2/bin/beam.smp -W w -A 64 -P 1048576 -t 5000000 -stbt db -zdbbl 32000 -K true -B i -- -root /snap/microstack/196/usr/lib/erlang -progname erl -- -home /var/snap/microstack/common/lib/rabbitmq -- -pa /snap/microstack/196/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.10/ebin -noshell -noinput -s rabbit boot -sname rabbit@hostmane -boot start_sasl -config /var/snap/microstack/common/etc/rabbitmq/rabbitmq -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit error_logger {file,"/<email address hidden>"} -rabbit sasl_error_logger {file,"/<email address hidden>"} -rabbit enabled_plugins_file "/var/snap/microstack/common/etc/rabbitmq/enabled_plugins" -rabbit plugins_dir "/snap/microstack/196/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.10/plugins" -rabbit plugins_expand_dir "/var/snap/microstack/common/lib/rabbitmq/mnesia/rabbit@hostmane-plugins-expand" -os_mon start_cpu_sup false -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/var/snap/microstack/common/lib/rabbitmq/mnesia/rabbit@hostmane" -kernel inet_dist_listen_min 25672 -kernel inet_dist_listen_max 25672
             ├─31362 erl_child_setup 1024
             ├─31404 inet_gethost 4
             └─31405 inet_gethost 4

systemd[1]: Started Service for snap application microstack.rabbitmq-server.

Changed in microstack:
status: New → Confirmed
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Hi Magyar or anyone else who may be affected by this issue,

Is anyone still hitting this? I wonder if it has since been fixed.

I've just recently installed and initialized microstack on 20.04 successfully based on the steps at [1]:

sudo snap install microstack --devmode --beta
sudo microstack init --auto --control

[1]
https://ubuntu.com/tutorials/microstack-get-started#2-install-microstack
https://ubuntu.com/tutorials/microstack-get-started#3-initialise-microstack

Since I'm unable to recreate this I'm going to close it as invalid, but please move it back to New Status and add a comment to the bug if you are still hitting it. Any additional details would be greatly appreciated as well to help us recreate.

Thanks,
Corey

Changed in microstack:
status: Confirmed → Invalid
Revision history for this message
Csaba Magyar (csaba-magyar78) wrote :

Hi Corey,

I don't face this issue with current version, but if you want to reproduce the issue please install the below version.
rocky/edge: rocky 2019-12-06 (195) 398MB classic

sudo snap install microstack --channel rocky/edge --classic
sudo microstack.init --auto

I think the problem is that rabbitMQ listen on ipv4 port 25672 and microstack is waiting for port 5672.

BR,

Csaba

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.