Help with webmin Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
boogey
Posts: 4
Joined: Sat Sep 19, 2020 11:24 pm

Help with webmin

Post by boogey »

Hello everyone!

I have been crawling this site for quite some time after installing Dietpi. It has worked flawlessly for me for a long time until today. I was using webmin and really like the features it provides. I attempted to "clean" up the packages that I had installed while experimenting with Dietpi and think I may have fouled something up. I used the software menu uninstaller to uninstall the packages I didn't think I would need further.

I think I may have uninstalled a package/packages that webmin requires to run. I attempted to delete webmin and perform a fresh install of it via the software installation menu to get the required packages to install again. The only package that it installs is webmin and nothing else. When I restarted the pi, webmin failed to start and will not do so. In the error log it mentioned that it cannot find the required configuration files.

I am a novice and that is the big appeal of Dietpi to me. I would like to keep everything nice and simple so I would prefer not to go manually installing things that may change my ability to easily manage the pi. Is there anything I can do to get the software installer to grab the required packages through the automated process again?

Any help much appreciated!
User avatar
Joulinar
Posts: 2300
Joined: Sat Nov 16, 2019 12:49 am

Re: Help with webmin

Post by Joulinar »

Hi,

many thanks for your message. Yes indeed, for Webmin, there is just one package being installed.

Pls can you post following:

Code: Select all

systemctl status webmin.service
journalctl -u webmin.service
cat /var/webmin/miniserv.error
cat /var/webmin/miniserv.log
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
eddierm
Posts: 1
Joined: Mon Sep 21, 2020 12:32 am

Re: Help with webmin

Post by eddierm »

Hello there!

I had the same issue since i updated to v.6.32.2. When i tried to clean using the dietpi-cleaning option, my RaspberryPi started to fail. I had to uninstall manually Webmin and tried to install it again using the auto install option in dietpi and later manually. Webmin did not worked anymore.

I installed a fresh version of dietpi 6.32.2 in a new SD card, then reconfigure al the software and try it again. Was a fail too.

I miss webmin, but I think I would need to forget it for a while.

I hope my description be useful for you guys. (Sorry for my english, not my first language!)
User avatar
Joulinar
Posts: 2300
Joined: Sat Nov 16, 2019 12:49 am

Re: Help with webmin

Post by Joulinar »

Hi Guys,

it would be helpful if you can provide an error message. For testing purposes, I installed webmin twice and it is working without issues.

Code: Select all

root@DietPi3:~# systemctl status webmin.service
● webmin.service - Webmin (DietPi)
   Loaded: loaded (/etc/systemd/system/webmin.service; disabled; vendor preset: enabled)
   Active: active (running) since Mon 2020-09-21 20:20:21 CEST; 30min ago
  Process: 434 ExecStart=/etc/webmin/start (code=exited, status=0/SUCCESS)
 Main PID: 442 (miniserv.pl)
    Tasks: 2 (limit: 2184)
   CGroup: /system.slice/webmin.service
           ├─442 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
           └─817 gpg-agent --homedir /root/.gnupg --use-standard-socket --daemon

Sep 21 20:20:16 DietPi3 systemd[1]: Starting Webmin (DietPi)...
Sep 21 20:20:16 DietPi3 start[434]: Starting Webmin server in /usr/share/webmin
Sep 21 20:20:17 DietPi3 perl[434]: pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=root
Sep 21 20:20:19 DietPi3 webmin[434]: Webmin starting
Sep 21 20:20:21 DietPi3 systemd[1]: Started Webmin (DietPi).
Sep 21 20:43:02 DietPi3 perl[510]: pam_unix(webmin:session): session opened for user root by (uid=0)
Sep 21 20:43:02 DietPi3 webmin[510]: Successful login as root from 192.168.0.34
root@DietPi3:~#
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2333
Joined: Sat Nov 18, 2017 6:21 pm

Re: Help with webmin

Post by MichaIng »

This could be a reason: https://github.com/MichaIng/DietPi/comm ... 5bec3e6a98
The dependency has already been removed on Webmin upstream as we found native apt commands which work faster and more reliable: https://github.com/webmin/webmin/commit ... ad11696337
However we need to wait for the next release. Until then this workaround can be used:

Code: Select all

echo 'Acquire::GzipIndexes "false";' > /etc/apt/apt.conf.d/98dietpi-webmin
/boot/dietpi/func/dietpi-set_software apt-cache clean
apt update
But yes, first of all the exact error message would be helpful, as the above leads to a failing apt-show-versions package in the first place.

@Joulinar did you test with master or dev branch as you obviously did not face the error, or disabled compressed APT lists manually?
User avatar
Joulinar
Posts: 2300
Joined: Sat Nov 16, 2019 12:49 am

Re: Help with webmin

Post by Joulinar »

@MichaIng
It as a plain DietPi installation on my RPi3B+ without any special configuration. Even /etc/apt/apt.conf.d/98dietpi-webmin did not exist on my system.

Code: Select all

root@DietPi3:~# ls -la /etc/apt/apt.conf.d
total 28
drwxr-xr-x 2 root root 4096 Sep 21 19:56 .
drwxr-xr-x 7 root root 4096 Sep 21 19:54 ..
-r--r--r-- 1 root root  434 Sep 19 19:59 01autoremove-kernels
-rw-r--r-- 1 root root  162 Feb 16  2019 20apt-show-versions
-rw-r--r-- 1 root root  182 Jun  8 12:06 70debconf
-rw-r--r-- 1 root root 1227 Sep 10 11:06 97dietpi
-rw-r--r-- 1 root root  212 Jun  8 12:06 99-dietpi-cache
root@DietPi3:~#
Will run some test on my VM
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2333
Joined: Sat Nov 18, 2017 6:21 pm

Re: Help with webmin

Post by MichaIng »

Strange, perhaps the package on RPi/Raspbian behaves somehow different :?. In my case it failed since apt-show-versions -i fails to "see" the compressed list files which makes the APT postinst script fail.
User avatar
Joulinar
Posts: 2300
Joined: Sat Nov 16, 2019 12:49 am

Re: Help with webmin

Post by Joulinar »

installation seems to be fine on my VM as well

Install log

Code: Select all

root@DietPiVM1:~# dietpi-software
[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database
[  OK  ] DietPi-Software | Checking network connectivity
[  OK  ] DietPi-Software | Checking DNS resolver
[  OK  ] Network time sync | Completed
[  OK  ] DietPi-Software | Free space check: path=/ | available=7074 MiB | required=500 MiB
[  OK  ] DietPi-Software | DietPi-Userdata validation: /mnt/dietpi_userdata
[  OK  ] DietPi-Software | Checking network connectivity
[  OK  ] DietPi-Software | Checking DNS resolver
[  OK  ] Network time sync | Completed
[ SUB1 ] DietPi-Services > unmask
[  OK  ] DietPi-Services | unmask : cron
[ SUB1 ] DietPi-Services > stop
[  OK  ] DietPi-Services | stop : cron

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Update & upgrade APT

[ INFO ] DietPi-Software | APT update, please wait...
Hit:1 https://deb.debian.org/debian buster InRelease
Hit:2 https://deb.debian.org/debian buster-updates InRelease
Hit:3 https://deb.debian.org/debian-security buster/updates InRelease
Hit:4 https://deb.debian.org/debian buster-backports InRelease
Reading package lists...
[  OK  ] DietPi-Software | APT update
[ INFO ] DietPi-Software | APT upgrade, please wait...
[  OK  ] DietPi-Software | APT upgrade

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Checking for prerequisite software

[ SUB1 ] DietPi-Services > stop
[  OK  ] DietPi-Services | stop : cron

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Installing Webmin: web interface system management

[  OK  ] DietPi-Software | Checking URL: http://www.webmin.com/jcameron-key.asc
OK
[ INFO ] DietPi-Software | APT update, please wait...
Hit:1 https://deb.debian.org/debian buster InRelease
Hit:2 https://deb.debian.org/debian buster-updates InRelease
Hit:3 https://deb.debian.org/debian-security buster/updates InRelease
Hit:4 https://deb.debian.org/debian buster-backports InRelease
Ign:5 https://download.webmin.com/download/repository sarge InRelease
Get:6 https://download.webmin.com/download/repository sarge Release [16.9 kB]
Get:7 https://download.webmin.com/download/repository sarge Release.gpg [173 B]
Get:8 https://download.webmin.com/download/repository sarge/contrib i386 Packages [1393 B]
Get:9 https://download.webmin.com/download/repository sarge/contrib amd64 Packages [1393 B]
Fetched 19.8 kB in 4s (4817 B/s)
Reading package lists...
[  OK  ] DietPi-Software | APT update
[ INFO ] DietPi-Software | APT install for: webmin, please wait...
Selecting previously unselected package perl-modules-5.28.
(Reading database ... 16987 files and directories currently installed.)
Preparing to unpack .../00-perl-modules-5.28_5.28.1-6+deb10u1_all.deb ...
Unpacking perl-modules-5.28 (5.28.1-6+deb10u1) ...
Selecting previously unselected package libgdbm6:amd64.
Preparing to unpack .../01-libgdbm6_1.18.1-4_amd64.deb ...
Unpacking libgdbm6:amd64 (1.18.1-4) ...
Selecting previously unselected package libgdbm-compat4:amd64.
Preparing to unpack .../02-libgdbm-compat4_1.18.1-4_amd64.deb ...
Unpacking libgdbm-compat4:amd64 (1.18.1-4) ...
Selecting previously unselected package libperl5.28:amd64.
Preparing to unpack .../03-libperl5.28_5.28.1-6+deb10u1_amd64.deb ...
Unpacking libperl5.28:amd64 (5.28.1-6+deb10u1) ...
Selecting previously unselected package perl.
Preparing to unpack .../04-perl_5.28.1-6+deb10u1_amd64.deb ...
Unpacking perl (5.28.1-6+deb10u1) ...
Selecting previously unselected package perl-openssl-defaults:amd64.
Preparing to unpack .../05-perl-openssl-defaults_3_amd64.deb ...
Unpacking perl-openssl-defaults:amd64 (3) ...
Selecting previously unselected package libnet-ssleay-perl.
Preparing to unpack .../06-libnet-ssleay-perl_1.85-2+b1_amd64.deb ...
Unpacking libnet-ssleay-perl (1.85-2+b1) ...
Selecting previously unselected package libauthen-pam-perl.
Preparing to unpack .../07-libauthen-pam-perl_0.16-3+b6_amd64.deb ...
Unpacking libauthen-pam-perl (0.16-3+b6) ...
Selecting previously unselected package libio-pty-perl.
Preparing to unpack .../08-libio-pty-perl_1%3a1.08-1.1+b5_amd64.deb ...
Unpacking libio-pty-perl (1:1.08-1.1+b5) ...
Selecting previously unselected package libapt-pkg-perl.
Preparing to unpack .../09-libapt-pkg-perl_0.1.34+b1_amd64.deb ...
Unpacking libapt-pkg-perl (0.1.34+b1) ...
Selecting previously unselected package apt-show-versions.
Preparing to unpack .../10-apt-show-versions_0.22.11_all.deb ...
Unpacking apt-show-versions (0.22.11) ...
Selecting previously unselected package libglib2.0-0:amd64.
Preparing to unpack .../11-libglib2.0-0_2.58.3-2+deb10u2_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.58.3-2+deb10u2) ...
Selecting previously unselected package libicu63:amd64.
Preparing to unpack .../12-libicu63_63.1-6+deb10u1_amd64.deb ...
Unpacking libicu63:amd64 (63.1-6+deb10u1) ...
Selecting previously unselected package libxml2:amd64.
Preparing to unpack .../13-libxml2_2.9.4+dfsg1-7+b3_amd64.deb ...
Unpacking libxml2:amd64 (2.9.4+dfsg1-7+b3) ...
Selecting previously unselected package shared-mime-info.
Preparing to unpack .../14-shared-mime-info_1.10-1_amd64.deb ...
Unpacking shared-mime-info (1.10-1) ...
Setting up perl-modules-5.28 (5.28.1-6+deb10u1) ...
Setting up libgdbm6:amd64 (1.18.1-4) ...
Setting up libgdbm-compat4:amd64 (1.18.1-4) ...
Setting up libperl5.28:amd64 (5.28.1-6+deb10u1) ...
Setting up perl (5.28.1-6+deb10u1) ...
Selecting previously unselected package webmin.
(Reading database ... 19291 files and directories currently installed.)
Preparing to unpack .../archives/webmin_1.955_all.deb ...
Unpacking webmin (1.955) ...
Setting up libapt-pkg-perl (0.1.34+b1) ...
Setting up libio-pty-perl (1:1.08-1.1+b5) ...
Setting up libglib2.0-0:amd64 (2.58.3-2+deb10u2) ...
No schema files found: doing nothing.
Setting up apt-show-versions (0.22.11) ...
** initializing cache. This may take a while **
Setting up perl-openssl-defaults:amd64 (3) ...
Setting up libicu63:amd64 (63.1-6+deb10u1) ...
Setting up libauthen-pam-perl (0.16-3+b6) ...
Setting up libxml2:amd64 (2.9.4+dfsg1-7+b3) ...
Setting up libnet-ssleay-perl (1.85-2+b1) ...
Setting up shared-mime-info (1.10-1) ...
Setting up webmin (1.955) ...
/var/lib/dpkg/info/webmin.postinst: 4: /var/lib/dpkg/info/webmin.postinst: cannot create /etc/webmin/stop: Directory nonexistent
Webmin install complete. You can now login to https://DietPiVM1:10000/
as root with your root password, or as any user who can use sudo
to run commands as root.
Processing triggers for systemd (241-7~deb10u4) ...
Processing triggers for libc-bin (2.28-10) ...
[  OK  ] DietPi-Software | APT install for: webmin
[ SUB1 ] DietPi-Services > stop
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : webmin

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Optimise and configure software

[ INFO ] DietPi-Software | Applying DietPi optimisations and configurations for Virtual Machine (x86_64), please wait...


 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Configuring Webmin: web interface system management

[ SUB1 ] DietPi-Services > dietpi_controlled
[  OK  ] DietPi-Services | dietpi_controlled : webmin
[  OK  ] DietPi-Services | dietpi_controlled : cron
[  OK  ] DietPi-Survey | Sending survey data

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Installation completed

[  OK  ] DietPi-Software | System rebooting in 3 seconds to finalise DietPi-Software installations. Please wait...
root@DietPiVM1:~#
Service status

Code: Select all

root@DietPiVM1:~# systemctl status webmin.service
● webmin.service - Webmin (DietPi)
   Loaded: loaded (/etc/systemd/system/webmin.service; disabled; vendor preset: enabled)
   Active: active (running) since Mon 2020-09-21 21:56:29 CEST; 1min 4s ago
  Process: 499 ExecStart=/etc/webmin/start (code=exited, status=0/SUCCESS)
 Main PID: 504 (miniserv.pl)
    Tasks: 1 (limit: 1171)
   Memory: 47.2M
   CGroup: /system.slice/webmin.service
           └─504 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf

Sep 21 21:56:25 DietPiVM1 systemd[1]: Starting Webmin (DietPi)...
Sep 21 21:56:25 DietPiVM1 start[499]: Starting Webmin server in /usr/share/webmin
Sep 21 21:56:26 DietPiVM1 perl[499]: pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  us
er=root
Sep 21 21:56:28 DietPiVM1 webmin[499]: Webmin starting
Sep 21 21:56:29 DietPiVM1 systemd[1]: Started Webmin (DietPi).
root@DietPiVM1:~#
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2333
Joined: Sat Nov 18, 2017 6:21 pm

Re: Help with webmin

Post by MichaIng »

Strange, can you paste: ls -Al /var/lib/apt/lists
User avatar
Joulinar
Posts: 2300
Joined: Sat Nov 16, 2019 12:49 am

Re: Help with webmin

Post by Joulinar »

VM

Code: Select all

root@DietPiVM1:~# ls -Al /var/lib/apt/lists
total 96352
drwxr-xr-x 2 _apt root     4096 Apr 16 12:07 auxfiles
-rw-r--r-- 1 root root    33514 Sep 17 04:17 deb.debian.org_debian_dists_buster-backports_contrib_binary-amd64_Packages
-rw-r--r-- 1 root root    21892 Sep 17 04:17 deb.debian.org_debian_dists_buster-backports_contrib_binary-amd64_Packages.diff_Index
-rw-r--r-- 1 root root    31012 Sep 17 04:17 deb.debian.org_debian_dists_buster-backports_contrib_binary-i386_Packages
-rw-r--r-- 1 root root    23368 Sep 17 04:17 deb.debian.org_debian_dists_buster-backports_contrib_binary-i386_Packages.diff_Index
-rw-r--r-- 1 root root    46702 Sep 21 16:30 deb.debian.org_debian_dists_buster-backports_InRelease
-rw-r--r-- 1 root root  2368304 Sep 21 16:00 deb.debian.org_debian_dists_buster-backports_main_binary-amd64_Packages
-rw-r--r-- 1 root root    27796 Aug 10 22:09 deb.debian.org_debian_dists_buster-backports_main_binary-amd64_Packages.diff_Index
-rw-r--r-- 1 root root  2340084 Sep 21 16:00 deb.debian.org_debian_dists_buster-backports_main_binary-i386_Packages
-rw-r--r-- 1 root root    27796 Aug 11 04:09 deb.debian.org_debian_dists_buster-backports_main_binary-i386_Packages.diff_Index
-rw-r--r-- 1 root root   159377 Sep 10 04:11 deb.debian.org_debian_dists_buster-backports_non-free_binary-amd64_Packages
-rw-r--r-- 1 root root    13036 Sep 10 04:11 deb.debian.org_debian_dists_buster-backports_non-free_binary-amd64_Packages.diff_Index
-rw-r--r-- 1 root root   108262 Sep 10 04:11 deb.debian.org_debian_dists_buster-backports_non-free_binary-i386_Packages
-rw-r--r-- 1 root root    13528 Sep 10 04:11 deb.debian.org_debian_dists_buster-backports_non-free_binary-i386_Packages.diff_Index
-rw-r--r-- 1 root root   228528 Aug  1 12:49 deb.debian.org_debian_dists_buster_contrib_binary-amd64_Packages
-rw-r--r-- 1 root root   207975 Aug  1 12:49 deb.debian.org_debian_dists_buster_contrib_binary-i386_Packages
-rw-r--r-- 1 root root   122334 Aug  3 23:18 deb.debian.org_debian_dists_buster_InRelease
-rw-r--r-- 1 root root 44648091 Aug  1 12:49 deb.debian.org_debian_dists_buster_main_binary-amd64_Packages
-rw-r--r-- 1 root root 44334873 Aug  1 12:49 deb.debian.org_debian_dists_buster_main_binary-i386_Packages
-rw-r--r-- 1 root root   447124 Aug  1 12:49 deb.debian.org_debian_dists_buster_non-free_binary-amd64_Packages
-rw-r--r-- 1 root root   383285 Aug  1 12:49 deb.debian.org_debian_dists_buster_non-free_binary-i386_Packages
-rw-r--r-- 1 root root    51901 Sep 21 16:30 deb.debian.org_debian_dists_buster-updates_InRelease
-rw-r--r-- 1 root root    40268 Jun 13 22:04 deb.debian.org_debian_dists_buster-updates_main_binary-amd64_Packages
-rw-r--r-- 1 root root     3688 Jun 13 22:04 deb.debian.org_debian_dists_buster-updates_main_binary-amd64_Packages.diff_Index
-rw-r--r-- 1 root root    40214 Jun 13 22:04 deb.debian.org_debian_dists_buster-updates_main_binary-i386_Packages
-rw-r--r-- 1 root root     3688 Jun 13 22:04 deb.debian.org_debian_dists_buster-updates_main_binary-i386_Packages.diff_Index
-rw-r--r-- 1 root root     1155 Jun  6 21:56 deb.debian.org_debian_dists_buster-updates_non-free_binary-amd64_Packages
-rw-r--r-- 1 root root     1152 Jun  6 21:56 deb.debian.org_debian_dists_buster-updates_non-free_binary-i386_Packages
-rw-r--r-- 1 root root    65372 Sep 20 14:12 deb.debian.org_debian-security_dists_buster_updates_InRelease
-rw-r--r-- 1 root root  1383604 Sep 18 19:14 deb.debian.org_debian-security_dists_buster_updates_main_binary-amd64_Packages
-rw-r--r-- 1 root root  1375711 Sep 18 19:14 deb.debian.org_debian-security_dists_buster_updates_main_binary-i386_Packages
-rw-r--r-- 1 root root      711 Jun 11 17:17 deb.debian.org_debian-security_dists_buster_updates_non-free_binary-amd64_Packages
-rw-r--r-- 1 root root      709 Jun 11 17:17 deb.debian.org_debian-security_dists_buster_updates_non-free_binary-i386_Packages
-rw-r--r-- 1 root root     1428 Aug 20 01:00 download.webmin.com_download_repository_dists_sarge_contrib_binary-amd64_Packages.xz
-rw-r--r-- 1 root root     1428 Aug 20 01:00 download.webmin.com_download_repository_dists_sarge_contrib_binary-i386_Packages.xz
-rw-r--r-- 1 root root    16850 Aug 22 22:26 download.webmin.com_download_repository_dists_sarge_Release
-rw-r--r-- 1 root root      173 Aug 22 22:26 download.webmin.com_download_repository_dists_sarge_Release.gpg
-rw-r----- 1 root root        0 Apr 16 12:07 lock
drwx------ 2 _apt root    16384 Sep 21 21:55 partial
root@DietPiVM1:~#
RPI3B+

Code: Select all

root@DietPi3:~# ls -Al /var/lib/apt/lists
total 13760
-rw-r--r-- 1 root root    32598 Sep 21 14:46 archive.raspberrypi.org_debian_dists_buster_InRelease
-rw-r--r-- 1 root root   256212 Sep 21 14:46 archive.raspberrypi.org_debian_dists_buster_main_binary-armhf_Packages.xz
drwxr-xr-x 2 _apt root     4096 Sep 10 11:03 auxfiles
-rw-r--r-- 1 root root    16850 Aug 22 22:26 download.webmin.com_download_repository_dists_sarge_Release
-rw-r--r-- 1 root root      173 Aug 22 22:26 download.webmin.com_download_repository_dists_sarge_Release.gpg
-rw-r--r-- 1 root root     1428 Aug 20 01:00 download.webmin.com_download_repository_dists_sarge_contrib_binary-armhf_Packages.xz
-rw-r----- 1 root root        0 Sep 10 11:03 lock
drwx------ 2 _apt root     4096 Sep 21 19:57 partial
-rw-r--r-- 1 root root    14974 Sep 21 18:49 raspbian.raspberrypi.org_raspbian_dists_buster_InRelease
-rw-r--r-- 1 root root   234957 Aug  1 18:49 raspbian.raspberrypi.org_raspbian_dists_buster_contrib_binary-armhf_Packages
-rw-r--r-- 1 root root 13005496 Sep 21 18:46 raspbian.raspberrypi.org_raspbian_dists_buster_main_binary-armhf_Packages.xz
-rw-r--r-- 1 root root   496339 Jun  7 02:07 raspbian.raspberrypi.org_raspbian_dists_buster_non-free_binary-armhf_Packages
root@DietPi3:~#
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply