Apache couchdb 1.3.0 build from source has some problems stopping

3 views
Skip to first unread message

Anishek Agarwal

unread,
May 14, 2013, 8:19:14 AM5/14/13
to us...@couchdb.apache.org
Hello,

We have just build apache couchdb 1.3.0 from source, following the build
steps from http://wiki.apache.org/couchdb/Installing_on_Ubuntu . The server
starts fine and is working correctly although we are not able to get it to
stop.

We are using the following commands to start and stop


sudo service couchdb start # this is used to start the server

sudo service couchdb stop #this is used to stop the server

When we run the stop command it stops the process but the heartbeat process
restarts couchdb i think.

We are building this on Ubuntu 11.10 server


Please let me know if any other info is required and thanks in advance for
help.


Note: Support for apache couchdb 1.2.x is not provided by Apache foundation
anymore right ?


regards,
anishek

Robert Newson

unread,
May 14, 2013, 8:32:02 AM5/14/13
to us...@couchdb.apache.org
This is a known issue on Debian/Ubuntu, at least. Sometimes the
pidfile is empty after startup, and this is why stop fails (it doesn't
know what to stop). This has been reported intermittently for a long
time now but no one has yet figured out why it happens. It's almost
always reported on ubuntu, but I think that might just be a measure of
its popularity than anything else.

Workarounds include using runit instead of the init.d script as well
as a manual kill -9 if the pidfile is empty.

It appears to only happen sometimes on first install or at system
startup and then seems to right itself for subsequent stop/start
calls.

B.

Noah Slater

unread,
May 14, 2013, 2:05:43 PM5/14/13
to us...@couchdb.apache.org
On 14 May 2013 13:19, Anishek Agarwal <ani...@gmail.com> wrote:

>
> Note: Support for apache couchdb 1.2.x is not provided by Apache foundation
> anymore right ?
>

Yep! But the upgrade path from 1.2.x is to 1.3.x. :)

This PID file bug is annoying. Would be a great opportunity for someone to
jump in and get involved with the project. :)


--
NS

Wendall Cada

unread,
May 14, 2013, 2:43:01 PM5/14/13
to us...@couchdb.apache.org
I'll get this fixed here soon. I've been assigning these to myself, as I
should have caught this before. Next couple days I'll be able to
complete this.

Wendall

Noah Slater

unread,
May 14, 2013, 4:24:56 PM5/14/13
to us...@couchdb.apache.org
Sweet! Thanks Wendall!
--
NS

Anishek Agarwal

unread,
May 15, 2013, 1:08:27 AM5/15/13
to us...@couchdb.apache.org
I think one of my colleagues has submitted a patch for this with the
stop_couch() function change. We will know soon if that will help, seems to
be working fine on local machine now.

Wendall Cada

unread,
May 15, 2013, 11:24:37 AM5/15/13
to us...@couchdb.apache.org
The patch looked good. I'll merge this in the very near future. Thanks
for reporting this and lending a hand!

Wendall
Reply all
Reply to author
Forward
0 new messages