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 2.1.0 fails to start under macOS High Sierra #840
Comments
That looks like CouchDB is running fine, but the contributed application that @janl wrote has some sort of error. Are you able to |
I'm having the same ussue, curl returns the following: ➜ ~ curl http://127.0.0.1:5984 In addition, i have the same environment that OP: |
@wohali The couch is definitely not running. Curl returned with I've played a bit around. I've extracted
The same (?) result, when I start CouchDB 1.6.1. The application reports an error and offer to quit or retry. The couchdb.log contains:
|
I’ll look at this over the weekend. |
This is an Erlang bug: https://bugs.erlang.org/browse/ERL-439 This commit fixed the problem: If you can build Erlang from source, try applying this change and you should be good to go. CouchDB isn't ready yet for Erlang 20, so you'll need a build of Erlang 19.x or older that includes this one-line change for High Sierra builds to work correctly. |
Thanks everyone for raising this and your patience with us resolving the issue. Can you all please download this and report back? Thanks!
|
Hi @janl, thank you! |
I just tested as well. The new binary fixes the issue for me. Thanks @janl |
@TheNightbear @Chris-Andrews Thanks! New zip up on the site: apache/couchdb-www@b7a7235 |
Just a quick follow-up, everything working OK. Thanks! |
It works, thanks |
I installed CouchDB 2.1 on High Sierra three days ago. At first, It seemed to work, but from time to time I'm getting the following error, which never happened before on Mac OS 10.12 Sierra. CouchDB keeps restarting and restarting. `CRASH REPORT Process couch_compaction_daemon (<0.6896.0>) with 0 neighbors exited with reason: {compaction_loop_died,{{badmatch,{error,enoent}},[{couch_compaction_daemon,abs_path,1,[{file,"src/couch_compaction_daemon.erl"},{line,526}]},{couch_compaction_daemon,free_space_rec,2,[{file,"src/couch_compaction_daemon.erl"},{line,517}]},{couch_compaction_daemon,can_db_compact,2,[{file,"src/couch_compaction_daemon.erl"},{line,327}]},{couch_compaction_daemon,maybe_compact_db,3,[{file,"src/couch_compaction_daemon.erl"},{line,164}]},{couch_compaction_daemon,'-compact_loop/1-fun-0-',3,[{file,"s..."},...]},...]}} at gen_server:terminate/7(line:812) <= proc_lib:init_p_do_apply/3(line:247); initial_call: {couch_compaction_daemon,init,['Argument__1']}, ancestors: [couch_secondary_services,couch_sup,<0.207.0>], messages: [], links: [<0.6511.0>], dictionary: [], trap_exit: true, status: running, heap_size: 987, stack_size: 27, reductions: 2788 update: has nothing to do with the "autocompaction whitespace bug" |
@kinesias Actually, yes, it is related. That's the exact error we'd expect in that situation. Any mounted volume that has a space in it will cause this crash. You can disable the compaction daemon to fix this for now: |
oh, interesting, because I renamed all my mounted volumes -- first it seemed to work, but then it crashed again... I appreciate your help very much, you guys are awesome! |
I am having CouchDB 2.1.1 for mac and having same issue. When I start couchDB then it start opening new tab with address http://127.0.0.1:5984/_utils/ and refused to connect. It continue to open until I force quit it. I tried to do according to your reply but Didn't find local.ini file. Please let me know the path of this file for mac |
Upon upgrading to MacOS High Sierra, CouchDB fails to start. For legacy reasons I need to to run v1.6.0 (we use a deprecated river to sync with ElasticSearch). Following @wohali 's suggestion, I patched and rebuilt Erlang, then modified
Could it be I also need to rebuild CouchDB's Erlang libs using that patch? Edit: I think my issue was that in |
Hello, did you find any solution? @navneet21sharma |
After updating from macOS Sierra (10.12.6) to High Sierra (10.13) CouchDb 2.1.0 fails to start.
I had a running CouchDB 2.1.0 on Sierra (10.12.6) with multiple databases. During the install process the running couchdb was stoped by macOS. After the update to High Sierra CouchDB showed the behavior as described below.
I replaced the current installation by a fresh one: I removed the Apache CouchDB app from programs and deleted the CouchDB2 folder from the /Users/username/Library/Application Support. Downloaded the app again and installed it to programs.
Running a fresh installation makes unfortunately no difference.
Current Behavior
After starting the Apache CouchDB app couchdb keeps restarting and opening browser windows with the admin console URL.
The log (debug level) looks like this:
Steps to Reproduce (for bugs)
Environment
The text was updated successfully, but these errors were encountered: