Detecting RabbitMQ version after uninstall. #12064
-
Is it possible to detect RabbitMQ version from the files in RABBITMQ_BASE (mnesia? schema.dat?) after RabbitMQ server is uninstalled? Erlang is installed, if it helps. I want to add this check before installation to prevent downgrade (in rollback, after failed upgrade) and potential data corruption. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
No, not really. The on-disk formats do not change very often and the data directory in general does not have any versioning (individual files, namely Raft log segments, might be). The best you can do is to store version information before the node is stopped and uninstalled: rabbitmq-diagnostics status --formatter=json | jq .rabbitmq_version |
Beta Was this translation helpful? Give feedback.
No, not really. The on-disk formats do not change very often and the data directory in general does not have any versioning (individual files, namely Raft log segments, might be).
The best you can do is to store version information before the node is stopped and uninstalled:
rabbitmq-diagnostics status --formatter=json | jq .rabbitmq_version