Results 1 to 4 of 4

Thread: zmconfigd startup: Error creating listener socket, Address already in use

  1. #1
    Join Date
    May 2010
    Posts
    7
    Rep Power
    5

    Default zmconfigd startup: Error creating listener socket, Address already in use

    hi,

    I'm playing since 2 days to startup right a clean zimbra installation. It is working with emails, but zmconfigd is not working, it fails to start up and try to start in a minute loop.

    this is the log:

    (version: Release 7.1.1_GA_3196.UBUNTU10_64 UBUNTU10_64 FOSS edition.)
    =========================

    zmconfigd WARNING [28235-rewrites] Rewrote: /opt/zimbra/conf/salocal.cf with mode 440 (0.03 sec)
    zmconfigd WARNING [28235-MainThread] All rewrite threads completed in 2.70 sec
    zmconfigd WARNING [28235-MainThread] All restarts completed in 0.00 sec
    zmconfigd CRITICAL [28235-MainThread] Error creating listener socket on port 7171: (98, 'Address already in use')
    zmconfigd ERROR [28235-MainThread] Service unavailable ((111, 'Connection refused'))
    zmconfigd CRITICAL [28235-MainThread] Can't create listener socket: (98, 'Address already in use')
    zmconfigd CRITICAL [28235-MainThread] zmconfigd: shutting down
    Failed to start

    =========================

    Normally the error "Address already in use" comes because the port is locked for a short time, i tried different ports and checked double with netstats -anp , but the port should have been free, i didn't find it open. allow_reuse_address should also be some kind of workaround for this.


    on /opt/zimbra/libexec/zmconfigd:104 zimbra want to build the server with the socket:

    =========================
    def requestListener():

    listener_params = ("localhost",int(state.State.mState.localconfig["zmmtaconfig_listen_port"]))
    try:
    server = listener.ThreadedStreamServer(listener_params, listener.ThreadedRequestHandler)
    except socket.error, e:
    Log.logMsg (1, "Error creating listener socket on port %s: %s" % (state.State.mState.localconfig["zmmtaconfig_listen_port"],str(e)))
    if contactService("STATUS"):
    Log.logMsg (0, "Can't create listener socket: %s" % str(e))
    else:
    Log.logMsg (0, "zmconfigd service already running, exiting")

    =========================

    The Server itself is contained in:
    on /opt/zimbra/zimbramon/pylibs/listener.py

    =========================

    class ThreadedStreamServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer):
    allow_reuse_address = True

    def shutdown(self):
    Log.logMsg(5, "Removing socket %s" % self.server_address)

    =========================

    I tried to run the build a testing file to test listener.py, and there it didn't made the error ( I run it under the user zimbra):

    test.py
    =========================
    import socket
    import SocketServer

    class ThreadedRequestHandler(SocketServer.BaseRequestHan dler):

    def handle(self):
    pass

    class ThreadedStreamServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer):
    allow_reuse_address = True

    if __name__ == "__main__":
    # Port 0 means to select an arbitrary unused port

    try:
    listener_params = ("localhost",7171)
    server = ThreadedStreamServer(listener_params, ThreadedRequestHandler)
    except socket.error, e:
    print "Error creating listener socket on port 7171: %s" % str(e)
    if contactService("STATUS"):
    print "Can't create listener socket: %s" % str(e)
    else:
    print "zmconfigd service already running, exiting"

    #HOST, PORT = "localhost", 0

    #server = ThreadedTCPServer((HOST, PORT), ThreadedTCPRequestHandler)
    ip, port = server.server_address


    server.shutdown()
    =========================

    Has someone an idea where I stuck? How to debug it?

    I'm grateful for any help!

    thank you,

    gunther

    (the issues was discussed here:

    http://www.zimbra.com/forums/adminis...w-proceed.html
    , with a backup it started to work again)
    Last edited by gunthor; 08-10-2011 at 06:28 AM.

  2. #2
    Join Date
    May 2010
    Posts
    7
    Rep Power
    5

    Default ... IPv not Supported

    ...deactivating the IPv6 Adresses solved this issue.

  3. #3
    Join Date
    Jan 2013
    Posts
    7
    Rep Power
    2

    Default

    how did you deactivate the IPv6 Address?

  4. #4
    Join Date
    Mar 2006
    Location
    Greenwood, IN
    Posts
    90
    Rep Power
    9

    Default

    Have a look at zimbraIPMode in server and global config.
    Code:
    zmprov gs `zmhostname` zimbraIPMode
    zmprov gcf zimbraIPMode
    It can be set to ipv4 to disable ipv6.

    Code:
    zmprov mcf zimbraIPMode ipv4

Similar Threads

  1. [SOLVED] zmconfigd not running
    By ben1967 in forum Administrators
    Replies: 49
    Last Post: 02-21-2013, 12:55 AM
  2. [SOLVED] zmconfigd is not running.
    By lsikstrom in forum Administrators
    Replies: 30
    Last Post: 06-12-2012, 03:09 AM
  3. zmconfigd logs - "criticals" shown
    By billinvegas in forum Administrators
    Replies: 5
    Last Post: 08-02-2011, 01:50 PM
  4. zmconfigd stopped - how to proceed?
    By billinvegas in forum Administrators
    Replies: 7
    Last Post: 07-16-2011, 10:47 PM
  5. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 01:42 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
  •