You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Cole, Derek E" <de...@lmco.com> on 2009/07/28 19:41:31 UTC
Problem with zip task
Has anyone encountered a problem when running a zip task, the log will
say something like
[zip] Building zip: /path-to/some.war
[zip] adding directory ........
Then getting an exception that says
Problem creating zip:
/path-to/someotherdir/.nfs0000000000000001a121a00000003ae (No such file
or directory)
The way the problem is listed..doesnt that seem like a problem with a
network storage access? /path-to/ is a mount to a NAS
RE: Problem with zip task
Posted by "Cole, Derek E" <de...@lmco.com>.
Yes, they are.
-----Original Message-----
From: Greg Roodt [mailto:groodt@gmail.com]
Sent: Tuesday, July 28, 2009 5:51 PM
To: Ant Users List
Subject: Re: Problem with zip task
Out of interest, are archive.dir and staging.dir on the same filesystem?
On Tue, Jul 28, 2009 at 7:29 PM, Scot P. Floess <sf...@nc.rr.com> wrote:
>
> I suppose if nothing else maybe exclude all .nfs* files from your
> fileset???
>
>
> On Tue, 28 Jul 2009, Cole, Derek E wrote:
>
> Could this be something that is happening because zip, or some task,
>> creates a temporary file...then that process dies, leaving the unlinked file
>> out there. And for whatever reason, the next time the zip task is run, it is
>> able to see this file but...can't get to it?
>> When I am on the linux box the build is actually running from, I never can
>> see any of these .nfs files..but this is the second time in two days this
>> has happened to us. Usually we re-run the build, and it is successful the
>> next time.
>>
>> Derek
>>
>> -----Original Message-----
>> From: Cole, Derek E
>> Sent: Tuesday, July 28, 2009 2:11 PM
>> To: Ant Users List
>> Subject: RE: Problem with zip task
>>
>> I am not sure what is considered relevant...here is the target that is
>> being run...
>>
>> <target name="archive" depends="stage" description="creates an archive
>> containing all projects's resources and build artifacts.">
>> <property name="archive.dir" value="${project.dir}"/>
>> <mkdir dir="${archive.dir}"/>
>>
>> <zip destfile="${archive.dir}/${archive.name}" encoding="UTF8"
>> whenempty="create">
>> <fileset dir="${staging.dir}"/>
>> </zip>
>>
>> </target>
>>
>>
>> In the build log, it says right before the [zip] out put
>>
>> [mkdir] Skipping /path-to/..../archivedir because it already exists
>>
>> And post-build failure I checked to make sure that staging.dir actually
>> existed as well
>>
>>
>>
>>
>> -----Original Message-----
>> From: Greg Roodt [mailto:groodt@gmail.com]
>> Sent: Tuesday, July 28, 2009 2:04 PM
>> To: Ant Users List
>> Subject: Re: Problem with zip task
>>
>> Hmmmm, looks a bit suspicious. Could you please include the relevant parts
>> of the build.xml?
>>
>> I know that a few Java File operations dont work very well across file
>> systems. Renaming has given me problems in the past.
>>
>>
>>
>> On Tue, Jul 28, 2009 at 6:58 PM, Cole, Derek E <derek.e.cole@lmco.com
>> >wrote:
>>
>> The mounts are persistent, and we are not doing anything like that as
>>> part of the build.
>>>
>>>
>>> I did find some information on the .nfs files:
>>>
>>>
>>> .nfs files are created by a clienthost when one process on the
>>> clienthost deletes a file while another process on the clienthost is
>>> still holding the file open. This allows the delete to appear to
>>> succeed for one process w/o causing the the process to begin getting
>>> stale nfs file handles. It is a hack, but it is the only way to
>>> simulate UFS semantics on NFS. The clienthost will normally delete the
>>> .nfs file once the remaining process holding the file open closes
>>> it. However, if the clienthost crashes, you get left with a .nfs file
>>> on the filer.
>>>
>>>
>>> Note that if more than one host is involved (e.g, process on host a is
>>> holding a file open over NFS, while process on host b deletes that
>>> over NFS), process a will get a stale file handle.
>>>
>>>
>>> Could something like this be happening as part of a simple zip task?
>>>
>>>
>>> -----Original Message-----
>>> From: Scot P. Floess [mailto:sfloess@nc.rr.com]
>>> Sent: Tuesday, July 28, 2009 1:56 PM
>>> To: Ant Users List
>>> Subject: Re: Problem with zip task
>>>
>>>
>>> Interesting looks like an nfs issue... Are you automounting or
>>> anything?
>>>
>>> On Tue, 28 Jul 2009, Cole, Derek E wrote:
>>>
>>> Has anyone encountered a problem when running a zip task, the log will
>>>> say something like
>>>>
>>>> [zip] Building zip: /path-to/some.war
>>>>
>>>> [zip] adding directory ........
>>>>
>>>>
>>>>
>>>> Then getting an exception that says
>>>>
>>>>
>>>>
>>>> Problem creating zip:
>>>> /path-to/someotherdir/.nfs0000000000000001a121a00000003ae (No such
>>>>
>>> file
>>>
>>>> or directory)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> The way the problem is listed..doesnt that seem like a problem with a
>>>> network storage access? /path-to/ is a mount to a NAS
>>>>
>>>>
>>>>
>>> Scot P. Floess
>>> 27 Lake Royale
>>> Louisburg, NC 27549
>>>
>>> 252-478-8087 (Home)
>>> 919-890-8117 (Work)
>>>
>>> Chief Architect JPlate http://sourceforge.net/projects/jplate
>>> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>>>
>>> Architect Keros http://sourceforge.net/projects/keros
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>>
> Scot P. Floess
> 27 Lake Royale
> Louisburg, NC 27549
>
> 252-478-8087 (Home)
> 919-890-8117 (Work)
>
> Chief Architect JPlate http://sourceforge.net/projects/jplate
> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>
> Architect Keros http://sourceforge.net/projects/keros
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: Problem with zip task
Posted by Martin Gainty <mg...@hotmail.com>.
fairly certain the setFollowSymlinks should be set to true (attribute in FileSet)
http://api.dpml.net/ant/1.7.0/org/apache/tools/ant/types/AbstractFileSet.html#setFollowSymlinks(boolean)
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> Date: Tue, 28 Jul 2009 22:51:27 +0100
> Subject: Re: Problem with zip task
> From: groodt@gmail.com
> To: user@ant.apache.org
>
> Out of interest, are archive.dir and staging.dir on the same filesystem?
>
>
>
> On Tue, Jul 28, 2009 at 7:29 PM, Scot P. Floess <sf...@nc.rr.com> wrote:
>
> >
> > I suppose if nothing else maybe exclude all .nfs* files from your
> > fileset???
> >
> >
> > On Tue, 28 Jul 2009, Cole, Derek E wrote:
> >
> > Could this be something that is happening because zip, or some task,
> >> creates a temporary file...then that process dies, leaving the unlinked file
> >> out there. And for whatever reason, the next time the zip task is run, it is
> >> able to see this file but...can't get to it?
> >> When I am on the linux box the build is actually running from, I never can
> >> see any of these .nfs files..but this is the second time in two days this
> >> has happened to us. Usually we re-run the build, and it is successful the
> >> next time.
> >>
> >> Derek
> >>
> >> -----Original Message-----
> >> From: Cole, Derek E
> >> Sent: Tuesday, July 28, 2009 2:11 PM
> >> To: Ant Users List
> >> Subject: RE: Problem with zip task
> >>
> >> I am not sure what is considered relevant...here is the target that is
> >> being run...
> >>
> >> <target name="archive" depends="stage" description="creates an archive
> >> containing all projects's resources and build artifacts.">
> >> <property name="archive.dir" value="${project.dir}"/>
> >> <mkdir dir="${archive.dir}"/>
> >>
> >> <zip destfile="${archive.dir}/${archive.name}" encoding="UTF8"
> >> whenempty="create">
> >> <fileset dir="${staging.dir}"/>
> >> </zip>
> >>
> >> </target>
> >>
> >>
> >> In the build log, it says right before the [zip] out put
> >>
> >> [mkdir] Skipping /path-to/..../archivedir because it already exists
> >>
> >> And post-build failure I checked to make sure that staging.dir actually
> >> existed as well
> >>
> >>
> >>
> >>
> >> -----Original Message-----
> >> From: Greg Roodt [mailto:groodt@gmail.com]
> >> Sent: Tuesday, July 28, 2009 2:04 PM
> >> To: Ant Users List
> >> Subject: Re: Problem with zip task
> >>
> >> Hmmmm, looks a bit suspicious. Could you please include the relevant parts
> >> of the build.xml?
> >>
> >> I know that a few Java File operations dont work very well across file
> >> systems. Renaming has given me problems in the past.
> >>
> >>
> >>
> >> On Tue, Jul 28, 2009 at 6:58 PM, Cole, Derek E <derek.e.cole@lmco.com
> >> >wrote:
> >>
> >> The mounts are persistent, and we are not doing anything like that as
> >>> part of the build.
> >>>
> >>>
> >>> I did find some information on the .nfs files:
> >>>
> >>>
> >>> .nfs files are created by a clienthost when one process on the
> >>> clienthost deletes a file while another process on the clienthost is
> >>> still holding the file open. This allows the delete to appear to
> >>> succeed for one process w/o causing the the process to begin getting
> >>> stale nfs file handles. It is a hack, but it is the only way to
> >>> simulate UFS semantics on NFS. The clienthost will normally delete the
> >>> .nfs file once the remaining process holding the file open closes
> >>> it. However, if the clienthost crashes, you get left with a .nfs file
> >>> on the filer.
> >>>
> >>>
> >>> Note that if more than one host is involved (e.g, process on host a is
> >>> holding a file open over NFS, while process on host b deletes that
> >>> over NFS), process a will get a stale file handle.
> >>>
> >>>
> >>> Could something like this be happening as part of a simple zip task?
> >>>
> >>>
> >>> -----Original Message-----
> >>> From: Scot P. Floess [mailto:sfloess@nc.rr.com]
> >>> Sent: Tuesday, July 28, 2009 1:56 PM
> >>> To: Ant Users List
> >>> Subject: Re: Problem with zip task
> >>>
> >>>
> >>> Interesting looks like an nfs issue... Are you automounting or
> >>> anything?
> >>>
> >>> On Tue, 28 Jul 2009, Cole, Derek E wrote:
> >>>
> >>> Has anyone encountered a problem when running a zip task, the log will
> >>>> say something like
> >>>>
> >>>> [zip] Building zip: /path-to/some.war
> >>>>
> >>>> [zip] adding directory ........
> >>>>
> >>>>
> >>>>
> >>>> Then getting an exception that says
> >>>>
> >>>>
> >>>>
> >>>> Problem creating zip:
> >>>> /path-to/someotherdir/.nfs0000000000000001a121a00000003ae (No such
> >>>>
> >>> file
> >>>
> >>>> or directory)
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> The way the problem is listed..doesnt that seem like a problem with a
> >>>> network storage access? /path-to/ is a mount to a NAS
> >>>>
> >>>>
> >>>>
> >>> Scot P. Floess
> >>> 27 Lake Royale
> >>> Louisburg, NC 27549
> >>>
> >>> 252-478-8087 (Home)
> >>> 919-890-8117 (Work)
> >>>
> >>> Chief Architect JPlate http://sourceforge.net/projects/jplate
> >>> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
> >>>
> >>> Architect Keros http://sourceforge.net/projects/keros
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >>> For additional commands, e-mail: user-help@ant.apache.org
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >>> For additional commands, e-mail: user-help@ant.apache.org
> >>>
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >> For additional commands, e-mail: user-help@ant.apache.org
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >> For additional commands, e-mail: user-help@ant.apache.org
> >>
> >>
> >>
> > Scot P. Floess
> > 27 Lake Royale
> > Louisburg, NC 27549
> >
> > 252-478-8087 (Home)
> > 919-890-8117 (Work)
> >
> > Chief Architect JPlate http://sourceforge.net/projects/jplate
> > Chief Architect JavaPIM http://sourceforge.net/projects/javapim
> >
> > Architect Keros http://sourceforge.net/projects/keros
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
_________________________________________________________________
Bing™ brings you maps, menus, and reviews organized in one place. Try it now.
http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&crea=TXT_MLOGEN_Local_Local_Restaurants_1x1
Re: Problem with zip task
Posted by Greg Roodt <gr...@gmail.com>.
Out of interest, are archive.dir and staging.dir on the same filesystem?
On Tue, Jul 28, 2009 at 7:29 PM, Scot P. Floess <sf...@nc.rr.com> wrote:
>
> I suppose if nothing else maybe exclude all .nfs* files from your
> fileset???
>
>
> On Tue, 28 Jul 2009, Cole, Derek E wrote:
>
> Could this be something that is happening because zip, or some task,
>> creates a temporary file...then that process dies, leaving the unlinked file
>> out there. And for whatever reason, the next time the zip task is run, it is
>> able to see this file but...can't get to it?
>> When I am on the linux box the build is actually running from, I never can
>> see any of these .nfs files..but this is the second time in two days this
>> has happened to us. Usually we re-run the build, and it is successful the
>> next time.
>>
>> Derek
>>
>> -----Original Message-----
>> From: Cole, Derek E
>> Sent: Tuesday, July 28, 2009 2:11 PM
>> To: Ant Users List
>> Subject: RE: Problem with zip task
>>
>> I am not sure what is considered relevant...here is the target that is
>> being run...
>>
>> <target name="archive" depends="stage" description="creates an archive
>> containing all projects's resources and build artifacts.">
>> <property name="archive.dir" value="${project.dir}"/>
>> <mkdir dir="${archive.dir}"/>
>>
>> <zip destfile="${archive.dir}/${archive.name}" encoding="UTF8"
>> whenempty="create">
>> <fileset dir="${staging.dir}"/>
>> </zip>
>>
>> </target>
>>
>>
>> In the build log, it says right before the [zip] out put
>>
>> [mkdir] Skipping /path-to/..../archivedir because it already exists
>>
>> And post-build failure I checked to make sure that staging.dir actually
>> existed as well
>>
>>
>>
>>
>> -----Original Message-----
>> From: Greg Roodt [mailto:groodt@gmail.com]
>> Sent: Tuesday, July 28, 2009 2:04 PM
>> To: Ant Users List
>> Subject: Re: Problem with zip task
>>
>> Hmmmm, looks a bit suspicious. Could you please include the relevant parts
>> of the build.xml?
>>
>> I know that a few Java File operations dont work very well across file
>> systems. Renaming has given me problems in the past.
>>
>>
>>
>> On Tue, Jul 28, 2009 at 6:58 PM, Cole, Derek E <derek.e.cole@lmco.com
>> >wrote:
>>
>> The mounts are persistent, and we are not doing anything like that as
>>> part of the build.
>>>
>>>
>>> I did find some information on the .nfs files:
>>>
>>>
>>> .nfs files are created by a clienthost when one process on the
>>> clienthost deletes a file while another process on the clienthost is
>>> still holding the file open. This allows the delete to appear to
>>> succeed for one process w/o causing the the process to begin getting
>>> stale nfs file handles. It is a hack, but it is the only way to
>>> simulate UFS semantics on NFS. The clienthost will normally delete the
>>> .nfs file once the remaining process holding the file open closes
>>> it. However, if the clienthost crashes, you get left with a .nfs file
>>> on the filer.
>>>
>>>
>>> Note that if more than one host is involved (e.g, process on host a is
>>> holding a file open over NFS, while process on host b deletes that
>>> over NFS), process a will get a stale file handle.
>>>
>>>
>>> Could something like this be happening as part of a simple zip task?
>>>
>>>
>>> -----Original Message-----
>>> From: Scot P. Floess [mailto:sfloess@nc.rr.com]
>>> Sent: Tuesday, July 28, 2009 1:56 PM
>>> To: Ant Users List
>>> Subject: Re: Problem with zip task
>>>
>>>
>>> Interesting looks like an nfs issue... Are you automounting or
>>> anything?
>>>
>>> On Tue, 28 Jul 2009, Cole, Derek E wrote:
>>>
>>> Has anyone encountered a problem when running a zip task, the log will
>>>> say something like
>>>>
>>>> [zip] Building zip: /path-to/some.war
>>>>
>>>> [zip] adding directory ........
>>>>
>>>>
>>>>
>>>> Then getting an exception that says
>>>>
>>>>
>>>>
>>>> Problem creating zip:
>>>> /path-to/someotherdir/.nfs0000000000000001a121a00000003ae (No such
>>>>
>>> file
>>>
>>>> or directory)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> The way the problem is listed..doesnt that seem like a problem with a
>>>> network storage access? /path-to/ is a mount to a NAS
>>>>
>>>>
>>>>
>>> Scot P. Floess
>>> 27 Lake Royale
>>> Louisburg, NC 27549
>>>
>>> 252-478-8087 (Home)
>>> 919-890-8117 (Work)
>>>
>>> Chief Architect JPlate http://sourceforge.net/projects/jplate
>>> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>>>
>>> Architect Keros http://sourceforge.net/projects/keros
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>>
> Scot P. Floess
> 27 Lake Royale
> Louisburg, NC 27549
>
> 252-478-8087 (Home)
> 919-890-8117 (Work)
>
> Chief Architect JPlate http://sourceforge.net/projects/jplate
> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>
> Architect Keros http://sourceforge.net/projects/keros
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
RE: Problem with zip task
Posted by "Scot P. Floess" <sf...@nc.rr.com>.
I suppose if nothing else maybe exclude all .nfs* files from your
fileset???
On Tue, 28 Jul 2009, Cole, Derek E wrote:
> Could this be something that is happening because zip, or some task, creates a temporary file...then that process dies, leaving the unlinked file out there. And for whatever reason, the next time the zip task is run, it is able to see this file but...can't get to it?
> When I am on the linux box the build is actually running from, I never can see any of these .nfs files..but this is the second time in two days this has happened to us. Usually we re-run the build, and it is successful the next time.
>
> Derek
>
> -----Original Message-----
> From: Cole, Derek E
> Sent: Tuesday, July 28, 2009 2:11 PM
> To: Ant Users List
> Subject: RE: Problem with zip task
>
> I am not sure what is considered relevant...here is the target that is being run...
>
> <target name="archive" depends="stage" description="creates an archive containing all projects's resources and build artifacts.">
> <property name="archive.dir" value="${project.dir}"/>
> <mkdir dir="${archive.dir}"/>
>
> <zip destfile="${archive.dir}/${archive.name}" encoding="UTF8" whenempty="create">
> <fileset dir="${staging.dir}"/>
> </zip>
>
> </target>
>
>
> In the build log, it says right before the [zip] out put
>
> [mkdir] Skipping /path-to/..../archivedir because it already exists
>
> And post-build failure I checked to make sure that staging.dir actually existed as well
>
>
>
>
> -----Original Message-----
> From: Greg Roodt [mailto:groodt@gmail.com]
> Sent: Tuesday, July 28, 2009 2:04 PM
> To: Ant Users List
> Subject: Re: Problem with zip task
>
> Hmmmm, looks a bit suspicious. Could you please include the relevant parts
> of the build.xml?
>
> I know that a few Java File operations dont work very well across file
> systems. Renaming has given me problems in the past.
>
>
>
> On Tue, Jul 28, 2009 at 6:58 PM, Cole, Derek E <de...@lmco.com>wrote:
>
>> The mounts are persistent, and we are not doing anything like that as
>> part of the build.
>>
>>
>> I did find some information on the .nfs files:
>>
>>
>> .nfs files are created by a clienthost when one process on the
>> clienthost deletes a file while another process on the clienthost is
>> still holding the file open. This allows the delete to appear to
>> succeed for one process w/o causing the the process to begin getting
>> stale nfs file handles. It is a hack, but it is the only way to
>> simulate UFS semantics on NFS. The clienthost will normally delete the
>> .nfs file once the remaining process holding the file open closes
>> it. However, if the clienthost crashes, you get left with a .nfs file
>> on the filer.
>>
>>
>> Note that if more than one host is involved (e.g, process on host a is
>> holding a file open over NFS, while process on host b deletes that
>> over NFS), process a will get a stale file handle.
>>
>>
>> Could something like this be happening as part of a simple zip task?
>>
>>
>> -----Original Message-----
>> From: Scot P. Floess [mailto:sfloess@nc.rr.com]
>> Sent: Tuesday, July 28, 2009 1:56 PM
>> To: Ant Users List
>> Subject: Re: Problem with zip task
>>
>>
>> Interesting looks like an nfs issue... Are you automounting or
>> anything?
>>
>> On Tue, 28 Jul 2009, Cole, Derek E wrote:
>>
>>> Has anyone encountered a problem when running a zip task, the log will
>>> say something like
>>>
>>> [zip] Building zip: /path-to/some.war
>>>
>>> [zip] adding directory ........
>>>
>>>
>>>
>>> Then getting an exception that says
>>>
>>>
>>>
>>> Problem creating zip:
>>> /path-to/someotherdir/.nfs0000000000000001a121a00000003ae (No such
>> file
>>> or directory)
>>>
>>>
>>>
>>>
>>>
>>> The way the problem is listed..doesnt that seem like a problem with a
>>> network storage access? /path-to/ is a mount to a NAS
>>>
>>>
>>
>> Scot P. Floess
>> 27 Lake Royale
>> Louisburg, NC 27549
>>
>> 252-478-8087 (Home)
>> 919-890-8117 (Work)
>>
>> Chief Architect JPlate http://sourceforge.net/projects/jplate
>> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>>
>> Architect Keros http://sourceforge.net/projects/keros
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-890-8117 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Architect Keros http://sourceforge.net/projects/keros
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: Problem with zip task
Posted by "Cole, Derek E" <de...@lmco.com>.
Could this be something that is happening because zip, or some task, creates a temporary file...then that process dies, leaving the unlinked file out there. And for whatever reason, the next time the zip task is run, it is able to see this file but...can't get to it?
When I am on the linux box the build is actually running from, I never can see any of these .nfs files..but this is the second time in two days this has happened to us. Usually we re-run the build, and it is successful the next time.
Derek
-----Original Message-----
From: Cole, Derek E
Sent: Tuesday, July 28, 2009 2:11 PM
To: Ant Users List
Subject: RE: Problem with zip task
I am not sure what is considered relevant...here is the target that is being run...
<target name="archive" depends="stage" description="creates an archive containing all projects's resources and build artifacts.">
<property name="archive.dir" value="${project.dir}"/>
<mkdir dir="${archive.dir}"/>
<zip destfile="${archive.dir}/${archive.name}" encoding="UTF8" whenempty="create">
<fileset dir="${staging.dir}"/>
</zip>
</target>
In the build log, it says right before the [zip] out put
[mkdir] Skipping /path-to/..../archivedir because it already exists
And post-build failure I checked to make sure that staging.dir actually existed as well
-----Original Message-----
From: Greg Roodt [mailto:groodt@gmail.com]
Sent: Tuesday, July 28, 2009 2:04 PM
To: Ant Users List
Subject: Re: Problem with zip task
Hmmmm, looks a bit suspicious. Could you please include the relevant parts
of the build.xml?
I know that a few Java File operations dont work very well across file
systems. Renaming has given me problems in the past.
On Tue, Jul 28, 2009 at 6:58 PM, Cole, Derek E <de...@lmco.com>wrote:
> The mounts are persistent, and we are not doing anything like that as
> part of the build.
>
>
> I did find some information on the .nfs files:
>
>
> .nfs files are created by a clienthost when one process on the
> clienthost deletes a file while another process on the clienthost is
> still holding the file open. This allows the delete to appear to
> succeed for one process w/o causing the the process to begin getting
> stale nfs file handles. It is a hack, but it is the only way to
> simulate UFS semantics on NFS. The clienthost will normally delete the
> .nfs file once the remaining process holding the file open closes
> it. However, if the clienthost crashes, you get left with a .nfs file
> on the filer.
>
>
> Note that if more than one host is involved (e.g, process on host a is
> holding a file open over NFS, while process on host b deletes that
> over NFS), process a will get a stale file handle.
>
>
> Could something like this be happening as part of a simple zip task?
>
>
> -----Original Message-----
> From: Scot P. Floess [mailto:sfloess@nc.rr.com]
> Sent: Tuesday, July 28, 2009 1:56 PM
> To: Ant Users List
> Subject: Re: Problem with zip task
>
>
> Interesting looks like an nfs issue... Are you automounting or
> anything?
>
> On Tue, 28 Jul 2009, Cole, Derek E wrote:
>
> > Has anyone encountered a problem when running a zip task, the log will
> > say something like
> >
> > [zip] Building zip: /path-to/some.war
> >
> > [zip] adding directory ........
> >
> >
> >
> > Then getting an exception that says
> >
> >
> >
> > Problem creating zip:
> > /path-to/someotherdir/.nfs0000000000000001a121a00000003ae (No such
> file
> > or directory)
> >
> >
> >
> >
> >
> > The way the problem is listed..doesnt that seem like a problem with a
> > network storage access? /path-to/ is a mount to a NAS
> >
> >
>
> Scot P. Floess
> 27 Lake Royale
> Louisburg, NC 27549
>
> 252-478-8087 (Home)
> 919-890-8117 (Work)
>
> Chief Architect JPlate http://sourceforge.net/projects/jplate
> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>
> Architect Keros http://sourceforge.net/projects/keros
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: Problem with zip task
Posted by "Cole, Derek E" <de...@lmco.com>.
I am not sure what is considered relevant...here is the target that is being run...
<target name="archive" depends="stage" description="creates an archive containing all projects's resources and build artifacts.">
<property name="archive.dir" value="${project.dir}"/>
<mkdir dir="${archive.dir}"/>
<zip destfile="${archive.dir}/${archive.name}" encoding="UTF8" whenempty="create">
<fileset dir="${staging.dir}"/>
</zip>
</target>
In the build log, it says right before the [zip] out put
[mkdir] Skipping /path-to/..../archivedir because it already exists
And post-build failure I checked to make sure that staging.dir actually existed as well
-----Original Message-----
From: Greg Roodt [mailto:groodt@gmail.com]
Sent: Tuesday, July 28, 2009 2:04 PM
To: Ant Users List
Subject: Re: Problem with zip task
Hmmmm, looks a bit suspicious. Could you please include the relevant parts
of the build.xml?
I know that a few Java File operations dont work very well across file
systems. Renaming has given me problems in the past.
On Tue, Jul 28, 2009 at 6:58 PM, Cole, Derek E <de...@lmco.com>wrote:
> The mounts are persistent, and we are not doing anything like that as
> part of the build.
>
>
> I did find some information on the .nfs files:
>
>
> .nfs files are created by a clienthost when one process on the
> clienthost deletes a file while another process on the clienthost is
> still holding the file open. This allows the delete to appear to
> succeed for one process w/o causing the the process to begin getting
> stale nfs file handles. It is a hack, but it is the only way to
> simulate UFS semantics on NFS. The clienthost will normally delete the
> .nfs file once the remaining process holding the file open closes
> it. However, if the clienthost crashes, you get left with a .nfs file
> on the filer.
>
>
> Note that if more than one host is involved (e.g, process on host a is
> holding a file open over NFS, while process on host b deletes that
> over NFS), process a will get a stale file handle.
>
>
> Could something like this be happening as part of a simple zip task?
>
>
> -----Original Message-----
> From: Scot P. Floess [mailto:sfloess@nc.rr.com]
> Sent: Tuesday, July 28, 2009 1:56 PM
> To: Ant Users List
> Subject: Re: Problem with zip task
>
>
> Interesting looks like an nfs issue... Are you automounting or
> anything?
>
> On Tue, 28 Jul 2009, Cole, Derek E wrote:
>
> > Has anyone encountered a problem when running a zip task, the log will
> > say something like
> >
> > [zip] Building zip: /path-to/some.war
> >
> > [zip] adding directory ........
> >
> >
> >
> > Then getting an exception that says
> >
> >
> >
> > Problem creating zip:
> > /path-to/someotherdir/.nfs0000000000000001a121a00000003ae (No such
> file
> > or directory)
> >
> >
> >
> >
> >
> > The way the problem is listed..doesnt that seem like a problem with a
> > network storage access? /path-to/ is a mount to a NAS
> >
> >
>
> Scot P. Floess
> 27 Lake Royale
> Louisburg, NC 27549
>
> 252-478-8087 (Home)
> 919-890-8117 (Work)
>
> Chief Architect JPlate http://sourceforge.net/projects/jplate
> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>
> Architect Keros http://sourceforge.net/projects/keros
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Problem with zip task
Posted by Greg Roodt <gr...@gmail.com>.
Hmmmm, looks a bit suspicious. Could you please include the relevant parts
of the build.xml?
I know that a few Java File operations dont work very well across file
systems. Renaming has given me problems in the past.
On Tue, Jul 28, 2009 at 6:58 PM, Cole, Derek E <de...@lmco.com>wrote:
> The mounts are persistent, and we are not doing anything like that as
> part of the build.
>
>
> I did find some information on the .nfs files:
>
>
> .nfs files are created by a clienthost when one process on the
> clienthost deletes a file while another process on the clienthost is
> still holding the file open. This allows the delete to appear to
> succeed for one process w/o causing the the process to begin getting
> stale nfs file handles. It is a hack, but it is the only way to
> simulate UFS semantics on NFS. The clienthost will normally delete the
> .nfs file once the remaining process holding the file open closes
> it. However, if the clienthost crashes, you get left with a .nfs file
> on the filer.
>
>
> Note that if more than one host is involved (e.g, process on host a is
> holding a file open over NFS, while process on host b deletes that
> over NFS), process a will get a stale file handle.
>
>
> Could something like this be happening as part of a simple zip task?
>
>
> -----Original Message-----
> From: Scot P. Floess [mailto:sfloess@nc.rr.com]
> Sent: Tuesday, July 28, 2009 1:56 PM
> To: Ant Users List
> Subject: Re: Problem with zip task
>
>
> Interesting looks like an nfs issue... Are you automounting or
> anything?
>
> On Tue, 28 Jul 2009, Cole, Derek E wrote:
>
> > Has anyone encountered a problem when running a zip task, the log will
> > say something like
> >
> > [zip] Building zip: /path-to/some.war
> >
> > [zip] adding directory ........
> >
> >
> >
> > Then getting an exception that says
> >
> >
> >
> > Problem creating zip:
> > /path-to/someotherdir/.nfs0000000000000001a121a00000003ae (No such
> file
> > or directory)
> >
> >
> >
> >
> >
> > The way the problem is listed..doesnt that seem like a problem with a
> > network storage access? /path-to/ is a mount to a NAS
> >
> >
>
> Scot P. Floess
> 27 Lake Royale
> Louisburg, NC 27549
>
> 252-478-8087 (Home)
> 919-890-8117 (Work)
>
> Chief Architect JPlate http://sourceforge.net/projects/jplate
> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>
> Architect Keros http://sourceforge.net/projects/keros
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
RE: Problem with zip task
Posted by "Cole, Derek E" <de...@lmco.com>.
The mounts are persistent, and we are not doing anything like that as
part of the build.
I did find some information on the .nfs files:
.nfs files are created by a clienthost when one process on the
clienthost deletes a file while another process on the clienthost is
still holding the file open. This allows the delete to appear to
succeed for one process w/o causing the the process to begin getting
stale nfs file handles. It is a hack, but it is the only way to
simulate UFS semantics on NFS. The clienthost will normally delete the
.nfs file once the remaining process holding the file open closes
it. However, if the clienthost crashes, you get left with a .nfs file
on the filer.
Note that if more than one host is involved (e.g, process on host a is
holding a file open over NFS, while process on host b deletes that
over NFS), process a will get a stale file handle.
Could something like this be happening as part of a simple zip task?
-----Original Message-----
From: Scot P. Floess [mailto:sfloess@nc.rr.com]
Sent: Tuesday, July 28, 2009 1:56 PM
To: Ant Users List
Subject: Re: Problem with zip task
Interesting looks like an nfs issue... Are you automounting or
anything?
On Tue, 28 Jul 2009, Cole, Derek E wrote:
> Has anyone encountered a problem when running a zip task, the log will
> say something like
>
> [zip] Building zip: /path-to/some.war
>
> [zip] adding directory ........
>
>
>
> Then getting an exception that says
>
>
>
> Problem creating zip:
> /path-to/someotherdir/.nfs0000000000000001a121a00000003ae (No such
file
> or directory)
>
>
>
>
>
> The way the problem is listed..doesnt that seem like a problem with a
> network storage access? /path-to/ is a mount to a NAS
>
>
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-890-8117 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Architect Keros http://sourceforge.net/projects/keros
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Problem with zip task
Posted by "Scot P. Floess" <sf...@nc.rr.com>.
Interesting looks like an nfs issue... Are you automounting or anything?
On Tue, 28 Jul 2009, Cole, Derek E wrote:
> Has anyone encountered a problem when running a zip task, the log will
> say something like
>
> [zip] Building zip: /path-to/some.war
>
> [zip] adding directory ........
>
>
>
> Then getting an exception that says
>
>
>
> Problem creating zip:
> /path-to/someotherdir/.nfs0000000000000001a121a00000003ae (No such file
> or directory)
>
>
>
>
>
> The way the problem is listed..doesnt that seem like a problem with a
> network storage access? /path-to/ is a mount to a NAS
>
>
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-890-8117 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Architect Keros http://sourceforge.net/projects/keros
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Problem with zip task
Posted by Stefan Bodewig <bo...@apache.org>.
On 2009-07-28, Cole, Derek E <de...@lmco.com> wrote:
> Has anyone encountered a problem when running a zip task, the log will
> say something like
> [zip] Building zip: /path-to/some.war
> [zip] adding directory ........
> Then getting an exception that says
> Problem creating zip:
> /path-to/someotherdir/.nfs0000000000000001a121a00000003ae (No such file
> or directory)
Not with zip but with delete:
https://issues.apache.org/bugzilla/show_bug.cgi?id=45786
So far we haven't been able to understand the issue (at least partly
due to not having an NFS filesystem around to experiment).
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Problem with zip task
Posted by "Alexey N. Solofnenko" <al...@symyx.com>.
Oh, ClearCase. Each time we had similar problems we contacted our IT and
they did some magic to fix it. I am happy to be [almost] Clear Case free
now - there were so many things to go wrong and you cannot blame
Rational/IBM for most of them, besides their architecture choices. If
you need a quick solution, maybe a sleep before zipping will help.
- Alexey.
Cole, Derek E wrote:
> I don't think this will be possible really. The filesystem is actually
> a clearcase snapshot view on that NAS...it gets a set of default
> permissions when the view is created/updated.
>
> -----Original Message-----
> From: Alexey N. Solofnenko [mailto:alexey.solofnenko@symyx.com]
> Sent: Tuesday, July 28, 2009 2:02 PM
> To: Ant Users List
> Subject: Re: Problem with zip task
>
>
> I recently investigated a problem with NAS with a similar error - the
> folder creation silently failed and then file creation failed with "no
> such file" error. To fix it you will need to recursively set "777" file
> permission and correct owner user and group.
>
> - Alexey.
>
> Cole, Derek E wrote:
>
>> Has anyone encountered a problem when running a zip task, the log will
>> say something like
>>
>> [zip] Building zip: /path-to/some.war
>>
>> [zip] adding directory ........
>>
>>
>>
>> Then getting an exception that says
>>
>>
>>
>> Problem creating zip:
>> /path-to/someotherdir/.nfs0000000000000001a121a00000003ae (No such
>>
> file
>
>> or directory)
>>
>>
>>
>>
>>
>> The way the problem is listed..doesnt that seem like a problem with a
>> network storage access? /path-to/ is a mount to a NAS
>>
>>
>>
>>
>
> =======
> Notice: This e-mail message, together with any attachments, contains
> information of Symyx Technologies, Inc. or any of its affiliates or
> subsidiaries that may be confidential, proprietary, copyrighted,
> privileged and/or protected work product, and is meant solely for
> the intended recipient. If you are not the intended recipient, and
> have received this message in error, please contact the sender
> immediately, permanently delete the original and any copies of this
> email and any attachments thereto.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
Re: Problem with zip task
Posted by Steve Loughran <st...@apache.org>.
Cole, Derek E wrote:
> I don't think this will be possible really. The filesystem is actually
> a clearcase snapshot view on that NAS...it gets a set of default
> permissions when the view is created/updated.
>
Clearcase is not a normal FS, wierd things happen. I fear it. If
anything misbehaves, reboot the box, try again
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: Problem with zip task
Posted by "Cole, Derek E" <de...@lmco.com>.
I don't think this will be possible really. The filesystem is actually
a clearcase snapshot view on that NAS...it gets a set of default
permissions when the view is created/updated.
-----Original Message-----
From: Alexey N. Solofnenko [mailto:alexey.solofnenko@symyx.com]
Sent: Tuesday, July 28, 2009 2:02 PM
To: Ant Users List
Subject: Re: Problem with zip task
I recently investigated a problem with NAS with a similar error - the
folder creation silently failed and then file creation failed with "no
such file" error. To fix it you will need to recursively set "777" file
permission and correct owner user and group.
- Alexey.
Cole, Derek E wrote:
> Has anyone encountered a problem when running a zip task, the log will
> say something like
>
> [zip] Building zip: /path-to/some.war
>
> [zip] adding directory ........
>
>
>
> Then getting an exception that says
>
>
>
> Problem creating zip:
> /path-to/someotherdir/.nfs0000000000000001a121a00000003ae (No such
file
> or directory)
>
>
>
>
>
> The way the problem is listed..doesnt that seem like a problem with a
> network storage access? /path-to/ is a mount to a NAS
>
>
>
=======
Notice: This e-mail message, together with any attachments, contains
information of Symyx Technologies, Inc. or any of its affiliates or
subsidiaries that may be confidential, proprietary, copyrighted,
privileged and/or protected work product, and is meant solely for
the intended recipient. If you are not the intended recipient, and
have received this message in error, please contact the sender
immediately, permanently delete the original and any copies of this
email and any attachments thereto.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Problem with zip task
Posted by "Alexey N. Solofnenko" <al...@symyx.com>.
I recently investigated a problem with NAS with a similar error - the
folder creation silently failed and then file creation failed with "no
such file" error. To fix it you will need to recursively set "777" file
permission and correct owner user and group.
- Alexey.
Cole, Derek E wrote:
> Has anyone encountered a problem when running a zip task, the log will
> say something like
>
> [zip] Building zip: /path-to/some.war
>
> [zip] adding directory ........
>
>
>
> Then getting an exception that says
>
>
>
> Problem creating zip:
> /path-to/someotherdir/.nfs0000000000000001a121a00000003ae (No such file
> or directory)
>
>
>
>
>
> The way the problem is listed..doesnt that seem like a problem with a
> network storage access? /path-to/ is a mount to a NAS
>
>
>
=======
Notice: This e-mail message, together with any attachments, contains
information of Symyx Technologies, Inc. or any of its affiliates or
subsidiaries that may be confidential, proprietary, copyrighted,
privileged and/or protected work product, and is meant solely for
the intended recipient. If you are not the intended recipient, and
have received this message in error, please contact the sender
immediately, permanently delete the original and any copies of this
email and any attachments thereto.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org