You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by wh...@aol.com on 2010/08/29 09:51:45 UTC

installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install

 

 Hi.

I'm installed couchdb 1.0.1 but there is some junk leftover on ubuntu server install 10.04
in the /etc/init.d/couchdb.

If  I try to start couchdb from /opt/couchdb_1.0.1/bin/couchdb it fails because of
some .010 leftovers.

How do I fix this.
couchdb 1.0.1 is now in opt/

Thanks,

Dan



Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install

Posted by Tiago Freire <ti...@gmail.com>.
I had the same problem.

I uninstalled Ubuntu's version prior to installing 1.0.1.
I didn't even get a logfile initially, as /opt/.../var/log/couchdb was owned by root. 
Changing ownership of the log folder and database_dir folder to couchdb:couchdb fixed it.

The permission settings should be fixed on 1.0.2, the installer should have teken car of it... Did anyone file a bug on this?

Best regards

--------------------
Tiago Freire
tiago.freire@cert-id.com.br
Cert ID do Brasil Serviços de Certificação Ltda.
www.cert-id.com.br
+55 (51) 3012-7080


On Aug 29, 2010, at 8:51 PM, whimsica@aol.com wrote:

> sudo apt-get remove purge couchdb...
> 
> I think that's the command maybe google remove purge package
> 
> Dan
> 
> 
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Kenneth Tyler <ke...@8thfold.com>
> To: user@couchdb.apache.org
> Sent: Sun, Aug 29, 2010 4:48 pm
> Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install
> 
> 
> i'm about to try to install couchdb on the same sort of server
> 
> are there any preventative steps i can take to avoid getting into this same
> 
> problem?
> 
> 
> 
> ken tyler
> 
> 
> 
> On Sun, Aug 29, 2010 at 4:45 PM, <wh...@aol.com> wrote:
> 
> 
> 
>> 
> 
>> I got couchdb to work...weirdly...with some help from the irc guys and
> 
>> purge remove the old one.
> 
>> 
> 
>> But I still have to go to the directory and type sudo ./couchdb start to
> 
>> get it to start
> 
>> and it won't startup with the server. So still some permission or directory
> 
>> issues.
> 
>> 
> 
>> 
> 
>> As to your questions.
> 
>> 
> 
>> I'm userdan not root
> 
>> opt...init script # Sourced by init script for configuration.
> 
>> 
> 
>> COUCHDB_USER=couchdb
> 
>> COUCHDB_STDOUT_FILE=/dev/null
> 
>> COUCHDB_STDERR_FILE=/dev/null
> 
>> COUCHDB_RESPAWN_TIMEOUT=5
> 
>> COUCHDB_OPTIONS=
> 
>> 
> 
>> 
> 
>> I can ls -la a directory but don't know where the database directory is.
> 
>> from bin/directory it is this.
> 
>> 
> 
>> drwxrwxrwx 2 root root   4096 2010-08-29 00:48 .
> 
>> drwxrwxrwx 7 root root   4096 2010-08-29 00:27 ..
> 
>> -rwxrwxrwx 1 root root   9896 2010-08-29 00:27 couchdb
> 
>> -rwxrwxrwx 1 root root   2417 2010-08-29 00:27 couchjs
> 
>> lrwxrwxrwx 1 root root     26 2010-08-29 00:27 dialyzer ->
> 
>> ../lib/erlang/bin/dialyzer
> 
>> lrwxrwxrwx 1 root root     22 2010-08-29 00:27 epmd ->
> 
>> ../lib/erlang/bin/epmd
> 
>> -rwxrwxrwx 1 root root    877 2010-08-29 00:27 erl
> 
>> lrwxrwxrwx 1 root root     22 2010-08-29 00:27 erlc ->
> 
>> ../lib/erlang/bin/erlc
> 
>> -rw-rw-rw- 1 root root 329902 2010-08-29 12:01 erl_crash.dump
> 
>> lrwxrwxrwx 1 root root     25 2010-08-29 00:27 escript ->
> 
>> ../lib/erlang/bin/escript
> 
>> -rwxrwxrwx 1 root root   1980 2010-08-17 06:28 js-config
> 
>> -rwxrwxrwx 1 root root   1264 2010-08-17 05:24 postinstall
> 
>> lrwxrwxrwx 1 root root     25 2010-08-29 00:27 run_erl ->
> 
>> ../lib/erlang/bin/run_erl
> 
>> lrwxrwxrwx 1 root root     24 2010-08-29 00:27 to_erl ->
> 
>> ../lib/erlang/bin/to_erl
> 
>> lrwxrwxrwx 1 root root     23 2010-08-29 00:27 typer ->
> 
>> ../lib/erlang/bin/typer
> 
>> 
> 
>> Thanks for helping me troubleshoot by the way,
> 
>> Making progress.
> 
>> Dan
> 
>> 
> 
>> 
> 
>> 
> 
>> 
> 
>> 
> 
>> 
> 
>> -----Original Message-----
> 
>> From: Tim Rupp <ca...@gmail.com>
> 
>> To: user@couchdb.apache.org
> 
>> Sent: Sun, Aug 29, 2010 12:44 pm
> 
>> Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04
> 
>> install
> 
>> 
> 
>> 
> 
>> In the config file
> 
>> 
> 
>>  /opt/couchdb-1.0.1/etc/couchdb/local.ini
> 
>> 
> 
>> Can you provide the directory listing of the database_dir directory?
> 
>> Including the hidden files (there may be a .delete directory)
> 
>> 
> 
>>  ls -la
> 
>> 
> 
>> Interested particularly in the permissions of the files.
> 
>> 
> 
>> Also, and it may or may not exist, but if there's a file
> 
>> 
> 
>>  /opt/couchdb-1.0.1/etc/default/couchdb
> 
>> 
> 
>> It may have entries in it such as
> 
>> 
> 
>> COUCHDB_USER=couchdb
> 
>> COUCHDB_STDOUT_FILE=/opt/couchdb-1.0.1/var/log/couchdb/couch.log
> 
>> COUCHDB_STDERR_FILE=/opt/couchdb-1.0.1/var/log/couchdb/couch.log
> 
>> COUCHDB_RESPAWN_TIMEOUT=5
> 
>> COUCHDB_OPTIONS=
> 
>> 
> 
>> If you have this file, is the COUCHDB_USER value set to the same thing that
> 
>> the permissions of the files and folders in your database_dir are set to?
> 
>> 
> 
>> Are you running couch as root, userdan, or couchdb when you are
> 
>> troubleshooting this?
> 
>> 
> 
>> -Tim
> 
>> 
> 
>> On 08/29/2010 02:13 PM, whimsica@aol.com wrote:
> 
>>> 
> 
>>> 
> 
>>> 
> 
>>> 
> 
>>> userdan@ubuntu:~$ ps -ef |grep couch
> 
>>> root      4490     1  0 11:35 ?        00:00:01 gedit
> 
>> /opt/couchdb-1.0.1/etc/couchdb/default.ini
> 
>>> userdan   4596  4533  0 11:47 pts/3    00:00:00 grep --color=auto
> 
>>> 
> 
>>> 
> 
>>> 
> 
>>> on /etc/couchdb the paths are the same as on
> 
>>> /opt/couchdb-1.0.1/etc/
> 
>>> for the ini files local and default.
> 
>>> 
> 
>>> although port and path are ;commented out
> 
>>> 
> 
>>> 
> 
>>> here is the crash
> 
>>> Apache CouchDB 1.0.1 (LogLevel=info) is starting.
> 
>>> 
> 
>>> =CRASH REPORT==== 29-Aug-2010::12:11:36 ===
> 
>>>   crasher:
> 
>>>     initial call: couch_event_sup:init/1
> 
>>>     pid:<0.80.0>
> 
>>>     registered_name: []
> 
>>>     exception exit: {{badmatch,
> 
>>>                          {'EXIT',
> 
>>>                              {{badmatch,{error,eacces}},
> 
>>>                               [{couch_log,init,1},
> 
>>>                                {gen_event,server_add_handler,4},
> 
>>>                                {gen_event,handle_msg,5},
> 
>>>                                {proc_lib,init_p_do_apply,3}]}}},
> 
>>>                      [{couch_event_sup,init,1},
> 
>>>                       {gen_server,init_it,6},
> 
>>>                       {proc_lib,init_p_do_apply,3}]}
> 
>>>       in function  gen_server:init_it/6
> 
>>>     ancestors: [couch_primary_services,couch_server_sup,<0.33.0>]
> 
>>>     messages: []
> 
>>>     links: [<0.79.0>,<0.6.0>]
> 
>>>     dictionary: []
> 
>>>     trap_exit: false
> 
>>>     status: running
> 
>>>     heap_size: 377
> 
>>>     stack_size: 24
> 
>>>     reductions: 117
> 
>>>   neighbours:
> 
>>> 
> 
>>> =SUPERVISOR REPORT==== 29-Aug-2010::12:11:36 ===
> 
>>>      Supervisor: {local,couch_primary_services}
> 
>>>      Context:    start_error
> 
>>>      Reason:     {{badmatch,{'EXIT',{{badmatch,{error,eacces}},
> 
>>>                                      [{couch_log,init,1},
> 
>>>                                       {gen_event,server_add_handler,4},
> 
>>>                                       {gen_event,handle_msg,5},
> 
>>>                                       {proc_lib,init_p_do_apply,3}]}}},
> 
>>>                   [{couch_event_sup,init,1},
> 
>>>                    {gen_server,init_it,6},
> 
>>>                    {proc_lib,init_p_do_apply,3}]}
> 
>>>      Offender:   [{pid,undefined},
> 
>>>                   {name,couch_log},
> 
>>>                   {mfa,{couch_log,start_link,[]}},
> 
>>>                   {restart_type,permanent},
> 
>>>                   {shutdown,brutal_kill},
> 
>>>                   {child_type,worker}]
> 
>>> 
> 
>>> 
> 
>>> =SUPERVISOR REPORT==== 29-Aug-2010::12:11:36 ===
> 
>>>      Supervisor: {local,couch_server_sup}
> 
>>>      Context:    start_error
> 
>>>      Reason:     shutdown
> 
>>>      Offender:   [{pid,undefined},
> 
>>>                   {name,couch_primary_services},
> 
>>>                   {mfa,{couch_server_sup,start_primary_services,[]}},
> 
>>>                   {restart_type,permanent},
> 
>>>                   {shutdown,infinity},
> 
>>>                   {child_type,supervisor}]
> 
>>> 
> 
>>> 
> 
>>> =CRASH REPORT==== 29-Aug-2010::12:11:36 ===
> 
>>>   crasher:
> 
>>>     initial call: application_master:init/4
> 
>>>     pid:<0.32.0>
> 
>>>     registered_name: []
> 
>>>     exception exit: {bad_return,
> 
>>>                         {{couch_app,start,
> 
>>>                              [normal,
> 
>>> 
> 
>> ["/opt/couchdb-1.0.1/etc/couchdb/default.ini",
> 
>>> 
> 
>> "/opt/couchdb-1.0.1/etc/couchdb/local.ini"]]},
> 
>>>                          {'EXIT',
> 
>>>                              {{badmatch,{error,shutdown}},
> 
>>>                               [{couch_server_sup,start_server,1},
> 
>>>                                {application_master,start_it_old,4}]}}}}
> 
>>>       in function  application_master:init/4
> 
>>>     ancestors: [<0.31.0>]
> 
>>>     messages: [{'EXIT',<0.33.0>,normal}]
> 
>>>     links: [<0.31.0>,<0.7.0>]
> 
>>>     dictionary: []
> 
>>>     trap_exit: true
> 
>>>     status: running
> 
>>>     heap_size: 987
> 
>>>     stack_size: 24
> 
>>>     reductions: 135
> 
>>>   neighbours:
> 
>>> 
> 
>>> =INFO REPORT==== 29-Aug-2010::12:11:36 ===
> 
>>>     application: couch
> 
>>>     exited: {bad_return,{{couch_app,start,
> 
>>>                                     [normal,
> 
>>> 
> 
>> ["/opt/couchdb-1.0.1/etc/couchdb/default.ini",
> 
>>> 
> 
>> "/opt/couchdb-1.0.1/etc/couchdb/local.ini"]]},
> 
>>>                          {'EXIT',{{badmatch,{error,shutdown}},
> 
>>>                                   [{couch_server_sup,start_server,1},
> 
>>> 
> 
>> {application_master,start_it_old,4}]}}}}
> 
>>>     type: temporary
> 
>>> 
> 
>>> 
> 
>>> Thansk,
> 
>>> 
> 
>>> Dan
> 
>>> 
> 
>>> 
> 
>>> 
> 
>>> -----Original Message-----
> 
>>> From: Tim Rupp<ca...@gmail.com>
> 
>>> To: user@couchdb.apache.org
> 
>>> Sent: Sun, Aug 29, 2010 10:20 am
> 
>>> Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04
> 
>> install
> 
>>> 
> 
>>> 
> 
>>> I'm going to take a shot in the dark and guess it's either
> 
>>> 
> 
>>>  - incorrect file/folder permissions on couchdb files
> 
>>>  - older couchdb currently running and using port
> 
>>> 
> 
>>> What's the output of a
> 
>>> 
> 
>>>    ps -ef |grep couch
> 
>>> 
> 
>>> That would eliminate the 2nd guess.
> 
>>> 
> 
>>> If you installed couchdb via an ubuntu package, that's what probably put
> 
>> files in /etc. If you built it from source and everything is stashed in
> 
>> /opt/couchdb-1.0.1, then I'd imagine there is a local.ini in the etc
> 
>> subdirectory, or some other subdirectory, of that.
> 
>>> 
> 
>>> I'm assuming that you didn't remove the previous apt package yet either,
> 
>> or else you have '.' in your path, because ./couchdb -c would be the command
> 
>> I would expect (including the ./) otherwise I'm guessing you're calling the
> 
>> ubuntu supplied one which would explain the configuration paths that are
> 
>> listed.
> 
>>> 
> 
>>> So a couple things
> 
>>> 
> 
>>> - check whether couch is running with ps and grep
> 
>>> 
> 
>>> - find whether or not there is a local.ini in a sub directory of
> 
>> /opt/couchdb-1.0.1 and if there is, check to see what the port and bind
> 
>> address are set to. Also set the log level to debug and check the path to
> 
>> the database files (database_dir and view_index_dir) and make sure the files
> 
>> in those directories are owned by the couch user.
> 
>>> 
> 
>>>   that would eliminate the first guess
> 
>>> 
> 
>>> - whats the output of /opt/couchdb-1.0.1/bin/couchdb -c ? My guess is a
> 
>> different path from the files in /etc
> 
>>> 
> 
>>> If after permissions and port checks it still doesn't run, run couch with
> 
>> the debug log level and send the output of relevant log entries in the
> 
>> couchdb log file.
> 
>>> 
> 
>>> If it's not specified, you can set the log file in your local.ini
> 
>>> 
> 
>>> ex.
> 
>>> 
> 
>>> [log]
> 
>>> level = debug
> 
>>> file = /opt/couchdb-1.0.1/var/log/couchdb/couch.log
> 
>>> 
> 
>>> And if that doesn't turn on any light-bulbs in our heads, the next thing
> 
>> I'd do is strace the process and see if the output reveals any other clues.
> 
>>> 
> 
>>> Topics on this page
> 
>>> 
> 
>>> http://wiki.apache.org/couchdb/Error_messages
> 
>>> 
> 
>>> Seem to suggest permissions though.
> 
>>> 
> 
>>> -Tim
> 
>>> 
> 
>>> On 08/29/2010 11:50 AM, whimsica@aol.com wrote:
> 
>>>> init terminating in do_boot",{{badmatch
> 
>>> 
> 
>>> 
> 
>>> 
> 
>>> 
> 
>> 
> 
>> 
> 
>> 
> 
> 
> 


Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install

Posted by wh...@aol.com.
sudo apt-get remove purge couchdb...

I think that's the command maybe google remove purge package

Dan

 


 

 

-----Original Message-----
From: Kenneth Tyler <ke...@8thfold.com>
To: user@couchdb.apache.org
Sent: Sun, Aug 29, 2010 4:48 pm
Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install


i'm about to try to install couchdb on the same sort of server

are there any preventative steps i can take to avoid getting into this same

problem?



ken tyler



On Sun, Aug 29, 2010 at 4:45 PM, <wh...@aol.com> wrote:



>

>  I got couchdb to work...weirdly...with some help from the irc guys and

> purge remove the old one.

>

> But I still have to go to the directory and type sudo ./couchdb start to

> get it to start

> and it won't startup with the server. So still some permission or directory

> issues.

>

>

> As to your questions.

>

> I'm userdan not root

> opt...init script # Sourced by init script for configuration.

>

> COUCHDB_USER=couchdb

> COUCHDB_STDOUT_FILE=/dev/null

> COUCHDB_STDERR_FILE=/dev/null

> COUCHDB_RESPAWN_TIMEOUT=5

> COUCHDB_OPTIONS=

>

>

> I can ls -la a directory but don't know where the database directory is.

> from bin/directory it is this.

>

> drwxrwxrwx 2 root root   4096 2010-08-29 00:48 .

> drwxrwxrwx 7 root root   4096 2010-08-29 00:27 ..

> -rwxrwxrwx 1 root root   9896 2010-08-29 00:27 couchdb

> -rwxrwxrwx 1 root root   2417 2010-08-29 00:27 couchjs

> lrwxrwxrwx 1 root root     26 2010-08-29 00:27 dialyzer ->

> ../lib/erlang/bin/dialyzer

> lrwxrwxrwx 1 root root     22 2010-08-29 00:27 epmd ->

> ../lib/erlang/bin/epmd

> -rwxrwxrwx 1 root root    877 2010-08-29 00:27 erl

> lrwxrwxrwx 1 root root     22 2010-08-29 00:27 erlc ->

> ../lib/erlang/bin/erlc

> -rw-rw-rw- 1 root root 329902 2010-08-29 12:01 erl_crash.dump

> lrwxrwxrwx 1 root root     25 2010-08-29 00:27 escript ->

> ../lib/erlang/bin/escript

> -rwxrwxrwx 1 root root   1980 2010-08-17 06:28 js-config

> -rwxrwxrwx 1 root root   1264 2010-08-17 05:24 postinstall

> lrwxrwxrwx 1 root root     25 2010-08-29 00:27 run_erl ->

> ../lib/erlang/bin/run_erl

> lrwxrwxrwx 1 root root     24 2010-08-29 00:27 to_erl ->

> ../lib/erlang/bin/to_erl

> lrwxrwxrwx 1 root root     23 2010-08-29 00:27 typer ->

> ../lib/erlang/bin/typer

>

> Thanks for helping me troubleshoot by the way,

> Making progress.

> Dan

>

>

>

>

>

>

> -----Original Message-----

> From: Tim Rupp <ca...@gmail.com>

> To: user@couchdb.apache.org

> Sent: Sun, Aug 29, 2010 12:44 pm

> Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04

> install

>

>

> In the config file

>

>   /opt/couchdb-1.0.1/etc/couchdb/local.ini

>

> Can you provide the directory listing of the database_dir directory?

> Including the hidden files (there may be a .delete directory)

>

>   ls -la

>

> Interested particularly in the permissions of the files.

>

> Also, and it may or may not exist, but if there's a file

>

>   /opt/couchdb-1.0.1/etc/default/couchdb

>

> It may have entries in it such as

>

> COUCHDB_USER=couchdb

> COUCHDB_STDOUT_FILE=/opt/couchdb-1.0.1/var/log/couchdb/couch.log

> COUCHDB_STDERR_FILE=/opt/couchdb-1.0.1/var/log/couchdb/couch.log

> COUCHDB_RESPAWN_TIMEOUT=5

> COUCHDB_OPTIONS=

>

> If you have this file, is the COUCHDB_USER value set to the same thing that

> the permissions of the files and folders in your database_dir are set to?

>

> Are you running couch as root, userdan, or couchdb when you are

> troubleshooting this?

>

> -Tim

>

> On 08/29/2010 02:13 PM, whimsica@aol.com wrote:

> >

> >

> >

> >

> > userdan@ubuntu:~$ ps -ef |grep couch

> > root      4490     1  0 11:35 ?        00:00:01 gedit

> /opt/couchdb-1.0.1/etc/couchdb/default.ini

> > userdan   4596  4533  0 11:47 pts/3    00:00:00 grep --color=auto

> >

> >

> >

> > on /etc/couchdb the paths are the same as on

> > /opt/couchdb-1.0.1/etc/

> > for the ini files local and default.

> >

> > although port and path are ;commented out

> >

> >

> > here is the crash

> > Apache CouchDB 1.0.1 (LogLevel=info) is starting.

> >

> > =CRASH REPORT==== 29-Aug-2010::12:11:36 ===

> >    crasher:

> >      initial call: couch_event_sup:init/1

> >      pid:<0.80.0>

> >      registered_name: []

> >      exception exit: {{badmatch,

> >                           {'EXIT',

> >                               {{badmatch,{error,eacces}},

> >                                [{couch_log,init,1},

> >                                 {gen_event,server_add_handler,4},

> >                                 {gen_event,handle_msg,5},

> >                                 {proc_lib,init_p_do_apply,3}]}}},

> >                       [{couch_event_sup,init,1},

> >                        {gen_server,init_it,6},

> >                        {proc_lib,init_p_do_apply,3}]}

> >        in function  gen_server:init_it/6

> >      ancestors: [couch_primary_services,couch_server_sup,<0.33.0>]

> >      messages: []

> >      links: [<0.79.0>,<0.6.0>]

> >      dictionary: []

> >      trap_exit: false

> >      status: running

> >      heap_size: 377

> >      stack_size: 24

> >      reductions: 117

> >    neighbours:

> >

> > =SUPERVISOR REPORT==== 29-Aug-2010::12:11:36 ===

> >       Supervisor: {local,couch_primary_services}

> >       Context:    start_error

> >       Reason:     {{badmatch,{'EXIT',{{badmatch,{error,eacces}},

> >                                       [{couch_log,init,1},

> >                                        {gen_event,server_add_handler,4},

> >                                        {gen_event,handle_msg,5},

> >                                        {proc_lib,init_p_do_apply,3}]}}},

> >                    [{couch_event_sup,init,1},

> >                     {gen_server,init_it,6},

> >                     {proc_lib,init_p_do_apply,3}]}

> >       Offender:   [{pid,undefined},

> >                    {name,couch_log},

> >                    {mfa,{couch_log,start_link,[]}},

> >                    {restart_type,permanent},

> >                    {shutdown,brutal_kill},

> >                    {child_type,worker}]

> >

> >

> > =SUPERVISOR REPORT==== 29-Aug-2010::12:11:36 ===

> >       Supervisor: {local,couch_server_sup}

> >       Context:    start_error

> >       Reason:     shutdown

> >       Offender:   [{pid,undefined},

> >                    {name,couch_primary_services},

> >                    {mfa,{couch_server_sup,start_primary_services,[]}},

> >                    {restart_type,permanent},

> >                    {shutdown,infinity},

> >                    {child_type,supervisor}]

> >

> >

> > =CRASH REPORT==== 29-Aug-2010::12:11:36 ===

> >    crasher:

> >      initial call: application_master:init/4

> >      pid:<0.32.0>

> >      registered_name: []

> >      exception exit: {bad_return,

> >                          {{couch_app,start,

> >                               [normal,

> >

>  ["/opt/couchdb-1.0.1/etc/couchdb/default.ini",

> >

> "/opt/couchdb-1.0.1/etc/couchdb/local.ini"]]},

> >                           {'EXIT',

> >                               {{badmatch,{error,shutdown}},

> >                                [{couch_server_sup,start_server,1},

> >                                 {application_master,start_it_old,4}]}}}}

> >        in function  application_master:init/4

> >      ancestors: [<0.31.0>]

> >      messages: [{'EXIT',<0.33.0>,normal}]

> >      links: [<0.31.0>,<0.7.0>]

> >      dictionary: []

> >      trap_exit: true

> >      status: running

> >      heap_size: 987

> >      stack_size: 24

> >      reductions: 135

> >    neighbours:

> >

> > =INFO REPORT==== 29-Aug-2010::12:11:36 ===

> >      application: couch

> >      exited: {bad_return,{{couch_app,start,

> >                                      [normal,

> >

> ["/opt/couchdb-1.0.1/etc/couchdb/default.ini",

> >

>  "/opt/couchdb-1.0.1/etc/couchdb/local.ini"]]},

> >                           {'EXIT',{{badmatch,{error,shutdown}},

> >                                    [{couch_server_sup,start_server,1},

> >

> {application_master,start_it_old,4}]}}}}

> >      type: temporary

> >

> >

> > Thansk,

> >

> > Dan

> >

> >

> >

> > -----Original Message-----

> > From: Tim Rupp<ca...@gmail.com>

> > To: user@couchdb.apache.org

> > Sent: Sun, Aug 29, 2010 10:20 am

> > Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04

> install

> >

> >

> > I'm going to take a shot in the dark and guess it's either

> >

> >   - incorrect file/folder permissions on couchdb files

> >   - older couchdb currently running and using port

> >

> > What's the output of a

> >

> >     ps -ef |grep couch

> >

> > That would eliminate the 2nd guess.

> >

> > If you installed couchdb via an ubuntu package, that's what probably put

> files in /etc. If you built it from source and everything is stashed in

> /opt/couchdb-1.0.1, then I'd imagine there is a local.ini in the etc

> subdirectory, or some other subdirectory, of that.

> >

> > I'm assuming that you didn't remove the previous apt package yet either,

> or else you have '.' in your path, because ./couchdb -c would be the command

> I would expect (including the ./) otherwise I'm guessing you're calling the

> ubuntu supplied one which would explain the configuration paths that are

> listed.

> >

> > So a couple things

> >

> > - check whether couch is running with ps and grep

> >

> > - find whether or not there is a local.ini in a sub directory of

> /opt/couchdb-1.0.1 and if there is, check to see what the port and bind

> address are set to. Also set the log level to debug and check the path to

> the database files (database_dir and view_index_dir) and make sure the files

> in those directories are owned by the couch user.

> >

> >    that would eliminate the first guess

> >

> > - whats the output of /opt/couchdb-1.0.1/bin/couchdb -c ? My guess is a

> different path from the files in /etc

> >

> > If after permissions and port checks it still doesn't run, run couch with

> the debug log level and send the output of relevant log entries in the

> couchdb log file.

> >

> > If it's not specified, you can set the log file in your local.ini

> >

> > ex.

> >

> > [log]

> > level = debug

> > file = /opt/couchdb-1.0.1/var/log/couchdb/couch.log

> >

> > And if that doesn't turn on any light-bulbs in our heads, the next thing

> I'd do is strace the process and see if the output reveals any other clues.

> >

> > Topics on this page

> >

> > http://wiki.apache.org/couchdb/Error_messages

> >

> > Seem to suggest permissions though.

> >

> > -Tim

> >

> > On 08/29/2010 11:50 AM, whimsica@aol.com wrote:

> >> init terminating in do_boot",{{badmatch

> >

> >

> >

> >

>

>

>


 

Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install

Posted by Kenneth Tyler <ke...@8thfold.com>.
i'm about to try to install couchdb on the same sort of server
are there any preventative steps i can take to avoid getting into this same
problem?

ken tyler

On Sun, Aug 29, 2010 at 4:45 PM, <wh...@aol.com> wrote:

>
>  I got couchdb to work...weirdly...with some help from the irc guys and
> purge remove the old one.
>
> But I still have to go to the directory and type sudo ./couchdb start to
> get it to start
> and it won't startup with the server. So still some permission or directory
> issues.
>
>
> As to your questions.
>
> I'm userdan not root
> opt...init script # Sourced by init script for configuration.
>
> COUCHDB_USER=couchdb
> COUCHDB_STDOUT_FILE=/dev/null
> COUCHDB_STDERR_FILE=/dev/null
> COUCHDB_RESPAWN_TIMEOUT=5
> COUCHDB_OPTIONS=
>
>
> I can ls -la a directory but don't know where the database directory is.
> from bin/directory it is this.
>
> drwxrwxrwx 2 root root   4096 2010-08-29 00:48 .
> drwxrwxrwx 7 root root   4096 2010-08-29 00:27 ..
> -rwxrwxrwx 1 root root   9896 2010-08-29 00:27 couchdb
> -rwxrwxrwx 1 root root   2417 2010-08-29 00:27 couchjs
> lrwxrwxrwx 1 root root     26 2010-08-29 00:27 dialyzer ->
> ../lib/erlang/bin/dialyzer
> lrwxrwxrwx 1 root root     22 2010-08-29 00:27 epmd ->
> ../lib/erlang/bin/epmd
> -rwxrwxrwx 1 root root    877 2010-08-29 00:27 erl
> lrwxrwxrwx 1 root root     22 2010-08-29 00:27 erlc ->
> ../lib/erlang/bin/erlc
> -rw-rw-rw- 1 root root 329902 2010-08-29 12:01 erl_crash.dump
> lrwxrwxrwx 1 root root     25 2010-08-29 00:27 escript ->
> ../lib/erlang/bin/escript
> -rwxrwxrwx 1 root root   1980 2010-08-17 06:28 js-config
> -rwxrwxrwx 1 root root   1264 2010-08-17 05:24 postinstall
> lrwxrwxrwx 1 root root     25 2010-08-29 00:27 run_erl ->
> ../lib/erlang/bin/run_erl
> lrwxrwxrwx 1 root root     24 2010-08-29 00:27 to_erl ->
> ../lib/erlang/bin/to_erl
> lrwxrwxrwx 1 root root     23 2010-08-29 00:27 typer ->
> ../lib/erlang/bin/typer
>
> Thanks for helping me troubleshoot by the way,
> Making progress.
> Dan
>
>
>
>
>
>
> -----Original Message-----
> From: Tim Rupp <ca...@gmail.com>
> To: user@couchdb.apache.org
> Sent: Sun, Aug 29, 2010 12:44 pm
> Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04
> install
>
>
> In the config file
>
>   /opt/couchdb-1.0.1/etc/couchdb/local.ini
>
> Can you provide the directory listing of the database_dir directory?
> Including the hidden files (there may be a .delete directory)
>
>   ls -la
>
> Interested particularly in the permissions of the files.
>
> Also, and it may or may not exist, but if there's a file
>
>   /opt/couchdb-1.0.1/etc/default/couchdb
>
> It may have entries in it such as
>
> COUCHDB_USER=couchdb
> COUCHDB_STDOUT_FILE=/opt/couchdb-1.0.1/var/log/couchdb/couch.log
> COUCHDB_STDERR_FILE=/opt/couchdb-1.0.1/var/log/couchdb/couch.log
> COUCHDB_RESPAWN_TIMEOUT=5
> COUCHDB_OPTIONS=
>
> If you have this file, is the COUCHDB_USER value set to the same thing that
> the permissions of the files and folders in your database_dir are set to?
>
> Are you running couch as root, userdan, or couchdb when you are
> troubleshooting this?
>
> -Tim
>
> On 08/29/2010 02:13 PM, whimsica@aol.com wrote:
> >
> >
> >
> >
> > userdan@ubuntu:~$ ps -ef |grep couch
> > root      4490     1  0 11:35 ?        00:00:01 gedit
> /opt/couchdb-1.0.1/etc/couchdb/default.ini
> > userdan   4596  4533  0 11:47 pts/3    00:00:00 grep --color=auto
> >
> >
> >
> > on /etc/couchdb the paths are the same as on
> > /opt/couchdb-1.0.1/etc/
> > for the ini files local and default.
> >
> > although port and path are ;commented out
> >
> >
> > here is the crash
> > Apache CouchDB 1.0.1 (LogLevel=info) is starting.
> >
> > =CRASH REPORT==== 29-Aug-2010::12:11:36 ===
> >    crasher:
> >      initial call: couch_event_sup:init/1
> >      pid:<0.80.0>
> >      registered_name: []
> >      exception exit: {{badmatch,
> >                           {'EXIT',
> >                               {{badmatch,{error,eacces}},
> >                                [{couch_log,init,1},
> >                                 {gen_event,server_add_handler,4},
> >                                 {gen_event,handle_msg,5},
> >                                 {proc_lib,init_p_do_apply,3}]}}},
> >                       [{couch_event_sup,init,1},
> >                        {gen_server,init_it,6},
> >                        {proc_lib,init_p_do_apply,3}]}
> >        in function  gen_server:init_it/6
> >      ancestors: [couch_primary_services,couch_server_sup,<0.33.0>]
> >      messages: []
> >      links: [<0.79.0>,<0.6.0>]
> >      dictionary: []
> >      trap_exit: false
> >      status: running
> >      heap_size: 377
> >      stack_size: 24
> >      reductions: 117
> >    neighbours:
> >
> > =SUPERVISOR REPORT==== 29-Aug-2010::12:11:36 ===
> >       Supervisor: {local,couch_primary_services}
> >       Context:    start_error
> >       Reason:     {{badmatch,{'EXIT',{{badmatch,{error,eacces}},
> >                                       [{couch_log,init,1},
> >                                        {gen_event,server_add_handler,4},
> >                                        {gen_event,handle_msg,5},
> >                                        {proc_lib,init_p_do_apply,3}]}}},
> >                    [{couch_event_sup,init,1},
> >                     {gen_server,init_it,6},
> >                     {proc_lib,init_p_do_apply,3}]}
> >       Offender:   [{pid,undefined},
> >                    {name,couch_log},
> >                    {mfa,{couch_log,start_link,[]}},
> >                    {restart_type,permanent},
> >                    {shutdown,brutal_kill},
> >                    {child_type,worker}]
> >
> >
> > =SUPERVISOR REPORT==== 29-Aug-2010::12:11:36 ===
> >       Supervisor: {local,couch_server_sup}
> >       Context:    start_error
> >       Reason:     shutdown
> >       Offender:   [{pid,undefined},
> >                    {name,couch_primary_services},
> >                    {mfa,{couch_server_sup,start_primary_services,[]}},
> >                    {restart_type,permanent},
> >                    {shutdown,infinity},
> >                    {child_type,supervisor}]
> >
> >
> > =CRASH REPORT==== 29-Aug-2010::12:11:36 ===
> >    crasher:
> >      initial call: application_master:init/4
> >      pid:<0.32.0>
> >      registered_name: []
> >      exception exit: {bad_return,
> >                          {{couch_app,start,
> >                               [normal,
> >
>  ["/opt/couchdb-1.0.1/etc/couchdb/default.ini",
> >
> "/opt/couchdb-1.0.1/etc/couchdb/local.ini"]]},
> >                           {'EXIT',
> >                               {{badmatch,{error,shutdown}},
> >                                [{couch_server_sup,start_server,1},
> >                                 {application_master,start_it_old,4}]}}}}
> >        in function  application_master:init/4
> >      ancestors: [<0.31.0>]
> >      messages: [{'EXIT',<0.33.0>,normal}]
> >      links: [<0.31.0>,<0.7.0>]
> >      dictionary: []
> >      trap_exit: true
> >      status: running
> >      heap_size: 987
> >      stack_size: 24
> >      reductions: 135
> >    neighbours:
> >
> > =INFO REPORT==== 29-Aug-2010::12:11:36 ===
> >      application: couch
> >      exited: {bad_return,{{couch_app,start,
> >                                      [normal,
> >
> ["/opt/couchdb-1.0.1/etc/couchdb/default.ini",
> >
>  "/opt/couchdb-1.0.1/etc/couchdb/local.ini"]]},
> >                           {'EXIT',{{badmatch,{error,shutdown}},
> >                                    [{couch_server_sup,start_server,1},
> >
> {application_master,start_it_old,4}]}}}}
> >      type: temporary
> >
> >
> > Thansk,
> >
> > Dan
> >
> >
> >
> > -----Original Message-----
> > From: Tim Rupp<ca...@gmail.com>
> > To: user@couchdb.apache.org
> > Sent: Sun, Aug 29, 2010 10:20 am
> > Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04
> install
> >
> >
> > I'm going to take a shot in the dark and guess it's either
> >
> >   - incorrect file/folder permissions on couchdb files
> >   - older couchdb currently running and using port
> >
> > What's the output of a
> >
> >     ps -ef |grep couch
> >
> > That would eliminate the 2nd guess.
> >
> > If you installed couchdb via an ubuntu package, that's what probably put
> files in /etc. If you built it from source and everything is stashed in
> /opt/couchdb-1.0.1, then I'd imagine there is a local.ini in the etc
> subdirectory, or some other subdirectory, of that.
> >
> > I'm assuming that you didn't remove the previous apt package yet either,
> or else you have '.' in your path, because ./couchdb -c would be the command
> I would expect (including the ./) otherwise I'm guessing you're calling the
> ubuntu supplied one which would explain the configuration paths that are
> listed.
> >
> > So a couple things
> >
> > - check whether couch is running with ps and grep
> >
> > - find whether or not there is a local.ini in a sub directory of
> /opt/couchdb-1.0.1 and if there is, check to see what the port and bind
> address are set to. Also set the log level to debug and check the path to
> the database files (database_dir and view_index_dir) and make sure the files
> in those directories are owned by the couch user.
> >
> >    that would eliminate the first guess
> >
> > - whats the output of /opt/couchdb-1.0.1/bin/couchdb -c ? My guess is a
> different path from the files in /etc
> >
> > If after permissions and port checks it still doesn't run, run couch with
> the debug log level and send the output of relevant log entries in the
> couchdb log file.
> >
> > If it's not specified, you can set the log file in your local.ini
> >
> > ex.
> >
> > [log]
> > level = debug
> > file = /opt/couchdb-1.0.1/var/log/couchdb/couch.log
> >
> > And if that doesn't turn on any light-bulbs in our heads, the next thing
> I'd do is strace the process and see if the output reveals any other clues.
> >
> > Topics on this page
> >
> > http://wiki.apache.org/couchdb/Error_messages
> >
> > Seem to suggest permissions though.
> >
> > -Tim
> >
> > On 08/29/2010 11:50 AM, whimsica@aol.com wrote:
> >> init terminating in do_boot",{{badmatch
> >
> >
> >
> >
>
>
>

Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install

Posted by wh...@aol.com.
 I got couchdb to work...weirdly...with some help from the irc guys and purge remove the old one.

But I still have to go to the directory and type sudo ./couchdb start to get it to start
and it won't startup with the server. So still some permission or directory issues.


As to your questions.

I'm userdan not root
opt...init script # Sourced by init script for configuration.

COUCHDB_USER=couchdb
COUCHDB_STDOUT_FILE=/dev/null
COUCHDB_STDERR_FILE=/dev/null
COUCHDB_RESPAWN_TIMEOUT=5
COUCHDB_OPTIONS=

 
I can ls -la a directory but don't know where the database directory is.
from bin/directory it is this.

drwxrwxrwx 2 root root   4096 2010-08-29 00:48 .
drwxrwxrwx 7 root root   4096 2010-08-29 00:27 ..
-rwxrwxrwx 1 root root   9896 2010-08-29 00:27 couchdb
-rwxrwxrwx 1 root root   2417 2010-08-29 00:27 couchjs
lrwxrwxrwx 1 root root     26 2010-08-29 00:27 dialyzer -> ../lib/erlang/bin/dialyzer
lrwxrwxrwx 1 root root     22 2010-08-29 00:27 epmd -> ../lib/erlang/bin/epmd
-rwxrwxrwx 1 root root    877 2010-08-29 00:27 erl
lrwxrwxrwx 1 root root     22 2010-08-29 00:27 erlc -> ../lib/erlang/bin/erlc
-rw-rw-rw- 1 root root 329902 2010-08-29 12:01 erl_crash.dump
lrwxrwxrwx 1 root root     25 2010-08-29 00:27 escript -> ../lib/erlang/bin/escript
-rwxrwxrwx 1 root root   1980 2010-08-17 06:28 js-config
-rwxrwxrwx 1 root root   1264 2010-08-17 05:24 postinstall
lrwxrwxrwx 1 root root     25 2010-08-29 00:27 run_erl -> ../lib/erlang/bin/run_erl
lrwxrwxrwx 1 root root     24 2010-08-29 00:27 to_erl -> ../lib/erlang/bin/to_erl
lrwxrwxrwx 1 root root     23 2010-08-29 00:27 typer -> ../lib/erlang/bin/typer

Thanks for helping me troubleshoot by the way,
Making progress.
Dan


 

 

-----Original Message-----
From: Tim Rupp <ca...@gmail.com>
To: user@couchdb.apache.org
Sent: Sun, Aug 29, 2010 12:44 pm
Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install


In the config file 
 
   /opt/couchdb-1.0.1/etc/couchdb/local.ini 
 
Can you provide the directory listing of the database_dir directory? Including the hidden files (there may be a .delete directory) 
 
   ls -la 
 
Interested particularly in the permissions of the files. 
 
Also, and it may or may not exist, but if there's a file 
 
   /opt/couchdb-1.0.1/etc/default/couchdb 
 
It may have entries in it such as 
 
COUCHDB_USER=couchdb 
COUCHDB_STDOUT_FILE=/opt/couchdb-1.0.1/var/log/couchdb/couch.log 
COUCHDB_STDERR_FILE=/opt/couchdb-1.0.1/var/log/couchdb/couch.log 
COUCHDB_RESPAWN_TIMEOUT=5 
COUCHDB_OPTIONS= 
 
If you have this file, is the COUCHDB_USER value set to the same thing that the permissions of the files and folders in your database_dir are set to? 
 
Are you running couch as root, userdan, or couchdb when you are troubleshooting this? 
 
-Tim 
 
On 08/29/2010 02:13 PM, whimsica@aol.com wrote: 
> 
> 
> 
> 
> userdan@ubuntu:~$ ps -ef |grep couch 
> root      4490     1  0 11:35 ?        00:00:01 gedit /opt/couchdb-1.0.1/etc/couchdb/default.ini 
> userdan   4596  4533  0 11:47 pts/3    00:00:00 grep --color=auto 
> 
> 
> 
> on /etc/couchdb the paths are the same as on 
> /opt/couchdb-1.0.1/etc/ 
> for the ini files local and default. 
> 
> although port and path are ;commented out 
> 
> 
> here is the crash 
> Apache CouchDB 1.0.1 (LogLevel=info) is starting. 
> 
> =CRASH REPORT==== 29-Aug-2010::12:11:36 === 
>    crasher: 
>      initial call: couch_event_sup:init/1 
>      pid:<0.80.0> 
>      registered_name: [] 
>      exception exit: {{badmatch, 
>                           {'EXIT', 
>                               {{badmatch,{error,eacces}}, 
>                                [{couch_log,init,1}, 
>                                 {gen_event,server_add_handler,4}, 
>                                 {gen_event,handle_msg,5}, 
>                                 {proc_lib,init_p_do_apply,3}]}}}, 
>                       [{couch_event_sup,init,1}, 
>                        {gen_server,init_it,6}, 
>                        {proc_lib,init_p_do_apply,3}]} 
>        in function  gen_server:init_it/6 
>      ancestors: [couch_primary_services,couch_server_sup,<0.33.0>] 
>      messages: [] 
>      links: [<0.79.0>,<0.6.0>] 
>      dictionary: [] 
>      trap_exit: false 
>      status: running 
>      heap_size: 377 
>      stack_size: 24 
>      reductions: 117 
>    neighbours: 
> 
> =SUPERVISOR REPORT==== 29-Aug-2010::12:11:36 === 
>       Supervisor: {local,couch_primary_services} 
>       Context:    start_error 
>       Reason:     {{badmatch,{'EXIT',{{badmatch,{error,eacces}}, 
>                                       [{couch_log,init,1}, 
>                                        {gen_event,server_add_handler,4}, 
>                                        {gen_event,handle_msg,5}, 
>                                        {proc_lib,init_p_do_apply,3}]}}}, 
>                    [{couch_event_sup,init,1}, 
>                     {gen_server,init_it,6}, 
>                     {proc_lib,init_p_do_apply,3}]} 
>       Offender:   [{pid,undefined}, 
>                    {name,couch_log}, 
>                    {mfa,{couch_log,start_link,[]}}, 
>                    {restart_type,permanent}, 
>                    {shutdown,brutal_kill}, 
>                    {child_type,worker}] 
> 
> 
> =SUPERVISOR REPORT==== 29-Aug-2010::12:11:36 === 
>       Supervisor: {local,couch_server_sup} 
>       Context:    start_error 
>       Reason:     shutdown 
>       Offender:   [{pid,undefined}, 
>                    {name,couch_primary_services}, 
>                    {mfa,{couch_server_sup,start_primary_services,[]}}, 
>                    {restart_type,permanent}, 
>                    {shutdown,infinity}, 
>                    {child_type,supervisor}] 
> 
> 
> =CRASH REPORT==== 29-Aug-2010::12:11:36 === 
>    crasher: 
>      initial call: application_master:init/4 
>      pid:<0.32.0> 
>      registered_name: [] 
>      exception exit: {bad_return, 
>                          {{couch_app,start, 
>                               [normal, 
>                                ["/opt/couchdb-1.0.1/etc/couchdb/default.ini", 
>                                 "/opt/couchdb-1.0.1/etc/couchdb/local.ini"]]}, 
>                           {'EXIT', 
>                               {{badmatch,{error,shutdown}}, 
>                                [{couch_server_sup,start_server,1}, 
>                                 {application_master,start_it_old,4}]}}}} 
>        in function  application_master:init/4 
>      ancestors: [<0.31.0>] 
>      messages: [{'EXIT',<0.33.0>,normal}] 
>      links: [<0.31.0>,<0.7.0>] 
>      dictionary: [] 
>      trap_exit: true 
>      status: running 
>      heap_size: 987 
>      stack_size: 24 
>      reductions: 135 
>    neighbours: 
> 
> =INFO REPORT==== 29-Aug-2010::12:11:36 === 
>      application: couch 
>      exited: {bad_return,{{couch_app,start, 
>                                      [normal, 
>                                       ["/opt/couchdb-1.0.1/etc/couchdb/default.ini", 
>                                        "/opt/couchdb-1.0.1/etc/couchdb/local.ini"]]}, 
>                           {'EXIT',{{badmatch,{error,shutdown}}, 
>                                    [{couch_server_sup,start_server,1}, 
>                                     {application_master,start_it_old,4}]}}}} 
>      type: temporary 
> 
> 
> Thansk, 
> 
> Dan 
> 
> 
> 
> -----Original Message----- 
> From: Tim Rupp<ca...@gmail.com> 
> To: user@couchdb.apache.org 
> Sent: Sun, Aug 29, 2010 10:20 am 
> Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install 
> 
> 
> I'm going to take a shot in the dark and guess it's either 
> 
>   - incorrect file/folder permissions on couchdb files 
>   - older couchdb currently running and using port 
> 
> What's the output of a 
> 
>     ps -ef |grep couch 
> 
> That would eliminate the 2nd guess. 
> 
> If you installed couchdb via an ubuntu package, that's what probably put files in /etc. If you built it from source and everything is stashed in /opt/couchdb-1.0.1, then I'd imagine there is a local.ini in the etc subdirectory, or some other subdirectory, of that. 
> 
> I'm assuming that you didn't remove the previous apt package yet either, or else you have '.' in your path, because ./couchdb -c would be the command I would expect (including the ./) otherwise I'm guessing you're calling the ubuntu supplied one which would explain the configuration paths that are listed. 
> 
> So a couple things 
> 
> - check whether couch is running with ps and grep 
> 
> - find whether or not there is a local.ini in a sub directory of /opt/couchdb-1.0.1 and if there is, check to see what the port and bind address are set to. Also set the log level to debug and check the path to the database files (database_dir and view_index_dir) and make sure the files in those directories are owned by the couch user. 
> 
>    that would eliminate the first guess 
> 
> - whats the output of /opt/couchdb-1.0.1/bin/couchdb -c ? My guess is a different path from the files in /etc 
> 
> If after permissions and port checks it still doesn't run, run couch with the debug log level and send the output of relevant log entries in the couchdb log file. 
> 
> If it's not specified, you can set the log file in your local.ini 
> 
> ex. 
> 
> [log] 
> level = debug 
> file = /opt/couchdb-1.0.1/var/log/couchdb/couch.log 
> 
> And if that doesn't turn on any light-bulbs in our heads, the next thing I'd do is strace the process and see if the output reveals any other clues. 
> 
> Topics on this page 
> 
> http://wiki.apache.org/couchdb/Error_messages 
> 
> Seem to suggest permissions though. 
> 
> -Tim 
> 
> On 08/29/2010 11:50 AM, whimsica@aol.com wrote: 
>> init terminating in do_boot",{{badmatch 
> 
> 
> 
> 

 

Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install

Posted by Tim Rupp <ca...@gmail.com>.
In the config file

	/opt/couchdb-1.0.1/etc/couchdb/local.ini

Can you provide the directory listing of the database_dir directory? 
Including the hidden files (there may be a .delete directory)

	ls -la

Interested particularly in the permissions of the files.

Also, and it may or may not exist, but if there's a file

	/opt/couchdb-1.0.1/etc/default/couchdb

It may have entries in it such as

COUCHDB_USER=couchdb
COUCHDB_STDOUT_FILE=/opt/couchdb-1.0.1/var/log/couchdb/couch.log
COUCHDB_STDERR_FILE=/opt/couchdb-1.0.1/var/log/couchdb/couch.log
COUCHDB_RESPAWN_TIMEOUT=5
COUCHDB_OPTIONS=


If you have this file, is the COUCHDB_USER value set to the same thing 
that the permissions of the files and folders in your database_dir are 
set to?

Are you running couch as root, userdan, or couchdb when you are 
troubleshooting this?

-Tim

On 08/29/2010 02:13 PM, whimsica@aol.com wrote:
>
>
>
>
> userdan@ubuntu:~$ ps -ef |grep couch
> root      4490     1  0 11:35 ?        00:00:01 gedit /opt/couchdb-1.0.1/etc/couchdb/default.ini
> userdan   4596  4533  0 11:47 pts/3    00:00:00 grep --color=auto
>
>
>
> on /etc/couchdb the paths are the same as on
> /opt/couchdb-1.0.1/etc/
> for the ini files local and default.
>
> although port and path are ;commented out
>
>
> here is the crash
> Apache CouchDB 1.0.1 (LogLevel=info) is starting.
>
> =CRASH REPORT==== 29-Aug-2010::12:11:36 ===
>    crasher:
>      initial call: couch_event_sup:init/1
>      pid:<0.80.0>
>      registered_name: []
>      exception exit: {{badmatch,
>                           {'EXIT',
>                               {{badmatch,{error,eacces}},
>                                [{couch_log,init,1},
>                                 {gen_event,server_add_handler,4},
>                                 {gen_event,handle_msg,5},
>                                 {proc_lib,init_p_do_apply,3}]}}},
>                       [{couch_event_sup,init,1},
>                        {gen_server,init_it,6},
>                        {proc_lib,init_p_do_apply,3}]}
>        in function  gen_server:init_it/6
>      ancestors: [couch_primary_services,couch_server_sup,<0.33.0>]
>      messages: []
>      links: [<0.79.0>,<0.6.0>]
>      dictionary: []
>      trap_exit: false
>      status: running
>      heap_size: 377
>      stack_size: 24
>      reductions: 117
>    neighbours:
>
> =SUPERVISOR REPORT==== 29-Aug-2010::12:11:36 ===
>       Supervisor: {local,couch_primary_services}
>       Context:    start_error
>       Reason:     {{badmatch,{'EXIT',{{badmatch,{error,eacces}},
>                                       [{couch_log,init,1},
>                                        {gen_event,server_add_handler,4},
>                                        {gen_event,handle_msg,5},
>                                        {proc_lib,init_p_do_apply,3}]}}},
>                    [{couch_event_sup,init,1},
>                     {gen_server,init_it,6},
>                     {proc_lib,init_p_do_apply,3}]}
>       Offender:   [{pid,undefined},
>                    {name,couch_log},
>                    {mfa,{couch_log,start_link,[]}},
>                    {restart_type,permanent},
>                    {shutdown,brutal_kill},
>                    {child_type,worker}]
>
>
> =SUPERVISOR REPORT==== 29-Aug-2010::12:11:36 ===
>       Supervisor: {local,couch_server_sup}
>       Context:    start_error
>       Reason:     shutdown
>       Offender:   [{pid,undefined},
>                    {name,couch_primary_services},
>                    {mfa,{couch_server_sup,start_primary_services,[]}},
>                    {restart_type,permanent},
>                    {shutdown,infinity},
>                    {child_type,supervisor}]
>
>
> =CRASH REPORT==== 29-Aug-2010::12:11:36 ===
>    crasher:
>      initial call: application_master:init/4
>      pid:<0.32.0>
>      registered_name: []
>      exception exit: {bad_return,
>                          {{couch_app,start,
>                               [normal,
>                                ["/opt/couchdb-1.0.1/etc/couchdb/default.ini",
>                                 "/opt/couchdb-1.0.1/etc/couchdb/local.ini"]]},
>                           {'EXIT',
>                               {{badmatch,{error,shutdown}},
>                                [{couch_server_sup,start_server,1},
>                                 {application_master,start_it_old,4}]}}}}
>        in function  application_master:init/4
>      ancestors: [<0.31.0>]
>      messages: [{'EXIT',<0.33.0>,normal}]
>      links: [<0.31.0>,<0.7.0>]
>      dictionary: []
>      trap_exit: true
>      status: running
>      heap_size: 987
>      stack_size: 24
>      reductions: 135
>    neighbours:
>
> =INFO REPORT==== 29-Aug-2010::12:11:36 ===
>      application: couch
>      exited: {bad_return,{{couch_app,start,
>                                      [normal,
>                                       ["/opt/couchdb-1.0.1/etc/couchdb/default.ini",
>                                        "/opt/couchdb-1.0.1/etc/couchdb/local.ini"]]},
>                           {'EXIT',{{badmatch,{error,shutdown}},
>                                    [{couch_server_sup,start_server,1},
>                                     {application_master,start_it_old,4}]}}}}
>      type: temporary
>
>
> Thansk,
>
> Dan
>
>
>
> -----Original Message-----
> From: Tim Rupp<ca...@gmail.com>
> To: user@couchdb.apache.org
> Sent: Sun, Aug 29, 2010 10:20 am
> Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install
>
>
> I'm going to take a shot in the dark and guess it's either
>
>   - incorrect file/folder permissions on couchdb files
>   - older couchdb currently running and using port
>
> What's the output of a
>
>     ps -ef |grep couch
>
> That would eliminate the 2nd guess.
>
> If you installed couchdb via an ubuntu package, that's what probably put files in /etc. If you built it from source and everything is stashed in /opt/couchdb-1.0.1, then I'd imagine there is a local.ini in the etc subdirectory, or some other subdirectory, of that.
>
> I'm assuming that you didn't remove the previous apt package yet either, or else you have '.' in your path, because ./couchdb -c would be the command I would expect (including the ./) otherwise I'm guessing you're calling the ubuntu supplied one which would explain the configuration paths that are listed.
>
> So a couple things
>
> - check whether couch is running with ps and grep
>
> - find whether or not there is a local.ini in a sub directory of /opt/couchdb-1.0.1 and if there is, check to see what the port and bind address are set to. Also set the log level to debug and check the path to the database files (database_dir and view_index_dir) and make sure the files in those directories are owned by the couch user.
>
>    that would eliminate the first guess
>
> - whats the output of /opt/couchdb-1.0.1/bin/couchdb -c ? My guess is a different path from the files in /etc
>
> If after permissions and port checks it still doesn't run, run couch with the debug log level and send the output of relevant log entries in the couchdb log file.
>
> If it's not specified, you can set the log file in your local.ini
>
> ex.
>
> [log]
> level = debug
> file = /opt/couchdb-1.0.1/var/log/couchdb/couch.log
>
> And if that doesn't turn on any light-bulbs in our heads, the next thing I'd do is strace the process and see if the output reveals any other clues.
>
> Topics on this page
>
> http://wiki.apache.org/couchdb/Error_messages
>
> Seem to suggest permissions though.
>
> -Tim
>
> On 08/29/2010 11:50 AM, whimsica@aol.com wrote:
>> init terminating in do_boot",{{badmatch
>
>
>
>

Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install

Posted by wh...@aol.com.

 

userdan@ubuntu:~$ ps -ef |grep couch
root      4490     1  0 11:35 ?        00:00:01 gedit /opt/couchdb-1.0.1/etc/couchdb/default.ini
userdan   4596  4533  0 11:47 pts/3    00:00:00 grep --color=auto 

 

on /etc/couchdb the paths are the same as on 
/opt/couchdb-1.0.1/etc/
for the ini files local and default.

although port and path are ;commented out


here is the crash 
Apache CouchDB 1.0.1 (LogLevel=info) is starting.

=CRASH REPORT==== 29-Aug-2010::12:11:36 ===
  crasher:
    initial call: couch_event_sup:init/1
    pid: <0.80.0>
    registered_name: []
    exception exit: {{badmatch,
                         {'EXIT',
                             {{badmatch,{error,eacces}},
                              [{couch_log,init,1},
                               {gen_event,server_add_handler,4},
                               {gen_event,handle_msg,5},
                               {proc_lib,init_p_do_apply,3}]}}},
                     [{couch_event_sup,init,1},
                      {gen_server,init_it,6},
                      {proc_lib,init_p_do_apply,3}]}
      in function  gen_server:init_it/6
    ancestors: [couch_primary_services,couch_server_sup,<0.33.0>]
    messages: []
    links: [<0.79.0>,<0.6.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 377
    stack_size: 24
    reductions: 117
  neighbours:

=SUPERVISOR REPORT==== 29-Aug-2010::12:11:36 ===
     Supervisor: {local,couch_primary_services}
     Context:    start_error
     Reason:     {{badmatch,{'EXIT',{{badmatch,{error,eacces}},
                                     [{couch_log,init,1},
                                      {gen_event,server_add_handler,4},
                                      {gen_event,handle_msg,5},
                                      {proc_lib,init_p_do_apply,3}]}}},
                  [{couch_event_sup,init,1},
                   {gen_server,init_it,6},
                   {proc_lib,init_p_do_apply,3}]}
     Offender:   [{pid,undefined},
                  {name,couch_log},
                  {mfa,{couch_log,start_link,[]}},
                  {restart_type,permanent},
                  {shutdown,brutal_kill},
                  {child_type,worker}]


=SUPERVISOR REPORT==== 29-Aug-2010::12:11:36 ===
     Supervisor: {local,couch_server_sup}
     Context:    start_error
     Reason:     shutdown
     Offender:   [{pid,undefined},
                  {name,couch_primary_services},
                  {mfa,{couch_server_sup,start_primary_services,[]}},
                  {restart_type,permanent},
                  {shutdown,infinity},
                  {child_type,supervisor}]


=CRASH REPORT==== 29-Aug-2010::12:11:36 ===
  crasher:
    initial call: application_master:init/4
    pid: <0.32.0>
    registered_name: []
    exception exit: {bad_return,
                        {{couch_app,start,
                             [normal,
                              ["/opt/couchdb-1.0.1/etc/couchdb/default.ini",
                               "/opt/couchdb-1.0.1/etc/couchdb/local.ini"]]},
                         {'EXIT',
                             {{badmatch,{error,shutdown}},
                              [{couch_server_sup,start_server,1},
                               {application_master,start_it_old,4}]}}}}
      in function  application_master:init/4
    ancestors: [<0.31.0>]
    messages: [{'EXIT',<0.33.0>,normal}]
    links: [<0.31.0>,<0.7.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 987
    stack_size: 24
    reductions: 135
  neighbours:

=INFO REPORT==== 29-Aug-2010::12:11:36 ===
    application: couch
    exited: {bad_return,{{couch_app,start,
                                    [normal,
                                     ["/opt/couchdb-1.0.1/etc/couchdb/default.ini",
                                      "/opt/couchdb-1.0.1/etc/couchdb/local.ini"]]},
                         {'EXIT',{{badmatch,{error,shutdown}},
                                  [{couch_server_sup,start_server,1},
                                   {application_master,start_it_old,4}]}}}}
    type: temporary


Thansk,

Dan

 

-----Original Message-----
From: Tim Rupp <ca...@gmail.com>
To: user@couchdb.apache.org
Sent: Sun, Aug 29, 2010 10:20 am
Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install


I'm going to take a shot in the dark and guess it's either 
 
 - incorrect file/folder permissions on couchdb files 
 - older couchdb currently running and using port 
 
What's the output of a 
 
   ps -ef |grep couch 
 
That would eliminate the 2nd guess. 
 
If you installed couchdb via an ubuntu package, that's what probably put files in /etc. If you built it from source and everything is stashed in /opt/couchdb-1.0.1, then I'd imagine there is a local.ini in the etc subdirectory, or some other subdirectory, of that. 
 
I'm assuming that you didn't remove the previous apt package yet either, or else you have '.' in your path, because ./couchdb -c would be the command I would expect (including the ./) otherwise I'm guessing you're calling the ubuntu supplied one which would explain the configuration paths that are listed. 
 
So a couple things 
 
- check whether couch is running with ps and grep 
 
- find whether or not there is a local.ini in a sub directory of /opt/couchdb-1.0.1 and if there is, check to see what the port and bind address are set to. Also set the log level to debug and check the path to the database files (database_dir and view_index_dir) and make sure the files in those directories are owned by the couch user. 
 
  that would eliminate the first guess 
 
- whats the output of /opt/couchdb-1.0.1/bin/couchdb -c ? My guess is a different path from the files in /etc 
 
If after permissions and port checks it still doesn't run, run couch with the debug log level and send the output of relevant log entries in the couchdb log file. 
 
If it's not specified, you can set the log file in your local.ini 
 
ex. 
 
[log] 
level = debug 
file = /opt/couchdb-1.0.1/var/log/couchdb/couch.log 
 
And if that doesn't turn on any light-bulbs in our heads, the next thing I'd do is strace the process and see if the output reveals any other clues. 
 
Topics on this page 
 
http://wiki.apache.org/couchdb/Error_messages 
 
Seem to suggest permissions though. 
 
-Tim 
 
On 08/29/2010 11:50 AM, whimsica@aol.com wrote: 
> init terminating in do_boot",{{badmatch 

 
 

Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install

Posted by Tim Rupp <ca...@gmail.com>.
I'm going to take a shot in the dark and guess it's either

  - incorrect file/folder permissions on couchdb files
  - older couchdb currently running and using port

What's the output of a

	ps -ef |grep couch

That would eliminate the 2nd guess.

If you installed couchdb via an ubuntu package, that's what probably put 
files in /etc. If you built it from source and everything is stashed in 
/opt/couchdb-1.0.1, then I'd imagine there is a local.ini in the etc 
subdirectory, or some other subdirectory, of that.

I'm assuming that you didn't remove the previous apt package yet either, 
or else you have '.' in your path, because ./couchdb -c would be the 
command I would expect (including the ./) otherwise I'm guessing you're 
calling the ubuntu supplied one which would explain the configuration 
paths that are listed.

So a couple things

- check whether couch is running with ps and grep

- find whether or not there is a local.ini in a sub directory of 
/opt/couchdb-1.0.1 and if there is, check to see what the port and bind 
address are set to. Also set the log level to debug and check the path 
to the database files (database_dir and view_index_dir) and make sure 
the files in those directories are owned by the couch user.

   that would eliminate the first guess

- whats the output of /opt/couchdb-1.0.1/bin/couchdb -c ? My guess is a 
different path from the files in /etc

If after permissions and port checks it still doesn't run, run couch 
with the debug log level and send the output of relevant log entries in 
the couchdb log file.

If it's not specified, you can set the log file in your local.ini

ex.

[log]
level = debug
file = /opt/couchdb-1.0.1/var/log/couchdb/couch.log

And if that doesn't turn on any light-bulbs in our heads, the next thing 
I'd do is strace the process and see if the output reveals any other clues.

Topics on this page

http://wiki.apache.org/couchdb/Error_messages

Seem to suggest permissions though.

-Tim

On 08/29/2010 11:50 AM, whimsica@aol.com wrote:
> init terminating in do_boot",{{badmatch

Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install

Posted by wh...@aol.com.
The error messages are
Apache CouchDB 0.10.0 (LogLevel=info) is starting.
{"init terminating in do_boot",{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1},{erl_eval,do_apply,5},{erl_eval,exprs,5},{init,start_it,1},{init,start_em,1}]}}
init terminating in do_boot ()

userdan@ubuntu:/opt/couchdb-1.0.1/bin$ couchdb -c
/etc/couchdb/default.ini
/etc/couchdb/local.ini

But when installing the 1.0.1 no files were put in the etc directory.
etc/init.d has a couchdb folder with some old stuff in it. I don't know where it came from but it seems like it's from .010.
This was a fresh ubuntu server install.
And a fresh 1.0.1 install.

What should I try next?

On another note
 before I was on the irc.freenode.net/couchdb but I had to reinstall ubuntu and now I can't get on by typing irc://irc.freenode.net/couchdb into firefox.
How do I get back on this irc chat?


Thanks

Dan

 

 


 

 

-----Original Message-----
From: Tim Rupp <ca...@gmail.com>
To: user@couchdb.apache.org
Sent: Sun, Aug 29, 2010 6:48 am
Subject: Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install


What kind of "junk" is left over? Just the init script? What error message does couch fail with? 
 
Can you set the log level in the local.ini file to "debug", and provide the output from running couch manually with that set? 
 
You may have multiple local.ini files laying around due to the two installs. You can check to see which config files are loaded with 
 
   /opt/couchdb_1.0.1/bin/couchdb -c 
 
And edit the correct one from there 
 
-Tim 
 
On 08/29/2010 02:51 AM, whimsica@aol.com wrote: 
> 
> 
> 
>   Hi. 
> 
> I'm installed couchdb 1.0.1 but there is some junk leftover on ubuntu server install 10.04 
> in the /etc/init.d/couchdb. 
> 
> If  I try to start couchdb from /opt/couchdb_1.0.1/bin/couchdb it fails because of 
> some .010 leftovers. 
> 
> How do I fix this. 
> couchdb 1.0.1 is now in opt/ 
> 
> Thanks, 
> 
> Dan 
> 
> 
> 

 

Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install

Posted by Tim Rupp <ca...@gmail.com>.
What kind of "junk" is left over? Just the init script? What error 
message does couch fail with?

Can you set the log level in the local.ini file to "debug", and provide 
the output from running couch manually with that set?

You may have multiple local.ini files laying around due to the two 
installs. You can check to see which config files are loaded with

	/opt/couchdb_1.0.1/bin/couchdb -c

And edit the correct one from there

-Tim

On 08/29/2010 02:51 AM, whimsica@aol.com wrote:
>
>
>
>   Hi.
>
> I'm installed couchdb 1.0.1 but there is some junk leftover on ubuntu server install 10.04
> in the /etc/init.d/couchdb.
>
> If  I try to start couchdb from /opt/couchdb_1.0.1/bin/couchdb it fails because of
> some .010 leftovers.
>
> How do I fix this.
> couchdb 1.0.1 is now in opt/
>
> Thanks,
>
> Dan
>
>
>