Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157923 - app-backup/amanda broken with tar-1.16
Summary: app-backup/amanda broken with tar-1.16
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
: 157931 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-12 08:40 UTC by Carsten Böcker
Modified: 2007-03-07 20:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch - fix for 2.4.5 (amanda2.4.5-tar1.16.patch,452 bytes, patch)
2006-12-12 09:51 UTC, Brian Johnson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Böcker 2006-12-12 08:40:41 UTC
since I updated tar to version 1.16-r2 amanda gives:

planner: disk cb2.cb.home:/etc, estimate of level 1 failed: -1.

in sendsize.debug I get:

sendsize[23550]: time 0.260: /bin/tar: Unexpected field value in snapshot file
sendsize[23550]: time 0.260: /bin/tar: Error is not recoverable: exiting now

/var/spool/amanda/tar_lists/cb2.cb.home_etc_0 looks like this:

GNU tar-1.16-2
116574572019353052001141895582023041328467./log.d/scripts/logfiles/cronYapp
lydate01160463091023041327981./php/apache2-php4/extYxdebug.iniYzip.ini01162
022335023041327972./php/apache2-php5/ext-activeYxdebug.iniYzip.ini011600363
88023041327407./ssl/certsY.0Y02b73561.0Y0481cb65.0Y052e396b.0Y052eae11.0Y06
d75f4b.0Y0c364b2d.0Y0dbd0096.0Y0e82f83a.0Y10d149a2.0Y11a09b38.0Y11f154d6.0Y
124bbd54.0Y128b9c8d.0Y1689a10b.0Y18d46017.0Y19899da5.0Y1e49180d.0Y1ef89214.
0Y1f6c59cd.0Y24867d38.0Y256fd83b.0Y2edf7016.0Y2edf7016.1Y2fb1850a.0Y3104435
0.0Y3ad48a91.0Y3c58f906.0Y3e223c08.0Y3e7271e8.0Y3ecf89a3.0Y408e388a.0Y412be
a73.0Y4166ec0c.0Y4184de39.0Y4643210f.0Y47996b5c.0Y4d654d1d.0Y4fbd6bfa.0Y54e
dfa5d.0Y56e607f4.0Y594f1775.0Y5cf9d536.0Y5ed36f99.0Y5f5e5caa.0Y61f6c934.0Y6
9ea794f.0Y6adf0799.0Y6bee6be3.0Y6c55cf77.0Y6e8bf996.0Y6f5d9899.0Y6fcc125d.0
Y709afd2b.0Y72bf6a04.0Y72fa7371.0Y731f03a5.0Y

after downgrading tar to version 1.15.1-r1 and running amanda-test-run
it works ok an /var/spool/amanda/tar_lists/cb2.cb.home_etc_0 looks like this:

1165941551
2304 1328467 ./log.d/scripts/logfiles/cron
2304 1327981 ./php/apache2-php4/ext
2304 1327972 ./php/apache2-php5/ext-active
2304 1327407 ./ssl/certs
2304 1327352 ./opt
2304 1328240 ./hotplug/usb
2304 1328383 ./log.d/scripts
2304 1327979 ./php/cli-php4/ext
2304 1328294 ./log.d/conf/logfiles
2304 1328165 ./vmware/init.d
2304 1327290 ./skel/.maildir
2304 1328214 ./dev.d/default
2304 1328316 ./log.d/conf/services
2304 1327850 ./X11/fs
2304 1327990 ./esd
2304 1327129 ./env.d/binutils
2304 1327152 ./stunnel

don't know if this is a bug in tar or amanda but with new tar I allways
get level 0 backups, with old tar it works again as expected.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-12 09:48:41 UTC
*** Bug 157931 has been marked as a duplicate of this bug. ***
Comment 2 Brian Johnson 2006-12-12 09:51:33 UTC
Created attachment 103877 [details, diff]
Patch - fix for 2.4.5
Comment 3 Brian Johnson 2006-12-12 11:17:30 UTC
Sorry, not paying close attention I guess.  The attached patch fixes problem as stated in Bug 157931 (backup parts FAIL if tar finds changed files), but doesn't fix the estimate problem. I'll try applying the second part of this patch  http://www.mail-archive.com/amanda-users@amanda.org/msg36773.html against 2.4.5 and test with tonight's backup run and report back tomorrow.
Comment 4 Brian Johnson 2006-12-12 12:28:28 UTC
Nevermind, its not going to happen. The estimate problem is fixed in 2.5 and I've spent too much time on this for now.

The attached patch is required for either 2.4 or 2.5 for tar to do backups when the file has changed.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-03-07 20:09:02 UTC
2.5* are in the tree now.