Open acesuares opened 9 years ago
Sorry for the inconvenience, the missing lib is now available.
Please do zm-apt-get update and then zm-apt-get install zcs-openerp-connector
Thank you, but not entirely succesful:
zimbra@zimbra:~$ zm-apt-get update
Get:1 http://packages.vnc.biz judaspriest Release.gpg [490 B]
Get:2 http://packages.vnc.biz judaspriest Release [8604 B]
Get:3 http://packages.vnc.biz judaspriest/free All Packages [4359 B]
Get:4 http://packages.vnc.biz judaspriest/restricted All Packages [14 B]
Ign http://packages.vnc.biz judaspriest/free TranslationIndex
Ign http://packages.vnc.biz judaspriest/restricted TranslationIndex
Ign http://packages.vnc.biz judaspriest/free Translation-en
Ign http://packages.vnc.biz judaspriest/restricted Translation-en
Fetched 13.5 kB in 0s (39.9 kB/s)
Reading package lists... Done
zimbra@zimbra:~$ zm-apt-get -f install zcs-openerp-connector
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
zcs-core-libs zcs-lib-apache-httpclient4 zcs-lib-apache-httpcore4 zcs-lib-gson zcs-lib-gson22 zcs-lib-javacsv
zcs-lib-json-simple zcs-lib-redstone-xmlrpc zcs-lib-vnc-common
The following NEW packages will be installed:
zcs-core-libs zcs-lib-apache-httpclient4 zcs-lib-apache-httpcore4 zcs-lib-gson zcs-lib-gson22 zcs-lib-javacsv
zcs-lib-json-simple zcs-lib-redstone-xmlrpc zcs-lib-vnc-common zcs-openerp-connector
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 8650 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? ^C
zimbra@zimbra:~$ zm-apt-get install zcs-openerp-connector
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
zcs-core-libs zcs-lib-apache-httpclient4 zcs-lib-apache-httpcore4 zcs-lib-gson zcs-lib-gson22 zcs-lib-javacsv
zcs-lib-json-simple zcs-lib-redstone-xmlrpc zcs-lib-vnc-common
The following NEW packages will be installed:
zcs-core-libs zcs-lib-apache-httpclient4 zcs-lib-apache-httpcore4 zcs-lib-gson zcs-lib-gson22 zcs-lib-javacsv
zcs-lib-json-simple zcs-lib-redstone-xmlrpc zcs-lib-vnc-common zcs-openerp-connector
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 8650 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://packages.vnc.biz/zmpkg/current/ judaspriest/free zcs-core-libs all 8.5.0-judaspriest-0 [2026 B]
Get:2 http://packages.vnc.biz/zmpkg/current/ judaspriest/free zcs-lib-apache-httpcore4 all 4.3.2.1-judaspriest-0 [882 kB]
Get:3 http://packages.vnc.biz/zmpkg/current/ judaspriest/free zcs-lib-apache-httpclient4 all 4.2.3.2-judaspriest-0 [1833 kB]
Get:4 http://packages.vnc.biz/zmpkg/current/ judaspriest/free zcs-lib-gson all 1.7.2.2-judaspriest-0 [689 kB]
Get:5 http://packages.vnc.biz/zmpkg/current/ judaspriest/free zcs-lib-gson22 all 2.2.2.2-judaspriest-0 [762 kB]
Get:6 http://packages.vnc.biz/zmpkg/current/ judaspriest/free zcs-lib-javacsv all 2.0.0.2-judaspriest-0 [18.1 kB]
Get:7 http://packages.vnc.biz/zmpkg/current/ judaspriest/free zcs-lib-json-simple all 1.1.1.6-judaspriest-0 [20.7 kB]
Get:8 http://packages.vnc.biz/zmpkg/current/ judaspriest/free zcs-lib-redstone-xmlrpc all 1.1.1.4-judaspriest-0 [226 kB]
Get:9 http://packages.vnc.biz/zmpkg/current/ judaspriest/free zcs-lib-vnc-common all 0.13.7-Z8.5-judaspriest-0 [4139 kB]
Get:10 http://packages.vnc.biz/zmpkg/current/ judaspriest/free zcs-openerp-connector all 1.2.5.9-judaspriest-0 [78.0 kB]
Fetched 8650 kB in 3s (2840 kB/s)
Selecting previously unselected package zcs-core-libs.
(Reading database ... 75 files and directories currently installed.)
Unpacking zcs-core-libs (from .../zcs-core-libs_8.5.0-judaspriest-0_all.deb) ...
dpkg: error processing /opt/zimbra/var/lib/apt/cache/archives/zcs-core-libs_8.5.0-judaspriest-0_all.deb (--unpack):
unable to make backup link of `./lib/jars/servlet-api.jar' before installing new version: Operation not permitted
No apport report written because MaxReports is reached already
Selecting previously unselected package zcs-lib-apache-httpcore4.
Unpacking zcs-lib-apache-httpcore4 (from .../zcs-lib-apache-httpcore4_4.3.2.1-judaspriest-0_all.deb) ...
Selecting previously unselected package zcs-lib-apache-httpclient4.
Unpacking zcs-lib-apache-httpclient4 (from .../zcs-lib-apache-httpclient4_4.2.3.2-judaspriest-0_all.deb) ...
Selecting previously unselected package zcs-lib-gson.
Unpacking zcs-lib-gson (from .../zcs-lib-gson_1.7.2.2-judaspriest-0_all.deb) ...
Selecting previously unselected package zcs-lib-gson22.
Unpacking zcs-lib-gson22 (from .../zcs-lib-gson22_2.2.2.2-judaspriest-0_all.deb) ...
Selecting previously unselected package zcs-lib-javacsv.
Unpacking zcs-lib-javacsv (from .../zcs-lib-javacsv_2.0.0.2-judaspriest-0_all.deb) ...
Selecting previously unselected package zcs-lib-json-simple.
Unpacking zcs-lib-json-simple (from .../zcs-lib-json-simple_1.1.1.6-judaspriest-0_all.deb) ...
Selecting previously unselected package zcs-lib-redstone-xmlrpc.
Unpacking zcs-lib-redstone-xmlrpc (from .../zcs-lib-redstone-xmlrpc_1.1.1.4-judaspriest-0_all.deb) ...
Selecting previously unselected package zcs-lib-vnc-common.
Unpacking zcs-lib-vnc-common (from .../zcs-lib-vnc-common_0.13.7-Z8.5-judaspriest-0_all.deb) ...
Selecting previously unselected package zcs-openerp-connector.
Unpacking zcs-openerp-connector (from .../zcs-openerp-connector_1.2.5.9-judaspriest-0_all.deb) ...
Errors were encountered while processing:
/opt/zimbra/var/lib/apt/cache/archives/zcs-core-libs_8.5.0-judaspriest-0_all.deb
E: Sub-process /opt/zimbra/bin/zmpkg-dpkg returned an error code (1)
Are you trying to install it on fresh machine or you upgraded the machine?
I don't know. Zimbra was there (and upgraded many times), then I installed the package manager, and the the connector, with above results.
zimbra@zimbra:~$ ls -la /opt/zimbra/lib/jars/servlet-api*
-r--r--r-- 1 root root 95806 Nov 3 21:28 /opt/zimbra/lib/jars/servlet-api-3.1.jar
-r--r--r-- 1 root root 134133 Dec 3 2013 /opt/zimbra/lib/jars/servlet-api.jar
Permission problem?
Yes, the servlet-api* files should have zimbra:zimbra permissions.
Hmmm /opt/zimbra/libexec/zmfixperms leaves them untouched...
Had to chown the 'jars' directory too... doesn't seem too safe... does it?
And fixperms sets it back to root. I think you stil have a bug there?? Thanks for all the help!
Unfortunately, it doesn't work!!!
Fixpermission script won't fix the permission for those files. You can set them manually.
Also for the last error, could you please send me the error logs from /opt/zimbra/log/mailbox.log and /opt/zimbra/log/zmmailboxd.out
dhaval-vnc, I think your script wants to write a file in the 'jars' directory, so probably it's not enough to chwon the servlet-api* files, but also the directory they are in. And I think (but I am not sure) that the 'jars' directory better be root.root then zimbra.zimbra. Could you look into that?
dhaval-vnc wrote: Fixpermission script won't fix the permission for those files.
But, the fixperm script restores those to root.root!
I checked all the logs but can't find an error (referring to the picture above, with the JSON error.
I can trigger the error just by refreshing the browser.
This happens when I click the zimlet in my e-mail tab:
And this is how the zimlet lists itself in the zimlet sidebar:
Hello,
Please fire following command as Zimbra user and restart mailboxd service.
zmprov ms zmhostname
zimbraZimletJspEnabled TRUE
I'm having exactly the same errors as mentioned by acesuares. Running the command also doesn't help :(
Did you restart the mailbox after executing that command?
Yes, we restarted mailboxd. We'll try to follow https://github.com/irontec/zsugar/issues/2 next and do a whole zmcontrol restart. But I'll have to wait until business hours are over (eta 40 mins).
Ok, with a full restart via zmcontrol restart it worked. Thanks!
Glad to hear that it worked.
Please reopen. I got this now:
But the zimlet itself is working., just when a user opens zimbra, this error appears, AND in the panel left is says ${bla}
What exact error do you get in /opt/zimbra/log/zmmailboxd.out logs?
nothing in /opt/zimbra/log/zmmailboxd.out!
And the zimlet looks like:
Any logs in javascript console?
None in the console, but the 'error details' in the error dialog show this:
[Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: https://mail.example.com/zimbra/ :: AjxLoader.load :: line 1568" data: no]
Could you post here the request and response of all the JSP calls from the network tab of Firebug?
/zimbra/js/vnc/json/json2_all.js.zgz?v=141215201216 results in a 404 error...!
@acesuares I am traveling at the moment. Will reply back after couple of days.
will result in:
(judaspriest)