spring-projects-experimental / spring-boot-migrator

Spring Boot Migrator (SBM) is a tool for automated code migrations to upgrade or migrate to Spring Boot
Apache License 2.0
451 stars 89 forks source link

Rabbitmq container start failed in mule migration demo #1053

Open addozhang opened 5 days ago

addozhang commented 5 days ago

Describe the bug A clear and concise description of what the bug is.

When try with the mule migration demo, the rabbitmq container starts failed with error below. It seems lack of virtual host config in definitions.json.

SBM Version Provide the version or commit hash that was used.

0.15.1

SBM Application Provide the application that was used. (shell, boot-upgrade, ...)

shell

To Reproduce Steps to reproduce the behavior:

  1. Go to demos/demo-migrate-mule-to-boot
  2. Run run-demo.sh

Expected behavior A clear and concise description of what you expected to happen.

http://localhost:15672/#/queues/%2F/sales_queue should be reachable.

Screenshots If applicable, add screenshots to help explain your problem.

rabbitmq  | BOOT FAILED
rabbitmq  | ===========
rabbitmq  | Exception during startup:
rabbitmq  |
rabbitmq  | exit:{error,<<"Please create virtual host \"/\" prior to importing definitions.">>}
rabbitmq  |
rabbitmq  |     rabbit_boot_steps:-run_step/2-lc$^0/1-0-/2, line 55
rabbitmq  |     rabbit_boot_steps:run_step/2, line 58
rabbitmq  |     rabbit_boot_steps:-run_boot_steps/1-lc$^0/1-0-/1, line 22
rabbitmq  |     rabbit_boot_steps:run_boot_steps/1, line 23
rabbitmq  |     rabbit:start/2, line 988
rabbitmq  |     application_master:start_it_old/4, line 293
rabbitmq  |
rabbitmq  | Runtime terminating during boot (terminating)

Stacktrace If applicable, add the (sanitized) stacktrace here.

Example Source code to replicate the issue (Optional) It would help us immensely if we were to have an example test source code or a snippet where you can see this problem, you could attach a zip file along with this issue.

Although this section is optional, it would speed up our process of providing a fix. P.S. Please remove any sensitive data and do not upload any proprietary source.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.