ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SHAILJA <shalja.ru...@gmail.com>
Subject Re: Ant1.8 copy task gives error "Failed to copy" with "Permission denied"
Date Thu, 22 Apr 2010 02:32:25 GMT

>>
| Failed to copy /u/kumari/main/shailja/src/java/a/jsh/mm/script/run_m.pl to
| /u/kumari/main/shailja/bin/share/run_m.pl (Permission denied
| /u/kumari/main/shailja/bin/share/run_m.pl (Permission denied)
>>

Oops, /u/kumari/main/base/bin/share/run_m.pl due to
java.io.FileNotFoundException --> is 
/u/kumari/main/shailja/bin/share/run_m.pl due to
java.io.FileNotFoundException

>>
Which doesn't mean anything to me since I don't know whether you are the
owner or in the appropriate group 8-)
>>

Owner and group is "kumari", (myself)

>>
> df -akh .
>   11G   9.7G   1.3G    89%

and I don't know how big the file is. 8-)

>>
Size of file is in KB, so it should not matter, as disk has enough location
for copy.



Stefan Bodewig wrote:
> 
> On 2010-04-14, SHAILJA <shalja.rudra@gmail.com> wrote:
> 
>>> Failed to copy
>>> /u/kumari/main/shailja/src/java/a/guas/utd/writer/realtimelagstats/load_stats.pl
>>> to /u/kumari/main/shailja/bin/share/load_stats.pl due to
>>> java.io.FileNotFoundException
>>> /u/kumari/main/shailja/bin/share/load_stats.pl
>>> (Permission denied)
> 
>>> this time something is different, the file the exception talks about
>>> actually is the same as the one the task wants to copy to.  In your
>>> first post they've been different.
> 
>> I am getting this kind of error only in my first post also.
> 
> In your initial post it was
> 
> ,----
> | Failed to copy /u/kumari/main/shailja/src/java/a/jsh/mm/script/run_m.pl
> to
> | /u/kumari/main/base/bin/share/run_m.pl due to
> java.io.FileNotFoundException
> | /u/kumari/main/shailja/bin/share/run_m.pl (Permission denied)
> `----
> 
> Different source and target files and in particular the error message
> talks about a third file that is different from both the source and the
> destination.
> 
>>> But do you have permissions to write there - and is there enough space?
> 
>> Permission on /u/kumari/main/shailja/bin/share directory is
>> drwxrwsr-x
> 
> Which doesn't mean anything to me since I don't know whether you are the
> owner or in the appropriate group 8-)
> 
>> df -akh .
>>   11G   9.7G   1.3G    89%
> 
> and I don't know how big the file is. 8-)
> 
>>> Does a simple
>>> cp
>>> /u/kumari/main/shailja/src/java/a/guas/utd/writer/realtimelagstats/load_stats.pl
>>> /u/kumari/main/shailja/bin/share/
> 
>>> succeed on the command line?
> 
>> Yes it succeeded. Thats why I am not getting the cause of this error.
> 
> I'm sorry, I'm running out of ideas myself and honestly it doesn't
> really help that the issue seems to be a moving target with every post.
> 
> Cheers
> 
>         Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Ant1.8-copy-task-gives-error-%22Failed-to-copy%22-with-%22Permission-denied%22-tp28179282p28323592.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message