You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@buildr.apache.org by Waruna Ranasinghe <wa...@gmail.com> on 2009/05/28 11:13:44 UTC

Permission Denied error, when used with Jruby

Hi,
I installed buildr 1.3.4 using jruby 1.2.0 to the /opt directory. I also
changed the directory ownership of the /opt to my current user account
When I tried to build apache ode, using the command: jruby -S buildr clean
install TEST=no

it gave the following error

Downloading org.apache.ant:ant-trax:jar:1.7.0
Downloading
http://repo1.maven.org/maven2/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar
stty: standard input: Invalid argument
ant-trax-1.7.0..: 100% |........................|    6.7KB/6.7KB Time:
00:00:00
mkdir -p /home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0
mv /tmp/ant-trax-1.7.0.jar.8700.62098
/home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar
Permission denied - Permission denied - /tmp/ant-trax-1.7.0.jar.8700.62098
or
/home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar
Buildr aborted!
Failed to download org.apache.ant:ant-trax:jar:1.7.0, tried the following
repositories:
http://pxe.intalio.org/public/maven2/
http://people.apache.org/repo/m2-incubating-repository/
http://repo1.maven.org/maven2/
http://people.apache.org/repo/m2-snapshot-repository/
http://download.java.net/maven/2/
http://ws.zones.apache.org/repository2/

(See full trace by running task with --trace)

I checked the permissions for the /tmp and /home/waruna/.m2 directory, both
have full permission to the current user
Also the error is not there when I run the build command in the supper user
mode.
What can be the error here?

thanx
--waruna

-----------------------------------------------------
Regards,
Waruna Ranasinghe
BLOG: http://warunapw.blogspot.com

Re: Permission Denied error, when used with Jruby

Posted by Waruna Ranasinghe <wa...@gmail.com>.
Hi Daniel,
I have change the buildr version to 1.3.2, now it's working fine. Therefore
I won,t be able to reproduce the error with --trace.
I think this is a bug in the buildr version 1.3.4, because, if it is working
smoothly with jRuby 1.2 and buildr *1.3.2*, then it should work for jRuby
1.2 and buildr* 1.3.4*

thank you.
-----------------------------------------------------
Regards,
Waruna Ranasinghe
BLOG: http://warunapw.blogspot.com


2009/5/28 Daniel Spiewak <dj...@gmail.com>

> This doesn't make any sense to me.  What are the permissions on the
> ~/.m2/repository dir?  What happens if you run this with --trace?  I've been
> using Buildr with JRuby for a while now without any serious issues; but
> then, I haven't been using the gem.
>
> Daniel
>
>
> On May 28, 2009, at 4:13 AM, Waruna Ranasinghe <wa...@gmail.com>
> wrote:
>
>  Hi,
>> I installed buildr 1.3.4 using jruby 1.2.0 to the /opt directory. I also
>> changed the directory ownership of the /opt to my current user account
>> When I tried to build apache ode, using the command: jruby -S buildr clean
>> install TEST=no
>>
>> it gave the following error
>>
>> Downloading org.apache.ant:ant-trax:jar:1.7.0
>> Downloading
>>
>> http://repo1.maven.org/maven2/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar
>> stty: standard input: Invalid argument
>> ant-trax-1.7.0..: 100% |........................|    6.7KB/6.7KB Time:
>> 00:00:00
>> mkdir -p /home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0
>> mv /tmp/ant-trax-1.7.0.jar.8700.62098
>>
>> /home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar
>> Permission denied - Permission denied - /tmp/ant-trax-1.7.0.jar.8700.62098
>> or
>>
>> /home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar
>> Buildr aborted!
>> Failed to download org.apache.ant:ant-trax:jar:1.7.0, tried the following
>> repositories:
>> http://pxe.intalio.org/public/maven2/
>> http://people.apache.org/repo/m2-incubating-repository/
>> http://repo1.maven.org/maven2/
>> http://people.apache.org/repo/m2-snapshot-repository/
>> http://download.java.net/maven/2/
>> http://ws.zones.apache.org/repository2/
>>
>> (See full trace by running task with --trace)
>>
>> I checked the permissions for the /tmp and /home/waruna/.m2 directory,
>> both
>> have full permission to the current user
>> Also the error is not there when I run the build command in the supper
>> user
>> mode.
>> What can be the error here?
>>
>> thanx
>> --waruna
>>
>> -----------------------------------------------------
>> Regards,
>> Waruna Ranasinghe
>> BLOG: http://warunapw.blogspot.com
>>
>

Re: Permission Denied error, when used with Jruby

Posted by Daniel Spiewak <dj...@gmail.com>.
This doesn't make any sense to me.  What are the permissions on the  
~/.m2/repository dir?  What happens if you run this with --trace?   
I've been using Buildr with JRuby for a while now without any serious  
issues; but then, I haven't been using the gem.

Daniel

On May 28, 2009, at 4:13 AM, Waruna Ranasinghe <wa...@gmail.com>  
wrote:

> Hi,
> I installed buildr 1.3.4 using jruby 1.2.0 to the /opt directory. I  
> also
> changed the directory ownership of the /opt to my current user account
> When I tried to build apache ode, using the command: jruby -S buildr  
> clean
> install TEST=no
>
> it gave the following error
>
> Downloading org.apache.ant:ant-trax:jar:1.7.0
> Downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar
> stty: standard input: Invalid argument
> ant-trax-1.7.0..: 100% |........................|    6.7KB/6.7KB Time:
> 00:00:00
> mkdir -p /home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0
> mv /tmp/ant-trax-1.7.0.jar.8700.62098
> /home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0/ant- 
> trax-1.7.0.jar
> Permission denied - Permission denied - /tmp/ant-trax-1.7.0.jar.8700.62098
> or
> /home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0/ant- 
> trax-1.7.0.jar
> Buildr aborted!
> Failed to download org.apache.ant:ant-trax:jar:1.7.0, tried the  
> following
> repositories:
> http://pxe.intalio.org/public/maven2/
> http://people.apache.org/repo/m2-incubating-repository/
> http://repo1.maven.org/maven2/
> http://people.apache.org/repo/m2-snapshot-repository/
> http://download.java.net/maven/2/
> http://ws.zones.apache.org/repository2/
>
> (See full trace by running task with --trace)
>
> I checked the permissions for the /tmp and /home/waruna/.m2  
> directory, both
> have full permission to the current user
> Also the error is not there when I run the build command in the  
> supper user
> mode.
> What can be the error here?
>
> thanx
> --waruna
>
> -----------------------------------------------------
> Regards,
> Waruna Ranasinghe
> BLOG: http://warunapw.blogspot.com

Re: Permission Denied error, when used with Jruby

Posted by Assaf Arkin <ar...@intalio.com>.
On Thu, May 28, 2009 at 4:27 AM, Waruna Ranasinghe <wa...@gmail.com>wrote:

> Hi,
> I got this resolved by using buildr version 1.3.2 instead of 1.3.4


I think that's a problem with JRuby 1.2 not closing tempfiles, because the
file remains open, Buildr can't move it from /tmp to where it belongs. And,
if my guess is true, it only happens when using the block idiom, expecting
it to close the file at the end, which we're doing more of in Ruby 1.3.4.

Assaf


>
>
>
>
> -----------------------------------------------------
> Regards,
> Waruna Ranasinghe
> MOB: 0724318285
> BLOG: http://warunapw.blogspot.com
>
>
> 2009/5/28 Waruna Ranasinghe <wa...@gmail.com>
>
> > Hi,
> > I installed buildr 1.3.4 using jruby 1.2.0 to the /opt directory. I also
> > changed the directory ownership of the /opt to my current user account
> > When I tried to build apache ode, using the command: jruby -S buildr
> clean
> > install TEST=no
> >
> > it gave the following error
> >
> > Downloading org.apache.ant:ant-trax:jar:1.7.0
> > Downloading
> >
> http://repo1.maven.org/maven2/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar
> > stty: standard input: Invalid argument
> > ant-trax-1.7.0..: 100% |........................|    6.7KB/6.7KB Time:
> > 00:00:00
> > mkdir -p /home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0
> > mv /tmp/ant-trax-1.7.0.jar.8700.62098
> >
> /home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar
> > Permission denied - Permission denied -
> /tmp/ant-trax-1.7.0.jar.8700.62098
> > or
> >
> /home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar
> > Buildr aborted!
> > Failed to download org.apache.ant:ant-trax:jar:1.7.0, tried the following
> > repositories:
> > http://pxe.intalio.org/public/maven2/
> > http://people.apache.org/repo/m2-incubating-repository/
> > http://repo1.maven.org/maven2/
> > http://people.apache.org/repo/m2-snapshot-repository/
> > http://download.java.net/maven/2/
> > http://ws.zones.apache.org/repository2/
> >
> > (See full trace by running task with --trace)
> >
> > I checked the permissions for the /tmp and /home/waruna/.m2 directory,
> > both have full permission to the current user
> > Also the error is not there when I run the build command in the supper
> user
> > mode.
> > What can be the error here?
> >
> > thanx
> > --waruna
> >
> > -----------------------------------------------------
> > Regards,
> > Waruna Ranasinghe
> > BLOG: http://warunapw.blogspot.com
> >
>

Re: Permission Denied error, when used with Jruby

Posted by Waruna Ranasinghe <wa...@gmail.com>.
Hi,
I got this resolved by using buildr version 1.3.2 instead of 1.3.4



-----------------------------------------------------
Regards,
Waruna Ranasinghe
MOB: 0724318285
BLOG: http://warunapw.blogspot.com


2009/5/28 Waruna Ranasinghe <wa...@gmail.com>

> Hi,
> I installed buildr 1.3.4 using jruby 1.2.0 to the /opt directory. I also
> changed the directory ownership of the /opt to my current user account
> When I tried to build apache ode, using the command: jruby -S buildr clean
> install TEST=no
>
> it gave the following error
>
> Downloading org.apache.ant:ant-trax:jar:1.7.0
> Downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar
> stty: standard input: Invalid argument
> ant-trax-1.7.0..: 100% |........................|    6.7KB/6.7KB Time:
> 00:00:00
> mkdir -p /home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0
> mv /tmp/ant-trax-1.7.0.jar.8700.62098
> /home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar
> Permission denied - Permission denied - /tmp/ant-trax-1.7.0.jar.8700.62098
> or
> /home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar
> Buildr aborted!
> Failed to download org.apache.ant:ant-trax:jar:1.7.0, tried the following
> repositories:
> http://pxe.intalio.org/public/maven2/
> http://people.apache.org/repo/m2-incubating-repository/
> http://repo1.maven.org/maven2/
> http://people.apache.org/repo/m2-snapshot-repository/
> http://download.java.net/maven/2/
> http://ws.zones.apache.org/repository2/
>
> (See full trace by running task with --trace)
>
> I checked the permissions for the /tmp and /home/waruna/.m2 directory,
> both have full permission to the current user
> Also the error is not there when I run the build command in the supper user
> mode.
> What can be the error here?
>
> thanx
> --waruna
>
> -----------------------------------------------------
> Regards,
> Waruna Ranasinghe
> BLOG: http://warunapw.blogspot.com
>

Re: Permission Denied error, when used with Jruby

Posted by Ittay Dror <it...@tikalk.com>.

Waruna Ranasinghe wrote:

> Hi,
> I installed buildr 1.3.4 using jruby 1.2.0 to the /opt directory. I also
> changed the directory ownership of the /opt to my current user account
> When I tried to build apache ode, using the command: jruby -S buildr clean
> install TEST=no
>
> it gave the following error
>
> Downloading org.apache.ant:ant-trax:jar:1.7.0
> Downloading
> http://repo1.maven.org/maven2/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar
> stty: standard input: Invalid argument
> ant-trax-1.7.0..: 100% |........................|    6.7KB/6.7KB Time:
> 00:00:00
> mkdir -p /home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0
> mv /tmp/ant-trax-1.7.0.jar.8700.62098
> /home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar
> Permission denied - Permission denied - /tmp/ant-trax-1.7.0.jar.8700.62098
> or
> /home/waruna/.m2/repository/org/apache/ant/ant-trax/1.7.0/ant-trax-1.7.0.jar
> Buildr aborted!
> Failed to download org.apache.ant:ant-trax:jar:1.7.0, tried the following
> repositories:
> http://pxe.intalio.org/public/maven2/
> http://people.apache.org/repo/m2-incubating-repository/
> http://repo1.maven.org/maven2/
> http://people.apache.org/repo/m2-snapshot-repository/
> http://download.java.net/maven/2/
> http://ws.zones.apache.org/repository2/
>
> (See full trace by running task with --trace)
>
> I checked the permissions for the /tmp and /home/waruna/.m2 directory, both
> have full permission to the current user
> Also the error is not there when I run the build command in the supper user
> mode.
> What can be the error here?
>   
I had similar errors (on HPUX). See 
http://jira.codehaus.org/browse/JRUBY-3381.
> thanx
> --waruna
>
> -----------------------------------------------------
> Regards,
> Waruna Ranasinghe
> BLOG: http://warunapw.blogspot.com
>
>   

-- 
Tikal <http://www.tikalk.com>
Tikal Project <http://tikal.sourceforge.net>