You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Nicola Vitale <ni...@email.it> on 2005/03/26 11:36:11 UTC

Directory '.' is not readable/writable

Hello,

I have installed Apache Forrest (v.0.6) under /usr/local/share/apache-forrest.

Now, if I run the following commands as root:

# mkdir mysite
# cd mysite
# forrest seed
# forrest

all works fine.

But if I do the same as a simple user, I get the following error:

------------------------------------------------------------------------
cocoon 2.2.0-dev
Copyright (c) 1999-2004 Apache Software Foundation. All rights reserved.
------------------------------------------------------------------------
ERROR   2005-03-26 11:26:10.566 [        ] (): Directory '.' is not readable/wri
table
Exception in thread "main" java.io.IOException: Directory '.' is not readable/wr
itable
        at org.apache.cocoon.bean.CocoonWrapper.getDir(CocoonWrapper.java:253)
        at org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:10
6)
        at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:98)
        at org.apache.cocoon.Main.main(Main.java:320)
BUILD FAILED
/usr/local/share/apache-forrest/src/core/targets/site.xml:43: Java returned: 1

Note that modifying the file mode of

    /usr/local/share/apache-forrest/src/core/context/

to 0777, the issue disappears.

Any idea? Obviously, I don't want to make that dir writable by everyone.

These are the permissions:

nicola> ls -l /usr/local/share/apache-forrest/src/core/
total 36
drwxr-xr-x  2 root  wheel    512 26 Mar 11:24 bin/
drwxr-xr-x  5 root  wheel    512 26 Mar 11:24 context/
-r--r--r--  1 root  wheel   1650 26 Mar 11:24 forrest.antproxy.xml
-r--r--r--  1 root  wheel  20857 26 Mar 11:24 forrest.build.xml
drwxr-xr-x  3 root  wheel    512 26 Mar 11:24 fresh-site/
drwxr-xr-x  2 root  wheel    512 26 Mar 11:24 targets/
drwxr-xr-x  3 root  wheel    512 26 Mar 11:24 tasks/
drwxr-xr-x  2 root  wheel    512 26 Mar 11:24 var/

Thanks, ciao.
--
Nicola Vitale
nivit@email.it

Re: Directory '.' is not readable/writable

Posted by Ross Gardler <rg...@apache.org>.
Jean T. Anderson wrote:
> Nicola Vitale wrote:
> 
>> Hello,
>>  
>>
>>> [Jean T. Anderson, 2005-03-26T09:41:10-08:00]
>>> I saw the same on suse (but not on gentoo and fedora core 3). See 
>>> http://issues.cocoondev.org/browse/FOR-356 .
>>>
>>> I'm happy to live with the chmod workaround until ready to upgrade to 
>>> 0.7.
>>
>>  
>> Then I will have to wait for upgrading Forrest to 0.7.
>> Thank you very much for your answer! :)
> 
> 
> Well, lest there be any confusion, I was just stating my own personal 
> preference, not making a recommendation. :-) If I had time to become 
> more knowledgeable about forrest, I'd go ahead and upgrade to 0.7 now. 
> (By the way, from traffic on the forrest-dev list, it sounds like 
> they're planning a 0.7 release soon, like in the next month or so.)

Yes, 0.7 will be out the door just as soon as there enough devs free at
the same time to tackle the release tasks.

Ross



Re: Directory '.' is not readable/writable

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Nicola Vitale wrote:
> Hello,
>  
>>[Jean T. Anderson, 2005-03-26T09:41:10-08:00]
>>I saw the same on suse (but not on gentoo and fedora core 3). See 
>>http://issues.cocoondev.org/browse/FOR-356 .
>>
>>I'm happy to live with the chmod workaround until ready to upgrade to 0.7.
>  
> Then I will have to wait for upgrading Forrest to 0.7.
> Thank you very much for your answer! :)

Well, lest there be any confusion, I was just stating my own personal 
preference, not making a recommendation. :-) If I had time to become 
more knowledgeable about forrest, I'd go ahead and upgrade to 0.7 now. 
(By the way, from traffic on the forrest-dev list, it sounds like 
they're planning a 0.7 release soon, like in the next month or so.)

  -jean

Re: Directory '.' is not readable/writable

Posted by Nicola Vitale <ni...@email.it>.
Hello,

> [Jean T. Anderson, 2005-03-26T09:41:10-08:00]
> I saw the same on suse (but not on gentoo and fedora core 3). See 
> http://issues.cocoondev.org/browse/FOR-356 .
> 
> I'm happy to live with the chmod workaround until ready to upgrade to 0.7.

Then I will have to wait for upgrading Forrest to 0.7.
Thank you very much for your answer! :)

Ciao.
--
Nicola Vitale
nivit@email.it

Re: Directory '.' is not readable/writable

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
I saw the same on suse (but not on gentoo and fedora core 3). See 
http://issues.cocoondev.org/browse/FOR-356 .

I'm happy to live with the chmod workaround until ready to upgrade to 0.7.

  -jean

Nicola Vitale wrote:
> Hello,
> 
> I have installed Apache Forrest (v.0.6) under /usr/local/share/apache-forrest.
> 
> Now, if I run the following commands as root:
> 
> # mkdir mysite
> # cd mysite
> # forrest seed
> # forrest
> 
> all works fine.
> 
> But if I do the same as a simple user, I get the following error:
> 
> ------------------------------------------------------------------------
> cocoon 2.2.0-dev
> Copyright (c) 1999-2004 Apache Software Foundation. All rights reserved.
> ------------------------------------------------------------------------
> ERROR   2005-03-26 11:26:10.566 [        ] (): Directory '.' is not readable/wri
> table
> Exception in thread "main" java.io.IOException: Directory '.' is not readable/wr
> itable
>         at org.apache.cocoon.bean.CocoonWrapper.getDir(CocoonWrapper.java:253)
>         at org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:10
> 6)
>         at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:98)
>         at org.apache.cocoon.Main.main(Main.java:320)
> BUILD FAILED
> /usr/local/share/apache-forrest/src/core/targets/site.xml:43: Java returned: 1
> 
> Note that modifying the file mode of
> 
>     /usr/local/share/apache-forrest/src/core/context/
> 
> to 0777, the issue disappears.
> 
> Any idea? Obviously, I don't want to make that dir writable by everyone.
> 
> These are the permissions:
> 
> nicola> ls -l /usr/local/share/apache-forrest/src/core/
> total 36
> drwxr-xr-x  2 root  wheel    512 26 Mar 11:24 bin/
> drwxr-xr-x  5 root  wheel    512 26 Mar 11:24 context/
> -r--r--r--  1 root  wheel   1650 26 Mar 11:24 forrest.antproxy.xml
> -r--r--r--  1 root  wheel  20857 26 Mar 11:24 forrest.build.xml
> drwxr-xr-x  3 root  wheel    512 26 Mar 11:24 fresh-site/
> drwxr-xr-x  2 root  wheel    512 26 Mar 11:24 targets/
> drwxr-xr-x  3 root  wheel    512 26 Mar 11:24 tasks/
> drwxr-xr-x  2 root  wheel    512 26 Mar 11:24 var/
> 
> Thanks, ciao.
> --
> Nicola Vitale
> nivit@email.it