netsec-ethz / bootstrapper

1 stars 4 forks source link

Bootstrapper installation fails #13

Closed pietdevaere closed 1 year ago

pietdevaere commented 1 year ago

I tried to install the bootstrapper on my machine, but the installation failed.

piet@odisee:~$ sudo apt install scion-bootstrapper
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ant-contrib cracklib-runtime docker-scan-plugin fonts-dejavu fonts-linuxlibertine fonts-sil-gentium fonts-sil-gentium-basic g++-9
  gir1.2-gst-plugins-base-1.0 libbasicusageenvironment1 libboost-date-time1.67.0 libboost-date-time1.71.0 libboost-filesystem1.67.0
  libboost-filesystem1.71.0 libboost-iostreams1.67.0 libboost-iostreams1.71.0 libboost-locale1.67.0 libboost-locale1.71.0
  libboost-system1.67.0 libboost-thread1.67.0 libboost-thread1.71.0 libbrlapi0.7 libbsh-java libcapstone3 libcdio18 libcfitsio8 libcrack2
  libdc1394-22 libebml4v5 libgit2-28 libgps26 libgrantlee-textdocument5 libgroupsock8 libicu63 libilmbase24 libisl22 libjs-sizzle
  libjsoncpp1 libkaccounts1 libkdecorations2private6 libkf5emoticons-bin libkf5emoticons-data libkf5emoticons5 liblivemedia77 libllvm10
  libllvm9 libmatroska6v5 libmpdec2 libopenexr24 liborcus-0.15-0 liborcus-parser-0.15-0 libperl5.30 libpgm-5.2-0 libphonenumber7
  libplacebo29 libplacebo7 libplymouth4 libpoppler82 libprotobuf-lite22 libprotobuf22 libpwquality-common libpwquality1 libpython2-dev
  libpython2-stdlib libpython2.7 libpython2.7-dev libpython3.8 libpython3.8-dev libpython3.8-minimal libpython3.8-stdlib libraw19 libre2-6
  libre2-7 libreadline5 libreoffice libreoffice-kde5 libreoffice-nlpsolver libreoffice-script-provider-bsh libreoffice-script-provider-js
  libreoffice-script-provider-python libreoffice-wiki-publisher libsane libsisu-guice-java libsisu-ioc-java libsnmp35 libsrt1
  libstdc++-9-dev libusageenvironment3 libusrsctp1 libx264-155 libx265-179 libxcb-util0 libxenmisc4.11 node-jquery python2 python2-dev
  python2-minimal python2.7-dev python3-attr python3-cached-property python3-docker python3-dockerpty python3-docopt python3-gst-1.0
  python3-jsonschema python3-pyrsistent python3-sip python3-texttable python3-websocket python3-yaml python3.8 python3.8-dev
  python3.8-minimal tini wmdocker
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  scion-bootstrapper
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/5’210 kB of archives.
After this operation, 0 B of additional disk space will be used.
Selecting previously unselected package scion-bootstrapper.
(Reading database ... 211078 files and directories currently installed.)
Preparing to unpack .../scion-bootstrapper_0.0.7_amd64.deb ...
Unpacking scion-bootstrapper (0.0.7) ...
Setting up scion-bootstrapper (0.0.7) ...
[*] Using enp0s31f6 to bootstrap SCION endhost ...
dpkg: error processing package scion-bootstrapper (--configure):
 installed scion-bootstrapper package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 scion-bootstrapper
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
piet@odisee:~$ uname -r
5.10.0-25-amd64

piet@odisee:~$ cat /etc/*-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

piet@odisee:~$ cat /proc/version
Linux version 5.10.0-25-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian 5.10.191-1 (2023-08-16)
pietdevaere commented 1 year ago

It also failed on my other machine

piet@artevelde:~$  sudo apt-get install scion-bootstrapper
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  scion-daemon scion-dispatcher scion-tools
The following NEW packages will be installed:
  scion-bootstrapper scion-daemon scion-dispatcher scion-tools
0 upgraded, 4 newly installed, 0 to remove and 103 not upgraded.
Need to get 61.4 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 https://packages.netsec.inf.ethz.ch/debian all/main amd64 scion-dispatcher amd64 4.6.2 [5’302 kB]
Get:2 https://packages.netsec.inf.ethz.ch/debian all/main amd64 scion-daemon amd64 4.6.2 [6’867 kB]
Get:3 https://packages.netsec.inf.ethz.ch/debian all/main amd64 scion-tools amd64 4.6.3 [44.0 MB]
Get:4 https://packages.netsec.inf.ethz.ch/debian all/main amd64 scion-bootstrapper amd64 0.0.7 [5’210 kB]
Fetched 61.4 MB in 2s (31.5 MB/s)           
Selecting previously unselected package scion-dispatcher.
(Reading database ... 675475 files and directories currently installed.)
Preparing to unpack .../scion-dispatcher_4.6.2_amd64.deb ...
Unpacking scion-dispatcher (4.6.2) ...
Selecting previously unselected package scion-daemon.
Preparing to unpack .../scion-daemon_4.6.2_amd64.deb ...
Unpacking scion-daemon (4.6.2) ...
Selecting previously unselected package scion-tools.
Preparing to unpack .../scion-tools_4.6.3_amd64.deb ...
Unpacking scion-tools (4.6.3) ...
Selecting previously unselected package scion-bootstrapper.
Preparing to unpack .../scion-bootstrapper_0.0.7_amd64.deb ...
Unpacking scion-bootstrapper (0.0.7) ...
Setting up scion-daemon (4.6.2) ...
Adding system user `scion' (UID 132) ...
Adding new user `scion' (UID 132) with group `nogroup' ...
Not creating home directory `/home/scion'.
Setting up scion-dispatcher (4.6.2) ...
Setting up scion-tools (4.6.3) ...
Setting up scion-bootstrapper (0.0.7) ...
[*] Using wlp0s20f3 to bootstrap SCION endhost ...
dpkg: error processing package scion-bootstrapper (--configure):
 installed scion-bootstrapper package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 scion-bootstrapper
E: Sub-process /usr/bin/dpkg returned an error code (1)
piet@artevelde:~$ uname -r
6.2.0-31-generic

piet@artevelde:~$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.2 LTS"
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

piet@artevelde:~$ cat /proc/version
Linux version 6.2.0-31-generic (buildd@lcy02-amd64-032) (x86_64-linux-gnu-gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #31~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Aug 16 13:45:26 UTC 2
FR4NK-W commented 1 year ago

Thank you for the information provided.

From the log output you quote in your message, you can see that the post-installation step fails:

installed scion-bootstrapper package post-installation script subprocess returned error exit status 1

The post-installation step of the scion-bootstrapper package sets up the environment for running the scion-bootstrapper and then runs the scion-bootstrapper.

To see the reason(s) why running the scion-bootstrapper failed in the post-installation step of the package installation, you can run sudo journalctl -u 'scion-bootstrapper@*.service'.

The most likely reason is that the default configuration provided by the package enforces strict security settings and does not apply to your current network environment. So please follow the installation instructions provided by your network operator and rerun the post-installation step using the command sudo dpkg scion-bootstrapper --configure (or in case the package is already configured and you need to reconfigure it using an updated configuration, run sudo dpkg-reconfigure scion-bootstrapper).

You can run dpkg --status scion-bootstrapper to check again the installation status of the package after having executed those steps.

Otherwise please also provide also the tail of the output of the command sudo journalctl -u 'scion-bootstrapper@*.service' and the content of the file /etc/scion/bootstrapper.toml after applying the changes as instructed.

pietdevaere commented 1 year ago

Thanks, indeed, I had to let the installation fail, then allow for an insecure network configuration, and then reinstall the bootstrapper. It works now!