[Questions] Activate Khepri #14862
-
Community Support Policy
RabbitMQ version usedother (please specify) 4.1.4 Erlang version used27.3.4.4 Operating system (distribution) usedUbuntu 24.04 How is RabbitMQ deployed?Debian package rabbitmq-diagnostics status outputSee https://www.rabbitmq.com/docs/cli to learn how to use rabbitmq-diagnostics
Status of node rabbit@svqal1202 ...
Runtime
OS PID: 2151299 Plugins Enabled plugin file: /etc/rabbitmq/enabled_plugins
Data directory Node data directory: /var/lib/rabbitmq/mnesia/rabbit@svqal1202 Config files
Log file(s)
Alarms (none) Tags (none) Memory Total memory used: 0.3003 gb allocated_unused: 0.2347 gb (56.46 %) File Descriptors Total: 0, limit: 32671 Free Disk Space Low free disk space watermark: 0.05 gb Totals Connection count: 0 Listeners Interface: 0.0.0.0, port: 15672, protocol: http, purpose: HTTP API Logs from node 1 (with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
2025-10-30 12:17:10.662031+00:00 [info] <0.211.0> Running boot step tracking_metadata_store defined by app rabbit
2025-10-30 12:17:10.662121+00:00 [info] <0.554.0> Setting up a table for connection tracking on this node: tracked_connection
2025-10-30 12:17:10.662159+00:00 [info] <0.554.0> Setting up a table for per-vhost connection counting on this node: tracked_connection_per_vhost
2025-10-30 12:17:10.662208+00:00 [info] <0.554.0> Setting up a table for per-user connection counting on this node: tracked_connection_per_user
2025-10-30 12:17:10.662252+00:00 [info] <0.554.0> Setting up a table for channel tracking on this node: tracked_channel
2025-10-30 12:17:10.662301+00:00 [info] <0.554.0> Setting up a table for channel tracking on this node: tracked_channel_per_user
2025-10-30 12:17:10.662363+00:00 [info] <0.211.0> Running boot step networking_metadata_store defined by app rabbit
2025-10-30 12:17:10.662418+00:00 [info] <0.211.0> Running boot step feature_flags defined by app rabbit
2025-10-30 12:17:10.662627+00:00 [info] <0.211.0> Running boot step auth_backend_plugins_check defined by app rabbit
2025-10-30 12:17:10.662655+00:00 [info] <0.211.0> Running boot step codec_correctness_check defined by app rabbit
2025-10-30 12:17:10.662790+00:00 [info] <0.211.0> Running boot step external_infrastructure defined by app rabbit
2025-10-30 12:17:10.662899+00:00 [info] <0.211.0> Running boot step rabbit_event defined by app rabbit
2025-10-30 12:17:10.662979+00:00 [info] <0.211.0> Running boot step rabbit_auth_mechanism_amqplain defined by app rabbit
2025-10-30 12:17:10.663032+00:00 [info] <0.211.0> Running boot step rabbit_auth_mechanism_anonymous defined by app rabbit
2025-10-30 12:17:10.663070+00:00 [info] <0.211.0> Running boot step rabbit_auth_mechanism_cr_demo defined by app rabbit
2025-10-30 12:17:10.663111+00:00 [info] <0.211.0> Running boot step rabbit_auth_mechanism_plain defined by app rabbit
2025-10-30 12:17:10.663147+00:00 [info] <0.211.0> Running boot step rabbit_exchange_type_direct defined by app rabbit
2025-10-30 12:17:10.663190+00:00 [info] <0.211.0> Running boot step rabbit_exchange_type_fanout defined by app rabbit
2025-10-30 12:17:10.663229+00:00 [info] <0.211.0> Running boot step rabbit_exchange_type_headers defined by app rabbit
2025-10-30 12:17:10.663266+00:00 [info] <0.211.0> Running boot step rabbit_exchange_type_local_random defined by app rabbit
2025-10-30 12:17:10.663304+00:00 [info] <0.211.0> Running boot step rabbit_exchange_type_topic defined by app rabbit
2025-10-30 12:17:10.663340+00:00 [info] <0.211.0> Running boot step rabbit_priority_queue defined by app rabbit
2025-10-30 12:17:10.663360+00:00 [info] <0.211.0> Priority queues enabled, real BQ is rabbit_variable_queue
2025-10-30 12:17:10.663422+00:00 [info] <0.211.0> Running boot step kernel_ready defined by app rabbit
2025-10-30 12:17:10.663470+00:00 [info] <0.211.0> Running boot step pg_local_amqp_connection defined by app rabbit
2025-10-30 12:17:10.671199+00:00 [info] <0.211.0> Running boot step pg_local_amqp_session defined by app rabbit
2025-10-30 12:17:10.671270+00:00 [info] <0.211.0> Running boot step rabbit_sysmon_minder defined by app rabbit
2025-10-30 12:17:10.671380+00:00 [info] <0.211.0> Running boot step rabbit_epmd_monitor defined by app rabbit
2025-10-30 12:17:10.672209+00:00 [info] <0.563.0> epmd monitor knows us, inter-node communication (distribution) port: 25672
2025-10-30 12:17:10.672277+00:00 [info] <0.211.0> Running boot step guid_generator defined by app rabbit
2025-10-30 12:17:10.674310+00:00 [info] <0.211.0> Running boot step rabbit_node_monitor defined by app rabbit
2025-10-30 12:17:10.674384+00:00 [info] <0.567.0> Starting rabbit_node_monitor (partition handling strategy unapplicable with Khepri)
2025-10-30 12:17:10.674464+00:00 [info] <0.211.0> Running boot step delegate_sup defined by app rabbit
2025-10-30 12:17:10.674780+00:00 [info] <0.211.0> Running boot step rabbit_fifo_dlx_sup defined by app rabbit
2025-10-30 12:17:10.674827+00:00 [info] <0.211.0> Running boot step core_initialized defined by app rabbit
2025-10-30 12:17:10.674853+00:00 [info] <0.211.0> Running boot step rabbit_channel_tracking_handler defined by app rabbit
2025-10-30 12:17:10.674888+00:00 [info] <0.211.0> Running boot step rabbit_classic_queue defined by app rabbit
2025-10-30 12:17:10.674942+00:00 [info] <0.211.0> Running boot step rabbit_connection_tracking_handler defined by app rabbit
2025-10-30 12:17:10.675002+00:00 [info] <0.211.0> Running boot step rabbit_definitions_hashing defined by app rabbit
2025-10-30 12:17:10.675045+00:00 [info] <0.211.0> Running boot step rabbit_exchange_parameters defined by app rabbit
2025-10-30 12:17:10.676867+00:00 [info] <0.211.0> Running boot step rabbit_policies defined by app rabbit
2025-10-30 12:17:10.677124+00:00 [info] <0.211.0> Running boot step rabbit_policy defined by app rabbit
2025-10-30 12:17:10.677167+00:00 [info] <0.211.0> Running boot step rabbit_quorum_memory_manager defined by app rabbit
2025-10-30 12:17:10.677234+00:00 [info] <0.211.0> Running boot step rabbit_quorum_queue defined by app rabbit
2025-10-30 12:17:10.677305+00:00 [info] <0.211.0> Running boot step rabbit_stream_coordinator defined by app rabbit
2025-10-30 12:17:10.677471+00:00 [info] <0.211.0> Running boot step rabbit_vhost_limit defined by app rabbit
2025-10-30 12:17:10.677521+00:00 [info] <0.211.0> Running boot step rabbit_mgmt_reset_handler defined by app rabbitmq_management
2025-10-30 12:17:10.677569+00:00 [info] <0.211.0> Running boot step rabbit_mgmt_db_handler defined by app rabbitmq_management_agent
2025-10-30 12:17:10.677655+00:00 [info] <0.211.0> Management plugin: using rates mode 'basic'
2025-10-30 12:17:10.677826+00:00 [info] <0.211.0> Running boot step recovery defined by app rabbit
2025-10-30 12:17:10.677998+00:00 [info] <0.211.0> Running boot step prevent_startup_if_node_was_reset defined by app rabbit
2025-10-30 12:17:10.678025+00:00 [info] <0.211.0> Running boot step empty_db_check defined by app rabbit
2025-10-30 12:17:10.678108+00:00 [info] <0.211.0> Will seed default virtual host and user...
2025-10-30 12:17:10.678198+00:00 [info] <0.211.0> Adding vhost '/' (description: 'Default virtual host', tags: [])
2025-10-30 12:17:10.696092+00:00 [info] <0.594.0> Making sure data directory '/var/lib/rabbitmq/mnesia/rabbit@svqal1202/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L' for vhost '/' exists
2025-10-30 12:17:10.696661+00:00 [info] <0.594.0> Setting segment_entry_count for vhost '/' with 0 queues to '2048'
2025-10-30 12:17:10.705660+00:00 [info] <0.594.0> Starting message stores for vhost '/'
2025-10-30 12:17:10.706842+00:00 [info] <0.594.0> Started message store of type transient for vhost '/'
2025-10-30 12:17:10.733774+00:00 [warning] <0.606.0> Message store "628WB79CIFDYO9LJI6DKMI09L/msg_store_persistent": rebuilding indices from scratch
2025-10-30 12:17:10.734607+00:00 [info] <0.594.0> Started message store of type persistent for vhost '/'
2025-10-30 12:17:10.734759+00:00 [info] <0.594.0> Recovering 0 queues of type rabbit_classic_queue took 37ms
2025-10-30 12:17:10.734783+00:00 [info] <0.594.0> Recovering 0 queues of type rabbit_quorum_queue took 0ms
2025-10-30 12:17:10.734819+00:00 [info] <0.594.0> Recovering 0 queues of type rabbit_stream_queue took 0ms
2025-10-30 12:17:10.759496+00:00 [info] <0.211.0> Created user 'admin'
2025-10-30 12:17:10.795439+00:00 [info] <0.211.0> Successfully set user tags for user 'admin' to [administrator]
2025-10-30 12:17:10.829667+00:00 [info] <0.211.0> Successfully set permissions for user 'admin' in virtual host '/' to '.*', '.*', '.*'
2025-10-30 12:17:10.829735+00:00 [info] <0.211.0> Running boot step rabbit_observer_cli defined by app rabbit
2025-10-30 12:17:10.829889+00:00 [info] <0.211.0> Running boot step rabbit_core_metrics_gc defined by app rabbit
2025-10-30 12:17:10.830020+00:00 [info] <0.211.0> Running boot step background_gc defined by app rabbit
2025-10-30 12:17:10.830135+00:00 [info] <0.211.0> Running boot step routing_ready defined by app rabbit
2025-10-30 12:17:10.830152+00:00 [info] <0.211.0> Running boot step pre_flight defined by app rabbit
2025-10-30 12:17:10.830172+00:00 [info] <0.211.0> Running boot step notify_cluster defined by app rabbit
2025-10-30 12:17:10.830211+00:00 [info] <0.211.0> Running boot step networking defined by app rabbit
2025-10-30 12:17:10.830228+00:00 [info] <0.211.0> Running boot step rabbit_quorum_queue_periodic_membership_reconciliation defined by app rabbit
2025-10-30 12:17:10.830358+00:00 [info] <0.211.0> Running boot step definition_import_worker_pool defined by app rabbit
2025-10-30 12:17:10.830388+00:00 [info] <0.266.0> Starting worker pool 'definition_import_pool' with 2 processes in it
2025-10-30 12:17:10.830542+00:00 [info] <0.211.0> Running boot step cluster_name defined by app rabbit
2025-10-30 12:17:10.830590+00:00 [info] <0.211.0> Initialising internal cluster ID to 'rabbitmq-cluster-id-uXS167DK0qDxQPOJLhwDmQ'
2025-10-30 12:17:10.833020+00:00 [info] <0.211.0> Running boot step virtual_host_reconciliation defined by app rabbit
2025-10-30 12:17:10.833132+00:00 [info] <0.211.0> Running boot step direct_client defined by app rabbit
2025-10-30 12:17:10.833186+00:00 [info] <0.211.0> Running boot step cluster_tags defined by app rabbit
2025-10-30 12:17:10.834805+00:00 [info] <0.211.0> Running boot step rabbit_management_load_definitions defined by app rabbitmq_management
2025-10-30 12:17:10.834876+00:00 [info] <0.638.0> Resetting node maintenance status
2025-10-30 12:17:11.035766+00:00 [warning] <0.660.0> Deprecated features: `management_metrics_collection`: Feature `management_metrics_collection` is deprecated.
2025-10-30 12:17:11.035766+00:00 [warning] <0.660.0> By default, this feature can still be used for now.
2025-10-30 12:17:11.035766+00:00 [warning] <0.660.0> Its use will not be permitted by default in a future minor RabbitMQ version and the feature will be removed from a future major RabbitMQ version; actual versions to be determined.
2025-10-30 12:17:11.035766+00:00 [warning] <0.660.0> To continue using this feature when it is not permitted by default, set the following parameter in your configuration:
2025-10-30 12:17:11.035766+00:00 [warning] <0.660.0> "deprecated_features.permit.management_metrics_collection = true"
2025-10-30 12:17:11.035766+00:00 [warning] <0.660.0> To test RabbitMQ as if the feature was removed, set this in your configuration:
2025-10-30 12:17:11.035766+00:00 [warning] <0.660.0> "deprecated_features.permit.management_metrics_collection = false"
2025-10-30 12:17:11.100723+00:00 [info] <0.696.0> Management plugin: HTTP (non-TLS) listener started on port 15672
2025-10-30 12:17:11.100847+00:00 [info] <0.724.0> Statistics database started.
2025-10-30 12:17:11.100945+00:00 [info] <0.723.0> Starting worker pool 'management_worker_pool' with 3 processes in it
2025-10-30 12:17:11.101160+00:00 [info] <0.638.0> Ready to start client connection listeners
2025-10-30 12:17:11.110709+00:00 [info] <0.748.0> started TCP listener on 0.0.0.0:5672
2025-10-30 12:17:11.172037+00:00 [info] <0.638.0> Server startup complete; 3 plugins started.
2025-10-30 12:17:11.172037+00:00 [info] <0.638.0> * rabbitmq_management
2025-10-30 12:17:11.172037+00:00 [info] <0.638.0> * rabbitmq_management_agent
2025-10-30 12:17:11.172037+00:00 [info] <0.638.0> * rabbitmq_web_dispatch
2025-10-30 12:17:11.236387+00:00 [info] <0.10.0> Time to start RabbitMQ: 6406 ms
Logs from node 2 (if applicable, with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs Logs from node 3 (if applicable, with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs rabbitmq.confSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find rabbitmq.conf file location
########################################
# 🐇 Configuration de base
########################################
######################################## 🌐 Réseau######################################## Port AMQP standardlisteners.tcp.default = 5672 ######################################## 🧩 Plugins######################################## Activer le plugin de gestionmanagement.listener.port = 15672 ######################################## 🧩 SSL######################################## #listeners.ssl.default = 5671 ######################################## 🔐 Sécurité######################################## Utilisateur par défaut (à changer en prod)default_user = admin Steps to deploy RabbitMQ clusterNo cluster / standalone mode Steps to reproduce the behavior in questioninstall rabbitmq from https://www.rabbitmq.com/docs/install-debian advanced.configSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find advanced.config file location
[
{rabbit, [
{database, khepri}
]}
].
Application code# PASTE CODE HERE, BETWEEN BACKTICKSKubernetes deployment file# Relevant parts of K8S deployment that demonstrate how RabbitMQ is deployed
# PASTE YAML HERE, BETWEEN BACKTICKSWhat problem are you trying to solve?First I'm trying to active khepri on a fresh dev server but rabbitmqctl status show always the usage of mnesia metadata. Use rabbitmq-env.conf also : Result of rabbitmqctl status : Result of diagnostic metadata_store In a second time, i'd like to move data folder to a second disk /rabbitmq_data/khepri, is this possible ? Thanks for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
|
the formatting of your message is hard to read, but |
Beta Was this translation helpful? Give feedback.
-
|
Ok, this line has been commented. I do a service restart but still have mnesia referenced has node data directory, it must create khepri directory and migrate existing data ? |
Beta Was this translation helpful? Give feedback.
-
|
@mkuratczyk Good i will go on now and try to migrate definitions from v3.9/3.11 to the newone. |
Beta Was this translation helpful? Give feedback.
-
|
Found this tuto to help me, hope this will work. |
Beta Was this translation helpful? Give feedback.
-
|
Seems to be good : Node data directory: /rabbitmq_data/khepri/rabbit@svqal1202 Have a good day and a big thanks for your answers |
Beta Was this translation helpful? Give feedback.
No, the data has been migrated already as part of enabling khepri. The folder is just a historical artefact. Even with Khepri enabled by default, the
mnesiafolder is created, because that's how things were done for 18 years before Khepri was introduced into RabbitMQ.Anyway, you are all set. Enabling the feature flag is the only step necessary to migrate