Zimbra Talk error

Working with Zimbra Talk? This is your Forum, drop here your questions with the Installation, Configuration, etc.
Post Reply
andreszr88
Posts: 5
Joined: Mon Apr 11, 2016 5:21 pm

Zimbra Talk error

Post 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
{
andreszr88
Posts: 5
Joined: Mon Apr 11, 2016 5:21 pm

Re: Zimbra Talk error

Post 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 ~]$
User avatar
jorgedlcruz
Zimbra Alumni
Zimbra Alumni
Posts: 2782
Joined: Thu May 22, 2014 4:47 pm

Re: Zimbra Talk error

Post by jorgedlcruz »

Try that command as a root user

Best regards
Jorge de la Cruz https://jorgedelacruz.es
Systems Engineer at Veeam Software https://www.veeam.com/
andreszr88
Posts: 5
Joined: Mon Apr 11, 2016 5:21 pm

Re: Zimbra Talk error

Post 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"
User avatar
sensor
Posts: 38
Joined: Tue Apr 12, 2016 7:52 am

Re: Zimbra Talk error

Post 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
User avatar
sensor
Posts: 38
Joined: Tue Apr 12, 2016 7:52 am

Re: Zimbra Talk error

Post by sensor »

Oh - and in addition: try restarting jetty8 and nginx on Talk server - or rebooting it completely.
andreszr88
Posts: 5
Joined: Mon Apr 11, 2016 5:21 pm

Re: Zimbra Talk error

Post 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"
User avatar
sensor
Posts: 38
Joined: Tue Apr 12, 2016 7:52 am

Re: Zimbra Talk error

Post 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.
andreszr88
Posts: 5
Joined: Mon Apr 11, 2016 5:21 pm

Re: Zimbra Talk error

Post 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 :)
Post Reply