Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: Tomcat +Postfix not running

  1. #1
    ricardon is offline Intermediate Member
    Join Date
    Aug 2006
    Posts
    20
    Rep Power
    9

    Default tomcat and postfix not running

    I have run the zimbra install script on a FC4 box pointing everything to localhost.localdomain.

    The box is hosting 6 domains and I gather I can add these once it is up and going. However it is falling over. When installed zmcontrol reports

    Host localhost.localdomain
    antispam Running
    antivirus Stopped
    zmclamdctl is not running
    ldap Running
    logger Running
    mailbox Stopped
    tomcat is not running
    mta Stopped
    postfix is not running
    zmsaslauthdctl is not running
    snmp Running
    spell Running

    nano /opt/zimbra/postfix/conf/main.cf

    content_filter = smtp-amavis:[127.0.0.1]:10024
    myhostname = localhost.localdomain
    recipient_delimiter =
    smtpd_sasl_auth_enable =
    smtpd_tls_auth_only =
    smtpd_use_tls = yes
    disable_dns_lookups =
    message_size_limit =
    relayhost =

    The messagesizelimit reports as a error but any value entered seems to be wiped.


    [zimbra@athlon root]$ zmcontrol start
    Host localhost.localdomain
    Starting logger...Done.
    Starting mailbox...Done.
    Starting antispam...Done.
    Starting antivirus...Done.
    Starting snmp...Done.
    Starting spell...Done.
    Starting mta...FAILED
    postmap: fatal: bad numerical configuration: message_size_limit =
    postalias: fatal: bad numerical configuration: message_size_limit =
    postfix failed to start
    saslauthd[2803] :set_auth_mech : failed to initialize mechanism zimbra
    zmsaslauthdctl failed to start

    Though I have not done so this time. ( I have run the install script many times over the last few days) When I enter zmcontrol stop any further attempts to enter zmcontrol start result in a total failure and zmcontrol status tells me it is unable to determine the status!

    As for postfix failing with 'zmsaslauthdctl failed to start'. What to do?

    Thanks any help is much appreciated.

  2. #2
    ricardon is offline Intermediate Member
    Join Date
    Aug 2006
    Posts
    20
    Rep Power
    9

    Default Tomcat +Postfix not running

    [zimbra@athlon root]$ zmcontrol start
    Host localhost.localdomain
    Starting logger...Done.
    Starting mailbox...Done.
    Starting antispam...Done.
    Starting antivirus...Done.
    Starting snmp...Done.
    Starting spell...Done.
    Starting mta...FAILED
    postmap: fatal: bad numerical configuration: message_size_limit =
    postalias: fatal: bad numerical configuration: message_size_limit =
    postfix failed to start
    saslauthd[2803] :set_auth_mech : failed to initialize mechanism zimbra
    zmsaslauthdctl failed to start

    (Sorry if this comes as a cross post. Was not intended to enter twice)

  3. #3
    ricardon is offline Intermediate Member
    Join Date
    Aug 2006
    Posts
    20
    Rep Power
    9

    Question More details on bad cats

    It appears mysqld is a problem. So I stopped it.
    But my system needs mysql .... still with it off for the moment.....
    I try to start zmmailboxctl.
    ... it still suggests mysqld it is running? (see below)
    Also the command to start tomcat seems to complete but the status then confirms that the beastie is definitely of the Cheshire breed.


    [zimbra@athlon root]$ zmmailboxctl start
    A mysqld process already exists
    [zimbra@athlon root]$ tomcat start
    [zimbra@athlon root]$ zmcontrol status
    Host localhost.localdomain
    antispam Running
    antivirus Stopped
    zmclamdctl is not running
    ldap Running
    logger Running
    mailbox Stopped
    tomcat is not running
    mta Stopped
    postfix is not running
    zmsaslauthdctl is not running
    snmp Running
    spell Running


    or checking the cats tail....



    Aug 15, 2006 12:29:47 PM org.apache.catalina.startup.Catalina load
    SEVERE: Catalina.start
    LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:80
    at org.apache.catalina.connector.Connector.initialize (Connector.java:1018)
    at org.apache.catalina.core.StandardService.initializ e(StandardService.java:580)
    at org.apache.catalina.core.StandardServer.initialize (StandardServer.java:782)
    at org.apache.catalina.startup.Catalina.load(Catalina .java:503)
    at org.apache.catalina.startup.Catalina.load(Catalina .java:523)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.load(Bootstr ap.java:247)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:405)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.zimbra.cs.launcher.TomcatLauncher.start(Tomcat Launcher.java:52)
    at com.zimbra.cs.launcher.TomcatLauncher.main(TomcatL auncher.java:74)
    Aug 15, 2006 12:29:47 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1067 ms
    Aug 15, 2006 12:29:47 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Aug 15, 2006 12:29:47 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.15
    Aug 15, 2006 12:29:47 PM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Aug 15, 2006 12:29:48 PM org.apache.catalina.startup.HostConfig deployDescriptor
    WARNING: A docBase /opt/zimbra/apache-tomcat-5.5.15/webapps/zimbra inside the host appBase has been specified, and will be ignored
    log4j:WARN No appenders could be found for logger (org.apache.catalina.session.ManagerBase).
    log4j:WARN Please initialize the log4j system properly.
    Zimbra server process is running as root, changing to user=zimbra uid=517 gid=508
    Zimbra server process, after change, is running with uid=517 euid=517 gid=508 egid=508


    Can someone tell me how to change the port from 80? and how to init the log4j? As I gather these are the problems.

    Also note to developers: Can the install script be extended to pick up these issues? If something is running that will conflict then the install should, imho, halt until the conflict is resolved. Call it newbie-itis but this has been about 9hrs on the learning curve and I don't think I am even getting close yet. Once I have it running on myredhat box I then have to install on a CENTOS4. So I gather there are a whole lot of new issues to cover on that distro.

  4. #4
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    Try setting your max attachment size in the admin ui

  5. #5
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,581
    Rep Power
    57

    Default

    I assume that as port 80 appears to be in use that you have an instance of Apache running, mysql shouldn't cause you any problems as the Zimbra instance uses non-standard ports. When you do a clean install of Zimbra it will tell you if there are port conflicts and allow you to change them. Did that happen and is there anything in the install logs?

    Have you also set the /etc/hosts file correctly as per the Zimbra documentation?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    ricardon is offline Intermediate Member
    Join Date
    Aug 2006
    Posts
    20
    Rep Power
    9

    Default conflicts

    Thanks Bill, the installer did mention several port conflicts but did not seem to offer the option to enter ammended values. ( At least I have not picked up on it). I do run apache /mysql/php/postgresql as core applications.
    What should I change the 80 to? Do I have to re-install or can it be done via the command interface. What about the invalid message size quoted in the first post.

    The /etc/hosts file as as follows. I think it is ok.

    [root@athlon ~]# cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    10.1.1.6 athlon.localdomain athlon
    yyy.aaa.nnn.xxx athlon.xnx.ath.cx athlon

  7. #7
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,581
    Rep Power
    57

    Default

    You should see a set of options at the end of the install routine (just before you commit the install) that gives you the option to change things like the domain name etc. have a look in the quick-start guide on P17, that shows you the menu.

    As this is a new install I'd recommend doing an uninstall first with './install.sh -u' then running the install again, that will get rid of all of the zimbra files.

    The only problem with changing the port that zimbra uses is that you will have to enter ':8080' (or whatever you choose) appended to the url. There is a couple of posts that describe how to get apache to re-direct a request for http://server/zimbra to the new port you use, have a search for them. I guess as you already run apache that you know how to do that already.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    ricardon is offline Intermediate Member
    Join Date
    Aug 2006
    Posts
    20
    Rep Power
    9

    Default Admin Interface not accessible

    ZMControl new reports all services running but attempt to access the GUI fail.

    https://myserver.com:7071/zimbraAdmin

    gets no response from the server.

    I do have apache running serving several websites so I know it is working.


    The problems have so far all been config or comprehension issues on my part so I expect this one is as well.

    Issues resolved so far :
    1) Be careful to discern difference between domain and host. Zimbra detects the hostname and reports this as the domain. If you do not correct installation fails.
    2) Port conflicts are fundamental.I ignored the warning and it fails. Errors reported at runtime will lead you a merry chase. check for port conflicts.
    3) Ports needing to be changed are not highlighted with the **** as are other errors.

  9. #9
    ricardon is offline Intermediate Member
    Join Date
    Aug 2006
    Posts
    20
    Rep Power
    9

    Default Problems still there

    su zimbra


    [zimbra@athlon root]$ zmprov /h
    [] INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
    [] INFO: Retrying request
    [] INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
    [] INFO: Retrying request
    [] INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
    [] INFO: Retrying request
    ERROR: zclient.IO_ERROR (invoke Connection refused, server: localhost) (cause: java.net.ConnectException Connection refused)
    [zimbra@athlon root]$

    so zmprov is also not working.

    testing zmcontrol again


    [zimbra@athlon root]$ zmcontrol status
    Host idddd.com
    antispam Running
    antivirus Running
    ldap Running
    logger Running
    mailbox Running
    mta Running
    snmp Running
    [zimbra@athlon root]$

    shows all services running.

    It is really annoying. zmcontrol is the only app that is working how do I debug this?

  10. #10
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    We really need to take a look at the zimbra log, because it will give us more info.

    You mentioned that you had several "other sites" operating with apache. Do you have another instance of apache running?

    EDIT: the log that we need is /var/log/zimbra.log

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Tomcat, Java VM Problems - RAM related? Help
    By Mo_Hong in forum Administrators
    Replies: 3
    Last Post: 03-28-2007, 02:00 PM
  2. tomcat not running / postfix/postqueue errors
    By seravitae in forum Installation
    Replies: 7
    Last Post: 03-10-2007, 08:18 PM
  3. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  4. Why is Tomcat shuting down ever nights?
    By trapanator in forum Administrators
    Replies: 2
    Last Post: 11-30-2006, 11:57 PM
  5. Trouble sending mail from Outlook
    By czaveri in forum Users
    Replies: 15
    Last Post: 07-24-2006, 11:01 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
  •