ip6tables / iptables - Empty 'type' file 28 April 2023, 13:11:32 Hi all,Yesterday I did some firewall fiddling and don't know why but installed ip6tables-s6. After rebooting, after the udev-<someversionnumber> line I got an error (sorry, I don't have the exact line or picture of it for the forum) saying something like:fatal: s6 database corrupted which was obviously preventing me from booting.So I chrooted into my system via Artix ISO, and tried recompiling the database with s6-db-reload. It spew errors, told me /etc/s6/sv/ip6tables/type must be oneshot, longrun or bundle. So I checked the 'type' files in that directory, it was empty, there was no text. Since the file in the same directory called was 'up' I said to myself okay, it's a oneshot service then... Modified it myself to oneshot. Tried compiling again. If I'm not mistaken (because I don't fully remember it) this time I saw an error for iptables (not ip6tables): /etc/s6/sv/iptables/type must be oneshot, longrun or bundle. Did the same; this time it compiled. Rebooted, problem was gone.My install is not that new (~1.5 years), and my system is very bloated; so I'm not sure this was a filesystem error on my side, or really the s6-init scripts repo missing files or having corrupt packages. So the ultimate question is: anyone encountered the same scenario?
Re: ip6tables / iptables - Empty 'type' file Reply #1 – 28 April 2023, 13:13:36 This post looks similar but the difference is I didn't manually touch the ip6tables or iptables s6-service directories.
Re: ip6tables / iptables - Empty 'type' file Reply #2 – 28 April 2023, 15:21:46 The scripts in the repos definitely have the correct type files with "oneshot" in them. I just double checked. So unfortunately it seems like filesystem corruption or something on your end. If they were incorrect from the repos, you should have gotten an error when it was doing the s6-rc-update hook after install.