couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Gonzalez (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1253) Resetting config chain not working properly
Date Fri, 19 Aug 2011 08:14:31 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087602#comment-13087602
] 

Daniel Gonzalez commented on COUCHDB-1253:
------------------------------------------

Mmmm, strange. I have done as you say, and couchdb seems to start now.

I must say that the problem was happening because I was starting couchdb as a normal user,
but the directory /usr/local/etc/couchdb was only readable/writable by the couchdb user:

ls -lrtd /usr/local/etc/couchdb/
drwxrwx--- 4 couchdb couchdb 4096 2011-08-17 15:10 /usr/local/etc/couchdb/

I got couchdb to start by doing:

sudo chmod 775 /usr/local/etc/couchdb

So that the permissions were:

ls -lrtd /usr/local/etc/couchdb/
drwxrwxr-x 4 couchdb couchdb 4096 2011-08-17 15:10 /usr/local/etc/couchdb/

I was hoping that couchdb could start by reading the conf files in /usr/local/etc/couchdb,
even though I was explicitly telling couchdb not to look there.
That seemed to do the trick.

Now, to repeat the test with your instructions, I set the permission back to 770, but the
problem did not occur again.

Now I can not get the problem to happen again, with -e or with -ex, with 775 or with 770.
Strange indeed.

I attach nevertheless the log file.

Thanks.

> Resetting config chain not working properly
> -------------------------------------------
>
>                 Key: COUCHDB-1253
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1253
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 1.1
>         Environment: Linux 2.6.32-33-generic #70-Ubuntu SMP Thu Jul 7 21:09:46 UTC 2011
i686 GNU/Linux
> Ubuntu 10.04.3 LTS
>            Reporter: Daniel Gonzalez
>            Priority: Minor
>         Attachments: couchdb.log
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Resetting the config chain seems to be working:
> couchdb -n -a /tmp/tmpuPqqSF.paisley.test/test.ini -c
> /tmp/tmpuPqqSF.paisley.test/test.ini
> But it does actually not work:
> couchdb -n -a /tmp/tmpuPqqSF.paisley.test/test.ini
> ...
> =INFO REPORT==== 18-Aug-2011::15:21:32 ===
>     application: couch
>     exited: {bad_return,{{couch_app,start,
>                                     [normal,
>                                      ["/usr/local/etc/couchdb/default.ini",
>                                       "/usr/local/etc/couchdb/local.ini"]]},
>                          {'EXIT',{{badmatch,{error,shutdown}},
>                                   [{couch_server_sup,start_server,1},
>                                    {application_master,start_it_old,4}]}}}}
>     type: temporary
> ...

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message