bitnami / charts

Bitnami Helm Charts
https://bitnami.com
Other
8.92k stars 9.18k forks source link

[bitnami/rabbitmq] RabbitMq (non cluster-operator) is not starting on Rancher #29019

Closed adaumann closed 1 month ago

adaumann commented 1 month ago

Name and Version

bitnami/rabbitmq 14.6.7

What architecture are you using?

None

What steps will reproduce the bug?

Environment: Rancher installation V2.8.3

Description: I using the bitnami/rabbitmq charts (NON clustered) to deploy to Rancher Kubernetes, The pod gives not valuable log information, and after a few minutes I receive:

rabbitmq 07:16:10.01 ERROR ==> Couldn't start RabbitMQ in background.

I tried to set the loglevel to "debug", but no other information. On MicroKubernetes the same configuration works.

I tried to disable persistency, no effect. I added the replicas, no effect.

rabbitmq 07:57:33.43 INFO  ==> 
2024-08-26T07:57:33.440101577Z rabbitmq 07:57:33.43 INFO  ==> Welcome to the Bitnami rabbitmq container
rabbitmq 07:57:33.44 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
rabbitmq 07:57:33.44 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
2024-08-26T07:57:33.457940356Z rabbitmq 07:57:33.45 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
rabbitmq 07:57:33.45 INFO  ==> 
2024-08-26T07:57:33.516922120Z rabbitmq 07:57:33.51 INFO  ==> ** Starting RabbitMQ setup **
rabbitmq 07:57:33.61 INFO  ==> Validating settings in RABBITMQ_* env vars..
2024-08-26T07:57:33.710261983Z rabbitmq 07:57:33.70 INFO  ==> Initializing RabbitMQ...
rabbitmq 07:57:33.83 INFO  ==> Starting RabbitMQ in background...
rabbitmq RROR ==> Couldn't start RabbitMQ in background.

The configuration has been set to default, no effect

Are you using any custom parameters or values?

rabbitmq:
  persistence:
    enabled: false

What is the expected behavior?

The server should start normally

What do you see instead?

rabbitmq 07:16:10.01 ERROR ==> Couldn't start RabbitMQ in the background.

No debug information

Additional information

Tried to activate Debug output, but no additional info:

  logs: false
  extraConfiguration: |
    log.default.level = debug
    log.file = false
    log.console = true
    log.console.level = debug
    log.console.formatter = json      
javsalgar commented 1 month ago

Hi!

Could you deploy the chart with image.debug=enabled ?

adaumann commented 1 month ago

Now I get some more errors:

Container: rabbitmq
Connected
rabbitmq 07:53:08.75 INFO  ==> 
2024-08-27T07:53:08.760163411Z rabbitmq 07:53:08.75 INFO  ==> Welcome to the Bitnami rabbitmq container
2024-08-27T07:53:08.762783921Z rabbitmq 07:53:08.75 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
2024-08-27T07:53:08.777227080Z rabbitmq 07:53:08.77 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
rabbitmq 07:53:08.78 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
rabbitmq 07:53:08.78 INFO  ==> 
2024-08-27T07:53:08.812841226Z rabbitmq 07:53:08.80 INFO  ==> ** Starting RabbitMQ setup **
2024-08-27T07:53:08.890539142Z rabbitmq 07:53:08.88 INFO  ==> Validating settings in RABBITMQ_* env vars..
2024-08-27T07:53:08.985900331Z rabbitmq 07:53:08.98 INFO  ==> Initializing RabbitMQ...
2024-08-27T07:53:09.006000113Z rabbitmq 07:53:09.00 DEBUG ==> Creating environment file...
2024-08-27T07:53:09.050497494Z rabbitmq 07:53:09.04 DEBUG ==> Creating enabled_plugins file...
2024-08-27T07:53:09.086389041Z rabbitmq 07:53:09.08 DEBUG ==> Creating Erlang cookie...
2024-08-27T07:53:09.099690295Z rabbitmq 07:53:09.09 DEBUG ==> Ensuring expected directories/files exist...
2024-08-27T07:53:09.182481433Z rabbitmq 07:53:09.18 INFO  ==> Starting RabbitMQ in background...
Killed
Waiting for erlang distribution on node 'rabbit@rabbitmq-0.rabbitmq-headless.hcv-fancyforms-selfservice-test.svc.cluster.local' while OS process '53' is running
Error:
process_not_running
Waiting for erlang distribution on node 'rabbit@rabbitmq-0.rabbitmq-headless.hcv-fancyforms-selfservice-test.svc.cluster.local' while OS process '53' is running
Error:
2024-08-27T07:54:07.978540297Z process_not_running
Waiting for erlang distribution on node 'rabbit@rabbitmq-0.rabbitmq-headless.hcv-fancyforms-selfservice-test.svc.cluster.local' while OS process '53' is running
Error:
2024-08-27T07:54:36.372299546Z process_not_running
javsalgar commented 1 month ago

Hi,

I see a "Killed" error, which is normally related to memory consumption. Could you try increasing the memory limits in the values.yaml file?

adaumann commented 1 month ago

I can confirm that this was a memory problem, by setting the following:

memoryHighWatermark.enabled="true" memoryHighWatermark.type="relative" memoryHighWatermark.value="0.4" resources.limits.memory="2Gi"

it works. Please close the issue

adaumann commented 1 month ago

Closed