Open antikilahdjs opened 1 year ago
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Hi @antikilahdjs, sorry for the delay.
Thanks for your report. I have been able to reproduce your issue. In fact, this option for the debug.log is disabled. Specifically this line of the Cassandra configuration
<!-- <appender-ref ref="ASYNCDEBUGLOG" /> --> <!-- Comment this line to disable debug.log -->
It is NOT recommended to activate this option because log files accumulate on the container disk. I have created an internal task to get these logs printed into stdout/stderr.
Occasionally and alternatively, you can provide your config.xml using the extraVolumes
parameter. You can create a config map from the configuration file and install the chart with these values.
kubectl create configmap cassandra-cm --from-file=./logback.xml
kubectl get configmap cassandra-cm -o yaml
## @param extraVolumes Optionally specify extra list of additional volumes for cassandra container
##
extraVolumes:
- name: cassandra-config
configMap:
name: cassandra-cm
## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts for cassandra container
##
extraVolumeMounts:
- name: cassandra-config
mountPath: /bitnami/cassandra/conf
We'll leave this issue on-hold until our dev team works on the related task.
@CeliaGMqrz I hope you doing good.
I really appreciate that and your return about it. I will try to enable it as you sent.
Hi @antikilahdjs, please note that setting the BITNAMI_DEBUG
environment variable to true increase the verbosity in stdout from logs coming from the Bitnami initialization. This produces the DEBUG ==>
entries you see in the console output, with the default value of the BITNAMI_DEBUG
environment variable (false), the level of logs is higher so only the INFO ==>
or WARN ==>
messages will appear.
Being said that, what you mention about the debug.log file is not related to the Bitnami initialization logs but to the Cassandra logs themselves. As @CeliaGMqrz rightly said, in order to not increase the disk usage and therefore the size of the volumes, this log was disabled out of the box. We just created an internal task to provide an option to enable this option via a parameter, so users interested in those logs can enable it at their own risk knowing the consequences in terms of the size of the disk they may have.
@carrodher thank you so much and I got it . The debug.log is just for the critical troubleshoot and I needed it to check some slow queries in my internal environment but the debug.log is empty as well, so , if in future we can able to enable it will be great.
Thank you so much and thank @CeliaGMqrz , keep safe.
Seems to have started in r22
Name and Version
bitnami/cassandra 4.1.0-debian-11-r6
What steps will reproduce the bug?
1 - Install Cassandra Helm Charts using normal way 2 - Enable diagnosticmode to TRUE or just enable the environment BITNAMI_DEBUG to TRUE 3 - Check debug.log in the path /opt/bitnami/cassandra/logs
Are you using any custom parameters or values?
What is the expected behavior?
I am expecting the debug.log recorder a logs as well but after 2 days is not worked.
What do you see instead?
The debug.log needs to be filled to troubeshooting some errors or slow queries as well.
In my 3 instances the debug.log is empty, I am waited more than 2 days to make sure if it will be logged.
Additional information