Hi,
I am trying to test the erlang/rabbitmq upgrade as we are going to do it in production. I am testing this on my local windows 10 machine, locally I have ERLANG OTP 17 (6.3) and RabbitMQ Server 3.4.3 installed. It was working for last 5 years. Today, I have upgraded both to the latest versions.
ERLANG OTP 22 (10.5)
RabbitMQ Server 3.8.3
- I uninstalled the older version of ERLANG before installing the new one (new install prompted me to remove the old one).
- I installed new RabbitMQ Server, the install prompted me saying it found the older version and will upgrade. I accepted it.
The upgrade went well, I updated the environment variables to point to the right paths for the newer versions.
Also ran the following
- Run SET HOMEDRIVE=C:
- Run the following command to enable the plugin rabbitmq-plugins.bat enable rabbitmq_management
- rabbitmq-service.bat stop
- rabbitmq-service.bat install
- rabbitmq-service.bat start
But, the RabbitMQ windows service starts and then stops automatically. I checked the logs and see the following errors:
2020-05-07 18:04:11.132 [info] <0.9.0> Feature flags: list of feature flags found:
2020-05-07 18:04:11.132 [info] <0.9.0> Feature flags: [ ] drop_unroutable_metric
2020-05-07 18:04:11.132 [info] <0.9.0> Feature flags: [ ] empty_basic_get_metric
2020-05-07 18:04:11.132 [info] <0.9.0> Feature flags: [ ] implicit_default_bindings
2020-05-07 18:04:11.132 [info] <0.9.0> Feature flags: [ ] quorum_queue
2020-05-07 18:04:11.132 [info] <0.9.0> Feature flags: [ ] virtual_host_metadata
2020-05-07 18:04:11.132 [info] <0.9.0> Feature flags: feature flag states written to disk: yes
2020-05-07 18:04:11.221 [error] <0.9.0> Found lock file at c:/Program Files (x86)/RabbitMQ Server/db/rabbit@MyLocal-mnesia/schema_upgrade_lock.
Either previous upgrade is in progress or has failed.
Database backup path: c:/Program Files (x86)/RabbitMQ Server/db/rabbit@MyLocal-mnesia-upgrade-backup
2020-05-07 18:04:11.221 [error] <0.9.0>
Error description:
init:do_boot/3 line 817
init:start_em/1 line 1109
rabbit:start_it/1 line 484
rabbit:'-boot/0-fun-0-'/0 line 333
rabbit_upgrade:maybe_upgrade_mnesia/0 line 142
rabbit_upgrade:ensure_backup_taken/0 line 98
throw:{error,previous_upgrade_failed}
I replace the content of "C:\Program Files (x86)\RabbitMQ Server\db\rabbit@MYMAC-LT-mnesia" with the content of previous (working) version, still it won't work. I am trying to see if my messages that are sitting in the queues can be moved to the upgraded rabbitMQ or not.
What is wrong, please help. This has to go in production this weekend.