CouchDB won't start on Fedora 19 with systemctl

239 views
Skip to first unread message

Del Checcolo, Christopher

unread,
Apr 22, 2014, 6:52:01 PM4/22/14
to us...@couchdb.apache.org
My colleague and I just installed couchdb-1.5.0-1.fc19.x86_64 on Fedora 19 and we are unable to start couchdb using systemctl. We are able to start using /usr/bin/couchdb.

Running 'systemctl start couchdb' followed by 'systemctl status couchdb' results in the following output

[root@localhost yum.repos.d]# systemctl status couchdb
couchdb.service - CouchDB Server
Loaded: loaded (/usr/lib/systemd/system/couchdb.service; disabled)
Active: failed (Result: start-limit) since Tue 2014-04-22 18:44:25 EDT; 3s ago
Process: 10551 ExecStart=/usr/bin/erl +Bd -noinput -sasl errlog_type error +K true +A 4 -couch_ini /etc/couchdb/default.ini /etc/couchdb/local.ini -s couch -pidfile /var/run/couchdb/couchdb.pid -heart (code=exited, status=1/FAILURE)

Apr 22 18:44:25 uxw-laptop-7.bio.noblis.org systemd[1]: Unit couchdb.service entered failed state.
Apr 22 18:44:25 uxw-laptop-7.bio.noblis.org systemd[1]: couchdb.service holdoff time over, scheduling restart.
Apr 22 18:44:25 uxw-laptop-7.bio.noblis.org systemd[1]: Stopping CouchDB Server...
Apr 22 18:44:25 uxw-laptop-7.bio.noblis.org systemd[1]: Starting CouchDB Server...
Apr 22 18:44:25 uxw-laptop-7.bio.noblis.org systemd[1]: couchdb.service start request repeated too quickly, refusing to start.
Apr 22 18:44:25 uxw-laptop-7.bio.noblis.org systemd[1]: Failed to start CouchDB Server.
Apr 22 18:44:25 uxw-laptop-7.bio.noblis.org systemd[1]: Unit couchdb.service entered failed state.


Has anyone had any luck running couchdb as a service on fedora 19?

Any assistance is greatly appreciated.

Thanks.


Chris.

Travis Paul

unread,
Apr 23, 2014, 7:06:12 AM4/23/14
to us...@couchdb.apache.org
I think you might need to install the openssl-libs package. There is a
Redhat bug filed here: https://bugzilla.redhat.com/show_bug.cgi?id=1023017

Del Checcolo, Christopher

unread,
Apr 23, 2014, 3:07:22 PM4/23/14
to us...@couchdb.apache.org
Thank you very much for the response. I just checked and I do have openssl-libs installed.

Dave Cottlehuber

unread,
Apr 24, 2014, 2:16:42 AM4/24/14
to us...@couchdb.apache.org, Del Checcolo, Christopher
------------------------------------------------------
From: Del Checcolo, Christopher christopher...@noblis.org
Reply: us...@couchdb.apache.org us...@couchdb.apache.org
Date: 24. April 2014 at 07:44:34
To: us...@couchdb.apache.org us...@couchdb.apache.org
Subject:  Re: CouchDB won't start on Fedora 19 with systemctl

> Thank you very much for the response. I just checked and I do have openssl-libs installed. 

Assuming for the moment this is an erlang-related problem can you try this:

erl -s crypto -noshell -eval 'io:format("~p~n", [crypto:md5(crypto:strong_rand_bytes(1024))]).' -s erlang halt

which should print out a random string resembling << 32,54, 54 … >>

If this *doesn’t* work then erlang’s crypto module is not available / not working, and that will need to be addressed first.

If it does work, then at least couchdb should be starting up. And then I’d expect to see a couch.log somewhere.

Next step then would be to su/sudo to the user account couchdb runs under, cd ~, and then:

couchdb -i

Which starts up couch in interactive mode, and hopefully we’ll be enlightened by the subsequent error messages! If you’re feeling bold look at http://mail-archives.apache.org/mod_mbox/couchdb-user/201205.mbox/%3CCAHZBNKaTcYWctfyY7Z1HoM6...@mail.gmail.com%3E for the next steps.

A+
Dave



Reply all
Reply to author
Forward
0 new messages