You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Jaime Barrajón (JIRA)" <ji...@apache.org> on 2015/08/26 15:06:45 UTC
[jira] [Created] (COUCHDB-2790) Requests to non-existent database
fill up couchdb log
Jaime Barrajón created COUCHDB-2790:
---------------------------------------
Summary: Requests to non-existent database fill up couchdb log
Key: COUCHDB-2790
URL: https://issues.apache.org/jira/browse/COUCHDB-2790
Project: CouchDB
Issue Type: Bug
Security Level: public (Regular issues)
Components: Logging
Reporter: Jaime Barrajón
When requesting a non-existing database, the response is
{"error":"not_found","reason":"no_db_file"}
This generates an error-level log entry in the couchdb log:
[Wed, 26 Aug 2015 12:32:57 GMT] [error] [<0.173.0>] Could not open file /var/lib/couchdb/foo.couch: no such file or directory
We can flood couchdb with invalid requests and fill up the log size pretty fast, eventually filling up the server volume.
I'm using couchdb as a hiera datastore for use with puppet and other scripts.
This makes me change hiera's hierarchy and loose security functionality to avoid crashing the server.
workarounds:
logrotate: it does its job, but does not solve the problem here
nginx as proxy: proxy requests to couchdb filtering from a list of valid urls, one more thing to mantain
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)