vnc-biz / zcs-openerp-connector

OpenERP connector for Zimbra ZCS
GNU Affero General Public License v3.0
6 stars 1 forks source link

zmmailboxd will not start after successfull install of zcs-openerp-connector #4

Open rovincent opened 10 years ago

rovincent commented 10 years ago

I'm running Zimbra 8 and everything worked great, followed the how-to for zmpkg everything went well but the following fixes were applied, not sure this is the right forum as i suspect this may have more to do with apache modules but really not sure. New to zimbra.

Deploying sql file: /opt/zimbra/zimlets-install/zcs-lib-vnc-common/mailboxd-db-schema.sql Deploying zimlet: /opt/zimbra/zimlets-install/zcs-openerp-connector/com_zimbra_erp_mail_connector.zip [] INFO: Deploying Zimlet com_zimbra_erp_mail_connector in LDAP. [] INFO: Installing Zimlet com_zimbra_erp_mail_connector on this host. [] INFO: Upgrading Zimlet com_zimbra_erp_mail_connector to 1.2.5.7 [] INFO: Adding Zimlet com_zimbra_erp_mail_connector to COS default [] INFO: Enabling Zimlet com_zimbra_erp_mail_connector Running post-install script: /opt/zimbra/zimlets-install/zcs-core-libs/post-install.sh Fixing files after upgrade. File /mailboxd/webapps/zimbraAdmin/WEB-INF/lib//zimbrastore.jar doesn't exists. Fixing. ln: failed to create symbolic link '/mailboxd/webapps/zimbraAdmin/WEB-INF/lib//zimbrastore.jar': No such file or directory File /mailboxd/webapps/zimbra/WEB-INF/lib//zimbrastore.jar doesn't exists. Fixing. ln: failed to create symbolic link '/mailboxd/webapps/zimbra/WEB-INF/lib//zimbrastore.jar': No such file or directory File /mailboxd/webapps/zimbraAdmin/WEB-INF/lib//zimbrasoap.jar doesn't exists. Fixing. ln: failed to create symbolic link '/mailboxd/webapps/zimbraAdmin/WEB-INF/lib//zimbrasoap.jar': No such file or directory File /mailboxd/webapps/zimbra/WEB-INF/lib//zimbrasoap.jar doesn't exists. Fixing. ln: failed to create symbolic link '/mailboxd/webapps/zimbra/WEB-INF/lib//zimbrasoap.jar': No such file or directory File /mailboxd/webapps/zimbraAdmin/WEB-INF/lib//zimbraclient.jar doesn't exists. Fixing. ln: failed to create symbolic link '/mailboxd/webapps/zimbraAdmin/WEB-INF/lib//zimbraclient.jar': No such file or directory File /mailboxd/webapps/zimbra/WEB-INF/lib//zimbraclient.jar doesn't exists. Fixing. ln: failed to create symbolic link '/mailboxd/webapps/zimbra/WEB-INF/lib//zimbraclient.jar': No such file or directory Successfully fixed the upgrade. zimbra@mail:~/extensions-extra/zmpkg/etc/apt$ zmpkg list Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==========================-========================-============-======================================================== ii zcs-core-libs 8.0.2-0.7-ironmaiden-0 all Makes ZCS core libraries available in the jsp containers ii zcs-lib-apache-httpclient4 4.2.3.2-ironmaiden-0 all Apache httpclient4 library ii zcs-lib-apache-httpcore4 4.3.2.1-ironmaiden-0 all Apache httpcore4 library ii zcs-lib-gson 1.7.2.2-ironmaiden-0 all Google json library ii zcs-lib-gson22 2.2.2.2-ironmaiden-1 all Google json library ii zcs-lib-javacsv 2.0.0.2-ironmaiden-0 all Java CSV library ii zcs-lib-json-simple 1.1.1.6-ironmaiden-0 all Simple JSON library ii zcs-lib-redstone-xmlrpc 1.1.1.4-ironmaiden-0 all Redstone XML-RPC library ii zcs-lib-vnc-common 0.13.7-Z8.0-ironmaiden-0 all Common classes library for VNC packages ii zcs-openerp-connector 1.2.5.7-ironmaiden-0 all OpenERP integration ii zcs-zmpkg 1.4.1.0-judaspriest-0 all Zimbra package management system

zimbra@mail:~/extensions-extra/zmpkg/etc/apt$ zmmailboxdctl restart Stopping mailboxd...done. Starting mailboxd...done.

at this point i could no longer log in to the web interface.

i show status and i get this: zimbra@mail:~/extensions-extra/zmpkg/etc/apt$ zmcontrol status Host mail.vbiz.ca amavis Running antispam Running antivirus Running dnscache Running ldap Running logger Running mailbox Stopped zmmailboxdctl is not running. memcached Running mta Running opendkim Running proxy Running service webapp Stopped zmmailboxdctl is not running. snmp Running spell Running stats Running zimbra webapp Stopped zmmailboxdctl is not running. zimbraAdmin webapp Stopped zmmailboxdctl is not running. zimlet webapp Stopped zmmailboxdctl is not running. zmconfigd Running

any ideas on where i should go next ?

Robin

dhaval-vnc commented 10 years ago

Sorry for inconvenience. Please follow the guide below.

NOTE: For CENTOS : bc should be installed before executing install.sh script for installing zmpkg. zm-aptitude command is deprecated for CENTOS.

If Installing or upgrading to Judaspriests zimbra version restart Zimbra control after executing following command

zmprov ms zmhostname zimbraZimletJspEnabled TRUE

Fresh installation

  1. Install base OS (e.g. Ubuntu 10.04)
  2. Get latest packages from http://packages.vnc.biz/zmpkg/bootstrap/
  3. Extract tar.gz .
  4. With root user execute install.sh script.
  5. zmpkg is installed, zimlets can be installed using zm-apt-get command.

Only Zimbra upgrade.

  1. Perform zimbra upgrade.
  2. Get latest zmpkg tar.gz from http://packages.vnc.biz/zmpkg/bootstrap/
  3. Extract it and with root user execute install.sh
  4. To fix all zimlet permissions from root user execute fixpermission script. (This will install all previously installed zimlets.)
  5. Restart Zimbra.

Os and Zimbra upgrade.

  1. Perform OS upgrade.
  2. Get latest zimbra distribution supported for upgraded Os and Upgrade Zimbra.
  3. To upgrade Zmpkg and other installed packages get latest zmpkg tar.gz from http://packages.vnc.biz/zmpkg/bootstrap/
  4. Extract it and with root user execute install.sh.

NOTE: It will automatically upgrade all installed packages including zmpkg.

  1. To fix all zimlet permissions, with root user execute fixpermission script. (This will re-install all previously installed zimlets.)
  2. Restart Zimbra.

NOTE: Following sequence should be maintained to upgrade Helix to Judaspriests,

  1. Upgrade zimbra helix to Ironmaiden (8.0.7)
  2. Follow steps 1 through 5 in Only zimbra Upgrade section.
  3. Upgrade Ubuntu 10.04 to 12.04
  4. Upgrade Zimbra Ironmaiden to Judaspriests.
  5. Follow steps 1 through 5 in Only zimbra Upgrade section. to Upgrade to latest zmpkg.
rovincent commented 10 years ago

HI,

Thank you for the response,

I have made progress although have re-installed everything several times in the progress.

where i am now: Both servers zimbra 8.5.0_GA_3042.FOOS and odoo running of nightly stable builds are running on ubuntu 14.04 upgarded and dist-upgraded.

Everything besides the connector are working.

for zimbra installed with out issues then followed the how-tos at: http://gallery.zimbra.com/type/zimlet/vnc-openerp-zimlet-zimbra-8

this broke zimbra completely, zmmailboxdctl would not restart and generally broken, i then upgraded zmpkg apt sources to judaspriest free restricted commercial and it upgarded all modules other than the connector: Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==========================-=========================-============-======================================================== ii zcs-core-libs 8.5.0-judaspriest-0 all Makes ZCS core libraries available in the jsp containers ii zcs-lib-apache-httpclient4 4.2.3.2-judaspriest-0 all Apache httpclient4 library ii zcs-lib-apache-httpcore4 4.3.2.1-judaspriest-0 all Apache httpcore4 library ii zcs-lib-gson 1.7.2.2-judaspriest-0 all Google json library ii zcs-lib-gson22 2.2.2.2-judaspriest-0 all Google json library ii zcs-lib-javacsv 2.0.0.2-ironmaiden-0 all Java CSV library ii zcs-lib-json-simple 1.1.1.6-judaspriest-0 all Simple JSON library ii zcs-lib-redstone-xmlrpc 1.1.1.4-judaspriest-0 all Redstone XML-RPC library ii zcs-lib-vnc-common 0.13.7-Z8.5-judaspriest-0 all Common classes library for VNC packages ii zcs-openerp-connector 1.2.5.7-ironmaiden-0 all OpenERP integration ii zcs-zmpkg 1.4.1.0-judaspriest-0 all Zimbra package management system

and Zimbra started working, however stats and server status were not reporting correctly, so i reinstaled rsyslog and after a reboot stats and service reporting are now working.

So Zimbra at this point is working. However when i go to the zimbra web client on load i get an error from com_zimbra_erp_mail_connector SytaxError: Unexpected token <

thats where i am at the moment with Zimbra, im guessing because as you can see the connector has not updated to judaspriest ?

With odoo i have grabbed thew latest Git hub version zcs-openerp-connector-master-z8

however after moving the connector to the addons folder odoo would not even start with an error: from osv import fields, osv ImportError: No module named osv

after adding "openerp" to the line in: /usr/lib/python2.7/dist-packages/openerp/addons/vnc_zimbra_connector/partner/partner.py line 22 from openerp.osv import fields, osv on the advice of another thread odoo no starts but the page does not load correctly: with about 30 errors complaining about "could not get content for /web/static/***.css form web.assets_backend

If i remove the connector form the addons folder odoo starts and runs correctly ?

any help would be greatly appreciated I've been bagging my head against this for almost a week.

Robin

rovincent commented 10 years ago

I just run the command zmprov ms mail.'''''''''.ca zimbraZimletJspEnabled TRUE

and restarted zmcontrol but the no improvement on the com error on load in fact the service status is broken again other than zmconfigd ?

After a reboot however services are reporting properly but i still get the com error

dhaval-vnc commented 10 years ago

Which Odoo version are you using rovincent?

rovincent commented 10 years ago

root@''''''''':~# dpkg-query -l 'odoo*' Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==========================================-==========================-==========================-========================================================================================== ii odoo 8.0.0 all OpenERP Enterprise Resource Management

rovincent commented 10 years ago

it was upgraded yesturday against the following apt repo deb http://nightly.odoo.com/8.0/nightly/deb/ ./

dhaval-vnc commented 10 years ago

I apologize for the inconvenience. OpenERP Connector Zimlet is not yet compatible with Odoo 8.0. However the release has been planned and you'll get it by next week.

rovincent commented 10 years ago

ok, awesome, will this release fix both the zimbra issues and the odoo issues ?

rovincent commented 10 years ago

also whats the best way for me to be notified or get the new release ?

dhaval-vnc commented 10 years ago

Yes, it'll solve all the issues. I'll let you know in the comment when we'll release new version.

rovincent commented 10 years ago

Thank you very much, I have had to interact with a lot forums on this project and have not always had the level of support and responsiveness you have shown, thanks again for all the help.

I look forward to working with the new release.

Robin

dhaval-vnc commented 10 years ago

Happy to help always.

rovincent commented 10 years ago

Has the new released been released yet ?

dhaval-vnc commented 10 years ago

It's on final delivery stage. You'll have to wait one or two days.

dhaval-vnc commented 10 years ago

Hello Rovincnet,

Odoo 8.0 openERP connector module is available here https://github.com/vnc-biz/openerp-zimbra-connector/tree/master-8.0

And to upgrade the Zimlet just do zm-apt-get update and then zm-apt-get upgrade from Zimbra user.