Morpheus-ctl reconfigure waits for very long time at 'ruby_block[wait for mysql service socket] action run

I’m trying to install morpheus 7.0.3-2 on RHEL 9 VM. RHEL is registered and actiavted. Downloaded rpm file from https://downloads.morpheusdata.com/files/morpheus-appliance-7.0.3-2.el8.x86_64.rpm. Then install using rpm command and did morpheus-ctl reconfigure. Till ‘link[/opt/morpheus/service/mysql] action create’, it is up to date and completed successfully. But it stops at ‘ruby_block[wait for mysql service socket] action run’ and doesn’t proceed after that.

Try opening a second ssh connection to the box and run morpheus-ctl start mysql while your first session is stopped at that line. You may need to confirm your disk space as well.

To add to what @cbunge mentioned, with that second SSH session, you can also monitor the logs of MySQL to see if there are any errors while the service starts. For example:

morpheus-ctl tail mysql
or
tail -f /var/log/morpheus/mysql/current

If you need further assistance, I’d recommend opening a support case to help troubleshoot.

I tried that. Running morpheus-ctl start mysql when first session is stopped at that line gives: ‘warning: mysql: unable to open supervise/ok: file does not exist’.

Disk Space:
Filesystem Size Used Avail Use% Mounted on
devtmpfs 4.0M 0 4.0M 0% /dev
tmpfs 3.8G 0 3.8G 0% /dev/shm
tmpfs 1.6G 9.3M 1.5G 1% /run
/dev/mapper/rhel-root 91G 11G 80G 13% /
/dev/vda1 960M 412M 549M 43% /boot
tmpfs 769M 96K 769M 1% /run/user/0

morpheus-ctl tail mysql gives:
2024-07-30T11:22:44.100748Z 0 [System] [MY-013169] [Server] /opt/morpheus/embedded/mysql/bin/mysqld (mysqld 8.0.35) initializing of server in progress as process 7829
2024-07-30T11:22:44.108685Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2024-07-30T11:22:44.496473Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2024-07-30T11:22:45.658095Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.

tail -f /var/log/morpheus/mysql/current - file doesn’t exist

Updating to the next version while the first version is installed helped fix this issue.

I had ran into same issue with version 8.0.3. Therefore uninstalled it and installed the latest version i,e 8.0.4
But still facing same issue. :pensive_face:

Here its stuck

While in this state, when we start services

root@xxxxx:~:
>morpheus-ctl start
warning: mysql: unable to open supervise/ok: file does not exist
root@xxxxx:~:

Do you suggest to upgrade the morpheus from 8.0.3 to 8.04 rather than uninstall and install?

Tried the other way around: Update the morpheus to 8.0.4 from 8.0.3

root@xxxxx:morpheus:
>rpm -Uvh morpheus-appliance-8.0.4-2.el8.x86_64.rpm 
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]

Updating / installing...
   1:morpheus-appliance-8.0.4-2.el8   ################################# [ 50%]

Thank you for installing Morpheus!
Configure and start the Morpheus admin web UI by running the following command:

sudo morpheus-ctl reconfigure

Morpheus should be reachable at https://xxxx.sda.mindsparks.io
Otherwise configure Morpheus for your system by editing /etc/morpheus/morpheus.rb file
and running reconfigure again.

WARNING! ROLLING UPGRADES FOR HA ENVIRONMENTS ONLY SUPPORTED WHEN UPGRADING FROM v7.0.3+ or v6.2.11
Performing a rolling upgrade on other versions will result in RabbitMQ deserialization errors.
Stop the morpheus-ui service on all app nodes prior to upgrading any other versions.

Cleaning up / removing...
   2:morpheus-appliance-8.0.3-2.el8   ################################# [100%]
root@xxxx:morpheus:
>

No luck though, still waits at

ruby_block[wait for mysql service socket] action run

While start of services:

>morpheus-ctl start
warning: mysql: unable to open supervise/ok: file does not exist

Any suggestions please.