Couchdb user - fs-manager is taking 100% of the cpu.
I am running a single instance of couchdb with node app as a proxy. I have 5 user databases which are synced with pouchdb. Cpu utilization for the machine was at 5-10%. It was working fine and infact, it's still working fine but now cpu usage is at 100%.
There is "fs-manager" process taking 98% of cpu and it's constantly running on 98 for the last 24hr.
I restarted the machine and run for 1-2 hrs fine but after that cpu usage again went to 100%.
Expected Behavior
Cpu usage should be lower.
Current Behavior
There is "fs-manager" process taking 98% of cpu and it's constantly running on 98 for the last 24hr.
Possible Solution
Looking for the solutions.
Steps to Reproduce (for bugs)
NA
Context
I haven't seen any issue with the database. I can load the couchdb-client fine and interact with the db.
Your Environment
- Version used: couchdb 2.1.0
- Browser Name and version:
- Operating System and version (desktop or mobile): ubuntu 16, xenial.
fs-manager is not part of CouchDB, it seems that you've been hacked with crypto mining software. Check out this mail-thread with a similar case.
Thanks @eiri I think I figured out the problem.
hi @ransanjeev I have a similar problem and I'm curious to know how you figured it out
Take a look at the user mailing list. This is a bitcoin miner running on your server. Your server is compromised you will have to rebuild it.
From: femiashiru [email protected] Sent: Wednesday, January 24, 2018 1:27:04 PM To: apache/couchdb Cc: Subscribed Subject: Re: [apache/couchdb] Couchdb user - fs-manager is taking 100% of the cpu. (#1074)
hi @ransanjeevhttps://github.com/ransanjeev I have a similar problem and I'm curious to know how you figured it out
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/apache/couchdb/issues/1074#issuecomment-360101954, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAK9AmXCAS2yJ4oFR-64KDv6G7MgKpgNks5tNxOHgaJpZM4RFser.
This is likely someone exploiting your server via a previously disclosed security violation:
https://blog.couchdb.org/2017/11/14/apache-couchdb-cve-2017-12635-and-cve-2017-12636/
When re-installing your server, be sure to use one of the patched versions of CouchDB: 2.1.1 or 1.7.1.