No_Such_Server

Ask questions about your setup or get help installing ZCS server (ZD section below).
RyecoAaron
Advanced member
Advanced member
Posts: 62
Joined: Fri Sep 12, 2014 10:01 pm

No_Such_Server

Post by RyecoAaron »

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.
3124Eugene
Posts: 3
Joined: Fri Sep 12, 2014 10:01 pm

No_Such_Server

Post by 3124Eugene »

[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.
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

No_Such_Server

Post by phoenix »

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.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
3124Eugene
Posts: 3
Joined: Fri Sep 12, 2014 10:01 pm

No_Such_Server

Post by 3124Eugene »

[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.
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

No_Such_Server

Post by phoenix »

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.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Service
Elite member
Elite member
Posts: 1023
Joined: Tue Apr 14, 2009 2:44 pm

No_Such_Server

Post by Service »

*** 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 ?
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

No_Such_Server

Post by marcmac »

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.
Post Reply