AJAX client TzMsg error with 8.8.15p1

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
gardais
Posts: 5
Joined: Sun Sep 01, 2019 5:24 pm

AJAX client TzMsg error with 8.8.15p1

Postby gardais » Sun Sep 01, 2019 5:33 pm

Hi,

I've just upgraded from 8.8.12p5 to 8.8.15p1 (network edition).
When using the webmail, users cannot access their Preferences pane as the following error is displayed.
It happens with Safari, Firefox and Chrome.
HTML client is working (can access the preferences), the issue is with the AJAX client.

Code: Select all

Can't find variable: TzMsg
msg:   Can't find variable: TzMsg
message:   Can't find variable: TzMsg
name:   ReferenceError
stack:   getMediumName@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:4059:13
getAbbreviatedZoneChoices@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:4122:46
getZonePreferences@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:4031:38
_registerPrefs@https://mail.example.com/js/Startup1_2_all.js.zgz?v=190823104651:15739:224
runAppFunction@https://mail.example.com/js/Startup1_2_all.js.zgz?v=190823104651:13065:39
_registerAllPrefs@https://mail.example.com/js/Startup1_2_all.js.zgz?v=190823104651:15617:42
run@https://mail.example.com/:1042:38
handleEvent@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:2414:62
notifyListeners@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:2320:31
notify@https://mail.example.com/js/Startup1_2_all.js.zgz?v=190823104651:13861:71
activateApp@https://mail.example.com/js/Startup1_2_all.js.zgz?v=190823104651:13311:12
_appButtonListener@https://mail.example.com/js/Startup1_2_all.js.zgz?v=190823104651:13758:76
run@https://mail.example.com/:1042:38
handleEvent@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:2414:62
notifyListeners@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:2320:31
notifyListeners@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:7439:89
_handleButton@https://mail.example.com/js/Startup1_2_all.js.zgz?v=190823104651:8248:70
run@https://mail.example.com/:1042:38
handleEvent@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:2414:62
notifyListeners@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:2320:31
notifyListeners@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:7439:89
_handleClick@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:10191:21
_mouseUpListener@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:10274:15
run@https://mail.example.com/:1042:38
handleEvent@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:2414:62
notifyListeners@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:2320:31
notifyListeners@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:7439:89
__mouseEvent@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:8173:72
__processMouseUpEvent@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:8130:31
__mouseUpHdlr@https://mail.example.com/js/Startup1_1_all.js.zgz?v=190823104651:8088:78


User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 482
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 8.7.11_P14 RHEL6 Network Edition
Contact:

Re: AJAX client TzMsg error with 8.8.15p1

Postby JDunphy » Sun Sep 01, 2019 6:06 pm

What time zone and can you verify if it's present in timezones.ics ... Wild guess on my part as I don't run 8.8+ on anything nor can I find anything on this error.

Code: Select all

% grep PST /opt/zimbra/conf/timezones.ics
TZNAME:PST
...
Probably run these to see if they are all in agreement
% date +%Z
% cat /etc/sysconfig/clock

Ref: https://github.com/Zimbra/zm-timezones
From the overview in the link above, it would appear you can rebuild it for your timezone if that is the issue.

You might try setting the timezone to something different with the HTML client to see if the error message goes away for the AJAX client as a test to see if you are on the right tracker here before investigating how to rebuild a new file. You could also see if they have an update to that zm-timezones package mentioned in the link above.
gardais
Posts: 5
Joined: Sun Sep 01, 2019 5:24 pm

Re: AJAX client TzMsg error with 8.8.15p1

Postby gardais » Sun Sep 01, 2019 7:19 pm

As per zmsetup log, zimbraPrefTimeZoneId is set to 'Europe/Brussels'.
This entry exists in timezones.ics with correct values.

I tried changing the timezone to something else but it persists.

Time is synced over NTP, timezone is CEST which matches Europe/Brussels summer time.
gardais
Posts: 5
Joined: Sun Sep 01, 2019 5:24 pm

Re: AJAX client TzMsg error with 8.8.15p1

Postby gardais » Sun Sep 01, 2019 7:40 pm

Also note that zimbra-timezone-data provided with the 8.8.15 installation tar.gz is older than the one provided by 8.8.12p5
Thus, I had to rename it from the packages directory of the tar.gz for the 8.8.15 installation to succeed.
gardais
Posts: 5
Joined: Sun Sep 01, 2019 5:24 pm

Global TzMsg errors [was : AJAX client TzMsg error with 8.8.15p1]

Postby gardais » Mon Sep 02, 2019 11:53 am

Issue also arise when displaying a meeting request email.
Only the buttons appears but browser console shows an error :

Code: Select all

[Error] ReferenceError: Can't find variable: TzMsg
   reportScriptError (Startup1_1_all.js.zgz:602)
   __mouseUpHdlr (Startup1_1_all.js.zgz:8107)
gardais
Posts: 5
Joined: Sun Sep 01, 2019 5:24 pm

[SOLVED] Re: AJAX client TzMsg error with 8.8.15p1

Postby gardais » Mon Sep 02, 2019 1:22 pm

Solved by forcing the reinstallation of zimbra-timezone-data RPM.

Note that I had to remove it from the 8.8.15 tar.gz because it was older than the latest 8.8.12p5 and it blocked 8.8.15 installation.
However, this resulted in missing TzMsg*.properties files and AjxTimezoneData.js leading to the error.

After forcing the installation of the 8.8.15p1 version (from S3 local repo copy)

Code: Select all

# aws s3 sync s3://repo.zimbra.com/rpm/8815/rhel7 /var/local/repositories/8815/rhel7 --no-sign-request --delete
# aws s3 sync s3://repo.zimbra.com/rpm/8815-ne/rhel7 /var/local/repositories/8815-ne/rhel7 --no-sign-request --delete


Code: Select all

rpm -Uvh --force zimbra-timezone-data-1.0.1+1565596046-1.r7.x86_64.rpm

all files were there but I had to chown them to `zimbra:zimbra`

Code: Select all

 cd jetty/webapps
 find . -uid 0 -exec chown zimbra:zimbra {} \;
janvs
Posts: 1
Joined: Wed Oct 02, 2019 8:21 am

Re: AJAX client TzMsg error with 8.8.15p1

Postby janvs » Wed Oct 02, 2019 8:29 am

We're seeing the exact same behaviour on Ubuntu Server (zcs-NETWORK-8.8.15_GA_3869.UBUNTU16_64.20190917004220):

Code: Select all

2019-10-02 08:59:56.122:WARN:oejs.HttpChannel:qtp961409111-189: /zimbraAdmin/ java.io.IOException: An exception occurred processing JSP page [/public/admin.jsp] at line [206]

203:
204: <jsp:include page="Boot.jsp"/>
205: <script>
206: <jsp:include page="/js/ajax/util/AjxTimezoneData.js" />
207: </script>
208: <%
209:     String packages = "Ajax,XForms,Zimbra,Admin";


A reinstall of the .js fixes it:

Code: Select all

apt-get install --reinstall zimbra-timezone-data

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 11 guests