Discussion:
Copy task failed to copy due to invalid argument
Sim Soon Huat
2009-11-18 07:45:29 UTC
Permalink
Hi,

I've a server which is mounting a nfs share. When I do a copy on a file
larger than 2GB, the following error comes up. It works perfectly for
smaller files.

[copy] Failed to copy /opt/home/servera/abc.log to abc.log due to
Invalid argument

Does anyone know where the limitation is at?


Thanks in advance,
Sim
Disclaimer:
This communication contains confidential or privileged information. If you are not the intended recipient, please notify us IMMEDIATELY that you have received it and destroy it. We are not liable for any unauthorised sending of or interference with this communication.
Andy Stevens
2009-11-18 13:00:24 UTC
Permalink
Post by Sim Soon Huat
Hi,
I've a server which is mounting a nfs share. When I do a copy on a file
larger than 2GB, the following error comes up. It works perfectly for
smaller files.
What file system is used on the partition containing the server's
exported directory? It may be there's a maximum supported file size
which the file system on your local machine doesn't have, or vice
versa (I'm assuming you're copying the files from one machine to the
other).
Are there any user storage quotas set on the server?


Andy
--
http://pseudoq.sourceforge.net/
Post by Sim Soon Huat
[copy] Failed to copy /opt/home/servera/abc.log to abc.log due to
Invalid argument
Does anyone know where the limitation is at?
Thanks in advance,
Sim
J***@rzf.fin-nrw.de
2009-11-18 13:46:03 UTC
Permalink
The underlying exception is an IOException with that "Illegal Argumen" message.
I did a quick search and found [1] - "problems with file system".

Does that help?


Jan

[1] http://stackoverflow.com/questions/780543/java-io-ioexception-invalid-argument
-----Ursprüngliche Nachricht-----
Gesendet: Mittwoch, 18. November 2009 14:00
An: Ant Users List
Betreff: Re: Copy task failed to copy due to invalid argument
Post by Sim Soon Huat
Hi,
I've a server which is mounting a nfs share. When I do a
copy on a file
Post by Sim Soon Huat
larger than 2GB, the following error comes up. It works perfectly for
smaller files.
What file system is used on the partition containing the server's
exported directory? It may be there's a maximum supported file size
which the file system on your local machine doesn't have, or vice
versa (I'm assuming you're copying the files from one machine to the
other).
Are there any user storage quotas set on the server?
Andy
--
http://pseudoq.sourceforge.net/
Post by Sim Soon Huat
[copy] Failed to copy /opt/home/servera/abc.log to abc.log due to
Invalid argument
Does anyone know where the limitation is at?
Thanks in advance,
Sim
---------------------------------------------------------------------
Sim Soon Huat
2009-11-19 00:59:49 UTC
Permalink
I've done a manual copy of the large file from the shell, and it works perfectly fine.
This rules out a filesystem or NFS limitation.

i.e
cp /opt/home/servera/abc.log abc.log

I'm suspecting it's due to a time out because of the duration taken to do the copy, but the error message does not indicate so.

-----Original Message-----
From: ***@rzf.fin-nrw.de [mailto:***@rzf.fin-nrw.de]
Sent: 18 November 2009 21:46
To: ***@ant.apache.org
Subject: AW: Copy task failed to copy due to invalid argument

The underlying exception is an IOException with that "Illegal Argumen" message.
I did a quick search and found [1] - "problems with file system".

Does that help?


Jan

[1] http://stackoverflow.com/questions/780543/java-io-ioexception-invalid-argument
-----Ursprüngliche Nachricht-----
Gesendet: Mittwoch, 18. November 2009 14:00
An: Ant Users List
Betreff: Re: Copy task failed to copy due to invalid argument
Post by Sim Soon Huat
Hi,
I've a server which is mounting a nfs share. When I do a
copy on a file
Post by Sim Soon Huat
larger than 2GB, the following error comes up. It works perfectly for
smaller files.
What file system is used on the partition containing the server's
exported directory? It may be there's a maximum supported file size
which the file system on your local machine doesn't have, or vice
versa (I'm assuming you're copying the files from one machine to the
other).
Are there any user storage quotas set on the server?
Andy
--
http://pseudoq.sourceforge.net/
Post by Sim Soon Huat
[copy] Failed to copy /opt/home/servera/abc.log to abc.log due to
Invalid argument
Does anyone know where the limitation is at?
Thanks in advance,
Sim
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@ant.apache.org
For additional commands, e-mail: user-***@ant.apache.org



Disclaimer:
This communication contains confidential or privileged information. If you are not the intended recipient, please notify us IMMEDIATELY that you have received it and destroy it. We are not liable for any unauthorised sending of or interference with this communication.
Continue reading on narkive:
Loading...