Skip to content

Instantly share code, notes, and snippets.

@dahjelle
Created January 30, 2015 12:48
Show Gist options
  • Save dahjelle/19f3c3b8aec6d7d4b115 to your computer and use it in GitHub Desktop.
Save dahjelle/19f3c3b8aec6d7d4b115 to your computer and use it in GitHub Desktop.
CouchDB 1.6.1 "Verify Installation" Error on CentOS 7
$ cat /var/log/couchdb/couch.log
[Fri, 30 Jan 2015 12:47:35 GMT] [info] [<0.31.0>] Apache CouchDB has started on http://127.0.0.1:5984/
[Fri, 30 Jan 2015 12:47:41 GMT] [info] [<0.110.0>] 192.168.1.145 - - DELETE /test_suite_db/ 200
[Fri, 30 Jan 2015 12:47:41 GMT] [info] [<0.110.0>] 192.168.1.145 - - PUT /test_suite_db/ 201
[Fri, 30 Jan 2015 12:47:41 GMT] [info] [<0.110.0>] 192.168.1.145 - - PUT /test_suite_db/abd79b2753f1a4148bbc4c98d602e591 201
[Fri, 30 Jan 2015 12:47:41 GMT] [info] [<0.110.0>] 192.168.1.145 - - PUT /test_suite_db/abd79b2753f1a4148bbc4c98d602e591 201
[Fri, 30 Jan 2015 12:47:41 GMT] [info] [<0.110.0>] 192.168.1.145 - - DELETE /test_suite_db/abd79b2753f1a4148bbc4c98d602e591?rev=2-c5242a69558bf0c24dda59b585d1a52b 200
[Fri, 30 Jan 2015 12:47:41 GMT] [info] [<0.110.0>] 192.168.1.145 - - GET /test_suite_db/undefined 404
[Fri, 30 Jan 2015 12:47:41 GMT] [info] [<0.110.0>] 192.168.1.145 - - PUT /test_suite_db/abd79b2753f1a4148bbc4c98d602e342 201
[Fri, 30 Jan 2015 12:47:41 GMT] [info] [<0.110.0>] 192.168.1.145 - - PUT /test_suite_db/abd79b2753f1a4148bbc4c98d602d98c 201
[Fri, 30 Jan 2015 12:47:42 GMT] [info] [<0.110.0>] 192.168.1.145 - - PUT /test_suite_db/abd79b2753f1a4148bbc4c98d602d113 201
[Fri, 30 Jan 2015 12:47:42 GMT] [error] [<0.171.0>] Could not open file /var/lib/couchdb/.test_suite_db_design/mrview/48733ad165ec5f98ed55d12658b570d8.view: no such file or directory
[Fri, 30 Jan 2015 12:47:42 GMT] [error] [<0.171.0>] Failed to open view file '/var/lib/couchdb/.test_suite_db_design/mrview/48733ad165ec5f98ed55d12658b570d8.view': no such file or directory
[Fri, 30 Jan 2015 12:47:42 GMT] [error] [<0.110.0>] Uncaught error in HTTP request: {error,
{badmatch,
{error,enoent}}}
[Fri, 30 Jan 2015 12:47:42 GMT] [info] [<0.110.0>] Stacktrace: [{couch_index_server,get_index,4,
[{file,"src/couch_index_server.erl"},
{line,51}]},
{couch_mrview_util,get_view,4,
[{file,"src/couch_mrview_util.erl"},
{line,40}]},
{couch_mrview,query_view,6,
[{file,"src/couch_mrview.erl"},{line,75}]},
{couch_httpd,etag_maybe,2,
[{file,"couch_httpd.erl"},{line,610}]},
{couch_mrview_http,design_doc_view,5,
[{file,"src/couch_mrview_http.erl"},
{line,188}]},
{couch_httpd_db,do_db_req,2,
[{file,"couch_httpd_db.erl"},{line,234}]},
{couch_httpd,handle_request_int,5,
[{file,"couch_httpd.erl"},{line,318}]},
{mochiweb_http,headers,5,
[{file,"src/mochiweb_http.erl"},
{line,94}]}]
[Fri, 30 Jan 2015 12:47:42 GMT] [info] [<0.110.0>] 192.168.1.145 - - POST /test_suite_db/_temp_view 500
[Fri, 30 Jan 2015 12:47:42 GMT] [error] [<0.110.0>] httpd 500 error response:
{"error":"badmatch","reason":"{error,enoent}"}
@dahjelle
Copy link
Author

I stopped CouchDB (sudo systemctl stop couchdb), removed the log file, and then started CouchDB again (sudo systemctl start couchdb). Since I still had the verify page up, I clicked verify installation right away, and got this log file.

@dahjelle
Copy link
Author

Permissions just after the run:

$ ls -lah /etc/couchdb /var/{lib,run,log}/couchdb
/etc/couchdb:
total 36K
drwxr-xr-x.  4 root    root      94 Jan 29 22:26 .
drwxr-xr-x. 79 root    root    8.0K Jan 30 06:51 ..
drwxr-xr-x.  2 root    root       6 Sep  7 11:51 default.d
-rw-r--r--.  1 couchdb couchdb  16K Sep  7 11:51 default.ini
drwxr-xr-x.  2 root    root       6 Sep  7 11:51 local.d
-rw-r--r--.  1 couchdb couchdb 3.7K Jan 29 22:27 local.ini
-rw-r--r--.  1 couchdb couchdb 3.7K Jan 29 21:24 local.ini.rpmsave

/var/lib/couchdb:
total 40K
drwxr-xr-x.  3 couchdb couchdb 4.0K Jan 30 06:52 .
drwxr-xr-x. 28 root    root    4.0K Jan 30 06:50 ..
-rw-------.  1 couchdb couchdb  821 Jan 30 06:43 .bash_history
drwxr-xr-x.  2 couchdb couchdb    6 Jan 30 06:52 .delete
-rw-------.  1 couchdb couchdb   39 Jan 29 21:18 .lesshst
-rw-rw----.  1 couchdb couchdb 4.1K Jan 29 16:06 _replicator.couch
-rw-r--r--.  1 couchdb couchdb 4.1K Jan 30 06:52 test_suite_db.couch
-rw-rw----.  1 couchdb couchdb 4.1K Jan 29 16:06 _users.couch

/var/log/couchdb:
total 16K
drwxr-xr-x. 2 couchdb couchdb   22 Jan 30 06:47 .
drwxr-xr-x. 8 root    root    4.0K Jan 30 06:51 ..
-rw-r--r--. 1 couchdb couchdb 8.8K Jan 30 06:52 couch.log

/var/run/couchdb:
total 8.0K
drwxr-xr-x.  2 couchdb couchdb  80 Jan 30 06:51 .
drwxr-xr-x. 24 root    root    780 Jan 30 06:51 ..
-rw-r--r--.  1 couchdb couchdb   4 Jan 30 06:51 couchdb.pid
-rw-r--r--.  1 couchdb couchdb  23 Jan 30 06:51 couch.uri

@dahjelle
Copy link
Author

This is a fresh minimal install of CentOS 7, and CouchDB 1.6.1 installed directly via yum.

@dahjelle
Copy link
Author

Another debug test:

$ echo '[]' | couchjs /usr/share/couchdb/server/main.js
["error","unknown_command","unknown command 'undefined'"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment