Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using mirror without source packages ends in cryptic error #62

Closed
manut opened this issue Mar 9, 2016 · 1 comment
Closed

using mirror without source packages ends in cryptic error #62

manut opened this issue Mar 9, 2016 · 1 comment
Labels

Comments

@manut
Copy link
Contributor

manut commented Mar 9, 2016

If a mirror is used, that doesn't contain the source packages, the source CDROM can't be generated.
However the resulting error messages are very confusing.

Please improve validation that runs before the buld, that it checks if the source mirrors are availbable
if --skip-build-sources wasn't specified.


Installing GRUB boot loader ... 16%... 33%... 50%... 66%... 83%... 100%
The system is going down NOW!.. 13%... 22%... 31%... 40%... 50%... 63%... 72%... 81%... 90%
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system reboot
[ 610.013885] reboot: Restarting system
mkdir -p .stamps
touch .stamps/stamp-install-initial-image


XML file is inavlid: Repository http://10.0.2.2//debian/dists/jessie/Release can not be validated

termi@Ubuntu12:~/elbe-v1$ ./elbe initvm submit ./testlinux.xml
Build started, waiting till it finishes
Tue Mar 8 15:03:31 2016-- project still busy, waiting
Tue Mar 8 15:03:36 2016-- project still busy, waiting
Tue Mar 8 15:03:41 2016-- project still busy, waiting
...
Build finished !

Server returned error:

OSError: [Errno 2] No such file or directory: '/var/cache/elbe/59969b01-165f-400d-8940-3bb0006401e0/validation.txt'
Project failed to generate validation.txt
Getting log.txt
Enqueueing project for build
Build started

ELBE Report for Project elbe-gnome3

report timestamp: 20160308-140329
running cmd +mkdir -p "/var/cache/elbe/59969b01-165f-400d-8940-3bb0006401e0/chroot"+

debootstrap log

getting output from cmd +dpkg --print-architecture+

running cmd +debootstrap --arch=amd64 "jessie" "/var/cache/elbe/59969b01-165f-400d-8940-3bb0006401e0/chroot" "http://10.0.2.2//debian"+

I: Retrieving Release
I: Retrieving Release.gpg
...
I: Configuring systemd...

I: Base system installed successfully.

running cmd +chroot /var/cache/elbe/59969b01-165f-400d-8940-3bb0006401e0/chroot debconf-set-selections < /var/cache/elbe/59969b01-165f-400d-8940-3bb0006401e0/chroot/var/cache/elbe/preseed.txt+
update cache failed
Build failed !!!

Failed to build the Apt Cache.
Not all Mirror Index Files could be downloaded.
Probable cause might be:

  • Problems with Internet Connection
  • Broken mirrors
@manut manut added the bug label Mar 9, 2016
@manut manut added this to the elbe2 milestone Mar 9, 2016
manut pushed a commit that referenced this issue May 5, 2017
…ny more.

When building a source CDROM one needs the source files from the Debian
mirror. If it does not provide any, the build fails in a cryptic error
message. This patch solves the problem by checking whether source files
are available or not and aborting right at the beginning.

#62

Signed-off-by: Philipp Arras <philipp.arras@linutronix.de>
Signed-off-by: Manuel Traut <manut@linutronix.de>
@manut
Copy link
Contributor Author

manut commented May 5, 2017

fixed by adding a validator 555fa1d

@manut manut closed this as completed May 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant