Webmin / Virtualmin broken after upgrading from 1.560 to 1.570

7 posts / 0 new
Last post
#1 Wed, 11/02/2011 - 04:18
gusgsm

Webmin / Virtualmin broken after upgrading from 1.560 to 1.570

Hi,

I have performed an upgrade from Virtualmin 1.560 to 1.570 and now both seem to be broken (if I try to connect to my server with the browser it returns the message:

Error - Perl execution failed

Undefined subroutine &WebminCore::theme_prehead called at /usr/share/webmin/web-lib-funcs.pl line 8820.

Until now the system has been working reasonably well with a virtual machine (Ubuntu Linux 10.04.2 with gandi.net, Linux 2.6.32-xenU-3831-x86_64 on x86_64. Local disk space was 7.27 GB total).

—I have a mirror server where I can duplicate the operations, but the broken one is where I have all my sites :( They are sitll functional as Apache, MySQL and the rest seem to be working OK. But when I try the shell to restart webmin, this is what happens:

sudo /etc/init.d/webmin restart
/etc/init.d/webmin: 69: /etc/webmin/stop: not found
/etc/init.d/webmin: 69: /etc/webmin/start: not found

I have tried afterwards:

sudo apt-get update
sudo apt-get upgrade

But, although everything seems to go OK, there is an error:

root@ruphus:~# sudo apt-get update
Hit http://mirrors.gandi.net lucid Release.gpg
Hit http://mirrors.gandi.net lucid-updates Release.gpg
Hit http://mirrors.gandi.net lucid-security Release.gpg
Hit http://mirrors.gandi.net lucid Release.gpg
Hit http://mirrors.gandi.net lucid Release
Hit http://mirrors.gandi.net lucid-updates Release
Hit http://mirrors.gandi.net lucid-security Release
Hit http://mirrors.gandi.net lucid Release
Hit http://mirrors.gandi.net lucid/main Packages
Hit http://mirrors.gandi.net lucid/universe Packages
Hit http://mirrors.gandi.net lucid/multiverse Packages
Hit http://mirrors.gandi.net lucid/restricted Packages
Hit http://mirrors.gandi.net lucid/main Sources
Hit http://mirrors.gandi.net lucid/universe Sources
Hit http://mirrors.gandi.net lucid/multiverse Sources
Hit http://mirrors.gandi.net lucid/restricted Sources
Hit http://mirrors.gandi.net lucid-updates/main Packages
Hit http://mirrors.gandi.net lucid-updates/universe Packages
Hit http://mirrors.gandi.net lucid-updates/multiverse Packages
Hit http://mirrors.gandi.net lucid-updates/restricted Packages
Hit http://mirrors.gandi.net lucid-updates/main Sources
Hit http://mirrors.gandi.net lucid-updates/universe Sources
Hit http://mirrors.gandi.net lucid-updates/multiverse Sources
Hit http://mirrors.gandi.net lucid-updates/restricted Sources
Hit http://mirrors.gandi.net lucid-security/main Packages
Hit http://mirrors.gandi.net lucid-security/universe Packages
Hit http://mirrors.gandi.net lucid-security/multiverse Packages
Hit http://mirrors.gandi.net lucid-security/restricted Packages
Hit http://mirrors.gandi.net lucid-security/main Sources
Hit http://mirrors.gandi.net lucid-security/universe Sources
Hit http://mirrors.gandi.net lucid-security/multiverse Sources
Hit http://mirrors.gandi.net lucid-security/restricted Sources
Hit http://mirrors.gandi.net lucid/main Packages
Hit http://software.virtualmin.com virtualmin-lucid Release.gpg
Hit http://software.virtualmin.com virtualmin-universal Release.gpg
Hit http://software.virtualmin.com virtualmin-lucid Release
Hit http://software.virtualmin.com virtualmin-universal Release
Hit http://software.virtualmin.com virtualmin-lucid/main Packages
Hit http://software.virtualmin.com virtualmin-universal/main Packages
Reading package lists... Done

And then:

root@ruphus:~# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  apt-utils aptitude gandi-hosting-vm libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0 libpam0g libpq5 linux-libc-dev
  tzdata webmin
12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0B/19.0MB of archives.
After this operation, 299kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Preconfiguring packages ...
Setting up apt (0.7.25.3ubuntu9.8) ...

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 65816 files and directories currently installed.)
Preparing to replace webmin 1.560 (using .../archives/webmin_1.570_all.deb) ...
Unpacking replacement webmin ...
dpkg: error processing /var/cache/apt/archives/webmin_1.570_all.deb (--unpack):
failed in buffer_write(fd) (10, ret=-1): backend dpkg-deb during `./usr/share/webmin/init/config.info.tr': No space left on device
dpkg-deb: subprocess paste killed by signal (Broken pipe)
grep: /etc/webmin/miniserv.conf: No such file or directory
Webmin install complete. You can now login to http://ruphus:/
as root with your root password, or as any user who can use sudo
to run commands as root.
Preparing to replace libpam0g 1.1.1-2ubuntu5.3 (using .../libpam0g_1.1.1-2ubuntu5.4_amd64.deb) ...
Unpacking replacement libpam0g ...
Processing triggers for ureadahead ...
Errors were encountered while processing:
/var/cache/apt/archives/webmin_1.570_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

And I am stuck. I would like either 'go back and return to webmin 1.560 or —better— be able to upgrade to 1.570.

Any help, please?

Thanks a lot for your patience.

Gustavo (posting from Madrid)

Wed, 11/02/2011 - 04:49
gusgsm

Ok, sorry

I was too hasty to read the F message sthe shell gave me. So sorry, my bad :(

But...

After trying again

sudo apt-get update
sudo apt-get upgrade

It went like this:

root@ruphus:~# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  apt-utils aptitude gandi-hosting-vm libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0 libpq5 linux-libc-dev webmin
10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0B/18.3MB of archives.
After this operation, 270kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up tzdata (2011m-0ubuntu0.10.04) ...

Current default time zone: 'Etc/UTC'
Local time is now:      Wed Nov  2 09:42:04 UTC 2011.
Universal Time is now:  Wed Nov  2 09:42:04 UTC 2011.
Run 'dpkg-reconfigure tzdata' if you wish to change it.


(Reading database ... 65819 files and directories currently installed.)
Preparing to replace webmin 1.560 (using .../archives/webmin_1.570_all.deb) ...
Unpacking replacement webmin ...
Preparing to replace apt-utils 0.7.25.3ubuntu9.7 (using .../apt-utils_0.7.25.3ubuntu9.8_amd64.deb) ...
Unpacking replacement apt-utils ...
Preparing to replace aptitude 0.4.11.11-1ubuntu10 (using .../aptitude_0.4.11.11-1ubuntu10lucid1_amd64.deb) ...
Unpacking replacement aptitude ...
Preparing to replace libk5crypto3 1.8.1+dfsg-2ubuntu0.9 (using .../libk5crypto3_1.8.1+dfsg-2ubuntu0.10_amd64.deb) ...
Unpacking replacement libk5crypto3 ...
Preparing to replace libgssapi-krb5-2 1.8.1+dfsg-2ubuntu0.9 (using .../libgssapi-krb5-2_1.8.1+dfsg-2ubuntu0.10_amd64.deb) ...
Unpacking replacement libgssapi-krb5-2 ...
Preparing to replace libkrb5-3 1.8.1+dfsg-2ubuntu0.9 (using .../libkrb5-3_1.8.1+dfsg-2ubuntu0.10_amd64.deb) ...
Unpacking replacement libkrb5-3 ...
Preparing to replace libkrb5support0 1.8.1+dfsg-2ubuntu0.9 (using .../libkrb5support0_1.8.1+dfsg-2ubuntu0.10_amd64.deb) ...
Unpacking replacement libkrb5support0 ...
Preparing to replace gandi-hosting-vm 1.0.0-r5748 (using .../gandi-hosting-vm_1.0.0-r5937_all.deb) ...
Unpacking replacement gandi-hosting-vm ...
Preparing to replace libpq5 8.4.8-0ubuntu0.10.04 (using .../libpq5_8.4.9-0ubuntu0.10.04_amd64.deb) ...
Unpacking replacement libpq5 ...
Preparing to replace linux-libc-dev 2.6.32-33.72 (using .../linux-libc-dev_2.6.32-34.77_amd64.deb) ...
Unpacking replacement linux-libc-dev ...
Processing triggers for ureadahead ...
Setting up usermin (1.490) ...
Usermin install complete. You can now login to https://ruphus:20000/
as any user on the system.

Setting up webmin (1.570) ...
grep: /etc/webmin/miniserv.conf: No such file or directory
Webmin install complete. You can now login to http://ruphus:/
as root with your root password, or as any user who can use sudo
to run commands as root.

Setting up apt-utils (0.7.25.3ubuntu9.8) ...

Setting up aptitude (0.4.11.11-1ubuntu10lucid1) ...

Setting up libkrb5support0 (1.8.1+dfsg-2ubuntu0.10) ...

Setting up libk5crypto3 (1.8.1+dfsg-2ubuntu0.10) ...

Setting up libkrb5-3 (1.8.1+dfsg-2ubuntu0.10) ...

Setting up libgssapi-krb5-2 (1.8.1+dfsg-2ubuntu0.10) ...

Setting up gandi-hosting-vm (1.0.0-r5937) ...
Installing new version of config file /etc/gandi/manage_data_disk.py ...
Installing new version of config file /etc/gandi/plugins.d/01-config_console ...
Installing new version of config file /etc/init.d/gandi-kernel ...

Setting up libpq5 (8.4.9-0ubuntu0.10.04) ...

Setting up linux-libc-dev (2.6.32-34.77) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
root@ruphus:~#  sudo /etc/init.d/webmin restart
/etc/init.d/webmin: 69: /etc/webmin/stop: not found
/etc/init.d/webmin: 69: /etc/webmin/start: not found
root@ruphus:~#

And, when I try to connect with the web browser, Iget:

ruphus
1.570
Wed Nov 2 09:42:58 2011
Failed to open /etc/webmin/webmin/oscache for writing : Bad file descriptor
Wed, 11/02/2011 - 09:11
andreychek

Hmm, that "bad file descriptor" issue is unusual.

What output do you get if you run these two commands:

ls -ld /etc/webmin
ls -ld /etc/webmin/webmin

Thanks!

-Eric

Wed, 11/02/2011 - 09:33
gusgsm

Hi, Eric

First, thanks for the speedy response.

Secondly:

I've run (just before reading your answer):

sudo dpkg -i webmin_1.570_all.deb

And this is what followed:

(Reading database ... 65834 files and directories currently installed.)
Preparing to replace webmin 1.570 (using webmin_1.570_all.deb) ...
Unpacking replacement webmin ...
Setting up webmin (1.570) ...
Webmin install complete. You can now login to https://ruphus:10000/
as root with your root password, or as any user who can use sudo
to run commands as root.

So far, so good. I connected to my server with the web browser and Webmin is alive and running BUT virtualmin is 'not there'; that is: it does not show in the webmin interface. :(

The answer to

ls -ld /etc/webmin

is:

drwxr-xr-x 130 root root 4096 Nov  2 14:21 /etc/webmin

To

ls -ld /etc/webmin/webmin

is:

drwx--x--x 2 root bin 4096 Nov  2 14:20 /etc/webmin/webmin

Wed, 11/02/2011 - 10:08
gusgsm

Mh...

Checking the Webmin interface -> Servers -> Virtualmin Virtual Servers, I've just discovered that Webmin wasn't able to use MySQL due to lack of permission (it did not know the pasword and user of MySQL).

So, I gave it the needed permissions and I run the post-installatyion wizard...

The last straw is the usual message:

... Virtualmin is configured to setup DNS zones, but this system is not setup to use itself as a DNS server. Either add 127.0.0.1 to the list of DNS servers, or turn off the BIND feature on the module config page.

Very odd, as this is, supposedly, an update not a new installation... Scary; very, very scary...

OK...

Now the system says:

Virtual Servers
No virtual servers have been created yet.

The Questions:

The before-update servers (4 sites) 'should' be there and I think they are there, because the sites are up and running... Do I?

  1. Reboot the system?

  2. Import virtual servers via Webmin?

This is, I hope, my last doubt before marking this as solved :)

Thanks a lot

Gustavo

Wed, 11/02/2011 - 11:36
andreychek

Hrm, that's all rather unusual... you should typically just be able to update Virtualmin, and not see any problems :-)

The issue with DNS -- that can occur if your system is using DHCP, and when updating the IP address, it overwrites your current DNS settings in /etc/resolv.conf.

There's details on that issue here:

http://www.virtualmin.com/documentation/dns/faq

Wed, 11/02/2011 - 11:40
gusgsm

Hi, Andrey

Thanks, the DNS issue is not really an issue for me, but, my doubt persists? Do I just reboot or do I have to reimport the servers? (that 'seems' possible as everything is there, but I am afraid).

Gustavo

Topic locked