Stephen Bryant
01/17/2025, 1:36 PMkubectl) doesn't list any connection requests at all, but it does tell me there's no authentication or authorisation.Luke van Enkhuizen
01/17/2025, 1:51 PMLuke van Enkhuizen
01/17/2025, 1:54 PMhivemq.xml configuration file:
xml
<utf8-validation>
<enabled>false</enabled>
</utf8-validation>
- Enable Retained Messages: Configured HiveMQ to support retained messages:
xml
<retained-messages>
<enabled>true</enabled>
</retained-messages>
- Allow Empty Client IDs (Optional): Although not the direct issue, we allowed empty client IDs for flexibility:
xml
<allow-empty-client-id>
<enabled>true</enabled>
</allow-empty-client-id>Luke van Enkhuizen
01/17/2025, 1:55 PMLuke van Enkhuizen
01/17/2025, 1:58 PMJermuk
01/17/2025, 2:11 PMFerdinand
01/17/2025, 2:35 PMStephen Bryant
01/17/2025, 3:37 PMfalse allows the connection to succeed, but of course breaks the last will strategy.
How can I change Hive's config.xml permanently on my UMH system? Changes inside the container will be gone when it restarts, right?Jermuk
01/17/2025, 4:11 PMFerdinand
01/17/2025, 4:17 PMLuke van Enkhuizen
01/17/2025, 4:48 PMLuke van Enkhuizen
01/17/2025, 4:48 PMStephen Bryant
01/20/2025, 10:27 AMStephen Bryant
01/20/2025, 2:53 PMStephen Bryant
01/20/2025, 2:54 PMJermuk
01/20/2025, 6:55 PMStephen Bryant
01/21/2025, 2:10 PM# Look at current HiveMQ configuration
sudo $(which kubectl) exec --stdin --tty \
-n united-manufacturing-hub united-manufacturing-hub-hivemqce-0 --kubeconfig /etc/rancher/k3s/k3s.yaml \
-- \
cat /opt/hivemq-ce-2024.1/conf/config.xml
# List available ConfigMaps
sudo $(which kubectl) get configmaps \
-n united-manufacturing-hub --kubeconfig /etc/rancher/k3s/k3s.yaml
# Get current configmap
sudo $(which kubectl) get configmap \
-n united-manufacturing-hub --kubeconfig /etc/rancher/k3s/k3s.yaml \
united-manufacturing-hub-hivemqce-hive \
--output yaml > united-manufacturing-hub-hivemqce-hive.yaml
# Create a patch file containing the changed YAML (ie: data->config.xml, set retained messages enabled to true)
sudo $(which kubectl) patch configmap \
-n united-manufacturing-hub --kubeconfig /etc/rancher/k3s/k3s.yaml \
united-manufacturing-hub-hivemqce-hive \
--patch-file united-manufacturing-hub-hivemqce-hive.patch.yaml
# The config.xml file inside the pod will have now been changed.
# Restart HiveMQ by deleting the pod (and having Kubernetes recreate it)
sudo $(which kubectl) delete pod \
-n united-manufacturing-hub --kubeconfig /etc/rancher/k3s/k3s.yaml \
united-manufacturing-hub-hivemqce-0