You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Mark James Adams <ma...@gmail.com> on 2008/06/09 22:42:32 UTC
Apache CouchDB needs write permission on the log directory: /
I'm just trying out 0.8.0 of Couch and I'm running into the error
"Apache CouchDB needs write permission on the log directory: /"
when starting Couch in the background. If I just run the database
directly, it works fine.
It appears that Couch thinks that the log directory is in /. I noticed
that the couch.ini file has a LogFile option, which was '/couch.log'.
I've set it to 'LogFile=/opt/local/var/log/couchdb/couch.log', but I'm
still getting the same error.
Any hints?
Thanks.
--
Mark James Adams
http://raysend.com/mark/
Re: Apache CouchDB needs write permission on the log directory: /
Posted by Mark James Adams <ma...@gmail.com>.
On Tue, Jun 10, 2008 at 6:28 PM, Noah Slater <ns...@apache.org> wrote:
> On Mon, Jun 09, 2008 at 09:42:32PM +0100, Mark James Adams wrote:
>> It appears that Couch thinks that the log directory is in /.
>
> When you installed CouchDB again into /tmp as a test was the configuration file
> still set to use "/" as the log directory
Yes, it looks like it was. I've reinstalled under /opt/local and set
the LogFile line in couch.ini to the correct directory, re-checked
permissions, and everything is working now. Thanks for your help.
> How are you starting CouchDB?
I'm starting it via SMF on OpenSolaris. If it is of use to anyone the
manifest I wrote is
http://wiki.joyent.com/solaris:smf-manifest-recipes#couchdb .
--
Mark James Adams
http://raysend.com/mark/
Re: Apache CouchDB needs write permission on the log directory: /
Posted by Noah Slater <ns...@apache.org>.
On Mon, Jun 09, 2008 at 09:42:32PM +0100, Mark James Adams wrote:
> It appears that Couch thinks that the log directory is in /.
When you installed CouchDB again into /tmp as a test was the configuration file
still set to use "/" as the log directory. Two tests on Ubuntu and OS X show
that the log directory setting is set correctly by the installation.
> that the couch.ini file has a LogFile option, which was '/couch.log'.
> I've set it to 'LogFile=/opt/local/var/log/couchdb/couch.log', but I'm
> still getting the same error.
How are you starting CouchDB?
If you are starting CouchDB by hand using the `couchdb` command then you need to
make sure that your user has write permission on the
`/opt/local/var/log/couchdb` directory as well as all the files and directories
contained within that.
If you are starting CouchDB using the `PREFIX/etc/init.d/couchdb start` command
you need to check your `PREFIX/etc/default/couchdb` file to see what user the
init.d script is running CouchDB as. Once you have checked this you need to make
sure that the log directory and it's contents are writable by this user.
Let me know if you're still having problems.
Thanks,
--
Noah Slater - The Apache Software Foundation <http://www.apache.org/>
Re: Apache CouchDB needs write permission on the log directory: /
Posted by Mark James Adams <ma...@gmail.com>.
Noah
> Could you update to the latest version, install into /tmp
I've checked out revision 666147 and I'm still having the same problem.
Thanks
--
Mark James Adams
http://raysend.com/mark/
Re: Apache CouchDB needs write permission on the log directory: /
Posted by Noah Slater <ns...@apache.org>.
On Mon, Jun 09, 2008 at 09:42:32PM +0100, Mark James Adams wrote:
> It appears that Couch thinks that the log directory is in /. I noticed
> that the couch.ini file has a LogFile option, which was '/couch.log'.
> I've set it to 'LogFile=/opt/local/var/log/couchdb/couch.log', but I'm
> still getting the same error.
This sounds like you may have caught a short lived bug in trunk.
Could you update to the latest version, install into /tmp using:
./configure --prefix=/tmp
Could you then report back to let us know if you still have the same problem.
Thanks,
--
Noah Slater - The Apache Software Foundation <http://www.apache.org/>