Results 1 to 10 of 11

Thread: Zimbra configd not starting

Hybrid View

  1. #1
    Join Date
    Jul 2011
    Posts
    3
    Rep Power
    4

    Default Zimbra configd not starting

    Code:
    Traceback (most recent call last):
      File "/opt/zimbra/libexec/zmconfigd", line 149, in <module>
        Log.logMsg(1, "%s started on %s with loglevel=%d pid=%d" % (myConfig.progname, myConfig.hostname, myConfig.loglevel, os.getpid()))
    AttributeError: 'module' object has no attribute 'getpid'
    Traceback (most recent call last):
      File "/opt/zimbra/libexec/zmconfigd", line 149, in <module>
        Log.logMsg(1, "%s started on %s with loglevel=%d pid=%d" % (myConfig.progname, myConfig.hostname, myConfig.loglevel, os.getpid()))
    AttributeError: 'module' object has no attribute 'getpid'
    Starting zmconfigd...Traceback (most recent call last):
      File "/opt/zimbra/libexec/zmconfigd", line 149, in <module>
        Log.logMsg(1, "%s started on %s with loglevel=%d pid=%d" % (myConfig.progname, myConfig.hostname, myConfig.loglevel, os.getpid()))
    AttributeError: 'module' object has no attribute 'getpid'
    Starting zmconfigd...failed.
    Traceback (most recent call last):
      File "/opt/zimbra/libexec/zmconfigd", line 149, in <module>
        Log.logMsg(1, "%s started on %s with loglevel=%d pid=%d" % (myConfig.progname, myConfig.hostname, myConfig.loglevel, os.getpid()))
    AttributeError: 'module' object has no attribute 'getpid'
    Starting zmconfigd...Traceback (most recent call last):
      File "/opt/zimbra/libexec/zmconfigd", line 149, in <module>
        Log.logMsg(1, "%s started on %s with loglevel=%d pid=%d" % (myConfig.progname, myConfig.hostname, myConfig.loglevel, os.getpid()))
    AttributeError: 'module' object has no attribute 'getpid'
    failed.
    Starting zmconfigd...failed.
    Traceback (most recent call last):
      File "/opt/zimbra/libexec/zmconfigd", line 149, in <module>
        Log.logMsg(1, "%s started on %s with loglevel=%d pid=%d" % (myConfig.progname, myConfig.hostname, myConfig.loglevel, os.getpid()))
    AttributeError: 'module' object has no attribute 'getpid'
    Starting zmconfigd...Traceback (most recent call last):
      File "/opt/zimbra/libexec/zmconfigd", line 149, in <module>
        Log.logMsg(1, "%s started on %s with loglevel=%d pid=%d" % (myConfig.progname, myConfig.hostname, myConfig.loglevel, os.getpid()))
    AttributeError: 'module' object has no attribute 'getpid'
    failed.
    Traceback (most recent call last):
      File "/opt/zimbra/libexec/zmconfigd", line 149, in <module>
        Log.logMsg(1, "%s started on %s with loglevel=%d pid=%d" % (myConfig.progname, myConfig.hostname, myConfig.loglevel, os.getpid()))
    AttributeError: 'module' object has no attribute 'getpid'
    Starting zmconfigd...failed.
    Traceback (most recent call last):
      File "/opt/zimbra/libexec/zmconfigd", line 149, in <module>
        Log.logMsg(1, "%s started on %s with loglevel=%d pid=%d" % (myConfig.progname, myConfig.hostname, myConfig.loglevel, os.getpid()))
    AttributeError: 'module' object has no attribute 'getpid'
    Starting zmconfigd...Traceback (most recent call last):
      File "/opt/zimbra/libexec/zmconfigd", line 149, in <module>
        Log.logMsg(1, "%s started on %s with loglevel=%d pid=%d" % (myConfig.progname, myConfig.hostname, myConfig.loglevel, os.getpid()))
    AttributeError: 'module' object has no attribute 'getpid'
    I couldn't get it working, so I tried using the solutions used by others. I am running zimbra on CentOS 5.5 64-bit.

    I deleted the .pid file, executed the zmfixperms. Still no luck, all other services are running including SNB after I installed the patch. The only thing not running is zmconfigd. Even sending and receiving e-mails is working.

    Anyway how can I rebuild the .pid, get it back , because it looks like that caused a major problem.

    Regards,
    XDA

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by xda View Post
    [code]I couldn't get it working, so I tried using the solutions used by others. I am running zimbra on CentOS 5.5 64-bit.
    Is this a new install or an upgrade? If you have valid DNS A & MX records and a correct /etc/hosts file there really should be no problems installing on RHEL (CentOS) systems - do you have those?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Jul 2011
    Posts
    3
    Rep Power
    4

    Default

    Quote Originally Posted by phoenix View Post
    Is this a new install or an upgrade? If you have valid DNS A & MX records and a correct /etc/hosts file there really should be no problems installing on RHEL (CentOS) systems - do you have those?
    This is a new install! I have valid DNS A & MX records. My /etc/hosts file contains all necescary information. Btw. why would I be able to receive and send e-mail if DNS was not setup properly...

    Anyway the onlything that I can think off, that is giving the problems is the CSF firewall, but I already opened up all ports that are required by zimbra.

    And isn't the .pid file supposed to be generated automaticly after each restart?

    Regards,
    xda

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Is this actually running on on bare metal or in a VM and if so, which VM and how much RAM does this server have? Have you also applied the required patch to this version of Zimbra (you should, it's on the download page)?
    Last edited by phoenix; 07-17-2011 at 07:38 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    Join Date
    Jul 2011
    Posts
    3
    Rep Power
    4

    Default

    Quote Originally Posted by phoenix View Post
    Is this actually running on on bare metal or in a VM and if so, which VM and how much RAM does this server have? Have you also applied the required patch to this version of Zimbra (you should, it's on the download page)?
    Yes, I applied the patch. It is a private cloud network. It runs Xen instances, we allocated 24 Gigabyte of RAM and 16 cores to the current instance. The only things installed before installation were Nginx, PHP-FPM, Python 2.7, Django, PHP 5.3, MySQL, PostgreSQL, CSF Firewall, PHP-XCache, Memcached, NSD, ClamAV (but turned off, using DynDNS now).

  6. #6
    Join Date
    Jul 2011
    Posts
    6
    Rep Power
    4

    Default

    For starters, that's not 'only things'; that's a complete software stack, almost none of which should be present in a clean Zimbra install, and a lot of which will actually interfere with Zimbra.

    Having said that, I'm also having this issue on a CentOS 5.6 machine.

    Check:
    Issue 1518: os.getpid() is missing - Jython tracker

    The simple workaround for now is to stop Zimbra completely and replace /opt/zimbra/lib/jars/jython-2.5.2.jar with the jython-2.5.1.jar that came with the original 7.1.1 setup (you can extract it from zimbra-core-<whatever>.rpm using rpm2cpio), that works for me.

    Zimbra devs: Is this a known issue yet? I can't find it in the Bugzilla yet, but it's a clear and very reproducable bug.

  7. #7
    Join Date
    Jul 2011
    Posts
    6
    Rep Power
    4

    Default

    Code:
    [root@zimbra-test jars]# cp /home/admin/ZCS/jython-2.5.1.jar /opt/zimbra/lib/jars/ ; rm -f /opt/zimbra/lib/jars/jython-2.5.2.jar
    ##########
    [zimbra@zimbra-test.example.com ~]$ zmpython
    Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54) 
    [Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)] on java1.6.0_25
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import os
    >>> os.getpid()
    0
    >>> exit()


    Code:
    [root@zimbra-test jars]# cp /home/admin/ZCS/jython-2.5.2.jar /opt/zimbra/lib/jars/ ; rm -f /opt/zimbra/lib/jars/jython-2.5.1.jar
    ##########
    [zimbra@zimbra-test.example.com ~]$ zmpython
    Jython 2.5.2 (Release_2_5_2:7206, Mar 2 2011, 23:12:06) 
    [Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)] on java1.6.0_25
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import os
    >>> os.getpid()
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    AttributeError: 'module' object has no attribute 'getpid'
    >>>

  8. #8
    Join Date
    Jul 2011
    Posts
    6
    Rep Power
    4

    Default

    Well, turns out the devs do know about this issue

    SourceForge jython-users

    So there's a few possibilities regarding this bug

    * zmpython is supposed to redirect everything to within /opt/zimbra, yet for some reason, 2.5.2 (and apparently not 2.5.1) uses /tmp to write stuff in, not /opt/zimbra/data/tmp
    * consequently, if something prevents Jython from executing within /tmp, this will occur
    ** SELinux (but if you've RTFM'ed, you've got that disabled)
    ** mounting /tmp noexec will do the same trick, which turns out to be my problem.

    Again, however, 2.5.1 doesn't have this problem
    Last edited by The Loeki; 07-21-2011 at 01:24 PM.

Similar Threads

  1. Replies: 12
    Last Post: 02-25-2008, 07:28 PM
  2. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 12:45 PM
  3. huge log size
    By rmvg in forum Administrators
    Replies: 5
    Last Post: 01-02-2007, 10:39 AM
  4. 3.1 on FC4 problems
    By cohnhead in forum Installation
    Replies: 8
    Last Post: 05-26-2006, 12:16 PM
  5. port 7071 not listening OS X install
    By leeimber in forum Installation
    Replies: 7
    Last Post: 03-21-2006, 10:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •