No_Such_Server
-
- Advanced member
- Posts: 62
- Joined: Fri Sep 12, 2014 10:01 pm
No_Such_Server
I found that I had 'search example.com' in my resolv.conf. The tacked on example.com to localhost when I ran 'host localhost' making it try to resolve localhost.example.com. Once I removed the search line, everything worked great again.
-
- Posts: 3
- Joined: Fri Sep 12, 2014 10:01 pm
No_Such_Server
[quote user="marcmac"]New information.
Type in this command:
host localhost
If it returns anything other than 127.0.0.1, that's a problem.
After install.sh, in the menu config - ctl-c to exit, and edit /opt/zimbra/libexec/zmldapinit - add -H ldap://127.0.0.1:389 to each ldapmodify line - then re-run /opt/zimbra/libexec/zmsetup.pl
[/QUOTE]
I'm triing to reinstall Zimbra. First installation was inseccessful - I'в forgot to set corrent hostname, so all worked except accepting mail.
I'd reinstalled it totally but met this problem. Tried to use such approaches but no result.
Is it possible to totally remove Zimbra from the system and install it again as on clean machine?
Thank you.
Type in this command:
host localhost
If it returns anything other than 127.0.0.1, that's a problem.
After install.sh, in the menu config - ctl-c to exit, and edit /opt/zimbra/libexec/zmldapinit - add -H ldap://127.0.0.1:389 to each ldapmodify line - then re-run /opt/zimbra/libexec/zmsetup.pl
[/QUOTE]
I'm triing to reinstall Zimbra. First installation was inseccessful - I'в forgot to set corrent hostname, so all worked except accepting mail.
I'd reinstalled it totally but met this problem. Tried to use such approaches but no result.
Is it possible to totally remove Zimbra from the system and install it again as on clean machine?
Thank you.
No_Such_Server
Yes, you can remove Zimbra just run the install again with the uninstall option - './install.sh -u' (no quotes, obviously). That will remove everything including any mail you may have in the store.
-
- Posts: 3
- Joined: Fri Sep 12, 2014 10:01 pm
No_Such_Server
[quote user="10330phoenix"]Yes, you can remove Zimbra just run the install again with the uninstall option - './install.sh -u' (no quotes, obviously). That will remove everything including any mail you may have in the store.[/QUOTE]
Thank you for help!
I tried this, but unseccussful
It's like Zimbra had wrote itself to the system. So my afforts to reinstall it didn't give result. I saw the same error.
Thank you for help!
I tried this, but unseccussful
It's like Zimbra had wrote itself to the system. So my afforts to reinstall it didn't give result. I saw the same error.
No_Such_Server
I should have made clear that you should stop Zimbra using zmcontrol stop (while logged in as the zimbra user). Also make sure that no Zimbra tasks are running, kill all of them if there's any there and the uninstall/reinstall should work OK.
No_Such_Server
*** Running as zimbra user: /opt/zimbra/bin/zmcontrol start
*** Running as zimbra user: /opt/zimbra/bin/zmsshkeygen
*** Running as zimbra user: /opt/zimbra/bin/zmupdateauthkeys
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
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException isis.zimbra.orolix.local:389)
* Creating required directories
* Creating database in /opt/zimbra/logger/db/data
* Starting logger_mysql server
* Loading schema /opt/zimbra/db/loggerdb.sql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/logger/db/mysql.sock'
(2)
:
Here is some messages form zmsetup.log file.
It seems that MySQL could not connect ...
Any help ?
*** Running as zimbra user: /opt/zimbra/bin/zmsshkeygen
*** Running as zimbra user: /opt/zimbra/bin/zmupdateauthkeys
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
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException isis.zimbra.orolix.local:389)
* Creating required directories
* Creating database in /opt/zimbra/logger/db/data
* Starting logger_mysql server
* Loading schema /opt/zimbra/db/loggerdb.sql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/logger/db/mysql.sock'
(2)
:
Here is some messages form zmsetup.log file.
It seems that MySQL could not connect ...
Any help ?
No_Such_Server
Is that the whole log file? I don't see the ldap initialization step, which is why you get the no such server error.
What happens when you start ldap?
su - zimbra
ldap start
search the forums for ldap troubleshooting steps.
What happens when you start ldap?
su - zimbra
ldap start
search the forums for ldap troubleshooting steps.