couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whims...@aol.com
Subject Re: installing couchdb 1.0.1 will not override .010 ubuntu 10.04 install
Date Sun, 29 Aug 2010 23:51:33 GMT
sudo apt-get remove purge couchdb...

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

Dan

 


 

 

-----Original Message-----
From: Kenneth Tyler <ken@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, <whimsica@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 <caphrim007@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<caphrim007@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

> >

> >

> >

> >

>

>

>


 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message