after downgrade of VminPro to Vmin, the link "All Virtualmin packages are up to date" displays error

after downgrade of VminPro to Vmin, clicking on the link "All Virtualmin packages are up to date" displays error

An error occurred contacting the Virtualmin updates server : You do not have a Virtualmin license file

Also with another server which had earlier a manual install of VminGPL, i saw the same error.

The same works fine on a third server installed with the gpl install.sh

Status: 
Closed (fixed)

Comments

Also on same server downgraded seeing this cron error:

/etc/webmin/virtual-server/backup.pl --id 123636824917837

Undefined subroutine &virtual_server::list_resellers called at virtual-server-lib-funcs.pl line 4756.

(i'm backing up all servers and features, but do not have any virtual servers, maybe that's the cause?)

Do you still have an /etc/virtualmin-license file? If so, delete it and let us known if the errors still appear..

Also, edit /etc/webmin/virtual-server/backups/123636824917837 and remove the word resellers from the virtualmin= line.

This triggers a bug that can happen if you setup a backup in Pro (which has resellers) then downgrade to GPL (which doesn't).

No such license file anymore, it was deleted by your instructions on the downgrade doc page.

ok, edited /etc/webmin/virtual-server/backups/123636824917837 and remove the word resellers from the virtualmin= line.

The initial error remains:

Virtualmin Package Updates
An error occurred contacting the Virtualmin updates server : You do not have a Virtualmin license file

Actually, I just realized that those docs are incorrect .. the file should really contain :

SerialNumber=GPL
LicenseKey=GPL

Yes, putting those 2 lines into a new license file fixed the original issue of this tracker item. :-)

Thanks a lot for your awesome support. :-)

Now just need to figure out a last issue that I have on one of the downgraded servers:

In aptitude i have today:

--\ Packages to be installed
pi webmin-virtual-server-theme +1644MB 7.5

But running that gives:

(Reading database ... 31320 files and directories currently installed.) Unpacking webmin-virtual-server-theme (from .../webmin-virtual-server-theme_7.5_all.deb) ... This Webmin module is already installed on your system. dpkg: error processing /var/cache/apt/archives/webmin-virtual-server-theme_7.5_all.deb (--unpack): subprocess pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/webmin-virtual-server-theme_7.5_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Press return to continue.

I tried to tell aptitude with "m" that it was manually installed, no luck, although it probably has version 7.4 installed, and it was the upgrade of this morning that triggered installation of version 7.5...

That's odd, as that error should only ever happen if you had the theme installed from a wbm.gz file before and now want to upgrade from a .deb.

What does dpkg --list webmin-virtual-server-theme show ?

# dpkg --list webmin-virtual-server-theme
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                        Version                     Description
+++-===========================-===========================-======================================================================
in  webmin-virtual-server-theme <none>                      (no description available)

That's odd .. it is only partially installed.

Try deleting the /usr/share/webmin/virtual-server-theme directory, and then re-trying the update with aptitude.

Yup, that did the trick. No idea how we got there, as 3 other auxiliary servers runing vminGPL have that package marked as installed fine.

After deleting I could re-install form within aptitude without errors.

So once the documentation here

https://www.virtualmin.com/documentation/installation/uninstalling

which currently says

Final steps Once you've downgraded the virtual-server module to the GPL version, you can delete the /etc/virtualmin-license file, and remove the /etc/webmin/virtual-server/licence.pl , sendratings.pl and fcgiclear.pl cron jobs. You can use the Webmin System:Schedule Cron Jobs module to locate and delete that job, if you like.

is fixed, i guess you can close this bug. :-)

Thanks a lot once again. :-)

Thanks, I've fixed those docs.

Automatically closed -- issue fixed for 2 weeks with no activity.