-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Couchdb stoped writing to the journald logs #5022
Comments
Thank you for your report @tahirshak. Is there any log emitted right before that? After that happens does couchdb still work? Can you use the Fauxton interface or make API calls to it? Does its resources usage seem to change during that time (uses more CPU/memory or less?). |
Hi @nickva , Please see the response to your questions. Q: Is there any log emitted right before that? Looking at the logs leading to when couchdb stopped writing to the journal, in just 5 minutes it emitted about 45k logs entries. Most of those messages are about the indexer such as Q: After that happens does couchdb still work? Can you use the Fauxton interface or make API calls to it? Couchdb still works and functioning, we can login to Fauxton and run the curl commands. Q: Does its resources usage seem to change during that time (uses more CPU/memory or less?). Yes, the CPU spiked little bit to 40% and the memory spiked as well to 15%. |
@tahirshak thank you for responding. That's interesting about the CPU spiking a bit afterwards. I still don't quite have a clue what might be going on. In production I only have experience with the syslog writer. That one never seems to behave this way. The journald log writer just seems to write to Would it be possible for you try a syslog writer and have a system rsyslog package installed to see if it would behave the same way? |
Perhaps it's similar to coreos/bugs#990, a systemd issue? If it's triggered by log volume can try lowering the log level to I don't know if you want to dive in and debug journald/systemd but I owuld to bypass systemd altogether and log to a file or use rsyslog and use the syslog backend: https://docs.couchdb.org/en/stable/config/logging.html#log/syslog_host |
Description
We are using couchdb v 3.3.3 with the log settings as :
We noticed that couchdb stopped writing to the journald logs and we have to restart the couchdb service for it to start writing to the journal. This has happened few times and has limited our ability to troubleshoot or look at the logs.
We are on Ubuntu 22.04.3 LTS and the all the settings for the journald are the default ones:
We also noticed that restarting the systemd-journald service would not help, only restarting the couchdb service will make it start writing to the logs.
Please let me know if we are facing any bug or have to tweak any settings.
Thanks,
Steps to Reproduce
Expected Behaviour
Your Environment
Additional Context
The text was updated successfully, but these errors were encountered: