Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging of config generation issues not enabled on helm chart #394

Open
maruno opened this issue Sep 13, 2024 · 3 comments
Open

Logging of config generation issues not enabled on helm chart #394

maruno opened this issue Sep 13, 2024 · 3 comments

Comments

@maruno
Copy link

maruno commented Sep 13, 2024

I am struggling getting a working configuration for the VerneMQ helm chart, I am only getting this log after which the pod exits with an error:

mfb@Yggdrasill ~/k8s/vernemq $ kubectl logs -n vernemq vernemq-0 -f
Permissions ok: Our pod vernemq-0 belongs to StatefulSet vernemq with 1 replicas
Error generating config with cuttlefish
  run `vernemq config generate -l debug` for more information.

Is there a way I could influence the log level of the config generation (I guess it's translating environment variables to the vernemq.conf file in the container?). I guess there is some wrong config but it's being hidden now, I'm not sure why config errors are not logged by default? Seeing as this seems to be a fatal error?

How can I enable the debugging logging of the config generation to know what I'm doing wrong?

@ioolkos
Copy link
Contributor

ioolkos commented Sep 13, 2024

@maruno Do you add your own ENV variables? Can you double check the variable format, as described here? https://github.com/vernemq/docker-vernemq?tab=readme-ov-file#remarks


👉 Thank you for supporting VerneMQ: https://github.com/sponsors/vernemq
👉 Using the binary VerneMQ packages commercially (.deb/.rpm/Docker) requires a paid subscription.

@maruno
Copy link
Author

maruno commented Sep 14, 2024

I thought I had eliminated those already, spotted that odditty before, but I seem to have forgotten the dots for my plugins configuration. ;) Managed to find it oby trial and error by commenting out parts of my configmap going from minimal till it stopped working.

Would vernemq config generate -l debug be able to tell me this though? It would be helpful for helm/docker users to just output that, as I couldn't just run a random command on a pod that exits immediately.

@ioolkos
Copy link
Contributor

ioolkos commented Sep 14, 2024

@maruno Hm, yes, it is a pain point, isn't it. vernemq config generate -l debug would have absolutely told you this. Also looking at the resulting vernemq.conf in the Docker image, where ENV variables are injected in a ###START### end ###END### block at the end of the file.

Maybe we could somehow somewhere add a call to vernemq chkconfig to check whether the config is ok before actually starting Verne.


👉 Thank you for supporting VerneMQ: https://github.com/sponsors/vernemq
👉 Using the binary VerneMQ packages commercially (.deb/.rpm/Docker) requires a paid subscription

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants