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

Update ignores skipfw = True #150

Closed
ks98 opened this issue Feb 19, 2024 · 2 comments
Closed

Update ignores skipfw = True #150

ks98 opened this issue Feb 19, 2024 · 2 comments

Comments

@ks98
Copy link

ks98 commented Feb 19, 2024

Hello,

while updating to the latest version, the following error occurs: Despite setting the value to True in the /var/lib/linuxmuster/setup.ini, an attempt is still made to transfer the configuration to the firewall.

root@server:# cat /var/lib/linuxmuster/setup.ini 
...
skipfw = True
...
linuxmuster-base7 (7.2.1-0) wird eingerichtet ...
Requirement already satisfied: paramiko in /usr/local/lib/python3.10/dist-packages (3.4.0)
Requirement already satisfied: reconfigure in /usr/local/lib/python3.10/dist-packages (0.1.82)
Requirement already satisfied: bcrypt>=3.2 in /usr/lib/python3/dist-packages (from paramiko) (3.2.0)
Requirement already satisfied: cryptography>=3.3 in /usr/local/lib/python3.10/dist-packages (from paramiko) (41.0.6)
Requirement already satisfied: pynacl>=1.5 in /usr/local/lib/python3.10/dist-packages (from paramiko) (1.5.0)
Requirement already satisfied: chardet in /usr/lib/python3/dist-packages (from reconfigure) (4.0.0)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.10/dist-packages (from cryptography>=3.3->paramiko) (1.15.1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.10/dist-packages (from cffi>=1.12->cryptography>=3.3->paramiko) (2.21)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warn
ings/venv
Listing '/usr/lib/linuxmuster'...
Compiling '/usr/lib/linuxmuster/constants.py'...
Compiling '/usr/lib/linuxmuster/dhcpd-update-samba-dns.py'...
Compiling '/usr/lib/linuxmuster/functions.py'...
Listing '/usr/lib/linuxmuster/setup.d'...
Compiling '/usr/lib/linuxmuster/setup.d/a_ini.py'...
Compiling '/usr/lib/linuxmuster/setup.d/c_general-dialog.py'...
Compiling '/usr/lib/linuxmuster/setup.d/d_templates.py'...
Compiling '/usr/lib/linuxmuster/setup.d/e_fstab.py'...
Compiling '/usr/lib/linuxmuster/setup.d/g_ssl.py'...
Compiling '/usr/lib/linuxmuster/setup.d/h_ssh.py'...
Compiling '/usr/lib/linuxmuster/setup.d/i_linbo.py'...
Compiling '/usr/lib/linuxmuster/setup.d/j_samba-provisioning.py'...
Compiling '/usr/lib/linuxmuster/setup.d/k_samba-users.py'...
Compiling '/usr/lib/linuxmuster/setup.d/l_add-server.py'...
Compiling '/usr/lib/linuxmuster/setup.d/m_firewall.py'...
Compiling '/usr/lib/linuxmuster/setup.d/w_webui.py'...
Compiling '/usr/lib/linuxmuster/setup.d/z_final.py'...
SSH connection to firewall 10.16.0.254 successfully established.
Creating new opnsense configfile 50-linuxmuster.pre-auth.conf.
#### create-auth-config.py 2024-02-19 12:20:14                            ####
#### Reading setup values.                                                ####
#### Reading config template.                                             ####
#### Writing /tmp/50-linuxmuster.pre-auth.conf.                           ####
#### Finished successfully.                                               ####
scp: /usr/local/etc/squid/pre-auth/50-linuxmuster.pre-auth.conf: No such file or directory
dpkg: Fehler beim Bearbeiten des Paketes linuxmuster-base7 (--configure):
 »installiertes linuxmuster-base7-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 1 zurück
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von linuxmuster-linbo7:
 linuxmuster-linbo7 hängt ab von linuxmuster-base7; aber:
  Paket linuxmuster-base7 ist noch nicht konfiguriert.

dpkg: Fehler beim Bearbeiten des Paketes linuxmuster-linbo7 (--configure):
 Abhängigkeitsprobleme - verbleibt unkonfiguriert
Es wurde kein Apport-Bericht verfasst, da die Fehlermeldung darauf hindeutet, dass dies lediglich ein Folgefehler eines vorherigen Problems ist.
                                                                                                                                                Fehler traten auf beim Bearbeiten von:
 linuxmuster-base7
 linuxmuster-linbo7
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

@ks98 ks98 changed the title Bug update ignores skipfw = True Update ignores skipfw = True Feb 19, 2024
@ks98
Copy link
Author

ks98 commented Feb 19, 2024

If I ensure that the connection to the firewall is not established, the firewall connection fails. However, the update proceeds. I simply set the firewall IP to an incorrect address in /var/lib/linuxmuster/setup.ini.

linuxmuster-base7 (7.2.1-0) wird eingerichtet ...
Requirement already satisfied: paramiko in /usr/local/lib/python3.10/dist-packages (3.4.0)
Requirement already satisfied: reconfigure in /usr/local/lib/python3.10/dist-packages (0.1.82)
Requirement already satisfied: bcrypt>=3.2 in /usr/lib/python3/dist-packages (from paramiko) (3.2.0)
Requirement already satisfied: cryptography>=3.3 in /usr/local/lib/python3.10/dist-packages (from paramiko) (41.0.6)
Requirement already satisfied: pynacl>=1.5 in /usr/local/lib/python3.10/dist-packages (from paramiko) (1.5.0)
Requirement already satisfied: chardet in /usr/lib/python3/dist-packages (from reconfigure) (4.0.0)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.10/dist-packages (from cryptography>=3.3->paramiko) (1.15.1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.10/dist-packages (from cffi>=1.12->cryptography>=3.3->paramiko) (2.21)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warn
ings/venv
Listing '/usr/lib/linuxmuster'...
Compiling '/usr/lib/linuxmuster/constants.py'...
Compiling '/usr/lib/linuxmuster/dhcpd-update-samba-dns.py'...
Compiling '/usr/lib/linuxmuster/functions.py'...
Listing '/usr/lib/linuxmuster/setup.d'...
Compiling '/usr/lib/linuxmuster/setup.d/a_ini.py'...
Compiling '/usr/lib/linuxmuster/setup.d/c_general-dialog.py'...
Compiling '/usr/lib/linuxmuster/setup.d/d_templates.py'...
Compiling '/usr/lib/linuxmuster/setup.d/e_fstab.py'...
Compiling '/usr/lib/linuxmuster/setup.d/g_ssl.py'...
Compiling '/usr/lib/linuxmuster/setup.d/h_ssh.py'...
Compiling '/usr/lib/linuxmuster/setup.d/i_linbo.py'...
Compiling '/usr/lib/linuxmuster/setup.d/j_samba-provisioning.py'...
Compiling '/usr/lib/linuxmuster/setup.d/k_samba-users.py'...
Compiling '/usr/lib/linuxmuster/setup.d/l_add-server.py'...
Compiling '/usr/lib/linuxmuster/setup.d/w_webui.py'...
Compiling '/usr/lib/linuxmuster/setup.d/z_final.py'...
SSH connection to firewall 10.16.0.251 failed!
linuxmuster-linbo7 (4.2.13-0) wird eingerichtet ...
Netboot directory for x86_64-efi created. Configure your DHCP server to point to /srv/linbo/boot/grub/x86_64-efi/core.efi
Netboot directory for i386-pc created. Configure your DHCP server to point to /srv/linbo/boot/grub/i386-pc/core.0
Netboot directory for i386-pc created. Configure your DHCP server to point to /srv/linbo/boot/grub/i386-pc/core.0
Netboot directory for x86_64-efi created. Configure your DHCP server to point to /srv/linbo/boot/grub/x86_64-efi/core.efi
Setting serverip in start.conf examples.
linbo-multicast.service is disabled. Consider to enable and start it via systemctl.
Hashing linbo password ... Success!
Creating new linbo filesystem ...
Using stable kernel version 6.7.1 ...
Extracting modules ...
Generating modules.dep and map files ...
Copying firmware ...
  rtl_nic
  rtlwifi/rtl8821aefw.bin
  iwlwifi-cc-a0-77.ucode
  iwlwifi-QuZ-a0-hr-b0-77.ucode
  iwlwifi-QuZ-a0-hr-b0-74.ucode
  iwlwifi-QuZ-a0-hr-b0-73.ucode
  iwlwifi-QuZ-a0-hr-b0-72.ucode
  iwlwifi-QuZ-a0-hr-b0-71.ucode
  iwlwifi-QuZ-a0-hr-b0-68.ucode
  iwlwifi-QuZ-a0-hr-b0-67.ucode
  iwlwifi-QuZ-a0-hr-b0-66.ucode
  iwlwifi-QuZ-a0-hr-b0-63.ucode
  iwlwifi-QuZ-a0-hr-b0-62.ucode
  iwlwifi-QuZ-a0-hr-b0-59.ucode
  iwlwifi-QuZ-a0-hr-b0-55.ucode
  iwlwifi-QuZ-a0-hr-b0-53.ucode
  iwlwifi-QuZ-a0-hr-b0-50.ucode
Creating xz archive (may take a while) ...
  100 %        42,4 MiB / 213,4 MiB = 0,199   8,6 MiB/s       0:24             
Copying stable kernel version 6.7.1 ...
Ok!
0+0 records in
0+0 records out
0 bytes copied, 0,000206053 s, 0,0 kB/s
mkfs.fat 4.2 (2021-01-31)
xorriso 1.5.4 : RockRidge filesystem manipulator, libburnia project.

Drive current: -outdev 'stdio:/srv/linbo/linbo.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data,  422g free
Added to ISO image: directory '/'='/var/cache/linuxmuster/linbo/iso'
xorriso : UPDATE :     989 files added in 1 seconds
xorriso : UPDATE :     989 files added in 1 seconds
xorriso : NOTE : Copying to System Area: 432 bytes from file '/usr/lib/ISOLINUX/isohdpfx.bin'
xorriso : WARNING : Boot image load size exceeds 65535 blocks of 512 bytes. Will record 0 in El Torito to extend ESP to end-of-medium.
libisofs: NOTE : Aligned image size to cylinder size by 354 blocks
xorriso : UPDATE :  20.28% done
ISO image produced: 214528 sectors
Written to medium : 214528 sectors at LBA 0
Writing to 'stdio:/srv/linbo/linbo.iso' completed successfully.

Scanning processes...                                                                                                                                                                                               
Scanning candidates...                                                                                                                                                                                              
Scanning linux images...                                                                                                                                                                                            

Restarting services...
 systemctl restart accounts-daemon.service atd.service avahi-daemon.service colord.service cron.service cups-browsed.service cups.service fwupd.service irqbalance.service isc-dhcp-server.service linbo-multicast.service multipathd.service opentracker.service packagekit.service polkit.service rsync.service rsyslog.service samba-ad-dc.service schukodaemon.service ssh.service tftpd-hpa.service udisks2.service
Service restarts being deferred:
 /etc/needrestart/restart.d/dbus.service
 systemctl restart getty@tty1.service
 systemctl restart networkd-dispatcher.service
 systemctl restart systemd-logind.service
 systemctl restart unattended-upgrades.service
 systemctl restart user@0.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
W: Operation wurde unterbrochen, bevor sie beendet werden konnte.

@HappyBasher
Copy link
Member

HappyBasher commented Feb 21, 2024

Thank you for the report! Fixed in v7.2.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants