-
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 2.1 can't start on macOS 10.12.6 #739
Comments
I'm also unable to run CouchDB 2.1 on macOS 10.11.6 |
The errors you're seeing indicate two things:
Someone on our IRC channel just commented he was able to get CouchDB 2.1 on Mac running correctly, though he had to take a few extra steps:
Can you please try these steps and report back? Thanks. |
Note:1.) Please make a backup of your Database/Configuration Files/etc. before your applying the commands. |
@wohali thanks for your answer. |
@mgesmundo one of my problems was also to start the native app. When it tried to start couch, the mac show a window with [cancel] and [retry]. After several tries i decided to click cancel! That was, after then it works. Its also important to start your native app in the mac program folder ( not outside of them). Furthermore please make sure you have killed all running process when using this command |
@SerkanSipahi on all three Mac I've not a window with [cancel] and [retry] buttons. The app is into Applications folder and when I try to start it, simply it takes a long time to show the menu icon on menu bar and opens an empty Safari page that fail to connect to CouchDB. Using |
Hrm, this works fine for me on 10.11.4.
Fauxton immediately pops up in my browser and I've got a beam running:
Killing it behaves somewhat oddly, and I haven't seen a window with cancel/retry buttons. This machine has never run the .app for a previous version. |
We've now got a log of the output when startup fails: https://gist.github.com/anonymous/3908d3725832b1ee1cfcffc40878f8d6 Then, from IRC:
|
We worked through this on IRC and have two workarounds.
chmod +x '/Applications/Apache CouchDB.app/Contents/Resources/couchdbx-core/lib/crypto-3.4.2/priv/lib/crypto.so'
install_name_tool -change /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib lib/libcrypto.1.0.0.dylib '/Applications/Apache CouchDB.app/Contents/Resources/couchdbx-core/lib/crypto-3.4.2/priv/lib/crypto.so'
chmod -x '/Applications/Apache CouchDB.app/Contents/Resources/couchdbx-core/lib/crypto-3.4.2/priv/lib/crypto.so'
@mgesmundo @Chris-Andrews Can you try either of these 2 workarounds and let us know if it works? The bug is here: https://github.com/janl/build-couchdb-mac/blob/master/build.sh#L81 |
@wohali Thank you for looking into this. I'll have a chance to try the suggested fix on the computer that was giving me trouble within the next couple days. In the meantime I tried installing the version 2.1 app on another machine and found that it works with no problems. I checked and on this machine I had already installed openssl via homebrew, so I think this is likely the fix for this issue. |
Thank you very much @wohali ! After installing |
Hi,
I tried to start (without success) CouchDB 2.1 on the same Mac where a CouchDB 2.0 works fine.
Expected Behavior
CouchDB 2.1 runs and show Fauxton interface.
Current Behavior
CouchDB 2.1 can't start. Below the tail of the log file:
[notice] 2017-08-08T11:00:35.833546Z couchdb@localhost <0.320.0> -------- chttpd_auth_cache changes listener died database_does_not_exist at mem3_shards:load_shards_from_db/6(line:327) <= mem3_shards:load_shards_from_disk/1(line:315) <= mem3_shards:load_shards_from_disk/2(line:331) <= mem3_shards:for_docid/3(line:87) <= fabric_doc_open:go/3(line:38) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= chttpd_auth_cache:listen_for_changes/1(line:134)
[error] 2017-08-08T11:00:35.833621Z couchdb@localhost emulator -------- Error in process <0.16789.1> on node couchdb@localhost with exit value:
{database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,327}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,315}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,331}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,87}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,38}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,187}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,134}]}]}
Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: