webmin icon indicating copy to clipboard operation
webmin copied to clipboard

Webmin version 1.999-2 is now available, but you are running version 1.999.

Open jmccabe opened this issue 3 years ago • 32 comments

Seeing this message in the dashboard but, when I press the "Upgrade Webmin Now" button, I get:

Failed to upgrade from www.webmin.com : You are already running the latest version of Webmin

jmccabe avatar Aug 09 '22 10:08 jmccabe

Also seeing this message when trying to update another install of webmin; I suspect it's related so mentioning it here.

WARNING: The following packages cannot be authenticated!
  webmin
E: There were unauthenticated packages and -y was used without --allow-unauthenticated

jmccabe avatar Aug 09 '22 10:08 jmccabe

It seems that upgrade.cgi doesn't yet do upgrades for minor versions correctly.

We will fix that.

iliaross avatar Aug 09 '22 10:08 iliaross

Reference for further readers - https://sourceforge.net/p/webadmin/discussion/600155/thread/67e368e4a0/?limit=25#1a4c

iliaross avatar Aug 09 '22 12:08 iliaross

If you didn't know you can go to "Webmin Configuration" then "Upgrade Webmin" check the box "Upgrade even if new version is the same or older?" it worked for me or just download the files

Araflologo avatar Aug 09 '22 21:08 Araflologo

running on Ubuntu 20.04.4 I downloaded the .deb from sourceforge and installed ... no problems but the message still says I'm running 1.999 and 1.999-2 is available (and the version is still 1.999 on the status above the msg) I have restarted webmin with sudo /etc/webmin/restart and restarted the server also.... what should I do?

ccheath avatar Aug 10 '22 01:08 ccheath

The -2 is a package release version, not the Webmin version. If you have the 1.999-2 package installed, you have that release.

swelljoe avatar Aug 10 '22 01:08 swelljoe

New releases (-2, -3, etc.) mean there was a change in the package (i.e. postinstall scripts, metadata, etc.) rather than in the software itself.

swelljoe avatar Aug 10 '22 01:08 swelljoe

ok, so just wait for the new version with the upgrade.cgi that can do these releases?

ccheath avatar Aug 10 '22 01:08 ccheath

I don't recommend you use upgrade.cgi at all. You have a package manager. Use the danged package manager. We have repos for apt and yum.

swelljoe avatar Aug 10 '22 01:08 swelljoe

The work-around for this issue is to go to Webmin -> Webmin Configuration -> Upgrade Webmin, and check the "Upgrade even if new version is the same or older?" box. Or do as Joe said, and install it using APT or YUM.

jcameron avatar Aug 10 '22 01:08 jcameron

The proper fix is here : https://github.com/webmin/webmin/commit/6fc78a2104e5b1b22da02aaeb17f978b5439b2da

jcameron avatar Aug 10 '22 01:08 jcameron

I did install 1.999-2 using APT and by saying "waiting for the new version of upgrade.cgi" I meant waiting for that fix

ccheath avatar Aug 10 '22 01:08 ccheath

and the 'work around' didn't remove the message either... still saying that i should upgrade to 1.999-2

ccheath avatar Aug 10 '22 01:08 ccheath

When you use apt or yum, you can/should disable that warning. At that point your package manager is the source of truth for the current available version and installed version. (We do this automatically in the Virtualmin installer.)

swelljoe avatar Aug 10 '22 02:08 swelljoe

The proper fix is here : 6fc78a2

Thanks, Jamie. I have taken a deeper look and found more bugs in regards to upgrades for release versions - https://github.com/webmin/webmin/commit/3dfc71d8c14348ca68512be52869166cbf7525fd.

Also, it's important that when you build Webmin you add to makedist command a release version, something like ./makedist.pl 1.999-2. Doing that will create a release file inside of a package. I had it in my build scripts and missed it when was testing yours - sorry about that.

Also, anyone seeing a problem with notification not going away, simply put a text file in Webmin directory (i.e. /usr/share/webmin or /usr/libexec/webmin or whichever) with a name release and put 2 in it. It will represent that Webmin 1.999-2 is installed and will stop notifications from showing.

iliaross avatar Aug 10 '22 12:08 iliaross

Also, anyone seeing a problem with notification not going away, simply put a text file in Webmin directory (i.e. /usr/share/webmin or /usr/libexec/webmin or whichever) with a name release and put 2 in it. It will represent that Webmin 1.999-2 is installed and will stop notifications from showing.

Thank you, this worked!

ccheath avatar Aug 10 '22 23:08 ccheath

If you didn't know you can go to "Webmin Configuration" then "Upgrade Webmin" check the box "Upgrade even if new version is the same or older?" it worked for me or just download the files

works fine 👍🍸

mxdpeep avatar Aug 12 '22 15:08 mxdpeep

If you didn't know you can go to "Webmin Configuration" then "Upgrade Webmin" check the box "Upgrade even if new version is the same or older?" it worked for me or just download the files

This did not work for me while this

Also, anyone seeing a problem with notification not going away, simply put a text file in Webmin directory (i.e. /usr/share/webmin or /usr/libexec/webmin or whichever) with a name release and put 2 in it. It will represent that Webmin 1.999-2 is installed and will stop notifications from showing.

did. Will I have to manually remove this file later on? [Update 24.08.2022: Yes. You HAVE to manually remove it, otherwise webmin will state that it is '2.000-2' rather than '2.000']

silen72 avatar Aug 13 '22 13:08 silen72

Conclusion from this bug is Minus symbol is not for describing versions, must be 1.9999.2 all versions must be tested before Release

Worked perfectly

If you didn't know you can go to "Webmin Configuration" then "Upgrade Webmin" check the box "Upgrade even if new version is the same or older?" it worked for me or just download the files

0xenca avatar Aug 14 '22 10:08 0xenca

Instead of adding Version numbers you could Release Version 2.0 as an Workaround ;)

Any actual Roadmap to 2.0?

tocotronaut avatar Aug 14 '22 20:08 tocotronaut

Yeah, we will probably release version 2.0 as simpler fix. Functionally it won't be any different from 1.999

jcameron avatar Aug 14 '22 20:08 jcameron

🤣 😜 😎

Filip Oščádal 🍀📱

On Sun, Aug 14, 2022, 22:58 Jamie Cameron @.***> wrote:

Yeah, we will probably release version 2.0 as simpler fix. Functionally it won't be any different from 1.999

— Reply to this email directly, view it on GitHub https://github.com/webmin/webmin/issues/1713#issuecomment-1214447507, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAASMXWG5AWO6IKRTBQTEKDVZFMW3ANCNFSM56AJLN5Q . You are receiving this because you commented.Message ID: @.***>

mxdpeep avatar Aug 15 '22 16:08 mxdpeep

Webmin is now saying that usermin is out of date, but the updater says "Failed to upgrade from www.usermin.com : You are already running the latest version of Usermin" I'm running 1.840 and the hover over on the dashboard says that 1.854 is out. Clicking it takes me to the virtualmin forum with a few users posting the issue I'm seeing... anyone here able to help?

ccheath avatar Aug 18 '22 01:08 ccheath

The simplest solution is to manually download and install Usermin package, or configure repos that would contain latest Usermin.

We have already made improvements to the code to support minor releases.

iliaross avatar Aug 18 '22 09:08 iliaross

how do I manually download the usermin package and configure the repos? In the virtualmin forum post linked from the dashboard there was a comment:

wget latest beta https://raw.githubusercontent.com/virtualmin/virtualmin-install/845f2f7346d24bab029eff699685401f0af24083/virtualmin-install.sh 5 and run this command sh virtualmin-install.sh --setup

I did that but it didn't seem to make a difference

ccheath avatar Aug 18 '22 21:08 ccheath

Did you then tell the package manager to upgrade? You can also do it using System ⇾ Software Package Updates page. But you would need to refresh available packages first.

iliaross avatar Aug 18 '22 21:08 iliaross

i get Clearing package caches .. .. done Re-fetching available packages .. .. found 0 possible updates

ccheath avatar Aug 18 '22 22:08 ccheath

doesn't show the virtualmin repo like apt does

Repository name Enabled? Package URL
  focal/main/restricted Yes
  focal-updates/main/restricted Yes
  focal/universe Yes
  focal-updates/universe Yes
  focal/multiverse Yes
  focal-updates/multiverse Yes
  focal-backports/main/restricted/universe/multiverse Yes
  disco/partner No
  focal-security/main/restricted Yes
  focal-security/universe Yes
  focal-security/multiverse Yes

$ sudo apt update Hit:1 https://software.virtualmin.com/vm/7/gpl/apt virtualmin InRelease Hit:2 http://ua.archive.ubuntu.com/ubuntu focal InRelease Hit:3 http://ua.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:4 http://ua.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:5 http://ua.archive.ubuntu.com/ubuntu focal-security InRelease Reading package lists... Done Building dependency tree
Reading state information... Done All packages are up to date.

ccheath avatar Aug 18 '22 22:08 ccheath

Oh, I see, you missed this message above. Running this command will help to make update message go away:

miniservconffile=$(find / -wholename "*web*\/miniserv.conf") ; rootdir=$(grep "^root=" "$miniservconffile" | sed -e 's/root=//g') ; echo "2" > "$rootdir/release"

iliaross avatar Aug 19 '22 09:08 iliaross

i did see that, and the message did go away, but now Usermin is saying that v1.854 is available and I'm on v1.840 ...

ccheath avatar Aug 19 '22 23:08 ccheath