Page 1 of 1

Zimbra Talk error

Posted: Mon Apr 03, 2017 5:07 pm
by andreszr88
After upgrading Zimbra I have enabled once more Zimbra-Talk but in the web client I get this error "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data "

I have this in the /opt/zimbra/conf/nginx/templates/nginx.conf.web.https.default.template file :

location ^~ /VNCMiddleware
{
proxy_cache off;
proxy_read_timeout 500s;
proxy_pass_header Cookie;
proxy_pass http://192.168.100.102:8080/VNCMiddleware;
}

#For long polling of Microsoft ActiveSync
location ^~ /Microsoft-Server-ActiveSync
{

Re: Zimbra Talk error

Posted: Wed Apr 05, 2017 4:50 pm
by andreszr88
I tried to uninstall zimbra talk Zimlet but I get this error:

[zimbra@mail ~]$ zm-apt-get remove --purge zcs-vnc-talk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
zcs-lib-json-simple
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
zcs-vnc-talk*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 298 files and directories currently installed.)
Removing zcs-vnc-talk (2.3.0.0-judaspriest-33-1480761863-4f7c6fef) ...
dpkg: warning: while removing zcs-vnc-talk, directory '/zimlets-install/zcs-vnc-talk' not empty so not removed
E: Directory '/opt/zimbra/var/log/apt/' missing
[zimbra@mail ~]$

Re: Zimbra Talk error

Posted: Wed Apr 05, 2017 9:27 pm
by jorgedlcruz
Try that command as a root user

Best regards

Re: Zimbra Talk error

Posted: Thu Apr 06, 2017 2:20 pm
by andreszr88
Hi Jorge,

I tried the command as root but in the shell I get this :

[root@mail ~]# zm-apt-get remove --purge zcs-vnc-talk
-bash: zm-apt-get: no se encontrĂ³ la orden

This error in Zimbra Talk happens since I upgraded my ZCS to 8.7.6 version.
I followed your recomendation in other thread of this forum, but the problem continues:

"
After the Zimbra-upgrade has been completed, you have perform these steps on the Zimbra installation.
Reinstall zmpkg and the previously installed zimlets
Download latest zmpkg-installer
In case of Zimbra 8.7, you need at least the zmpkg-installer in version 1.4.4.2, wich you will get here:

http://packages.vnc.biz/zmpkg/bootstrap ... est.tar.gz"

Re: Zimbra Talk error

Posted: Fri Apr 07, 2017 5:12 am
by sensor
Hi andreszr88m

andreszr88 wrote:Hi Jorge,

I tried the command as root but in the shell I get this :

[root@mail ~]# zm-apt-get remove --purge zcs-vnc-talk
-bash: zm-apt-get: no se encontrĂ³ la orden


zm-apt* commands are not supposed to be run as root - only as zimbra user.

However -to track down the issue you are facing it would be good to see where it fails. The actual failure is that something that is supposed to return JSON does not. Ususally this also means that the HTTP status code is not 200. If you are using chrome, open the developer tools and open the network tab, then reload zimbra webclient. Check for requests that are displayed in red and provide them here.

In addition and just by accident: Do you use virtual hosts in zimbra? If yes, you have to apply the proxy customization to /opt/zimbra/conf/nginx/templates/nginx.conf.web.https.default.template and /opt/zimbra/conf/nginx/templates/nginx.conf.web.https.template in order to make it work.

best regards,
Sensor

Re: Zimbra Talk error

Posted: Fri Apr 07, 2017 5:15 am
by sensor
Oh - and in addition: try restarting jetty8 and nginx on Talk server - or rebooting it completely.

Re: Zimbra Talk error

Posted: Fri Apr 07, 2017 2:38 pm
by andreszr88
Thank you sensor,

I applyied the proxy customization to /opt/zimbra/conf/nginx/templates/nginx.conf.web.https.default.template and /opt/zimbra/conf/nginx/templates/nginx.conf.web.https.template and then run /opt/zimbra/libexec/zmproxyconfgen but I get a new error in the admin console when open the Zimbra Talk zimlet configuration :

"Se ha detectado un error de JavaScript in method ZaOverviewPanelController.prototype._overviewTreeListener"

Re: Zimbra Talk error

Posted: Fri Apr 07, 2017 4:19 pm
by sensor
Hi andreszr88,

are you sure that you correctly re-installed zmpkg and all packages? In order to make sure that is the case, please follow these steps:
1. as root re-install zmpkg (zimbra upgrade will have changed some file permission that make zmpkg/zm-apt-get fail afterwards)
2. as zimbra-user run zm-apt-get dist-upgrade (this may update some packages)
3. since you attempted uninstall: zm-apt-get install zcs-vnc-talk
4. make sure that each package is reinstalled (the zimbra upgrade chages some files and permissions, but zm-apt database can not be aware of this; the recommended way is to let zm-apt-get reinstall the packages): zm-apt-get install --reinstall `zmpkg list | grep -v zmpkg | grep "^ii" | awk '{print $2}' | tr '\n' ' '`
5. as odd as it may seem, but we have seen zimbra sometimes not bundling all javascript components correctly - restart zimbra server

Then clear browser cache (zimbra mailboxd delivers web client bundle with long cache validity, but we want to make sure to actually load it from server again). Admitted - this looks like quite a lot of effort. But after that everything should work fine.

Re: Zimbra Talk error

Posted: Fri Apr 07, 2017 5:51 pm
by andreszr88
Thank you Sensor,

We the error was solved with these steps:

1. as root re-install zmpkg (zimbra upgrade will have changed some file permission that make zmpkg/zm-apt-get fail afterwards)
2. as zimbra-user run zm-apt-get dist-upgrade (this may update some packages)
3. install zcs-vnc-talk Zimlet: zm-apt-get install zcs-vnc-talk
4. Reinstall zmpkg and the previously installed zimlets: zm-apt-get install --reinstall `zmpkg list | grep -v zmpkg | grep "^ii" | awk '{print $2}' | tr '\n' ' '`
5.- Restart ZCS server
6.- Configure zcs-vnc-talk Zimlet
7.- We synchronized the time of ZCS and Zimbra Talk with an ntp server.
8.- Be happy :)

thanks for your time Sensor :)