Downloading http://prdownloads.sourceforge.net/sourceforge/webadmin/webmin-1.890.tar.gz (179 bytes) ..
Downloading http://downloads.sourceforge.net/project/webadmin/webmin/1.890/webmin-1.890.tar.gz (167 bytes) ..
Downloading https://managedway.dl.sourceforge.net/project/webadmin/webmin/1.890/webmin-1.890.tar.gz (27.83 MB) ..
Received 15.76 kB (0 %)
Received 2.78 MB (10 %)
Received 5.57 MB (20 %)
Received 8.35 MB (30 %)
Received 11.13 MB (40 %)
Received 13.92 MB (50 %)
Received 16.70 MB (60 %)
Received 19.48 MB (70 %)
Received 22.27 MB (80 %)
Received 25.05 MB (90 %)
Received 27.83 MB (100 %)
.. download complete.
Package signature verified successfully.
Running setup.sh script to upgrade Webmin .. Please wait a minute until it is complete before continuing.
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.
Installing Webmin in /usr/pkg/share/webmin-1.890 ...
Webmin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Webmin at the same time
you can just accept the defaults.
Config file directory [/etc/webmin]: Found existing Webmin configuration in /usr/pkg/etc/webmin
cat: /usr/pkg/etc/webmin/var-path: No such file or directory
cat: /usr/pkg/etc/webmin/perl-path: No such file or directory
=: not found
/usr/pkg/share/webmin-1.890/maketemp.pl: /tmp/.webmin: permission denied
/usr/pkg/share/webmin-1.890/maketemp.pl: 6: Syntax error: "{" unexpected (expecting "do")
ERROR: Failed to create or check temp files directory /tmp/.webmin
Same thing if /tmp/.webmin is made mode 777.
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.
Installing Webmin in /usr/pkg/share/webmin-1.890 ...
Webmin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Webmin at the same time
you can just accept the defaults.
Config file directory [/etc/webmin]: /usr/pkg/etc/webmin
Found existing Webmin configuration in /usr/pkg/etc/webmin
cat: /usr/pkg/etc/webmin/var-path: No such file or directory
cat: /usr/pkg/etc/webmin/perl-path: No such file or directory
/usr/pkg/share/webmin-1.890/maketemp.pl[4]: =: not found [No such file or directory]
/usr/pkg/share/webmin-1.890/maketemp.pl[4]: /tmp/.webmin: cannot execute [Is a directory]
/usr/pkg/share/webmin-1.890/maketemp.pl: line 4: syntax error at line 6: `{' unexpected
ERROR: Failed to create or check temp files directory /tmp/.webmin
Looks like a perl script bug of some sort; perl is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-netbsd-thread-multi
The bug is actually in setup.sh, which uses an unset variable; the fix is a one-liner:
*** /usr/pkg/share/webmin-1.890/setup.sh.orig Sat Aug 25 15:33:24 2018
--- /usr/pkg/share/webmin-1.890/setup.sh Sat Aug 25 15:34:47 2018
*** 137,142 ****
--- 137,143 ----
Well, that sort of worked; setup runs but the server fails because the perl scripts puke if there's not a full path.
So perl=
type -p perl | awk '{print $NF}'That installs and runs, but the server just spits out a message about a missing Content-Type field.
I'm back to 1.820 here.
SO it looks like an existijng Webmin install was found, but it was somehow incomplete? Was this an upgrade, or a new install?
1.820 may have been installed from a package, or may have been an upgrade; I don't remember.
Copying/generating missing files (perl-path, var-path, miniserv.pem) from another system allows an upgrade to work.
The setup script should probably generate appropriate content if these files are missing instead of blindly proceeding.
Yeah, it assumes that if the config directory exists and contains a file called
configthat it can be upgraded.But in the next release, I will add extra checks for all the important config files.