freebsd / poudriere

Port/Package build and test system
https://github.com/freebsd/poudriere/wiki
BSD 2-Clause "Simplified" License
393 stars 162 forks source link

Spurious "mtree: line 2: no parent node" error message #221

Open bapt opened 10 years ago

bapt commented 10 years ago

Occurs on FreeBSD 10.0-RELEASE host with poudriere-devel from ports. Jails are 10.0-RELEASE-[amd64,i386] and 9.3-RELEASE-[amd64,i386]. Appears to be purely spurious as jails are updated correctly.

To reproduce: create jails from FTP. for pdrj in poudriere jail -l -q -n; do poudriere jail -u -j $pdrj if [ $? -ne 0 ]; then echo "Error updating jail $pdrj" fi done

10.0-RELEASE jails will show no errors, 9.3-RELEASE jails will show the error: Installing updates...mtree: line 2: no parent node

FlorianHeigl commented 9 years ago

My tests seem to indicated the jails aren't always correctly updated. I used the timestamp on /usr/bin/ftp to have something to compare against.

dlangille commented 9 years ago

See also https://gist.github.com/dlangille/66fd6df0fd278124831d#comment-1368467

FlorianHeigl commented 9 years ago

I've made a tester script and ran it, creating multiple jails with poudriere, version 3.1.1. All jails were deleted, created, updated.

root@freebsd1:/usr/local/poudriere_data/packages # ls -l /usr/local/poudriere/jails/*/usr/bin/ftp | column -r-xr-xr-x 3 root wheel 136536 Nov 11 22:03 /usr/local/poudriere/jails/10_1_2014Q2_amd64/usr/bin/ftp -r-xr-xr-x 3 root wheel 131896 Nov 11 23:52 /usr/local/poudriere/jails/10_1_2014Q2_i386/usr/bin/ftp -r-xr-xr-x 3 root wheel 136536 Nov 11 22:03 /usr/local/poudriere/jails/10_1_2015Q1_amd64/usr/bin/ftp -r-xr-xr-x 3 root wheel 131896 Nov 11 23:52 /usr/local/poudriere/jails/10_1_2015Q1_i386/usr/bin/ftp -r-xr-xr-x 3 root wheel 141064 Dec 4 2012 /usr/local/poudriere/jails/9_1_2014Q2_amd64/usr/bin/ftp -r-xr-xr-x 3 root wheel 132796 Dec 4 2012 /usr/local/poudriere/jails/9_1_2014Q2_i386/usr/bin/ftp -r-xr-xr-x 3 root wheel 141064 Dec 4 2012 /usr/local/poudriere/jails/9_1_2015Q1_amd64/usr/bin/ftp -r-xr-xr-x 3 root wheel 132796 Dec 4 2012 /usr/local/poudriere/jails/9_1_2015Q1_i386/usr/bin/ftp -r-xr-xr-x 3 root wheel 141408 Jan 18 18:15 /usr/local/poudriere/jails/9_3_2014Q2_amd64/usr/bin/ftp -r-xr-xr-x 3 root wheel 133048 Jan 18 18:04 /usr/local/poudriere/jails/9_3_2014Q2_i386/usr/bin/ftp -r-xr-xr-x 3 root wheel 141408 Jan 18 18:37 /usr/local/poudriere/jails/9_3_2015Q1_amd64/usr/bin/ftp -r-xr-xr-x 3 root wheel 133048 Jan 18 18:26 /usr/local/poudriere/jails/9_3_2015Q1_i386/usr/bin/ftp

as you see the 9.1 ones were affected all the time, getting stuck right on the initial update. All 9.3 ones successfully updated this time.

Now, for the interesting part: I put the 9.3 freebsd-update in the 9.1 buildjail and the mtree error disappeared.

I think this means:

the recent 9.3 has a freebsd-update that handles the mtree problem somewhat. (The error showed but no bad effects). On older releases there was a problem in freebsd-update that doesn't survive this error.

The cause of the mtree error is in poudriere, but i don't know what it's doing wrong.

FlorianHeigl commented 9 years ago

Sorry. just found that the 9.1 update didn't work anyway, the timestamp is unchanged. Replacing freebsd-update just covered up the error nicely. :)

9.3 final result all fine as you can see above, but it did show errors too. Only safe way out seems to find why the mtree error comes up with poudriere.