You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by francisco treacy <fr...@gmail.com> on 2009/08/02 23:25:13 UTC
can't access database after restart
Hi all,
I restarted CouchDB and now all I get is a super-cryptic Erlang-y error:
curl http://localhost:5984/blog =>
{"error":"error","reason":"{{badmatch,{error,eacces}},\n
[{couch_file,init,1},\n {gen_server,init_it,6},\n
{proc_lib,init_p,5}]}"}
However some URLs still work fine:
curl http://localhost:5984/ => {"couchdb":"Welcome","version":"0.9.0"}
curl http://localhost:5984/_all_dbs => ["blog","test"]
I'm totally clueless. Any ideas?
Thanks!
Francisco
Re: can't access database after restart
Posted by Noah Slater <ns...@apache.org>.
On Mon, Aug 03, 2009 at 08:04:58PM +0200, francisco treacy wrote:
> I guess it was that, something to do with users. I was trying to
> restart via sudo /etc/init.d/couchdb _ , but I needed to execute
> utils/run.
I've been trying to stay out of this thread, but oh well. The utils/run script
is for developers only. You should not be using this in a production setting. I
recommend you run through the following:
http://wiki.apache.org/couchdb/Troubleshooting
http://wiki.apache.org/couchdb/Error_messages
Both of those may be a little out of date, but they are written in such a way
that they should fix your problem, or give you the information you need to send
back to the list. Basically, if you get it working with the Troubleshooting
guide, then you have a problem with one of the following:
* Your previous installation is borked
* The couchdb user has issues with it's home directory
* The couchdb user doesn't have permission for /var/run/couchdb
* The couchdb user doesn't have permission for /var/log/couchdb
Hope this helps.
Best,
--
Noah Slater, http://tumbolia.org/nslater
Re: can't access database after restart
Posted by francisco treacy <fr...@gmail.com>.
I guess it was that, something to do with users. I was trying to
restart via sudo /etc/init.d/couchdb _ , but I needed to execute
utils/run.
Thanks,
Francisco
2009/8/3 Paul Joseph Davis <pa...@gmail.com>:
>
> Francisco,
>
> Looks like you're running couchdb as a different user that doesn't have
> write access to the existing couch files.
>
> Paul Davis
>
> On Aug 2, 2009, at 5:25 PM, francisco treacy <fr...@gmail.com>
> wrote:
>
>> Hi all,
>>
>> I restarted CouchDB and now all I get is a super-cryptic Erlang-y error:
>>
>> curl http://localhost:5984/blog =>
>> {"error":"error","reason":"{{badmatch,{error,eacces}},\n
>> [{couch_file,init,1},\n {gen_server,init_it,6},\n
>> {proc_lib,init_p,5}]}"}
>>
>> However some URLs still work fine:
>> curl http://localhost:5984/ => {"couchdb":"Welcome","version":"0.9.0"}
>> curl http://localhost:5984/_all_dbs => ["blog","test"]
>>
>> I'm totally clueless. Any ideas?
>>
>> Thanks!
>>
>> Francisco
>
Re: can't access database after restart
Posted by Paul Joseph Davis <pa...@gmail.com>.
Francisco,
Looks like you're running couchdb as a different user that doesn't
have write access to the existing couch files.
Paul Davis
On Aug 2, 2009, at 5:25 PM, francisco treacy
<fr...@gmail.com> wrote:
> Hi all,
>
> I restarted CouchDB and now all I get is a super-cryptic Erlang-y
> error:
>
> curl http://localhost:5984/blog =>
> {"error":"error","reason":"{{badmatch,{error,eacces}},\n
> [{couch_file,init,1},\n {gen_server,init_it,6},\n
> {proc_lib,init_p,5}]}"}
>
> However some URLs still work fine:
> curl http://localhost:5984/ => {"couchdb":"Welcome","version":"0.9.0"}
> curl http://localhost:5984/_all_dbs => ["blog","test"]
>
> I'm totally clueless. Any ideas?
>
> Thanks!
>
> Francisco