No virtual-servers after OS upgrade

Hi,

I have a hosting server with installed OS Debian 6 “squeeze” AMD64. There was about 100 virtual-servers.
Worked fine about 2 years. Most of hosted sites are nonprofit and because of it I can’t buy a Pro license and use a GPL one.

Some days ago I wanted to upgrade OS to version 7, thinking of better MySQL, Apache and kernel performance. Something went wrong and server was injured…

After this upgrade, panel displayed an write-error to file: “/etc/webmin/virtual-server/config”. I created it manually and rechecked server configuration from Virtualmin.

Now panel does not see any virtual-server, just display: “No virtual servers have been created yet”. But all sites work, same for DNS, FTP, mail, etc (after some fixes in Apache and PHP configuration files).

Is possible somehow to repopulate virtual-server list? Can anyone help me?

Howdy,

Hrm, it’s surprising to see write errors regarding that file. It should be possible to upgrade to Debian 7, that upgrade process has been testing and shouldn’t cause any problems of that sort.

In fact, the Virtualmin version remains the same between Debian 6 and 7, it’s just the other packages that are different.

Do you happen to have the exact error that you received?

Also, what is the output of these commands:

df -h ls /etc/webmin/virtual-server/domains/ | wc -l dmesg | tail -30

andreychek,
Thank you for response!

Do you happen to have the exact error that you received?
<<After upgrade panel said that can’t access for writing file “/etc/webmin/virtual-server/config”, and does not content anything on “Virtualmin” tab.
I created this file manually, after that panel opens, asked me for update information about OS, asked for a configuration check, but displayed “No virtual servers have been created yet”.

Result of commands:

  1. df -h:
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda2 46G 16G 29G 36% /
    /dev/sda8 45G 8.1G 34G 20% /bk
    /dev/sda1 93M 39M 50M 44% /boot
    /dev/sda7 642G 450G 160G 74% /data
    /dev/sda6 184G 40G 135G 23% /home

  2. ls /etc/webmin/virtual-server/domains/ | wc -l
    ls: cannot access /etc/webmin/virtual-server/domains/: No such file or directory
    0

  3. Latest dmesg messages:
    [170280.904066] INFO: task mandb:27908 blocked for more than 120 seconds.
    [170280.905942] “echo 0 > /proc/sys/kernel/hung_task_timeout_secs” disables this message.
    [170280.907784] mandb D ffff88022fd93780 0 27908 27807 0x00000000
    [170280.909710] ffff88022397aa30 0000000000000082 ffff880200000000 ffff880226d66f60
    [170280.911605] 0000000000013780 ffff880224d3ffd8 ffff880224d3ffd8 ffff88022397aa30
    [170280.911613] ffffffff810135ca 0000000181066295 ffff880226c608a0 ffff88022fd93fd0
    [170280.911620] Call Trace:
    [170280.911629] [] ? read_tsc+0x5/0x14
    [170280.911633] [] ? wait_on_buffer+0x28/0x28
    [170280.911637] [] ? io_schedule+0x59/0x71
    [170280.911656] [] ? sleep_on_buffer+0x6/0xa
    [170280.911659] [] ? __wait_on_bit+0x3e/0x71
    [170280.911661] [] ? out_of_line_wait_on_bit+0x6f/0x78
    [170280.911664] [] ? wait_on_buffer+0x28/0x28
    [170280.911669] [] ? autoremove_wake_function+0x2a/0x2a
    [170280.911678] [] ? __ext3_get_inode_loc+0x280/0x2cf [ext3]
    [170280.911685] [] ? ext3_iget+0x4d/0x3d2 [ext3]
    [170280.911692] [] ? ext3_lookup+0x81/0xd5 [ext3]
    [170280.911695] [] ? d_alloc_and_lookup+0x3a/0x60
    [170280.911698] [] ? walk_component+0x219/0x406
    [170280.911701] [] ? path_lookupat+0x7c/0x2bd
    [170280.911705] [] ? should_resched+0x5/0x23
    [170280.911707] [] ? _cond_resched+0x7/0x1c
    [170280.911710] [] ? do_path_lookup+0x1c/0x87
    [170280.911713] [] ? user_path_at_empty+0x47/0x7b
    [170280.911718] [] ? kmem_cache_free+0x2d/0x69
    [170280.911721] [] ? vfs_fstatat+0x32/0x60
    [170280.911723] [] ? sys_newstat+0x12/0x2b
    [170280.911726] [] ? mntput_no_expire+0x1e/0xc9
    [170280.911729] [] ? filp_close+0x62/0x6a
    [170280.911732] [] ? system_call_fastpath+0x16/0x1b

I checked some backups from October till now, but no one have /etc/webmin/virtual-server/ directory.
Backups were made with “Filesystem Backup” utility from Webmin.

Do you know what path the Webmin filesystem module was configured to backup?

It sounds as if something happened to the Virtualmin configuration files.

During the upgrade process, do you recall uninstalling, or re-installing, the Virtualmin package (webmin-virtual-server)?

Also, what output do you receive if you run this command:

grep webmin-virtual-server /var/log/dpkg.log

I configured backup of directories /etc /var and /opt.

I remembered…
There was Virtualmin 4.04 installed, and I updated it to 4.05 before OS upgrade.
When I sow that update failed and does not display virtual-servers, I restored files from archive.
Also tried reinstall Virtualmin by script.

grep webmin-virtual-server /var/log/dpkg.log
2014-02-13 09:16:02 upgrade webmin-virtual-server 4.04.gpl 4.05.gpl
2014-02-13 09:16:02 status half-configured webmin-virtual-server 4.04.gpl
2014-02-13 09:16:03 status unpacked webmin-virtual-server 4.04.gpl
2014-02-13 09:16:03 status half-installed webmin-virtual-server 4.04.gpl
2014-02-13 09:16:04 status half-installed webmin-virtual-server 4.04.gpl
2014-02-13 09:16:04 status unpacked webmin-virtual-server 4.05.gpl
2014-02-13 09:16:04 status unpacked webmin-virtual-server 4.05.gpl
2014-02-13 09:16:04 configure webmin-virtual-server 4.05.gpl 4.05.gpl
2014-02-13 09:16:04 status unpacked webmin-virtual-server 4.05.gpl
2014-02-13 09:16:04 status half-configured webmin-virtual-server 4.05.gpl
2014-02-13 09:16:48 status installed webmin-virtual-server 4.05.gpl
2014-02-13 15:48:47 status installed webmin-virtual-server-mobile 2.6
2014-02-13 15:48:47 remove webmin-virtual-server-mobile 2.6 2.6
2014-02-13 15:48:47 status half-configured webmin-virtual-server-mobile 2.6
2014-02-13 15:48:47 status half-installed webmin-virtual-server-mobile 2.6
2014-02-13 15:48:47 status config-files webmin-virtual-server-mobile 2.6
2014-02-13 15:48:47 status config-files webmin-virtual-server-mobile 2.6
2014-02-13 15:48:47 status config-files webmin-virtual-server-mobile 2.6
2014-02-13 15:48:47 status not-installed webmin-virtual-server-mobile
2014-02-13 15:48:47 status installed webmin-virtual-server-theme 8.7
2014-02-13 15:48:47 remove webmin-virtual-server-theme 8.7 8.7
2014-02-13 15:48:47 status half-configured webmin-virtual-server-theme 8.7
2014-02-13 15:48:52 status half-installed webmin-virtual-server-theme 8.7
2014-02-13 15:48:52 status config-files webmin-virtual-server-theme 8.7
2014-02-13 15:48:52 status config-files webmin-virtual-server-theme 8.7
2014-02-13 15:48:52 status config-files webmin-virtual-server-theme 8.7
2014-02-13 15:48:52 status not-installed webmin-virtual-server-theme
2014-02-13 15:48:53 status installed webmin-virtual-server 4.05.gpl
2014-02-13 15:48:53 remove webmin-virtual-server 4.05.gpl 4.05.gpl
2014-02-13 15:48:53 status half-configured webmin-virtual-server 4.05.gpl
2014-02-13 15:48:53 status half-installed webmin-virtual-server 4.05.gpl
2014-02-13 15:48:53 status config-files webmin-virtual-server 4.05.gpl
2014-02-13 15:48:53 status config-files webmin-virtual-server 4.05.gpl
2014-02-13 15:48:53 status config-files webmin-virtual-server 4.05.gpl
2014-02-13 15:48:53 status not-installed webmin-virtual-server
2014-02-13 16:42:31 install webmin-virtual-server:all 4.05.gpl
2014-02-13 16:42:31 status half-installed webmin-virtual-server:all 4.05.gpl
2014-02-13 16:42:31 status not-installed webmin-virtual-server:all
2014-02-13 16:42:31 install webmin-virtual-server-theme:all 8.7
2014-02-13 16:42:31 status half-installed webmin-virtual-server-theme:all 8.7
2014-02-13 16:42:31 status not-installed webmin-virtual-server-theme:all
2014-02-13 17:07:13 install webmin-virtual-server:all 4.05.gpl
2014-02-13 17:07:13 status half-installed webmin-virtual-server:all 4.05.gpl
2014-02-13 17:07:14 status unpacked webmin-virtual-server:all 4.05.gpl
2014-02-13 17:07:14 status unpacked webmin-virtual-server:all 4.05.gpl
2014-02-13 17:07:14 install webmin-virtual-server-theme:all 8.7
2014-02-13 17:07:14 status half-installed webmin-virtual-server-theme:all 8.7
2014-02-13 17:07:15 status unpacked webmin-virtual-server-theme:all 8.7
2014-02-13 17:07:15 status unpacked webmin-virtual-server-theme:all 8.7
2014-02-13 17:07:38 configure webmin-virtual-server:all 4.05.gpl
2014-02-13 17:07:38 status unpacked webmin-virtual-server:all 4.05.gpl
2014-02-13 17:07:38 status half-configured webmin-virtual-server:all 4.05.gpl
2014-02-13 17:07:51 status installed webmin-virtual-server:all 4.05.gpl
2014-02-13 17:07:52 configure webmin-virtual-server-theme:all 8.7
2014-02-13 17:07:52 status unpacked webmin-virtual-server-theme:all 8.7
2014-02-13 17:07:52 status half-configured webmin-virtual-server-theme:all 8.7
2014-02-13 17:07:52 status installed webmin-virtual-server-theme:all 8.7
2014-02-13 18:17:08 install webmin-virtual-server-mobile:all 2.6
2014-02-13 18:17:08 status half-installed webmin-virtual-server-mobile:all 2.6
2014-02-13 18:17:09 status unpacked webmin-virtual-server-mobile:all 2.6
2014-02-13 18:17:09 status unpacked webmin-virtual-server-mobile:all 2.6
2014-02-13 18:17:10 configure webmin-virtual-server-mobile:all 2.6
2014-02-13 18:17:10 status unpacked webmin-virtual-server-mobile:all 2.6
2014-02-13 18:17:11 status half-configured webmin-virtual-server-mobile:all 2.6
2014-02-13 18:17:12 status installed webmin-virtual-server-mobile:all 2.6
2014-02-13 20:50:00 upgrade webmin-virtual-server:all 4.05.gpl 4.04.gpl
2014-02-13 20:50:00 status half-configured webmin-virtual-server:all 4.05.gpl
2014-02-13 20:50:03 status unpacked webmin-virtual-server:all 4.05.gpl
2014-02-13 20:50:04 status half-installed webmin-virtual-server:all 4.05.gpl
2014-02-13 20:50:06 status half-installed webmin-virtual-server:all 4.05.gpl
2014-02-13 20:50:07 status unpacked webmin-virtual-server:all 4.04.gpl
2014-02-13 20:50:07 status unpacked webmin-virtual-server:all 4.04.gpl
2014-02-13 20:50:07 configure webmin-virtual-server:all 4.04.gpl 4.04.gpl
2014-02-13 20:50:07 status unpacked webmin-virtual-server:all 4.04.gpl
2014-02-13 20:50:07 status half-configured webmin-virtual-server:all 4.04.gpl
2014-02-13 20:50:29 status installed webmin-virtual-server:all 4.04.gpl
2014-02-17 12:53:55 upgrade webmin-virtual-server:all 4.04.gpl 4.05.gpl
2014-02-17 12:53:55 status half-configured webmin-virtual-server:all 4.04.gpl
2014-02-17 12:53:55 status unpacked webmin-virtual-server:all 4.04.gpl
2014-02-17 12:53:55 status half-installed webmin-virtual-server:all 4.04.gpl
2014-02-17 12:53:57 status half-installed webmin-virtual-server:all 4.04.gpl
2014-02-17 12:53:57 status unpacked webmin-virtual-server:all 4.05.gpl
2014-02-17 12:53:57 status unpacked webmin-virtual-server:all 4.05.gpl
2014-02-17 12:53:57 configure webmin-virtual-server:all 4.05.gpl
2014-02-17 12:53:57 status unpacked webmin-virtual-server:all 4.05.gpl
2014-02-17 12:53:58 status half-configured webmin-virtual-server:all 4.05.gpl
2014-02-17 12:54:16 status installed webmin-virtual-server:all 4.05.gpl

Howdy,

Ah, I think the issue is that somewhere in there, Virtualmin itself was removed, which deleted the Virtualmin config files.

You may want to look into restoring the /etc/webmin/virtual-server directory from a backup (after making a backup of what you have now).

Though, I’m a bit concerned about that too unfortunately, as it almost sounds like your backup may not contain all the files you need. However, I’d give it a try – restore that directory (and all the subdirectories), restart the Webmin process, and see if that resolves your issue.

-Eric

I found a backup with /etc/webmin/virtual-server/ folder, but it is old and some virtual-servers were added or modified after date when it was made.

Is it save to restore this copy and after that add new domains?
Or it can lead to unpredictable consequences?

Must I delete all content of some virtualserver before read or it can restore some settings if I will add domains without delete them prior?

Thank you one more time for your time and kindness!