Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #41 (permalink)  
Old 03-02-2006, 01:14 PM
Zimbra Employee
 
Posts: 2,103
Default

keytool -delete -alias my_ca -keystore /opt/zimbra/java/jre/lib/security/cacerts -storepass changeit

I've updated the wiki - thanks for pointing that out.
Reply With Quote
  #42 (permalink)  
Old 03-02-2006, 01:23 PM
Senior Member
 
Posts: 54
Default

oh woe is me,

Followed instructions to the letter and get same error on "zmcertinstall mailbox..."
Code:
mail:~ # rm -rf /opt/zimbra/ssl
mail:~ # mkdir /opt/zimbra/ssl
mail:~ # chown zimbra:zimbra /opt/zimbra/ssl
mail:~ # su - zimbra
zimbra@mail:~> keytool -delete -alias my_ca -keystore /opt/zimbra/java/jre/lib/security/cacerts -storepass changeit
zimbra@mail:~> keytool -delete -alias tomcat -keystore /opt/zimbra/tomcat/conf/keystore -storepass zimbra
zimbra@mail:~> zmcreateca
** Creating CA private key

Generating a 1024 bit RSA private key
..++++++
.........................++++++
unable to write 'random state'
writing new private key to '/opt/zimbra/ssl/ssl/ca/ca.key'
-----
** Creating CA cert

Signature ok
subject=/C=US/ST=N/A/L=N/A/O=Zimbra Collaboration Suite/CN=mail.yellodot.co.za
Getting Private key
unable to write 'random state'
zimbra@mail:~> zmcreatecert
** Importing CA

Certificate was added to keystore
** Creating keystore

** Creating server cert request

Generating a 1024 bit RSA private key
.....................................................++++++
.........................++++++
unable to write 'random state'
writing new private key to '/opt/zimbra/ssl/ssl/server/server.key'
-----
** Signing cert request

Using configuration from /opt/zimbra/ssl/ssl/zmssl.cnf
Check that the request matches the signature
Signature ok
Certificate Details:
        Serial Number: 2 (0x2)
        Validity
            Not Before: Mar  2 20:19:47 2006 GMT
            Not After : Mar  2 20:19:47 2007 GMT
        Subject:
            countryName               = US
            stateOrProvinceName       = N/A
            organizationName          = Zimbra Collaboration Suite
            commonName                = mail.yellodot.co.za
        X509v3 extensions:
            X509v3 Basic Constraints:
                CA:FALSE
            Netscape Comment:
                OpenSSL Generated Certificate
            X509v3 Subject Key Identifier:
                DD:E4:8B:A6:6B:8E:65:2B:8E:F0:72:1D:BA:52:77:4E:26:C8:EC:F6
            X509v3 Authority Key Identifier:
                DirName:/C=US/ST=N/A/L=N/A/O=Zimbra Collaboration Suite/CN=mail.yellodot.co.za
                serial:00

Certificate is to be certified until Mar  2 20:19:47 2007 GMT (365 days)

Write out database with 1 new entries
Data Base Updated
unable to write 'random state'
Signature ok
subject=/C=US/ST=NA/L=NA/O=Zimbra/OU=Zimbra/CN=mail.yellodot.co.za
Getting CA Private Key
unable to write 'random state'
zimbra@mail:~> zmcertinstall mailbox ssl/ssl/server/server.crt
** Importing server cert

keytool error: java.lang.Exception: Public keys in reply and keystore don't match
zimbra@mail:~> zmcertinstall mta ssl/ssl/server/server.crt ssl/ssl/server/server.key
** Importing server cert

zimbra@mail:~>
wot up wi dat?
Reply With Quote
  #43 (permalink)  
Old 03-02-2006, 01:37 PM
Zimbra Employee
 
Posts: 2,103
Default

yet another wiki edit. You want to do zmcertinstall with the arg
ssl/ssl/server/tomcat.crt. Try doing that from where you are, without recreating evrything, first, since that may work.
Reply With Quote
  #44 (permalink)  
Old 03-02-2006, 02:05 PM
Senior Member
 
Posts: 54
Default I am so lost

Quote:
Originally Posted by marcmac
yet another wiki edit. You want to do zmcertinstall with the arg
ssl/ssl/server/tomcat.crt. Try doing that from where you are, without recreating evrything, first, since that may work.
Ok, that seemed to do the trick, thanks. Still have a stopped mailbox, tomcat won't start and still getting:
Code:
zimbra@mail:~> zmtlsctl start
ERROR: account.INVALID_ATTR_VALUE (zimbramailmode must be one of: http,https,both,mixed)
zimbra@mail:~>
, Where do I attack next?
Reply With Quote
  #45 (permalink)  
Old 03-02-2006, 02:14 PM
Zimbra Employee
 
Posts: 2,103
Default

zmtlsctl mixed
tomcat stop
tomcat start
Reply With Quote
  #46 (permalink)  
Old 03-02-2006, 02:17 PM
Senior Member
 
Posts: 54
Default

Quote:
Originally Posted by marcmac
zmtlsctl mixed
tomcat stop
tomcat start
Doesn't seem to help?
Code:
zimbra@mail:~> zmtlsctl mixed
tomzimbra@mail:~> tomcat start
zimbra@mail:~>
zimbra@mail:~> zmtlsctl mixed
zimbra@mail:~> tomcat stop
Error: tomcat not running (pid 23090), stale pid file?
zimbra@mail:~> tomcat start
zimbra@mail:~> zmcontrol status
Host mail.yellodot.co.za
        antispam                Running
        antivirus               Running
        ldap                    Running
        logger                  Running
        mailbox                 Stopped
        mta                     Running
        snmp                    Running
        spell                   Running
zimbra@mail:~> tomcat status; echo $?
1
zimbra@mail:~> zmtlsctl status; echo $?
ERROR: account.INVALID_ATTR_VALUE (zimbramailmode must be one of: http,https,both,mixed)
2
zimbra@mail:~>
Reply With Quote
  #47 (permalink)  
Old 03-02-2006, 02:51 PM
Zimbra Employee
 
Posts: 2,103
Default

Couple of things:

Every time you run zmtlsctl with a weird arg, it lists the valid arguments. http, https, mixed, both. Why do you keep giving it other commands?

Having recreated certs, anything in the logs?

Can you post the output of netstat -an?
Reply With Quote
  #48 (permalink)  
Old 03-02-2006, 11:42 PM
Senior Member
 
Posts: 54
Default

Quote:
Originally Posted by marcmac
Couple of things:

Every time you run zmtlsctl with a weird arg, it lists the valid arguments. http, https, mixed, both. Why do you keep giving it other commands?
I dunno, guess I'm stuck in a rut, narrow minded, in need of a holiday? That and an assumption that it was like the other processes where it could be started, stopped or status'd. Not sure where I got that idea from. Ah well, you gotta laugh (or cry).
Quote:
Having recreated certs, anything in the logs?
Did a reboot and here is /var/log/messages showing "zmcontrol start" followed by a tomcat start (tomcat still status 1 after start)
Code:
mail:/var/log # tail -f messages
Mar  3 08:32:01 mail /USR/SBIN/CRON[3433]: (zimbra) CMD (/opt/zimbra/bin/zmstatuslog)
Mar  3 08:32:02 mail zimbramon[3433]: 3433:info: 2006-03-03 08:32:01, STATUS: : Cannot: determine
Mar  3 08:33:00 mail /USR/SBIN/CRON[3465]: (zimbra) CMD (/opt/zimbra/bin/zmstatuslog)
Mar  3 08:33:01 mail zimbramon[3465]: 3465:info: 2006-03-03 08:33:00, STATUS: : Cannot: determine
Mar  3 08:34:00 mail /USR/SBIN/CRON[3497]: (zimbra) CMD (/opt/zimbra/bin/zmstatuslog)
Mar  3 08:34:01 mail zimbramon[3497]: 3497:info: 2006-03-03 08:34:00, STATUS: : Cannot: determine
Mar  3 08:34:28 mail sshd[3528]: Accepted keyboard-interactive/pam for root from ::ffff:1.1.1.64 port 3175 ssh2
Mar  3 08:34:48 mail sshd[3550]: Accepted keyboard-interactive/pam for root from ::ffff:1.1.1.64 port 3190 ssh2
Mar  3 08:35:00 mail /USR/SBIN/CRON[3573]: (zimbra) CMD (/opt/zimbra/bin/zmstatuslog)
Mar  3 08:35:01 mail zimbramon[3573]: 3573:info: 2006-03-03 08:35:00, STATUS: : Cannot: determine
Mar  3 08:35:13 mail su: (to zimbra) root on /dev/pts/36
Mar  3 08:35:13 mail su: pam_unix2: session started for user zimbra, service su
Mar  3 08:35:50 mail zimbramon[3743]: 3743:info: Starting services
Mar  3 08:35:51 mail sudo:   zimbra : TTY=pts/36 ; PWD=/opt/zimbra ; USER=root ; COMMAND=/opt/zimbra/openldap/libexec/slapd -l LOCAL0 -4 -u zimbra -h ldaps:// ldap://:389/ -f /opt/zimbra/conf/slapd.conf
Mar  3 08:35:51 mail slapd[3762]: @(#) $OpenLDAP: slapd 2.2.28 (Dec 16 2005 14:27:18) $         root@build-suse.liquidsys.com:/home/build/p4/main/ThirdParty/openldap/openldap-2.2.28/servers/slapd
Mar  3 08:35:51 mail slapd[3762]: /opt/zimbra/openldap/etc/openldap/schema/zimbra.schema: line 2889: bad config line (ignored)
Mar  3 08:35:51 mail slapd[3762]: bdb_db_init: Initializing BDB database
Mar  3 08:35:54 mail zimbramon[3743]: 3743:info: Starting antispam
Mar  3 08:36:00 mail /USR/SBIN/CRON[3901]: (zimbra) CMD (/opt/zimbra/bin/zmstatuslog)
Mar  3 08:36:04 mail zimbramon[3901]: 3901:info: 2006-03-03 08:36:00, STATUS: mail.yellodot.co.za: antispam: Stopped
Mar  3 08:36:04 mail zimbramon[3901]: 3901:info: 2006-03-03 08:36:00, STATUS: mail.yellodot.co.za: antivirus: Stopped
Mar  3 08:36:04 mail zimbramon[3901]: 3901:info: 2006-03-03 08:36:00, STATUS: mail.yellodot.co.za: ldap: Running
Mar  3 08:36:04 mail zimbramon[3901]: 3901:info: 2006-03-03 08:36:00, STATUS: mail.yellodot.co.za: logger: Stopped
Mar  3 08:36:04 mail zimbramon[3901]: 3901:info: 2006-03-03 08:36:00, STATUS: mail.yellodot.co.za: mailbox: Stopped
Mar  3 08:36:04 mail zimbramon[3901]: 3901:info: 2006-03-03 08:36:00, STATUS: mail.yellodot.co.za: mta: Stopped
Mar  3 08:36:04 mail zimbramon[3901]: 3901:info: 2006-03-03 08:36:00, STATUS: mail.yellodot.co.za: snmp: Stopped
Mar  3 08:36:04 mail zimbramon[3901]: 3901:info: 2006-03-03 08:36:00, STATUS: mail.yellodot.co.za: spell: Stopped
Mar  3 08:36:06 mail zimbramon[3743]: 3743:info: Starting antivirus
Mar  3 08:36:08 mail amavis[4099]: starting.  /opt/zimbra/amavisd/sbin/amavisd at mail.yellodot.co.za amavisd-new-2.3.3 (20050822), Unicode aware, LANG=C
Mar  3 08:36:08 mail amavis[4099]: user=1001, EUID: 1001 (1001);  group=, EGID: 1000 1000 51 5 (1000 1000 51 5)
Mar  3 08:36:08 mail amavis[4099]: Perl version               5.008003
Mar  3 08:36:09 mail amavis[4143]: Net::Server: Process Backgrounded
Mar  3 08:36:09 mail amavis[4143]: Net::Server: 2006/03/03-08:36:09 Amavis (type Net::Server::PreForkSimple) starting! pid(4143)
Mar  3 08:36:09 mail amavis[4143]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
Mar  3 08:36:09 mail amavis[4143]: Net::Server: Group Not Defined.  Defaulting to EGID '1000 1000 51 5'
Mar  3 08:36:09 mail amavis[4143]: Net::Server: User Not Defined.  Defaulting to EUID '1001'
Mar  3 08:36:09 mail amavis[4143]: Module Amavis::Conf        2.043
Mar  3 08:36:09 mail amavis[4143]: Module Archive::Tar        1.26
Mar  3 08:36:09 mail amavis[4143]: Module Archive::Zip        1.16
Mar  3 08:36:09 mail amavis[4143]: Module BerkeleyDB          0.27
Mar  3 08:36:09 mail amavis[4143]: Module Compress::Zlib      1.41
Mar  3 08:36:09 mail amavis[4143]: Module Convert::TNEF       0.17
Mar  3 08:36:09 mail amavis[4143]: Module Convert::UUlib      1.06
Mar  3 08:36:09 mail amavis[4143]: Module DBD::mysql          3.0002
Mar  3 08:36:09 mail amavis[4143]: Module DBI                 1.50
Mar  3 08:36:09 mail amavis[4143]: Module DB_File             1.808
Mar  3 08:36:09 mail amavis[4143]: Module MIME::Entity        5.418
Mar  3 08:36:09 mail amavis[4143]: Module MIME::Parser        5.418
Mar  3 08:36:09 mail amavis[4143]: Module MIME::Tools         5.418
Mar  3 08:36:09 mail amavis[4143]: Module Mail::Header        1.67
Mar  3 08:36:09 mail amavis[4143]: Module Mail::Internet      1.67
Mar  3 08:36:09 mail amavis[4143]: Module Mail::SpamAssassin  3.001000
Mar  3 08:36:09 mail amavis[4143]: Module Net::Cmd            2.24
Mar  3 08:36:09 mail amavis[4143]: Module Net::DNS            0.55
Mar  3 08:36:09 mail amavis[4143]: Module Net::LDAP           0.33
Mar  3 08:36:09 mail amavis[4143]: Module Net::SMTP           2.26
Mar  3 08:36:09 mail amavis[4143]: Module Net::Server         0.90
Mar  3 08:36:09 mail amavis[4143]: Module Time::HiRes         1.83
Mar  3 08:36:09 mail amavis[4143]: Module Unix::Syslog        0.99
Mar  3 08:36:09 mail amavis[4143]: Amavis::DB code    loaded
Mar  3 08:36:09 mail amavis[4143]: Amavis::Cache code loaded
Mar  3 08:36:09 mail amavis[4143]: SQL base code      NOT loaded
Mar  3 08:36:09 mail amavis[4143]: SQL::Log code      NOT loaded
Mar  3 08:36:09 mail amavis[4143]: SQL::Quarantine    NOT loaded
Mar  3 08:36:09 mail amavis[4143]: Lookup::SQL  code  NOT loaded
Mar  3 08:36:09 mail amavis[4143]: Lookup::LDAP code  loaded
Mar  3 08:36:09 mail amavis[4143]: AM.PDP prot  code  NOT loaded
Mar  3 08:36:09 mail amavis[4143]: SMTP-in prot code  loaded
Mar  3 08:36:09 mail amavis[4143]: ANTI-VIRUS code    loaded
Mar  3 08:36:09 mail amavis[4143]: ANTI-SPAM  code    loaded
Mar  3 08:36:09 mail amavis[4143]: Unpackers  code    loaded
Mar  3 08:36:09 mail amavis[4143]: Found $file            at /usr/bin/file
Mar  3 08:36:09 mail amavis[4143]: No $dspam,             not using it
Mar  3 08:36:09 mail amavis[4143]: Internal decoder for .mail
Mar  3 08:36:09 mail amavis[4143]: Internal decoder for .asc
Mar  3 08:36:09 mail amavis[4143]: Internal decoder for .uue
Mar  3 08:36:09 mail amavis[4143]: Internal decoder for .hqx
Mar  3 08:36:09 mail amavis[4143]: Internal decoder for .ync
Mar  3 08:36:09 mail amavis[4143]: No decoder for       .F    tried: unfreeze, freeze -d, melt, fcat
Mar  3 08:36:09 mail amavis[4143]: Found decoder for    .Z    at /usr/bin/uncompress
Mar  3 08:36:09 mail amavis[4143]: Internal decoder for .gz
Mar  3 08:36:09 mail amavis[4143]: Found decoder for    .bz2  at /usr/bin/bzip2 -d
Mar  3 08:36:09 mail amavis[4143]: No decoder for       .lzo  tried: lzop -d
Mar  3 08:36:09 mail amavis[4143]: Found decoder for    .rpm  at /usr/bin/rpm2cpio
Mar  3 08:36:09 mail amavis[4143]: Found decoder for    .cpio at /usr/bin/cpio
Mar  3 08:36:09 mail amavis[4143]: Found decoder for    .tar  at /usr/bin/cpio
Mar  3 08:36:09 mail amavis[4143]: Found decoder for    .deb  at /usr/bin/ar
Mar  3 08:36:09 mail amavis[4143]: Internal decoder for .zip
Mar  3 08:36:09 mail amavis[4143]: Found decoder for    .rar  at /usr/bin/unrar
Mar  3 08:36:09 mail amavis[4143]: No decoder for       .arj  tried: arj, unarj
Mar  3 08:36:09 mail amavis[4143]: No decoder for       .arc  tried: nomarch, arc
Mar  3 08:36:09 mail amavis[4143]: No decoder for       .zoo  tried: zoo
Mar  3 08:36:09 mail amavis[4143]: No decoder for       .lha  tried: lha
Mar  3 08:36:09 mail amavis[4143]: Found decoder for    .cab  at /usr/bin/cabextract
Mar  3 08:36:09 mail amavis[4143]: No decoder for       .tnef tried: tnef
Mar  3 08:36:09 mail amavis[4143]: Internal decoder for .tnef
Mar  3 08:36:09 mail amavis[4143]: Found decoder for    .exe  at /usr/bin/unrar
Mar  3 08:36:09 mail amavis[4143]: Using internal av scanner code for (primary) ClamAV-clamd
Mar  3 08:36:09 mail amavis[4143]: Creating db in /opt/zimbra/amavisd/db/; BerkeleyDB 0.27, libdb 4.2
Mar  3 08:36:10 mail amavis[4143]: SpamControl: initializing Mail::SpamAssassin
Mar  3 08:36:11 mail amavis[4143]: SpamControl: done
Mar  3 08:36:16 mail zimbramon[3743]: 3743:info: Starting logger
Mar  3 08:36:16 mail zimbramon[3743]: 3743:info: Starting mailbox
Mar  3 08:36:16 mail clamd[4253]: Daemon started.
Mar  3 08:36:16 mail clamd[4253]: clamd daemon 0.87.1 (OS: linux-gnu, ARCH: i386, CPU: i686)
Mar  3 08:36:16 mail clamd[4253]: Log file size limited to 20971520 bytes.
Mar  3 08:36:16 mail clamd[4253]: Reading databases from /opt/zimbra/clamav/db
Mar  3 08:36:17 mail clamd[4253]: Protecting against 34867 viruses.
Mar  3 08:36:17 mail clamd[4319]: Bound to port 3310
Mar  3 08:36:17 mail clamd[4319]: Setting connection queue length to 15
Mar  3 08:36:17 mail clamd[4319]: Archive: Archived file size limit set to 104857600 bytes.
Mar  3 08:36:17 mail clamd[4319]: Archive: Recursion level limit set to 8.
Mar  3 08:36:17 mail clamd[4319]: Archive: Files limit set to 1000.
Mar  3 08:36:17 mail clamd[4319]: Archive: Compression ratio limit set to 250.
Mar  3 08:36:17 mail clamd[4319]: Archive support enabled.
Mar  3 08:36:17 mail clamd[4319]: Archive: RAR support disabled.
Mar  3 08:36:17 mail clamd[4319]: Portable Executable support enabled.
Mar  3 08:36:17 mail clamd[4319]: Mail files support enabled.
Mar  3 08:36:17 mail clamd[4319]: OLE2 support enabled.
Mar  3 08:36:17 mail clamd[4319]: HTML support enabled.
Mar  3 08:36:17 mail clamd[4319]: Self checking every 1800 seconds.
Mar  3 08:36:35 mail sudo:   zimbra : TTY=pts/36 ; PWD=/opt/zimbra ; USER=root ; COMMAND=/opt/zimbra/libexec/zmtomcatstart -Xms598m -Xmx598m -client -XX:NewRatio=2
Mar  3 08:36:35 mail zimbramon[3743]: 3743:info: Starting mta
Mar  3 08:36:46 mail sudo:   zimbra : TTY=pts/36 ; PWD=/opt/zimbra ; USER=root ; COMMAND=/opt/zimbra/postfix-2.2.5/sbin/postsuper -r ALL
Mar  3 08:36:46 mail sudo:   zimbra : TTY=pts/36 ; PWD=/opt/zimbra ; USER=root ; COMMAND=/opt/zimbra/postfix-2.2.5/sbin/postalias /etc/aliases
Mar  3 08:36:47 mail sudo:   zimbra : TTY=pts/36 ; PWD=/opt/zimbra ; USER=root ; COMMAND=/opt/zimbra/postfix-2.2.5/sbin/postfix start norewrite
Mar  3 08:36:47 mail saslauthd: auth_zimbra_init: zimbra_cert_check is off!
Mar  3 08:36:47 mail saslauthd[4864]: detach_tty      : master pid is: 4864
Mar  3 08:36:47 mail saslauthd[4864]: ipc_init        : listening on socket: /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/state/mux
Mar  3 08:36:47 mail zimbramon[3743]: 3743:info: Starting snmp
Mar  3 08:36:47 mail zimbramon[3743]: 3743:info: Starting spell
Mar  3 08:37:00 mail /USR/SBIN/CRON[4890]: (zimbra) CMD (/opt/zimbra/bin/zmstatuslog)
Mar  3 08:37:01 mail zimbramon[4890]: 4890:info: 2006-03-03 08:37:00, STATUS: mail.yellodot.co.za: antispam: Running
Mar  3 08:37:01 mail zimbramon[4890]: 4890:info: 2006-03-03 08:37:00, STATUS: mail.yellodot.co.za: antivirus: Running
Mar  3 08:37:01 mail zimbramon[4890]: 4890:info: 2006-03-03 08:37:00, STATUS: mail.yellodot.co.za: ldap: Running
Mar  3 08:37:01 mail zimbramon[4890]: 4890:info: 2006-03-03 08:37:00, STATUS: mail.yellodot.co.za: logger: Running
Mar  3 08:37:01 mail zimbramon[4890]: 4890:info: 2006-03-03 08:37:00, STATUS: mail.yellodot.co.za: mailbox: Stopped
Mar  3 08:37:01 mail zimbramon[4890]: 4890:info: 2006-03-03 08:37:00, STATUS: mail.yellodot.co.za: mta: Running
Mar  3 08:37:01 mail zimbramon[4890]: 4890:info: 2006-03-03 08:37:00, STATUS: mail.yellodot.co.za: snmp: Running
Mar  3 08:37:01 mail zimbramon[4890]: 4890:info: 2006-03-03 08:37:00, STATUS: mail.yellodot.co.za: spell: Running
Mar  3 08:37:53 mail sudo:   zimbra : TTY=pts/36 ; PWD=/opt/zimbra ; USER=root ; COMMAND=/opt/zimbra/libexec/zmtomcatstart -Xms598m -Xmx598m -client -XX:NewRatio=2
Mar  3 08:38:00 mail /USR/SBIN/CRON[5404]: (zimbra) CMD (/opt/zimbra/bin/zmstatuslog)
Mar  3 08:38:01 mail zimbramon[5404]: 5404:info: 2006-03-03 08:38:00, STATUS: mail.yellodot.co.za: antispam: Running
Mar  3 08:38:01 mail zimbramon[5404]: 5404:info: 2006-03-03 08:38:00, STATUS: mail.yellodot.co.za: antivirus: Running
Mar  3 08:38:01 mail zimbramon[5404]: 5404:info: 2006-03-03 08:38:00, STATUS: mail.yellodot.co.za: ldap: Running
Mar  3 08:38:01 mail zimbramon[5404]: 5404:info: 2006-03-03 08:38:00, STATUS: mail.yellodot.co.za: logger: Running
Mar  3 08:38:01 mail zimbramon[5404]: 5404:info: 2006-03-03 08:38:00, STATUS: mail.yellodot.co.za: mailbox: Stopped
Mar  3 08:38:01 mail zimbramon[5404]: 5404:info: 2006-03-03 08:38:00, STATUS: mail.yellodot.co.za: mta: Running
Mar  3 08:38:01 mail zimbramon[5404]: 5404:info: 2006-03-03 08:38:00, STATUS: mail.yellodot.co.za: snmp: Running
Mar  3 08:38:01 mail zimbramon[5404]: 5404:info: 2006-03-03 08:38:00, STATUS: mail.yellodot.co.za: spell: Running
Reply With Quote
  #49 (permalink)  
Old 03-02-2006, 11:43 PM
Senior Member
 
Posts: 54
Default

Quote:
Can you post the output of netstat -an?
Code:
zimbra@mail:~> netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:389             0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:10024         0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:5801            0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:7306          0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:7307          0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:5901            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:3310            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:631             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:636             0.0.0.0:*               LISTEN
tcp        0      0 :::7780                 :::*                    LISTEN
tcp        0      0 :::22                   :::*                    LISTEN
tcp        0      0 192.168.250.189:33062   192.168.250.189:389     TIME_WAIT
tcp        0      0 192.168.250.189:33059   192.168.250.189:389     TIME_WAIT
tcp        0      0 192.168.250.189:33068   192.168.250.189:389     TIME_WAIT
tcp        0      0 192.168.250.189:33071   192.168.250.189:389     TIME_WAIT
tcp        0      0 192.168.250.189:33065   192.168.250.189:389     TIME_WAIT
tcp        0      0 192.168.250.189:33077   192.168.250.189:389     TIME_WAIT
tcp        0      0 192.168.250.189:33074   192.168.250.189:389     TIME_WAIT
tcp        0      0 ::1:33058               ::1:33057               TIME_WAIT
tcp        0      0 ::1:33061               ::1:33060               TIME_WAIT
tcp        0      0 ::1:33064               ::1:33063               TIME_WAIT
tcp        0      0 ::1:33067               ::1:33066               TIME_WAIT
tcp        0      0 ::1:33070               ::1:33069               TIME_WAIT
tcp        0      0 ::1:33073               ::1:33072               TIME_WAIT
tcp        0      0 ::1:33076               ::1:33075               TIME_WAIT
tcp        0      0 192.168.250.189:22      1.1.1.64:3190           ESTABLISHED
tcp        0    792 192.168.250.189:22      1.1.1.64:3175           ESTABLISHED
udp        0      0 0.0.0.0:177             0.0.0.0:*
udp        0      0 0.0.0.0:111             0.0.0.0:*
udp        0      0 0.0.0.0:631             0.0.0.0:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ACC ]     STREAM     LISTENING     4763   /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     8031   private/rewrite
unix  2      [ ACC ]     STREAM     LISTENING     8035   private/bounce
unix  2      [ ACC ]     STREAM     LISTENING     8039   private/defer
unix  2      [ ACC ]     STREAM     LISTENING     8043   private/trace
unix  2      [ ACC ]     STREAM     LISTENING     8047   private/verify
unix  2      [ ACC ]     STREAM     LISTENING     8051   public/flush
unix  2      [ ACC ]     STREAM     LISTENING     8055   private/proxymap
unix  2      [ ACC ]     STREAM     LISTENING     8059   private/smtp
unix  2      [ ACC ]     STREAM     LISTENING     8020   public/cleanup
unix  2      [ ACC ]     STREAM     LISTENING     8063   private/relay
unix  2      [ ACC ]     STREAM     LISTENING     8067   public/showq
unix  2      [ ACC ]     STREAM     LISTENING     8071   private/error
unix  2      [ ACC ]     STREAM     LISTENING     8075   private/discard
unix  2      [ ACC ]     STREAM     LISTENING     8079   private/local
unix  2      [ ACC ]     STREAM     LISTENING     8083   private/virtual
unix  2      [ ACC ]     STREAM     LISTENING     8087   private/lmtp
unix  2      [ ACC ]     STREAM     LISTENING     8091   private/anvil
unix  2      [ ACC ]     STREAM     LISTENING     8095   private/scache
unix  2      [ ACC ]     STREAM     LISTENING     3186   /var/run/.resmgr_socket
unix  2      [ ACC ]     STREAM     LISTENING     8099   private/maildrop
unix  2      [ ACC ]     STREAM     LISTENING     8103   private/old-cyrus
unix  2      [ ACC ]     STREAM     LISTENING     8107   private/cyrus
unix  2      [ ACC ]     STREAM     LISTENING     8111   private/uucp
unix  2      [ ACC ]     STREAM     LISTENING     8115   private/ifmail
unix  2      [ ACC ]     STREAM     LISTENING     8119   private/bsmtp
unix  2      [ ACC ]     STREAM     LISTENING     8125   private/smtp-amavis
unix  25     [ ]         DGRAM                    3085   /dev/log
unix  2      [ ]         DGRAM                    3087   /var/lib/ntp/dev/log
unix  2      [ ACC ]     STREAM     LISTENING     3782   /var/run/powersave_socket
unix  2      [ ACC ]     STREAM     LISTENING     4310   /var/run/.nscd_socket
unix  2      [ ACC ]     STREAM     LISTENING     6835   /opt/zimbra/logger/db/mysql.sock
unix  2      [ ACC ]     STREAM     LISTENING     8169   /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/state/mux
unix  2      [ ACC ]     STREAM     LISTENING     7446   /opt/zimbra/db/mysql.sock
unix  2      [ ACC ]     STREAM     LISTENING     8027   private/tlsmgr
unix  2      [ ]         DGRAM                    8350
unix  2      [ ]         DGRAM                    8164
unix  2      [ ]         DGRAM                    8150
unix  2      [ ]         DGRAM                    8135
unix  3      [ ]         STREAM     CONNECTED     8132
unix  3      [ ]         STREAM     CONNECTED     8131
unix  3      [ ]         STREAM     CONNECTED     8128
unix  3      [ ]         STREAM     CONNECTED     8127
unix  3      [ ]         STREAM     CONNECTED     8122
unix  3      [ ]         STREAM     CONNECTED     8121
unix  3      [ ]         STREAM     CONNECTED     8118
unix  3      [ ]         STREAM     CONNECTED     8117
unix  3      [ ]         STREAM     CONNECTED     8114
unix  3      [ ]         STREAM     CONNECTED     8113
unix  3      [ ]         STREAM     CONNECTED     8110
unix  3      [ ]         STREAM     CONNECTED     8109
unix  3      [ ]         STREAM     CONNECTED     8106
unix  3      [ ]         STREAM     CONNECTED     8105
unix  3      [ ]         STREAM     CONNECTED     8102
unix  3      [ ]         STREAM     CONNECTED     8101
unix  3      [ ]         STREAM     CONNECTED     8098
unix  3      [ ]         STREAM     CONNECTED     8097
unix  3      [ ]         STREAM     CONNECTED     8094
unix  3      [ ]         STREAM     CONNECTED     8093
unix  3      [ ]         STREAM     CONNECTED     8090
unix  3      [ ]         STREAM     CONNECTED     8089
unix  3      [ ]         STREAM     CONNECTED     8086
unix  3      [ ]         STREAM     CONNECTED     8085
unix  3      [ ]         STREAM     CONNECTED     8082
unix  3      [ ]         STREAM     CONNECTED     8081
unix  3      [ ]         STREAM     CONNECTED     8078
unix  3      [ ]         STREAM     CONNECTED     8077
unix  3      [ ]         STREAM     CONNECTED     8074
unix  3      [ ]         STREAM     CONNECTED     8073
unix  3      [ ]         STREAM     CONNECTED     8070
unix  3      [ ]         STREAM     CONNECTED     8069
unix  3      [ ]         STREAM     CONNECTED     8066
unix  3      [ ]         STREAM     CONNECTED     8065
unix  3      [ ]         STREAM     CONNECTED     8062
unix  3      [ ]         STREAM     CONNECTED     8061
unix  3      [ ]         STREAM     CONNECTED     8058
unix  3      [ ]         STREAM     CONNECTED     8057
unix  3      [ ]         STREAM     CONNECTED     8054
unix  3      [ ]         STREAM     CONNECTED     8053
unix  3      [ ]         STREAM     CONNECTED     8050
unix  3      [ ]         STREAM     CONNECTED     8049
unix  3      [ ]         STREAM     CONNECTED     8046
unix  3      [ ]         STREAM     CONNECTED     8045
unix  3      [ ]         STREAM     CONNECTED     8042
unix  3      [ ]         STREAM     CONNECTED     8041
unix  3      [ ]         STREAM     CONNECTED     8038
unix  3      [ ]         STREAM     CONNECTED     8037
unix  3      [ ]         STREAM     CONNECTED     8034
unix  3      [ ]         STREAM     CONNECTED     8033
unix  3      [ ]         STREAM     CONNECTED     8030
unix  3      [ ]         STREAM     CONNECTED     8029
unix  3      [ ]         STREAM     CONNECTED     8026
unix  3      [ ]         STREAM     CONNECTED     8025
unix  3      [ ]         STREAM     CONNECTED     8023
unix  3      [ ]         STREAM     CONNECTED     8022
unix  3      [ ]         STREAM     CONNECTED     8019
unix  3      [ ]         STREAM     CONNECTED     8018
unix  3      [ ]         STREAM     CONNECTED     8016
unix  3      [ ]         STREAM     CONNECTED     8015
unix  2      [ ]         DGRAM                    7995
unix  3      [ ]         STREAM     CONNECTED     6906   /opt/zimbra/logger/db/mysql.sock
unix  3      [ ]         STREAM     CONNECTED     6905
unix  2      [ ]         DGRAM                    6778
unix  2      [ ]         DGRAM                    6621
unix  2      [ ]         DGRAM                    6620
unix  2      [ ]         DGRAM                    6619
unix  2      [ ]         DGRAM                    6618
unix  2      [ ]         DGRAM                    6617
unix  2      [ ]         DGRAM                    6616
unix  2      [ ]         DGRAM                    6615
unix  2      [ ]         DGRAM                    6614
unix  2      [ ]         DGRAM                    6612
unix  2      [ ]         DGRAM                    6611
unix  2      [ ]         DGRAM                    6541
unix  2      [ ]         DGRAM                    5949
unix  2      [ ]         DGRAM                    5664
unix  3      [ ]         STREAM     CONNECTED     4882   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     4881
unix  7      [ ]         STREAM     CONNECTED     4840   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     4768
unix  2      [ ]         DGRAM                    4298
unix  2      [ ]         DGRAM                    4294
unix  2      [ ]         DGRAM                    4258
unix  2      [ ]         DGRAM                    3781
zimbra@mail:~>
Reply With Quote
  #50 (permalink)  
Old 03-03-2006, 03:49 AM
Senior Member
 
Posts: 54
Default Hmm...

Found this in /opt/zimbra/log/zimbra.log
Code:
2006-03-03 12:44:37,917 FATAL [main] [] system - Config initialization failed
com.zimbra.cs.service.ServiceException: system failure: getting database connection
	at com.zimbra.cs.service.ServiceException.FAILURE(ServiceException.java:131)
	at com.zimbra.cs.db.DbPool.getConnection(DbPool.java:283)
	at com.zimbra.cs.util.Config.init(Config.java:69)
	at com.zimbra.cs.util.Config.initConfig(Config.java:96)
	at com.zimbra.cs.util.Config.getString(Config.java:108)
	at com.zimbra.cs.db.Versions.checkDBVersion(Versions.java:87)
	at com.zimbra.cs.db.Versions.checkVersions(Versions.java:82)
	at com.zimbra.cs.util.Zimbra.startup(Zimbra.java:89)
	at com.zimbra.soap.SoapServlet.init(SoapServlet.java:118)
	at javax.servlet.GenericServlet.init(GenericServlet.java:211)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:900)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3823)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4087)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:909)
	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:872)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
	at org.apache.catalina.core.StandardService.start(StandardService.java:450)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.sql.SQLException: Server connection failure during transaction. Due to underlying exception: 'java.sql.SQLException: Access denied for user 'zimbra'@'localhost' (using password: YES)'.

** BEGIN NESTED EXCEPTION ** 

java.sql.SQLException
MESSAGE: Access denied for user 'zimbra'@'localhost' (using password: YES)

STACKTRACE:

java.sql.SQLException: Access denied for user 'zimbra'@'localhost' (using password: YES)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:771)
	at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3649)
	at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1176)
	at com.mysql.jdbc.Connection.createNewIO(Connection.java:2683)
	at com.mysql.jdbc.Connection.(Connection.java:1485)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
	at java.sql.DriverManager.getConnection(DriverManager.java:525)
	at java.sql.DriverManager.getConnection(DriverManager.java:140)
	at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:97)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:300)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:816)
	at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:171)
	at java.sql.DriverManager.getConnection(DriverManager.java:525)
	at java.sql.DriverManager.getConnection(DriverManager.java:193)
	at com.zimbra.cs.db.DbPool.getConnection(DbPool.java:274)
	at com.zimbra.cs.util.Config.init(Config.java:69)
	at com.zimbra.cs.util.Config.initConfig(Config.java:96)
	at com.zimbra.cs.util.Config.getString(Config.java:108)
	at com.zimbra.cs.db.Versions.checkDBVersion(Versions.java:87)
	at com.zimbra.cs.db.Versions.checkVersions(Versions.java:82)
	at com.zimbra.cs.util.Zimbra.startup(Zimbra.java:89)
	at com.zimbra.soap.SoapServlet.init(SoapServlet.java:118)
	at javax.servlet.GenericServlet.init(GenericServlet.java:211)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:900)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3823)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4087)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:909)
	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:872)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
	at org.apache.catalina.core.StandardService.start(StandardService.java:450)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)


** END NESTED EXCEPTION **


Attempted reconnect 3 times. Giving up.
	at com.mysql.jdbc.Connection.createNewIO(Connection.java:2749)
	at com.mysql.jdbc.Connection.(Connection.java:1485)
	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
	at java.sql.DriverManager.getConnection(DriverManager.java:525)
	at java.sql.DriverManager.getConnection(DriverManager.java:140)
	at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:97)
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:300)
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:816)
	at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:171)
	at java.sql.DriverManager.getConnection(DriverManager.java:525)
	at java.sql.DriverManager.getConnection(DriverManager.java:193)
	at com.zimbra.cs.db.DbPool.getConnection(DbPool.java:274)
	... 34 more
I saw you asking for this in another thread:
Code:
zimbra@mail:~> java -version
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)
zimbra@mail:~>
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.