summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-17 11:51:19 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-17 11:51:19 +0100
commite2c29139cddcaec1a420097b5b18791f9d5faffb (patch)
tree7a8d0e3a9e3953ea36f293b2be734b4a0cd22aeb
parent0863b787f97838a1c2621d18951194e28668d5ee (diff)
downloadvyos-documentation-e2c29139cddcaec1a420097b5b18791f9d5faffb.tar.gz
vyos-documentation-e2c29139cddcaec1a420097b5b18791f9d5faffb.zip
debugging: add hint how to solve ISO build erros on broken package feed
-rw-r--r--docs/contributing/build-vyos.rst82
-rw-r--r--docs/debugging.rst8
2 files changed, 89 insertions, 1 deletions
diff --git a/docs/contributing/build-vyos.rst b/docs/contributing/build-vyos.rst
index cb97e418..453edd30 100644
--- a/docs/contributing/build-vyos.rst
+++ b/docs/contributing/build-vyos.rst
@@ -257,6 +257,88 @@ The full and current list can be generated with ``./configure --help``:
--custom-package CUSTOM_PACKAGE
Custom package to install from repositories
+.. _iso_build_issues:
+
+ISO Build Issues
+----------------
+
+There are (rare) situations where building an ISO image is not possible at all
+due to a broken package feed in the background. APT is not very good at
+reporting the root cause of the issue. Your ISO build will likely fail with a
+more or less similar looking error message:
+
+.. code-block:: none
+
+ The following packages have unmet dependencies:
+ vyos-1x : Depends: accel-ppp but it is not installable
+ E: Unable to correct problems, you have held broken packages.
+ P: Begin unmounting filesystems...
+ P: Saving caches...
+ Reading package lists...
+ Building dependency tree...
+ Reading state information...
+ Del frr-pythontools 7.5-20210215-00-g8a5d3b7cd-0 [38.9 kB]
+ Del accel-ppp 1.12.0-95-g59f8e1b [475 kB]
+ Del frr 7.5-20210215-00-g8a5d3b7cd-0 [2671 kB]
+ Del frr-snmp 7.5-20210215-00-g8a5d3b7cd-0 [55.1 kB]
+ Del frr-rpki-rtrlib 7.5-20210215-00-g8a5d3b7cd-0 [37.3 kB]
+ make: *** [Makefile:30: iso] Error 1
+ (10:13) vyos_bld ece068908a5b:/vyos [current] #
+
+To debug the build process and gain additional information of what could be the
+root cause wou need to `chroot` into the build directry. This is explained in
+the following step by step procedure:
+
+.. code-block:: none
+
+ vyos_bld ece068908a5b:/vyos [current] # sudo chroot build/chroot /bin/bash
+
+We now need to mount some required, volatile filesystems
+
+.. code-block:: none
+
+ (live)root@ece068908a5b:/# mount -t proc none /proc
+ (live)root@ece068908a5b:/# mount -t sysfs none /sys
+ (live)root@ece068908a5b:/# mount -t devtmpfs none /dev
+
+We now are free to run any command we would like to use for debugging, e.g.
+re-installing the failed package after updating the repository.
+
+.. code-block:: none
+
+ (live)root@ece068908a5b:/# apt-get update; apt-get install vyos-1x
+ Get:1 file:/root/packages ./ InRelease
+ Ign:1 file:/root/packages ./ InRelease
+ Get:2 file:/root/packages ./ Release [1235 B]
+ Get:2 file:/root/packages ./ Release [1235 B]
+ Get:3 file:/root/packages ./ Release.gpg
+ Ign:3 file:/root/packages ./ Release.gpg
+ Hit:4 http://repo.powerdns.com/debian buster-rec-43 InRelease
+ Hit:5 http://repo.saltstack.com/py3/debian/10/amd64/archive/3002.2 buster InRelease
+ Hit:6 http://deb.debian.org/debian bullseye InRelease
+ Hit:7 http://deb.debian.org/debian buster InRelease
+ Hit:8 http://deb.debian.org/debian-security buster/updates InRelease
+ Hit:9 http://deb.debian.org/debian buster-updates InRelease
+ Hit:10 http://deb.debian.org/debian buster-backports InRelease
+ Hit:11 http://dev.packages.vyos.net/repositories/current current InRelease
+ Reading package lists... Done
+ N: Download is performed unsandboxed as root as file '/root/packages/./InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
+ Reading package lists... Done
+ Building dependency tree
+ Reading state information... Done
+ Some packages could not be installed. This may mean that you have
+ requested an impossible situation or if you are using the unstable
+ distribution that some required packages have not yet been created
+ or been moved out of Incoming.
+ The following information may help to resolve the situation:
+
+ The following packages have unmet dependencies:
+ vyos-1x : Depends: accel-ppp but it is not installable
+ E: Unable to correct problems, you have held broken packages.
+
+Now it's time to fix the package mirror and rerun the last step until the
+package installation succeeds again!
+
.. _build_custom_packages:
Linux Kernel
diff --git a/docs/debugging.rst b/docs/debugging.rst
index e9207664..fec73257 100644
--- a/docs/debugging.rst
+++ b/docs/debugging.rst
@@ -8,6 +8,12 @@ There are two flags available to aid in debugging configuration scripts.
Since configuration loading issues will manifest during boot, the flags are
passed as kernel boot parameters.
+ISO image build
+===============
+
+When having trouble compiling your own ISO image or debugging Jenkins issues
+you can follow the steps at :ref:`iso_build_issues`.
+
System Startup
==============
@@ -76,7 +82,7 @@ will have the same effect as ``touch /tmp/vyos.ifconfig.debug``.
disable ``vyos-configd`` in addition. This can be run either one-time by
calling ``sudo systemctl stop vyos-configd`` or make this reboot-safe by
calling ``sudo systemctl disable vyos-configd``.
-
+
FRR
---