PMK159's picture

Hi,

Since updating system can no longer get access to Fileserver config screen but just keep getting this screen. Have tried running turnkey-init but still get this.

Forum: 
PMK159's picture

PMK159's picture

Sorry, very new to this package and forums :(

 

root@turnkey-fileserver ~# apt update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org bullseye-security InRelease                    
Ign:3 http://archive.turnkeylinux.org/debian bullseye-security InRelease        
Ign:4 http://archive.turnkeylinux.org/debian bullseye InRelease
Hit:5 http://archive.turnkeylinux.org/debian bullseye-security Release
Hit:7 http://archive.turnkeylinux.org/debian bullseye Release
Reading package lists... Done                             
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@turnkey-fileserver ~# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
22 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up webmin-fail2ban (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-fail2ban.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-fail2ban (--configure):
 installed webmin-fail2ban package post-installation script subprocess returned error exit status 127
Setting up webmin-apache (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-apache.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-apache (--configure):
 installed webmin-apache package post-installation script subprocess returned error exit status 127
Setting up webmin-mount (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-mount.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-mount (--configure):
 installed webmin-mount package post-installation script subprocess returned error exit status 127
Setting up webmin-software (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-software.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-software (--configure):
 installed webmin-software package post-installation script subprocess returned error exit status 127
dpkg: dependency problems prevent configuration of webmin-fdisk:
 webmin-fdisk depends on webmin-mount; however:
  Package webmin-mount is not configured yet.

dpkg: error processing package webmin-fdisk (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of webmin-exports:
 webmin-exports depends on webmin-mount; however:
  Package webmin-mount is not configured yet.

dpkg: error processing package webmin-exports (--configure):
 dependency problems - leaving unconfigured
Setting up webmin-useradmin (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-useradmin.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-useradmin (--configure):
 installed webmin-useradmin package post-installation script subprocess returned error exit status 127
Setting up webmin-postfix (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-postfix.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-postfix (--configure):
 installed webmin-postfix package post-installation script subprocess returned error exit status 127
Setting up webmin-authentic-theme (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-authentic-theme.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-authentic-theme (--configure):
 installed webmin-authentic-theme package post-installation script subprocess returned error exit status 127
Setting up webmin-sshd (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-sshd.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-sshd (--configure):
 installed webmin-sshd package post-installation script subprocess returned error exit status 127
Setting up webmin-samba (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-samba.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-samba (--configure):
 installed webmin-samba package post-installation script subprocess returned error exit status 127
Setting up webmin-syslog (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-syslog.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-syslog (--configure):
 installed webmin-syslog package post-installation script subprocess returned error exit status 127
Setting up webmin-updown (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-updown.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-updown (--configure):
 installed webmin-updown package post-installation script subprocess returned error exit status 127
Setting up webmin-net (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-net.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-net (--configure):
 installed webmin-net package post-installation script subprocess returned error exit status 127
Setting up webmin-custom (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-custom.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-custom (--configure):
 installed webmin-custom package post-installation script subprocess returned error exit status 127
Setting up webmin-shell (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-shell.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-shell (--configure):
 installed webmin-shell package post-installation script subprocess returned error exit status 127
Setting up webmin-firewall (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-firewall.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-firewall (--configure):
 installed webmin-firewall package post-installation script subprocess returned error exit status 127
Setting up webmin-filemin (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-filemin.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-filemin (--configure):
 installed webmin-filemin package post-installation script subprocess returned error exit status 127
dpkg: dependency problems prevent configuration of webmin-lvm:
 webmin-lvm depends on webmin-fdisk; however:
  Package webmin-fdisk is not configured yet.
 webmin-lvm depends on webmin-mount; however:
  Package webmin-mount is not configured yet.

dpkg: error processing package webmin-lvm (--configure):
 dependency problems - leaving unconfigured
Setting up webmin-firewall6 (2.001-turnkey+0) ...
/var/lib/dpkg/info/webmin-firewall6.postinst: 6: ./install-module.pl: not found
dpkg: error processing package webmin-firewall6 (--configure):
 installed webmin-firewall6 package post-installation script subprocess returned error exit status 127
dpkg: dependency problems prevent configuration of webmin-raid:
 webmin-raid depends on webmin-fdisk; however:
  Package webmin-fdisk is not configured yet.
 webmin-raid depends on webmin-mount; however:
  Package webmin-mount is not configured yet.

dpkg: error processing package webmin-raid (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of webmin-passwd:
 webmin-passwd depends on webmin-useradmin; however:
  Package webmin-useradmin is not configured yet.

dpkg: error processing package webmin-passwd (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 webmin-fail2ban
 webmin-apache
 webmin-mount
 webmin-software
 webmin-fdisk
 webmin-exports
 webmin-useradmin
 webmin-postfix
 webmin-authentic-theme
 webmin-sshd
 webmin-samba
 webmin-syslog
 webmin-updown
 webmin-net
 webmin-custom
 webmin-shell
 webmin-firewall
 webmin-filemin
 webmin-lvm
 webmin-firewall6
 webmin-raid
 webmin-passwd
Enumerating objects: 1577, done.
Counting objects: 100% (1577/1577), done.
Compressing objects: 100% (974/974), done.
Writing objects: 100% (1577/1577), done.
Total 1577 (delta 112), reused 1577 (delta 112), pack-reused 0
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@turnkey-fileserver ~#

Jeremy Davis's picture

As per the subject, I think that there are a few unrelated problems.

TBH that doesn't bode well for your server. Have you checked that there are no issues with the host disk that this server is running on? To have all those issues occurring around the same time, disk corruption in the region where this server is running is my first guess. If you check that and are sure that's not a problem (or if you just want to try some other stuff) please read on

Have you logged in via SSH? If not try that and see if the first boot scripts appear. If not, then again please read on.

The first, the one relating to the "init fence" running (that's what we call that screen) is a bit strange. That should only ever be enabled on firstboot. And then be disabled after running through the fiirstboot questions.

You could try manually disabling it and rebooting your server. Do that like this:

chmod -x /usr/lib/inithooks/firstboot.d/30turnkey-init-fence

It's probably worth disabling the firstboot script that meant to disable it too:

chmod -x /usr/lib/inithooks/firstboot.d/97turnkey-init-fence-disable

Regarding the second issue, i.e. this error:

/var/lib/dpkg/info/webmin-fail2ban.postinst: 6: ./install-module.pl: not found

The first thing to try is to see if apt can fix itself. Again log in via SSH (or this can also be done via the Proxmox NoVNC window) and run this:

apt --fix-broken install

If that results in the same error, try reinstalling Webmin itself (that script should be in the main Webmin package):

 apt --reinstall install webmin

If that still doesn't work, try actually removing Webmin and all the Webmin modules first, then reinstalling them. First save a list of the installed webmin packages, then remove them:

apt list --installed webmin* > /root/installed
apt remove webmin*

Assuming that works, then reinstall all those packages like this:

pkgs=$(cat /root/installed)
apt install *pkgs

If you're still having issues, please post back and I'll try to see if I can reproduce it and devise a workaround. I probably won't get a chance to do that until next week.

The next is probably a bit trickier. First I suggest restarting Apache, just in case that fixes it:

systemctl restart apach2

If that makes no difference, then I'd check the Apache logs for any errors. If you find some and don't know what to do with them, please post back (ideally copy/paste the text of them) and I'll see if there is anything I can see. The error log should be here:

/var/log/apaceh2/error.log

If you don't see any errors there, then check the access files (in the same directory). Again feel free to post any errors and I'll get back to you ASAP (although that will probably be later next week).

Good luck.

PMK159's picture

This is hosted on same SSD as Proxmox and some other containers and is 2 months old.

The "init fence" is still there after trying your commands. I have been in using Putty a few times and still get fence.

I get this after reboot in the console, 

Webmin seems to be fixed with below and will update and upgrade.

 apt --reinstall install webmin

When I try restarting apache2 I get, this error log:

[Fri Mar 08 09:15:36.793747 2024] [ssl:warn] [pid 254:tid 133462330019136] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Fri Mar 08 09:15:36.793895 2024] [ssl:error] [pid 254:tid 133462330019136] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=turnkey-fileserver /
    issuer: CN=turnkey-fileserver / serial: 45AC4FA8C9330D6321F31EA8B7C11098643EB58A / 
    notbefore: Jan 28 17:00:06 2024 GMT / notafter: Jan 28 17:00:06 2034 GMT]
[Fri Mar 08 09:15:36.793900 2024] [ssl:error] [pid 254:tid 133462330019136] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Fri Mar 08 09:15:36.806504 2024] [ssl:warn] [pid 262:tid 133462330019136] AH01909:  localhost:443:0 server certificate does NOT include an ID which matches the server name
[Fri Mar 08 09:15:36.806613 2024] [ssl:error] [pid 262:tid 133462330019136] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=turnkey-fileserver / 
    issuer: CN=turnkey-fileserver / serial: 45AC4FA8C9330D6321F31EA8B7C11098643EB58A / 
    notbefore: Jan 28 17:00:06 2024 GMT / notafter: Jan 28 17:00:06 2034 GMT]
[Fri Mar 08 09:15:36.806617 2024] [ssl:error] [pid 262:tid 133462330019136] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Fri Mar 08 09:15:36.807663 2024] [mpm_event:notice] [pid 262:tid 133462330019136] AH00489: Apache/2.4.56 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations
[Fri Mar 08 09:15:36.807680 2024] [core:notice] [pid 262:tid 133462330019136] AH00094: Command line: '/usr/sbin/apache2'
[Fri Mar 08 09:25:36.203814 2024] [mpm_event:notice] [pid 262:tid 133462330019136] AH00492: caught SIGWINCH, shutting down gracefully
[Fri Mar 08 09:25:36.272681 2024] [ssl:warn] [pid 1073:tid 132432632143168] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Fri Mar 08 09:25:36.272808 2024] [ssl:error] [pid 1073:tid 132432632143168] AH02217: 
   ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=turnkey-fileserver /
    issuer: CN=turnkey-fileserver / serial: 45AC4FA8C9330D6321F31EA8B7C11098643EB58A / 
    notbefore: Jan 28 17:00:06 2024 GMT / notafter: Jan 28 17:00:06 2034 GMT]
[Fri Mar 08 09:25:36.272814 2024] [ssl:error] [pid 1073:tid 132432632143168] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Fri Mar 08 09:25:36.280671 2024] [ssl:warn] [pid 1074:tid 132432632143168] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Fri Mar 08 09:25:36.280777 2024] [ssl:error] [pid 1074:tid 132432632143168] AH02217: 
    ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=turnkey-fileserver /
    issuer: CN=turnkey-fileserver / serial: 45AC4FA8C9330D6321F31EA8B7C11098643EB58A / notbefore: Jan 28 17:00:06 2024 GMT / notafter: Jan 28 17:00:06 2034 GMT]
[Fri Mar 08 09:25:36.280782 2024] [ssl:error] [pid 1074:tid 132432632143168] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Fri Mar 08 09:25:36.281586 2024] [mpm_event:notice] [pid 1074:tid 132432632143168] AH00489: Apache/2.4.56 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations
[Fri Mar 08 09:25:36.281602 2024] [core:notice] [pid 1074:tid 132432632143168] AH00094: Command line: '/usr/sbin/apache2'

Looks like some cert errors so will investigate if have time over weekend. Would this stop the fence dropping??

Jeremy Davis's picture

Apologies on slow response. I had a (non TurnKey related) emergency that I needed to deal with.

Could you please give me the output of this:

journalctl -t inithooks

Re the Apache logs, that is expected until/unless you get a proper SSL/TLS certificate (e.g via Let's Encrypt). Otherwise they are harmless and should make no difference.

PMK159's picture

-- Journal begins at Wed 2024-03-06 05:11:25 GMT, ends at Tue 2024-03-19 08:18:14 GMT.
Mar 08 08:50:04 turnkey-fileserver inithooks[129]: Inithook run completed, exiting.
-- Boot 3a9d089c8ca144b4b12701f89095d911 --
Mar 08 08:54:53 turnkey-fileserver inithooks[168]: Inithook run completed, exiting.
Mar 08 08:54:53 turnkey-fileserver inithooks[130]: /usr/lib/inithooks/run: line 13:   151 Killed
        tail -f $INITHOOKS_LOGFILE > /dev/$TTY

-- Boot d4158b0331a14411930c287b2db12f7c --

Mar 08 09:00:18 turnkey-fileserver inithooks[167]: Inithook run completed, exiting.
Mar 08 09:00:18 turnkey-fileserver inithooks[130]: /usr/lib/inithooks/run: line 13:   150 Killed
        tail -f $INITHOOKS_LOGFILE > /dev/$TTY
-- Boot 134b64c9645a4fa982c77430b3cd0840 --
Mar 08 09:09:56 turnkey-fileserver inithooks[129]: Inithook run completed, exiting.
Mar 08 09:09:56 turnkey-fileserver inithooks[92]: /usr/lib/inithooks/run: line 13:   112 Killed
        tail -f $INITHOOKS_LOGFILE > /dev/$TTY

-- Boot b0fb0d40622e4d68b92f618949ad09ed --

Mar 08 09:15:36 turnkey-fileserver inithooks[171]: Inithook run completed, exiting.
Mar 08 09:15:36 turnkey-fileserver inithooks[131]: /usr/lib/inithooks/run: line 13:   153 Killed
        tail -f $INITHOOKS_LOGFILE > /dev/$TTY

-- Boot 0fb205a04c614d6fa6a05779131b5d68 --

Mar 08 09:37:13 turnkey-fileserver inithooks[135]: Inithook run completed, exiting.

-- Boot 31217b9f24a9414dbc4fc17aabad7b73 --

Mar 13 08:19:43 turnkey-fileserver inithooks[151]: Inithook run completed, exiting.
Mar 13 08:19:43 turnkey-fileserver inithooks[113]: /usr/lib/inithooks/run: line 13:   135 Killed
        tail -f $INITHOOKS_LOGFILE > /dev/$TTY

-- Boot 7bdc288a8b514a7caeeb31d30f74b2f7 --

Mar 18 09:28:07 turnkey-fileserver inithooks[161]: Inithook run completed, exiting.
Mar 18 09:28:07 turnkey-fileserver inithooks[125]: /usr/lib/inithooks/run: line 13:   146 Killed
        tail -f $INITHOOKS_LOGFILE > /dev/$TTY
Jeremy Davis's picture

But it's certainly a super weird issued! There's clearly an error there and that's certainly not the output I expected and I have no idea how/why it might be like that!? I checked line 13 of the default /usr/lib/inithooks/run file and while I could be overlooking something, on face value I can't see anything that would be causing that sort of error. Without being able to understand the issue, then I'm really not sure how that happened or how to fix it?

Perhaps it's worth trying to reinstall the inithooks package? I.e.:

apt update
apt install --reinstall inithooks

I still don't understand how this could happen though. It seems like a very strange issue and especially strange to have those 2 issues occur at the same time. The only thing that occurs to me is perhaps there some sort of proxy and/or network filtering happening between this appliance and the internet? Perhaps there is some data corruption occurring in transit?

Add new comment