El día miércoles, julio 05, 2023 a las 08:37:15 +0200, Thomas Markus escribió:
> > tar: jobs/SLNPBasic-V7.1/builds/lastStableBuild: File removed before we read it
> > tar: jobs/SLNPBasic-V7.1/builds/lastFailedBuild: File removed before we read it
> > tar: jobs/SLNPBasic/builds/lastUnstableBuild: File removed before we read it
> > ...
> > and these symlinks all point to nowhere:
> >
> > # ls -l jobs/SLNPBasic-V7.1/builds/lastStableBuild
> > lrwxrwxrwx 1 jenkins jenkins 2 Jul 30 2020 jobs/SLNPBasic-V7.1/builds/lastStableBuild -> -1
> >
> > ...
> It means these files are removed/changed while tar is running. Looks like
> your jenkins instance is running and a build job was executed so symlink for
> last build changes.
> Personally I use rsync for sync to remote location. To overcome this you can
> use snapshots on filesystem support or block any filesystem modification
> while tar is running
I looked into the build directory (and Jenkins was not running):
# ls -l jobs/SunRise-WMS-Migration-Tools/builds/
...
drwxr-xr-x 2 jenkins jenkins 4096 10. Sep 2021 998
drwxr-xr-x 2 jenkins jenkins 4096 10. Sep 2021 999
lrwxrwxrwx 1 jenkins jenkins 4 21. Okt 2021 lastFailedBuild -> 1361
lrwxrwxrwx 1 jenkins jenkins 4 23. Jan 15:01 lastStableBuild -> 5583
lrwxrwxrwx 1 jenkins jenkins 4 23. Jan 15:01 lastSuccessfulBuild -> 5583
lrwxrwxrwx 1 jenkins jenkins 2 22. Apr 2021 lastUnstableBuild -> -1
lrwxrwxrwx 1 jenkins jenkins 4 21. Okt 2021 lastUnsuccessfulBuild -> 1361
it looks like the symlink 'lastUnstableBuild' -> -1 just means, no
information available; as well it is not shown in the dashboard of the
job; there are only:
Permalinks
Last build (#5583), 5 mo 12 days ago
Last stable build (#5583), 5 mo 12 days ago
Last successful build (#5583), 5 mo 12 days ago
Last failed build (#1361), 1 yr 8 mo ago
Last unsuccessful build (#1361), 1 yr 8 mo ago
Last completed build (#5583), 5 mo 12 days ago
I will just ignore the errors. As well the following cmd shows that all
'lastUnstableBuild' are symlinks to -1:
find -L jobs -name lastUnstableBuild -exec ls -l {} \; | grep -v -- '-1'