couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: /etc/init.d/couchdb stop never really stops the db
Date Wed, 11 Nov 2009 16:18:51 GMT
Can you make sure and kill the existing beam processes and rerunning this?

On Wed, Nov 11, 2009 at 10:37 AM, Robert Campbell <rrc7cz@gmail.com> wrote:
> Hi Noah, here is the result of running "couchdb -d" after the change:
>
> rrc@default:/usr/bin$ ps -A | grep couchdb
>  4389 ?        00:00:00 couchdb
>  4419 ?        00:00:00 couchdb
>  6399 ?        00:00:07 couchdb
> rrc@default:/usr/bin$ couchdb -d
> + BACKGROUND=false
> + DEFAULT_CONFIG_DIR=/etc/couchdb/default.d
> + DEFAULT_CONFIG_FILE=/etc/couchdb/default.ini
> + HEART_BEAT_TIMEOUT=11
> + HEART_COMMAND=/usr/bin/couchdb -k
> + INTERACTIVE=false
> + KILL=false
> + LOCAL_CONFIG_DIR=/etc/couchdb/local.d
> + LOCAL_CONFIG_FILE=/etc/couchdb/local.ini
> + PID_FILE=/var/run/couchdb/couchdb.pid
> + RECURSED=false
> + RESET_CONFIG=true
> + RESPAWN_TIMEOUT=0
> + SCRIPT_ERROR=1
> + SCRIPT_OK=0
> + SHUTDOWN=false
> + STDERR_FILE=couchdb.stderr
> + STDOUT_FILE=couchdb.stdout
> + print_arguments=
> + start_arguments=
> + background_start_arguments=
> + xulrunner-1.9.1 --gre-version
> + LD_LIBRARY_PATH=:/usr/lib/xulrunner-1.9.1.4/
> + export LD_LIBRARY_PATH
> + basename /usr/bin/couchdb
> + basename=couchdb
> + parse_script_option_list -d
> + _load_config
> + _add_config_file /etc/couchdb/default.ini
> + test -n
> + test -z
> + print_arguments=/etc/couchdb/default.ini
> + start_arguments= \"/etc/couchdb/default.ini\"
> + background_start_arguments= -a \"/etc/couchdb/default.ini\"
> + _add_config_dir /etc/couchdb/default.d
> + find /etc/couchdb/default.d -mindepth 1 -maxdepth 1 -type f
> + _add_config_file /etc/couchdb/local.ini
> + test -n  \"/etc/couchdb/default.ini\"
> + start_arguments= \"/etc/couchdb/default.ini\",
> + test -z /etc/couchdb/default.ini
> + cat
> + print_arguments=/etc/couchdb/default.ini
> /etc/couchdb/local.ini
> + start_arguments= \"/etc/couchdb/default.ini\",  \"/etc/couchdb/local.ini\"
> + background_start_arguments= -a \"/etc/couchdb/default.ini\" -a
> \"/etc/couchdb/local.ini\"
> + _add_config_dir /etc/couchdb/local.d
> + find /etc/couchdb/local.d -mindepth 1 -maxdepth 1 -type f
> + set +e
> + getopt hVa:A:ncibp:r:Ro:e:skd -d
> + options= -d --
> + test ! 0 -eq 0
> + set -e
> + eval set -- -d --
> + set -- -d --
> + [ 2 -gt 0 ]
> + shift
> + SHUTDOWN=true
> + [ 1 -gt 0 ]
> + shift
> + break
> + test false = true -o true = true
> + stop_couchdb false
> + _get_pid
> + test -f /var/run/couchdb/couchdb.pid
> + cat /var/run/couchdb/couchdb.pid
> + PID=367
> + echo 367
> + PID=367
> + test -n 367
> + test false = false
> /usr/bin/couchdb: 1: cannot create /var/run/couchdb/couchdb.pid:
> Permission denied
> + echo
> rrc@default:/usr/bin$ ps -A | grep couchdb
>  4389 ?        00:00:00 couchdb
>  4419 ?        00:00:00 couchdb
>  6399 ?        00:00:07 couchdb
> rrc@default:/usr/bin$ curl -X GET localhost:5984
> {"couchdb":"Welcome","version":"0.10.0"}
> rrc@default:/usr/bin$
>
>
>
> On Wed, Nov 11, 2009 at 4:31 PM, Noah Slater <nslater@tumbolia.org> wrote:
>>
>> On 11 Nov 2009, at 11:54, Robert Campbell wrote:
>>
>>> Sorry, I screwed that up. I saw the d as b for some reason. Here's the
>>> results from -d:
>>>
>>> root@default:~# ps -A | grep couchdb
>>> 4389 ?        00:00:00 couchdb
>>> 4419 ?        00:00:00 couchdb
>>> 6399 ?        00:00:05 couchdb
>>> root@default:~# couchdb -d
>>> root@default:~# ps -A | grep couchdb
>>> 4389 ?        00:00:00 couchdb
>>> 4419 ?        00:00:00 couchdb
>>> 6399 ?        00:00:05 couchdb
>>> root@default:~# curl -X GET localhost:5984
>>> {"couchdb":"Welcome","version":"0.10.0"}
>>> root@default:~#
>>>
>>> So basically it doesn't seem to do anything. The processes are still
>>> running and the couchdb server is still responding to requests.
>>
>> Please change the top of your /usr/bin/couchdb script to look like:
>>
>>        #!/bin/sh -ex
>>
>> And then try this again, pasting all the output.
>>
>>
>

Mime
View raw message