You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Matthias Deja <ma...@gmail.com> on 2009/04/26 01:36:35 UTC
Only getting "eacces" after port install on Mac OS X
Hello,
I installed CouchDB just a few minutes ago on my MacOS X 10.5 system.
As documented in the CouchDB Wiki, I used "port" to install CouchDB.
CouchDB is started, and I can use Futon on my web browser. However, on
all tests from the test suite and when trying to create a database, I
get an "eacces" error message.
Probably the error is simple to solve, but I do not know how. Please
help me. I already tried rebooting (no manual starting of CouchDB was
required, because I installed it as a service), and I tried changing
the owner of the CouchDB log and lib directories to "couchdb". The
error message stays the same.
My knowledge of Unix is present, but very limited. However, if You
tell me which commands to enter, I will do so and send You the result.
Thanks very much!
Madoc.
Re: Only getting "eacces" after port install on Mac OS X
Posted by Matthias Deja <ma...@gmail.com>.
One more remark before I go to bed: I created a test database when I
ran couchdb as root, then started couchdb with the couchdb user. Now,
I cannot even see the database that I created as root. However, when
launching couchdb as root again, the database is visible in Futon.
Am 26.04.2009 um 02:28 schrieb Matthias Deja:
> Hello Paul,
>
> thanks for the quick response. You are correct about the location of
> couchdb on Mac OS. Unfortunately, the error stays the same on my
> system.
>
> I ran the chown, which did not help. Also, I checked the config file
> under:
>
> /opt/local/Library/LaunchDaemons/org.apache.couchdb.plist
> (Is there another CouchDB init file anywhere?) - This file seems to
> contain all the right paths.
>
> In order to find out if CouchDB runs under the right user, I did:
>
> <<<
> Nova:lib madoc$ ps -U couchdb
> PID TT STAT TIME COMMAND
> 622 ?? SNs 0:00.20 /System/Library/Frameworks/
> CoreServices.framework/Frameworks/Metadata.fr
> 626 ?? Ss 0:00.76 /opt/local/lib/erlang/erts-5.6.5/bin/beam -
> Bd -K true -- -root /opt/loca
> >>>
>
> Looks oky to me.
>
> I also restarted the service. But the error stays the same on my
> system.
>
> By the way: The CouchDB lib directory (/opt/local/var/lib/couchdb)
> is empty, except for .turd_couchdb. Shall it be this way?
>
> Thanks,
> Madoc.
>
> Am 26.04.2009 um 01:52 schrieb Paul Davis:
>
>> Madoc,
>>
>> From what you describe it sounds very much like the couchdb user is
>> unable to write to the lib directory. I'm not extensively familiar
>> with the ports version, but you'll want to make sure that the lib
>> directory is writable by the user running couchdb. I know you said
>> that you changed the owner but some things to double check:
>>
>> My guess is that the couchdb lib directory for a port installed
>> version is at /opt/local/lib/couchdb
>>
>> You need to make sure that this directory has write permissions for
>> the user running couchdb. You might want to try something like:
>>
>> $ sudo chown -R couchdb:couchdb /opt/local/lib/couchdb
>>
>> Also, you can check the ini files for the root directory to make sure
>> that the lib direcotry is /op/local/lib/couchdb if things are still
>> broken. Also, you can double check that the beam process is running
>> as
>> the couchdb user with top.
>>
>> Other than that, I haven't got many pointers, but seeing as couchdb
>> starts and you can visit futon this definitely sounds like a weird
>> permissions error.
>>
>> HTH,
>> Paul Davis
>>
>> On Sat, Apr 25, 2009 at 7:36 PM, Matthias Deja
>> <ma...@gmail.com> wrote:
>>> Hello,
>>>
>>> I installed CouchDB just a few minutes ago on my MacOS X 10.5
>>> system. As
>>> documented in the CouchDB Wiki, I used "port" to install CouchDB.
>>>
>>> CouchDB is started, and I can use Futon on my web browser.
>>> However, on all
>>> tests from the test suite and when trying to create a database, I
>>> get an
>>> "eacces" error message.
>>>
>>> Probably the error is simple to solve, but I do not know how.
>>> Please help
>>> me. I already tried rebooting (no manual starting of CouchDB was
>>> required,
>>> because I installed it as a service), and I tried changing the
>>> owner of the
>>> CouchDB log and lib directories to "couchdb". The error message
>>> stays the
>>> same.
>>>
>>> My knowledge of Unix is present, but very limited. However, if You
>>> tell me
>>> which commands to enter, I will do so and send You the result.
>>>
>>> Thanks very much!
>>> Madoc.
>>>
>
Re: Only getting "eacces" after port install on Mac OS X
Posted by Matthias Deja <ma...@gmail.com>.
Hello Nils,
CouchDBX works. All tests except a few pass. (Those that do not pass
seem to be security related: replication, security_validation, stats,
rev_stemming)
But that does not solve my user permission problem. I still need to
find out which crucial file cannot be written by the couchdb user.
Madoc.
Am 26.04.2009 um 14:10 schrieb Nils Breunese:
> Matthias Deja wrote:
>
>> At least, I can run couchdb as root now and do some testing and
>> development.
>
> Have you tried CouchDBX?
>
> ----
> CouchDBX is the simplest way to get CouchDB running on your Mac:
>
> 1. Download
> 2. Double-Click
> 3. Relax
>
> The current version is 0.9.0. It includes Apache CouchDB 0.9.0,
> Erlang R12B-5, Spidermonkey 1.7 and ICU 3.8.
> ----
>
> http://janl.github.com/couchdbx/
>
> Nils Breunese.
>
> De informatie vervat in deze e-mail en meegezonden bijlagen is
> uitsluitend bedoeld voor gebruik door de geadresseerde en kan
> vertrouwelijke informatie bevatten. Openbaarmaking,
> vermenigvuldiging, verspreiding en/of verstrekking van deze
> informatie aan derden is voorbehouden aan geadresseerde. De VPRO
> staat niet in voor de juiste en volledige overbrenging van de inhoud
> van een verzonden e-mail, noch voor tijdige ontvangst daarvan.
RE: Only getting "eacces" after port install on Mac OS X
Posted by Nils Breunese <N....@vpro.nl>.
Matthias Deja wrote:
> At least, I can run couchdb as root now and do some testing and development.
Have you tried CouchDBX?
----
CouchDBX is the simplest way to get CouchDB running on your Mac:
1. Download
2. Double-Click
3. Relax
The current version is 0.9.0. It includes Apache CouchDB 0.9.0, Erlang R12B-5, Spidermonkey 1.7 and ICU 3.8.
----
http://janl.github.com/couchdbx/
Nils Breunese.
De informatie vervat in deze e-mail en meegezonden bijlagen is uitsluitend bedoeld voor gebruik door de geadresseerde en kan vertrouwelijke informatie bevatten. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is voorbehouden aan geadresseerde. De VPRO staat niet in voor de juiste en volledige overbrenging van de inhoud van een verzonden e-mail, noch voor tijdige ontvangst daarvan.
Re: Only getting "eacces" after port install on Mac OS X
Posted by Matthias Deja <ma...@gmail.com>.
Paul,
my couchdb directory looks exactly like yours:
drwxr-xr-x 5 couchdb couchdb 170 26 Apr 02:41 couchdb
I also checked the other ini files, as You wrote. On a quick glance,
they seemed correct. (No "/var", only "/opt" at least.) And since
couchdb works for the root user (see other mail), I did not
investigate further. However, I noticed that the ini files in /opt/
local/etc/couchdb and the folder itself belonged to root, so I changed
the owner to couchdb:couchdb.
That did not work, too. At least, I can run couchdb as root now and do
some testing and development. But on the long run, I need to run it
with its own user of course.
Thanks once more and good night (at least in my timezone),
Madoc.
Am 26.04.2009 um 02:37 schrieb Paul Davis:
> Madoc,
>
> You'll also want to check /opt/local/etc/couchdb/ for more ini
> files. Other things you'll want to check is that the write
> permissions on /opt/local/lib/couchdb actually allow writes. It
> should look something like:
>
> davisp@puny:~/Desktop$ ls -ld /usr/local/var/lib/couchdb/
> drwxr-xr-x 4 couchdb root 4096 2009-03-24 20:28 /usr/local/var/lib/
> couchdb/
>
> Except that it'd be /opt/local instead of /usr/local for ports.
>
> Other things to verify, can you stop the service and then just run
> couchdb as root and see if it works?
>
> HTH,
> Paul Davis
>
> Matthias Deja wrote:
>> Hello Paul,
>>
>> thanks for the quick response. You are correct about the location
>> of couchdb on Mac OS. Unfortunately, the error stays the same on my
>> system.
>>
>> I ran the chown, which did not help. Also, I checked the config
>> file under:
>>
>> /opt/local/Library/LaunchDaemons/org.apache.couchdb.plist
>> (Is there another CouchDB init file anywhere?) - This file seems to
>> contain all the right paths.
>>
>> In order to find out if CouchDB runs under the right user, I did:
>>
>> <<<
>> Nova:lib madoc$ ps -U couchdb
>> PID TT STAT TIME COMMAND
>> 622 ?? SNs 0:00.20 /System/Library/Frameworks/
>> CoreServices.framework/Frameworks/Metadata.fr
>> 626 ?? Ss 0:00.76 /opt/local/lib/erlang/erts-5.6.5/bin/beam
>> -Bd -K true -- -root /opt/loca
>> >>>
>>
>> Looks oky to me.
>>
>> I also restarted the service. But the error stays the same on my
>> system.
>>
>> By the way: The CouchDB lib directory (/opt/local/var/lib/couchdb)
>> is empty, except for .turd_couchdb. Shall it be this way?
>>
>> Thanks,
>> Madoc.
>>
>> Am 26.04.2009 um 01:52 schrieb Paul Davis:
>>
>>> Madoc,
>>>
>>> From what you describe it sounds very much like the couchdb user is
>>> unable to write to the lib directory. I'm not extensively familiar
>>> with the ports version, but you'll want to make sure that the lib
>>> directory is writable by the user running couchdb. I know you said
>>> that you changed the owner but some things to double check:
>>>
>>> My guess is that the couchdb lib directory for a port installed
>>> version is at /opt/local/lib/couchdb
>>>
>>> You need to make sure that this directory has write permissions for
>>> the user running couchdb. You might want to try something like:
>>>
>>> $ sudo chown -R couchdb:couchdb /opt/local/lib/couchdb
>>>
>>> Also, you can check the ini files for the root directory to make
>>> sure
>>> that the lib direcotry is /op/local/lib/couchdb if things are still
>>> broken. Also, you can double check that the beam process is
>>> running as
>>> the couchdb user with top.
>>>
>>> Other than that, I haven't got many pointers, but seeing as couchdb
>>> starts and you can visit futon this definitely sounds like a weird
>>> permissions error.
>>>
>>> HTH,
>>> Paul Davis
>>>
>>> On Sat, Apr 25, 2009 at 7:36 PM, Matthias Deja
>>> <ma...@gmail.com> wrote:
>>>> Hello,
>>>>
>>>> I installed CouchDB just a few minutes ago on my MacOS X 10.5
>>>> system. As
>>>> documented in the CouchDB Wiki, I used "port" to install CouchDB.
>>>>
>>>> CouchDB is started, and I can use Futon on my web browser.
>>>> However, on all
>>>> tests from the test suite and when trying to create a database, I
>>>> get an
>>>> "eacces" error message.
>>>>
>>>> Probably the error is simple to solve, but I do not know how.
>>>> Please help
>>>> me. I already tried rebooting (no manual starting of CouchDB was
>>>> required,
>>>> because I installed it as a service), and I tried changing the
>>>> owner of the
>>>> CouchDB log and lib directories to "couchdb". The error message
>>>> stays the
>>>> same.
>>>>
>>>> My knowledge of Unix is present, but very limited. However, if
>>>> You tell me
>>>> which commands to enter, I will do so and send You the result.
>>>>
>>>> Thanks very much!
>>>> Madoc.
>>>>
>>
>
Re: Only getting "eacces" after port install on Mac OS X
Posted by Paul Davis <pa...@gmail.com>.
Madoc,
You'll also want to check /opt/local/etc/couchdb/ for more ini files.
Other things you'll want to check is that the write permissions on
/opt/local/lib/couchdb actually allow writes. It should look something like:
davisp@puny:~/Desktop$ ls -ld /usr/local/var/lib/couchdb/
drwxr-xr-x 4 couchdb root 4096 2009-03-24 20:28 /usr/local/var/lib/couchdb/
Except that it'd be /opt/local instead of /usr/local for ports.
Other things to verify, can you stop the service and then just run
couchdb as root and see if it works?
HTH,
Paul Davis
Matthias Deja wrote:
> Hello Paul,
>
> thanks for the quick response. You are correct about the location of
> couchdb on Mac OS. Unfortunately, the error stays the same on my system.
>
> I ran the chown, which did not help. Also, I checked the config file
> under:
>
> /opt/local/Library/LaunchDaemons/org.apache.couchdb.plist
> (Is there another CouchDB init file anywhere?) - This file seems to
> contain all the right paths.
>
> In order to find out if CouchDB runs under the right user, I did:
>
> <<<
> Nova:lib madoc$ ps -U couchdb
> PID TT STAT TIME COMMAND
> 622 ?? SNs 0:00.20
> /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.fr
> 626 ?? Ss 0:00.76 /opt/local/lib/erlang/erts-5.6.5/bin/beam
> -Bd -K true -- -root /opt/loca
> >>>
>
> Looks oky to me.
>
> I also restarted the service. But the error stays the same on my system.
>
> By the way: The CouchDB lib directory (/opt/local/var/lib/couchdb) is
> empty, except for .turd_couchdb. Shall it be this way?
>
> Thanks,
> Madoc.
>
> Am 26.04.2009 um 01:52 schrieb Paul Davis:
>
>> Madoc,
>>
>> From what you describe it sounds very much like the couchdb user is
>> unable to write to the lib directory. I'm not extensively familiar
>> with the ports version, but you'll want to make sure that the lib
>> directory is writable by the user running couchdb. I know you said
>> that you changed the owner but some things to double check:
>>
>> My guess is that the couchdb lib directory for a port installed
>> version is at /opt/local/lib/couchdb
>>
>> You need to make sure that this directory has write permissions for
>> the user running couchdb. You might want to try something like:
>>
>> $ sudo chown -R couchdb:couchdb /opt/local/lib/couchdb
>>
>> Also, you can check the ini files for the root directory to make sure
>> that the lib direcotry is /op/local/lib/couchdb if things are still
>> broken. Also, you can double check that the beam process is running as
>> the couchdb user with top.
>>
>> Other than that, I haven't got many pointers, but seeing as couchdb
>> starts and you can visit futon this definitely sounds like a weird
>> permissions error.
>>
>> HTH,
>> Paul Davis
>>
>> On Sat, Apr 25, 2009 at 7:36 PM, Matthias Deja <ma...@gmail.com>
>> wrote:
>>> Hello,
>>>
>>> I installed CouchDB just a few minutes ago on my MacOS X 10.5
>>> system. As
>>> documented in the CouchDB Wiki, I used "port" to install CouchDB.
>>>
>>> CouchDB is started, and I can use Futon on my web browser. However,
>>> on all
>>> tests from the test suite and when trying to create a database, I
>>> get an
>>> "eacces" error message.
>>>
>>> Probably the error is simple to solve, but I do not know how. Please
>>> help
>>> me. I already tried rebooting (no manual starting of CouchDB was
>>> required,
>>> because I installed it as a service), and I tried changing the owner
>>> of the
>>> CouchDB log and lib directories to "couchdb". The error message
>>> stays the
>>> same.
>>>
>>> My knowledge of Unix is present, but very limited. However, if You
>>> tell me
>>> which commands to enter, I will do so and send You the result.
>>>
>>> Thanks very much!
>>> Madoc.
>>>
>
Re: Only getting "eacces" after port install on Mac OS X
Posted by Matthias Deja <ma...@gmail.com>.
I just started couchdb with the root user ("sudo couchdb"). Result: It
worked!
Now, there is obviously something really amiss with the user rights
for the CouchDB files on my system. But how do I find out what is
wrong? Even the debug log did not seem to spit out any helpful
information.
Am 26.04.2009 um 02:28 schrieb Matthias Deja:
> Hello Paul,
>
> thanks for the quick response. You are correct about the location of
> couchdb on Mac OS. Unfortunately, the error stays the same on my
> system.
>
> I ran the chown, which did not help. Also, I checked the config file
> under:
>
> /opt/local/Library/LaunchDaemons/org.apache.couchdb.plist
> (Is there another CouchDB init file anywhere?) - This file seems to
> contain all the right paths.
>
> In order to find out if CouchDB runs under the right user, I did:
>
> <<<
> Nova:lib madoc$ ps -U couchdb
> PID TT STAT TIME COMMAND
> 622 ?? SNs 0:00.20 /System/Library/Frameworks/
> CoreServices.framework/Frameworks/Metadata.fr
> 626 ?? Ss 0:00.76 /opt/local/lib/erlang/erts-5.6.5/bin/beam -
> Bd -K true -- -root /opt/loca
> >>>
>
> Looks oky to me.
>
> I also restarted the service. But the error stays the same on my
> system.
>
> By the way: The CouchDB lib directory (/opt/local/var/lib/couchdb)
> is empty, except for .turd_couchdb. Shall it be this way?
>
> Thanks,
> Madoc.
>
> Am 26.04.2009 um 01:52 schrieb Paul Davis:
>
>> Madoc,
>>
>> From what you describe it sounds very much like the couchdb user is
>> unable to write to the lib directory. I'm not extensively familiar
>> with the ports version, but you'll want to make sure that the lib
>> directory is writable by the user running couchdb. I know you said
>> that you changed the owner but some things to double check:
>>
>> My guess is that the couchdb lib directory for a port installed
>> version is at /opt/local/lib/couchdb
>>
>> You need to make sure that this directory has write permissions for
>> the user running couchdb. You might want to try something like:
>>
>> $ sudo chown -R couchdb:couchdb /opt/local/lib/couchdb
>>
>> Also, you can check the ini files for the root directory to make sure
>> that the lib direcotry is /op/local/lib/couchdb if things are still
>> broken. Also, you can double check that the beam process is running
>> as
>> the couchdb user with top.
>>
>> Other than that, I haven't got many pointers, but seeing as couchdb
>> starts and you can visit futon this definitely sounds like a weird
>> permissions error.
>>
>> HTH,
>> Paul Davis
>>
>> On Sat, Apr 25, 2009 at 7:36 PM, Matthias Deja
>> <ma...@gmail.com> wrote:
>>> Hello,
>>>
>>> I installed CouchDB just a few minutes ago on my MacOS X 10.5
>>> system. As
>>> documented in the CouchDB Wiki, I used "port" to install CouchDB.
>>>
>>> CouchDB is started, and I can use Futon on my web browser.
>>> However, on all
>>> tests from the test suite and when trying to create a database, I
>>> get an
>>> "eacces" error message.
>>>
>>> Probably the error is simple to solve, but I do not know how.
>>> Please help
>>> me. I already tried rebooting (no manual starting of CouchDB was
>>> required,
>>> because I installed it as a service), and I tried changing the
>>> owner of the
>>> CouchDB log and lib directories to "couchdb". The error message
>>> stays the
>>> same.
>>>
>>> My knowledge of Unix is present, but very limited. However, if You
>>> tell me
>>> which commands to enter, I will do so and send You the result.
>>>
>>> Thanks very much!
>>> Madoc.
>>>
>
Re: Only getting "eacces" after port install on Mac OS X
Posted by Matthias Deja <ma...@gmail.com>.
Hello Paul,
thanks for the quick response. You are correct about the location of
couchdb on Mac OS. Unfortunately, the error stays the same on my system.
I ran the chown, which did not help. Also, I checked the config file
under:
/opt/local/Library/LaunchDaemons/org.apache.couchdb.plist
(Is there another CouchDB init file anywhere?) - This file seems to
contain all the right paths.
In order to find out if CouchDB runs under the right user, I did:
<<<
Nova:lib madoc$ ps -U couchdb
PID TT STAT TIME COMMAND
622 ?? SNs 0:00.20 /System/Library/Frameworks/
CoreServices.framework/Frameworks/Metadata.fr
626 ?? Ss 0:00.76 /opt/local/lib/erlang/erts-5.6.5/bin/beam -
Bd -K true -- -root /opt/loca
>>>
Looks oky to me.
I also restarted the service. But the error stays the same on my system.
By the way: The CouchDB lib directory (/opt/local/var/lib/couchdb) is
empty, except for .turd_couchdb. Shall it be this way?
Thanks,
Madoc.
Am 26.04.2009 um 01:52 schrieb Paul Davis:
> Madoc,
>
> From what you describe it sounds very much like the couchdb user is
> unable to write to the lib directory. I'm not extensively familiar
> with the ports version, but you'll want to make sure that the lib
> directory is writable by the user running couchdb. I know you said
> that you changed the owner but some things to double check:
>
> My guess is that the couchdb lib directory for a port installed
> version is at /opt/local/lib/couchdb
>
> You need to make sure that this directory has write permissions for
> the user running couchdb. You might want to try something like:
>
> $ sudo chown -R couchdb:couchdb /opt/local/lib/couchdb
>
> Also, you can check the ini files for the root directory to make sure
> that the lib direcotry is /op/local/lib/couchdb if things are still
> broken. Also, you can double check that the beam process is running as
> the couchdb user with top.
>
> Other than that, I haven't got many pointers, but seeing as couchdb
> starts and you can visit futon this definitely sounds like a weird
> permissions error.
>
> HTH,
> Paul Davis
>
> On Sat, Apr 25, 2009 at 7:36 PM, Matthias Deja <ma...@gmail.com>
> wrote:
>> Hello,
>>
>> I installed CouchDB just a few minutes ago on my MacOS X 10.5
>> system. As
>> documented in the CouchDB Wiki, I used "port" to install CouchDB.
>>
>> CouchDB is started, and I can use Futon on my web browser. However,
>> on all
>> tests from the test suite and when trying to create a database, I
>> get an
>> "eacces" error message.
>>
>> Probably the error is simple to solve, but I do not know how.
>> Please help
>> me. I already tried rebooting (no manual starting of CouchDB was
>> required,
>> because I installed it as a service), and I tried changing the
>> owner of the
>> CouchDB log and lib directories to "couchdb". The error message
>> stays the
>> same.
>>
>> My knowledge of Unix is present, but very limited. However, if You
>> tell me
>> which commands to enter, I will do so and send You the result.
>>
>> Thanks very much!
>> Madoc.
>>
Re: Only getting "eacces" after port install on Mac OS X
Posted by Paul Davis <pa...@gmail.com>.
Madoc,
>From what you describe it sounds very much like the couchdb user is
unable to write to the lib directory. I'm not extensively familiar
with the ports version, but you'll want to make sure that the lib
directory is writable by the user running couchdb. I know you said
that you changed the owner but some things to double check:
My guess is that the couchdb lib directory for a port installed
version is at /opt/local/lib/couchdb
You need to make sure that this directory has write permissions for
the user running couchdb. You might want to try something like:
$ sudo chown -R couchdb:couchdb /opt/local/lib/couchdb
Also, you can check the ini files for the root directory to make sure
that the lib direcotry is /op/local/lib/couchdb if things are still
broken. Also, you can double check that the beam process is running as
the couchdb user with top.
Other than that, I haven't got many pointers, but seeing as couchdb
starts and you can visit futon this definitely sounds like a weird
permissions error.
HTH,
Paul Davis
On Sat, Apr 25, 2009 at 7:36 PM, Matthias Deja <ma...@gmail.com> wrote:
> Hello,
>
> I installed CouchDB just a few minutes ago on my MacOS X 10.5 system. As
> documented in the CouchDB Wiki, I used "port" to install CouchDB.
>
> CouchDB is started, and I can use Futon on my web browser. However, on all
> tests from the test suite and when trying to create a database, I get an
> "eacces" error message.
>
> Probably the error is simple to solve, but I do not know how. Please help
> me. I already tried rebooting (no manual starting of CouchDB was required,
> because I installed it as a service), and I tried changing the owner of the
> CouchDB log and lib directories to "couchdb". The error message stays the
> same.
>
> My knowledge of Unix is present, but very limited. However, if You tell me
> which commands to enter, I will do so and send You the result.
>
> Thanks very much!
> Madoc.
>