Update Url Working?

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
CarlCox
Posts: 4
Joined: Tue Oct 16, 2018 9:51 am

Update Url Working?

Post by CarlCox »

Hy!

I don't get any Zimbra Updates.
Is this URL correct?

https://www.zimbra.com/aus/universal/update.php

Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-145-generic x86_64)
Zimbra 8.8.10_GA_3039.FOSS (build 21080928094617) 28. Sep 2018

Thank You!
User avatar
pup_seba
Outstanding Member
Outstanding Member
Posts: 687
Joined: Sat Sep 13, 2014 2:43 am
Location: Tarragona - Spain
Contact:

Re: Update Url Working?

Post by pup_seba »

Hi,

I'm sorry for the ignorance, but I did not know about the existance of that URL. When I want to upgrade/update Zimbra, I either:

- Update via Zimbra repositories
- Update by downloading the binaries for the new version and run an /.install.sh

What are you expecting to see in that url?
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Update Url Working?

Post by DualBoot »

Hello,

this URL is used by Zimbra server to show if there is a new version of Zimbra and displays it into the admin web interface.

Regards,
User avatar
pup_seba
Outstanding Member
Outstanding Member
Posts: 687
Joined: Sat Sep 13, 2014 2:43 am
Location: Tarragona - Spain
Contact:

Re: Update Url Working?

Post by pup_seba »

Ohh ok, thanks.

Right now I'm using 8.8.12 but now that you mention it, I don't remember when it was the last time I saw an update notification.

For what I can see in "zmprov gacf", everything seems to be allright at least from server and the response it gets, but again, i am using the last avaialble version so my tests are kind of not useful, sorry.

[zimbra@zimbrastore01 ~]$ zmprov gacf | grep -i versioncheck
zimbraReverseProxyExactServerVersionCheck: on
zimbraVersionCheckInterval: 1d
zimbraVersionCheckLastAttempt: 20190415113030.381Z
zimbraVersionCheckLastResponse: <?xml version="1.0"?>
<versionCheck status="0">
</versionCheck>

zimbraVersionCheckLastSuccess: 20190415113030.381Z
zimbraVersionCheckNotificationBody: ${BEGIN_PREFIX}The following updates were found:${NEWLINE}${NEWLINE}${END_PREFIX}${BEGIN_UPDATE}${UPDATE_COUNTER}. ${IS_CRITICAL}. Version: ${UPDATE_VERSION}, URL: ${UPDATE_URL}${NEWLINE}${NEWLINE}${END_UPDATE}${BEGIN_SIGNATURE}Zimbra Updater${NEWLINE}${END_SIGNATURE}
zimbraVersionCheckNotificationEmail: admin@domain.com
zimbraVersionCheckNotificationEmailFrom: admin@domain.com
zimbraVersionCheckNotificationSubject: ${IS_CRITICAL} updates are available for your Zimbra server
zimbraVersionCheckSendNotifications: TRUE
zimbraVersionCheckServer: cf1d47c5-2b49-4227-b093-794efcb3a10c
zimbraVersionCheckURL: https://www.zimbra.com/aus/universal/update.php
CarlCox
Posts: 4
Joined: Tue Oct 16, 2018 9:51 am

Re: Update Url Working?

Post by CarlCox »

Thanks we download 8.8.12 and run the install.sh
It works now.

But in the Admincenter we dont get any notifications. is that normal?
User avatar
pup_seba
Outstanding Member
Outstanding Member
Posts: 687
Joined: Sat Sep 13, 2014 2:43 am
Location: Tarragona - Spain
Contact:

Re: Update Url Working?

Post by pup_seba »

Hi,

In another post viewtopic.php?f=15&t=65932&start=30, user halfgaar reported (out of topic i think) that running this command does not work.
/opt/zimbra/libexec/zmcheckversion -c. As I did not see the "c" option in the help of the command (and have no willing to see the actual code to read what's in it), i also ran "-m", which shows the same result as with "-c". In both I have "too early".

So yeap, it seems from this and from what you say, that the checkversion is not working as expected?
halfgaar
Advanced member
Advanced member
Posts: 171
Joined: Sat Sep 13, 2014 12:54 am
Location: Netherlands
ZCS/ZD Version: Ubuntu 18.04, 8.8.15_P43
Contact:

Re: Update Url Working?

Post by halfgaar »

pup_seba, you mention repos. I have apt sources:

Code: Select all

deb     [arch=amd64] https://repo.zimbra.com/apt/87 trusty zimbra
deb-src [arch=amd64] https://repo.zimbra.com/apt/87 trusty zimbra
But I don't seem to get the application updates that way. I still have to run the monolithic installer. And even then, patches are sometimes an additional tarball, like for this critical cve-2019-9670 (which is being exploited!).

Anyway, I can't seem to find the official source code for it, but I found source of a fork of VersionCheckUtil.java. In it, you can see that you need '-c' to check the version.

You can also see that it says 'Too early' when the last check was too recent. So, I changed the check interval to one second and ran '/opt/zimbra/libexec/zmcheckversion -c'. No output, no e-mail. I tried '-r' and '-m' too, to no avail.
User avatar
pup_seba
Outstanding Member
Outstanding Member
Posts: 687
Joined: Sat Sep 13, 2014 2:43 am
Location: Tarragona - Spain
Contact:

Re: Update Url Working?

Post by pup_seba »

Ohh ok. So the "too early" is meant to not overwhelm their servers with continous version check requests. Good to know, I wasn't aware of that! Thank you!!!

Regarding the repos, for upgrading versions (major or minor), they don't work as you will still need to deploy from binaries. For patching they do work or at least they should. They are indeed some times (i can only remember one) for which in the patch release notes a specific file should be deployed from outside the patch.
halfgaar
Advanced member
Advanced member
Posts: 171
Joined: Sat Sep 13, 2014 12:54 am
Location: Netherlands
ZCS/ZD Version: Ubuntu 18.04, 8.8.15_P43
Contact:

Re: Update Url Working?

Post by halfgaar »

I submitted a bug report about the updater not working. No response so far.
halfgaar
Advanced member
Advanced member
Posts: 171
Joined: Sat Sep 13, 2014 12:54 am
Location: Netherlands
ZCS/ZD Version: Ubuntu 18.04, 8.8.15_P43
Contact:

Re: Update Url Working?

Post by halfgaar »

This still seems to be an issue. I never get e-mail about updates.

Current version: Release 8.8.15.GA.3869.UBUNTU16.64 UBUNTU16_64 FOSS edition, Patch 8.8.15_P11.

I changed the update URL to HTTP so I could capture it with tcpdump, and I can then see it does this query:

Code: Select all

https://www.zimbra.com/aus/universal/update.php?majorversion=8&minorversion=8&microversion=15&platform=%40%40BUILD_PLATFORM
No matter what version you check, it's always 'status = 0':

Code: Select all

# curl 'https://www.zimbra.com/aus/universal/update.php?majorversion=8&minorversion=8&microversion=15&platform=%40%40BUILD_PLATFORM'
<?xml version="1.0"?>
<versionCheck status="0">
</versionCheck>

Code: Select all

# curl 'https://www.zimbra.com/aus/universal/update.php?majorversion=7&minorversion=8&microversion=15&platform=%40%40BUILD_PLATFORM'
<?xml version="1.0"?>
<versionCheck status="0">
</versionCheck>

Code: Select all

# curl 'https://www.zimbra.com/aus/universal/update.php?majorversion=8&minorversion=8&microversion=6&platform=%40%40BUILD_PLATFORM'
<?xml version="1.0"?>
<versionCheck status="0">
</versionCheck>
In fact, the GET parameters don't seem to be used at all. I can remove them or alter them at will, without change.

Does anybody have a working update checker?
Post Reply