File failed to download with Fedora jigdo - completed with rsyncFile failed to download with Fedora jigdo - completed with rsync

Posted May 15th, 2008 in Linux/Unix/BSD

Fedora 9 was released this week and I created my CD and DVD ISO images using jigdo. When creating the x86_64 DVD image jigdo failed to download one file named "Fedora-9-comps.xml" and couldn't complete the creation og the DVD ISO file so I resorted to using rsync to finish the job off. This post looks at the error message and the solution I used.

The error message I got at the end of the jigdo process was as follows: 

Found 0 of the 1 files required by the template
Copied input files to temporary file `Fedora-9-x86_64-DVD.iso.tmp' - repeat command and supply more files to continue

-----------------------------------------------------------------
Aaargh - 1 files could not be downloaded. This should not
happen! Depending on the problem, it may help to retry downloading
the missing files.

However, if all the files downloaded without errors and you
still get this message, it means that the files changed on the
server, so the image cannot be generated.

Press Return to retry downloading the missing files.
Press Ctrl-C to abort. (If you re-run jigdo-lite later, it will
resume from here, the downloaded data is not lost if you press
Ctrl-C now.)
:

I tried running it several times, specifying different mirrors to see if that made a difference (I posted how to change download mirror for Fedora when using jigdo on Tuesday). Each time the file was successfully downloaded but it failed to save into the temporary ISO image. I even tried downloading a copy of the file myself and changing the jigdo file to use the local filesystem instead of a remote mirror but that didn't work either.

Fortunately there's a command called "rsync" which allows you to synchronise a local file with a remote one (or vice versa). It will only download the parts it needs to update the local file, so in my case it would only need to download the empty bits in the ISO image which jigdo could not save, rather than downloading the whole thing again.

The first thing to do was to rename the temporary file created by jigdo to the correct filename:

mv Fedora-9-x86_64-DVD.iso.tmp Fedora-9-x86_64-DVD.iso

and then run rsync (using rsync.example.com as a made up rsync server name):

rsync -a --progress rsync://rsync.example.com/pub/fedora/linux/releases/9/Fedora/x86_64/iso/Fedora-9-x86_64-DVD.iso .

The --progress flag shows how it's going as it downloads and then displays a brief summary at the end. The output from the command was as follows:

receiving file list ...
1 file to consider
Fedora-9-x86_64-DVD.iso
  4163696640 100%    9.00MB/s    0:07:20  (1, 100.0% of 1)

sent 516336 bytes  received 1706051 bytes  3172.57 bytes/sec
total size is 4163696640  speedup is 1873.52

So only 1,706,051 bytes were required to complete the image. After running rsync the image should be correct but I ran a sha1sum against it just to double check and it was good and now ready to burn to DVD.

Share or Bookmark

Share or Bookmark this page using the following services. You will need to have an account with the selected service in order to post links or bookmark this page.

Subscribe or Follow

Subscribe via RSS or email, or follow me on Facebook or Twitter below. The RSS icon takes you through to Feedburner where you can select the service or application to use.

Comments

blog comments powered by Disqus