hey all, has anypne run into this error after the installation and the service isbeing started
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.C ommunicationException tadr0s.com:389)
Printable View
hey all, has anypne run into this error after the installation and the service isbeing started
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.C ommunicationException tadr0s.com:389)
Yes is means LDAP is not running. What Linux are you running? Are there any errors in your install log? It's in the /tmp dir.
im running centos 4 and the install log shows:
[zimbra@tadr0s tmp]$ view install.log.24441
Preparing packages for installation...
zimbra-core-3.0.M1_21.RHEL4-20050920162541_
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
Preparing packages for installation...
zimbra-ldap-3.0.M1_21.RHEL4-20050920162541_
Preparing packages for installation...
zimbra-mta-3.0.M1_21.RHEL4-20050920162541_
Preparing packages for installation...
zimbra-snmp-3.0.M1_21.RHEL4-20050920162541_
Preparing packages for installation...
zimbra-store-3.0.M1_21.RHEL4-20050920162541_
COMMAND: /opt/zimbra/libexec/zmmyinit
* Creating required directories
* Generating mysql config /opt/zimbra/conf/my.cnf
* Creating database in /opt/zimbra/db/data
* Starting mysql server
* Loading schema /opt/zimbra/db/db.sql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/db/mysql.sock' (2)
* Loading version from /opt/zimbra/db/versions-init.sql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/db/mysql.sock' (2)
* Setting random password for mysql root user in zimbra local config
* Setting random password for mysql zimbra user in zimbra local config
* Changing mysql root user password
^G/opt/zimbra/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/opt/zimbra/db/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/opt/zimbra/db/mysql.sock' exists!
* Changing mysql zimbra user password
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/db/mysql.sock' (2)
**** PASSWORD CHANGE FAILED
COMMAND: zmlocalconfig -e zimbra_server_hostname=tadr0s.com
COMMAND: zmlocalconfig -e ldap_host=tadr0s.com
COMMAND: zmlocalconfig -e ldap_port=389
COMMAND: /opt/zimbra/libexec/zmldapinit
Started slapd: pid
ldap_bind: Can't contact LDAP server (-1)
ldap_bind: Can't contact LDAP server (-1)
COMMAND: zmprov cs tadr0s.com
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException tadr0s.com:389)
COMMAND: zmprov cd tadr0s.com
Did the instal fail and you ran it again? If so you need to run
install.sh -u
Then run:
ps -ef | grep zimbra
to make sure all the processes are killed.
Then try a clean run of the install.
i already tried that
ill try a clean reinstall one moretime, if that doesnt work ill usethat link thnx
i ran
/opt/zimbra/openldap/libexec/slapd -4 -u zimbra -h ldap://:7389/ -f /opt/zimbra/conf/slapd.conf all one line and got no errors
do u think it can be the mysql server
Preparing packages for installation...
zimbra-core-3.0.M1_21.RHEL4-20050920162541_
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
Preparing packages for installation...
zimbra-ldap-3.0.M1_21.RHEL4-20050920162541_
Preparing packages for installation...
zimbra-mta-3.0.M1_21.RHEL4-20050920162541_
Preparing packages for installation...
zimbra-snmp-3.0.M1_21.RHEL4-20050920162541_
Preparing packages for installation...
zimbra-store-3.0.M1_21.RHEL4-20050920162541_
COMMAND: /opt/zimbra/libexec/zmmyinit
* Creating required directories
* Generating mysql config /opt/zimbra/conf/my.cnf
* Creating database in /opt/zimbra/db/data
* Starting mysql server
* Loading schema /opt/zimbra/db/db.sql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/db/mysql.sock' (2)
* Loading version from /opt/zimbra/db/versions-init.sql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/db/mysql.sock' (2)
* Setting random password for mysql root user in zimbra local config
* Setting random password for mysql zimbra user in zimbra local config
* Changing mysql root user password
^G/opt/zimbra/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/opt/zimbra/db/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/opt/zimbra/db/mysql.sock' exists!
* Changing mysql zimbra user password
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/db/mysql.sock' (2)
**** PASSWORD CHANGE FAILED
COMMAND: zmlocalconfig -e zimbra_server_hostname=tadr0s.com
COMMAND: zmlocalconfig -e ldap_host=tadr0s.com
COMMAND: zmlocalconfig -e ldap_port=389
COMMAND: /opt/zimbra/libexec/zmldapinit
Started slapd: pid
ldap_bind: Can't contact LDAP server (-1)
ldap_bind: Can't contact LDAP server (-1)
COMMAND: zmprov cs tadr0s.com
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException tadr0s.com:389)
COMMAND: zmprov cd tadr0s.com
After this can you run "ps -ef | grep slapd" Assuming you got no error then this should be up and running.Quote:
Originally Posted by ramidotcom
If not try this command:
This should print more debug.Code:/opt/zimbra/openldap/libexec/slapd -d 10 -4 -u zimbra -h ldap://:7389/ -f /opt/zimbra/conf/slapd.conf