RaspAP / raspap-webgui

Simple wireless AP setup & management for Debian-based devices
https://raspap.com/
GNU General Public License v3.0
4.48k stars 794 forks source link

Add a .img builder workflow /claim #1688 #1689

Open NL-TCH opened 3 weeks ago

NL-TCH commented 3 weeks ago

This github action builds a .img file and adds it as an artifact: /claim #1688

NL-TCH commented 3 weeks ago

@billz do you know why this PR isn't indexed by the Algora bot as a submitted solution?

NL-TCH commented 3 weeks ago

*thanks for mentioning me in the issue :) very much appreciated!

billz commented 3 weeks ago

@NL-TCH that was fast 😅 I was AFK most of the day. Will test this first thing tomorrow, thx!

NL-TCH commented 3 weeks ago

there seems to be a problem with the DNS in the github action. in previous commands it could resolve archive.raspberrypi.com but after some time not anymore:

https://github.com/NL-TCH/raspap-webgui/actions/runs/11617939233/job/32354250004

  Creating loop device...
  Warning: mkfs.fat: Warning: lowercase labels might not work properly on some systems
  Warning: mke2fs 1.46.2 (28-Feb-2021)
  mount: /dev/loop3p2 mounted on /pi-gen/work/raspap-latest/export-image/rootfs.
  mount: /dev/loop3p1 mounted on /pi-gen/work/raspap-latest/export-image/rootfs/boot/firmware.
  [19:03:47] End /pi-gen/export-image/prerun.sh
  [19:03:47] Begin /pi-gen/export-image/00-allow-rerun
  [19:03:47] Begin /pi-gen/export-image/00-allow-rerun/00-run.sh
  [19:03:47] End /pi-gen/export-image/00-allow-rerun/00-run.sh
  [19:03:47] End /pi-gen/export-image/00-allow-rerun
  [19:03:47] Begin /pi-gen/export-image/01-user-rename
  [19:03:47] Begin /pi-gen/export-image/01-user-rename/00-packages
  Reading package lists...
  Building dependency tree...
  Reading state information...
  The following packages were automatically installed and are no longer required:
    bluez dhcpcd
  Use 'apt autoremove' to remove them.
  The following additional packages will be installed:
    raspberrypi-sys-mods
  The following packages will be REMOVED:
    dhcpcd5
  The following NEW packages will be installed:
    raspberrypi-sys-mods userconf-pi
  0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
  Need to get 28.5 kB of archives.
  After this operation, 127 kB of additional disk space will be used.
  Ign:1 http://archive.raspberrypi.com/debian bookworm/main arm64 raspberrypi-sys-mods arm64 20241030
  Ign:2 http://archive.raspberrypi.com/debian bookworm/main arm64 userconf-pi all 0.10
  Ign:1 http://archive.raspberrypi.com/debian bookworm/main arm64 raspberrypi-sys-mods arm64 20241030
  Ign:2 http://archive.raspberrypi.com/debian bookworm/main arm64 userconf-pi all 0.10
  Ign:1 http://archive.raspberrypi.com/debian bookworm/main arm64 raspberrypi-sys-mods arm64 20241030
  Ign:2 http://archive.raspberrypi.com/debian bookworm/main arm64 userconf-pi all 0.10
  Err:1 http://archive.raspberrypi.com/debian bookworm/main arm64 raspberrypi-sys-mods arm64 20241030
    Temporary failure resolving 'archive.raspberrypi.com'
  Ign:2 http://archive.raspberrypi.com/debian bookworm/main arm64 userconf-pi all 0.10
  Err:2 http://archive.raspberrypi.com/debian bookworm/main arm64 userconf-pi all 0.10
    Temporary failure resolving 'archive.raspberrypi.com'
  Warning: E: Failed to fetch http://archive.raspberrypi.com/debian/pool/main/r/raspberrypi-sys-mods/raspberrypi-sys-mods_20241030_arm64.deb  Temporary failure resolving 'archive.raspberrypi.com'
  Warning: E: Failed to fetch http://archive.raspberrypi.com/debian/pool/main/u/userconf-pi/userconf-pi_0.10_all.deb  Temporary failure resolving 'archive.raspberrypi.com'
  Warning: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
  [19:03:56] Build failed
  Warning: real 20m26.079s
  Warning: user 0m0.112s
  Warning: sys  0m0.265s
Error: pi-gen build failed with exit code 100
mkfs.fat: Warning: lowercase labels might not work properly on some systems
mke2fs 1.46.2 (28-Feb-2021)
E: Failed to fetch http://archive.raspberrypi.com/debian/pool/main/r/raspberrypi-sys-mods/raspberrypi-sys-mods_20241030_arm64.deb  Temporary failure resolving 'archive.raspberrypi.com'
E: Failed to fetch http://archive.raspberrypi.com/debian/pool/main/u/userconf-pi/userconf-pi_0.10_all.deb  Temporary failure resolving 'archive.raspberrypi.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
billz commented 3 weeks ago

possible workaround?

on_chroot << EOF
echo 'nameserver 1.1.1.1' | tee -a /etc/resolv.conf
apt-get -y update
EOF

source: https://github.com/RPi-Distro/pi-gen/issues/553#issuecomment-944304459