Forum archive
zimbra-conf fails with ERROR: account.AUTH_FAILED (Solved)
EDIT: This topic is being moved here from an email dialogue:
I have a problem that when I execute the following in the zimbra appliance as root:
/usrlocal/bin/zimbra-conf zimbra.itworx.co.ke Passw0rd
That the script runs but terminates with the following output (last few
lines for brevity):
* Changed mysql root user password root@localhost
* Changed zimbra mysql user password
/opt/zimbra/bin/logmysqladmin -u root
--password=o9rS2clYUs8Eapx.vvYTCI1J5szs5Ab password
dd6b7d2901076f517b6db679d3d13c2f
* Changed mysql root user password
* Changed mysql root user password root@localhost
* Changed zimbra mysql user password
ERROR: account.AUTH_FAILED (authentication failed for zimbra)
root@zimbra:/usr/local/bin#
I have opened the script with nano, but cannot see any place that may be
causing this AUTH_FAILED error.
After this the entire Zimbra install is broken and I must re-install
from scratch.
I hope you may be able to assist me to resolve this.
All the best,
Alex
Alon Has responded as follows:
I have not come across the issue you describe in my testing, so I have a
couple of questions:
- is the issue reproducible?
- was zimbra-conf the first thing you did after installing?
- did you stop/start any other services?
- did zimbra successfully start before running zimbra-conf?
- are you using the VM, ISO or EC2 instance?
- did you setup the DNS records?
- is networking configured correctly?
I am not sure about this, but it might be caused by the providing the
FQDN zimbra.itworx.co.ke instead of itworx.co.ke, as the script assumes
the FQDN will become mail.DOMAIN_YOU_PROVIDE.
We will probably change this in future, as we should not assume
anything. Anyway, you can change this in the script if you require
zimbra.itworx instead of mail.itworx, but lets first get everything
working.
It would be great if you could try the following:
- fresh install # or live while testing
- /etc/init.d/zimbra stop # should not be required though
- zimbra-conf itworx.co.ke Passw0rd
If you are still having problems, I'll try reproduce the issue myself
and get to the bottom of it.
Thank you for the response Alon,
The details I have in response to your questions are as follows:
1: Yes, I can reproduce this every time.
2: I am setting this up as a demo on a subdomain, so zimbra.itworx.co.ke is the correct mail domain. The Hostname is groupware.zimbra.itworx.co.ke and it is pingable and resolvable to 41.215.5.23
3: I am already running a mail server for itworx.co.ke its my main one, and should this trial go ok, Zimbra might move there.
4: I am running the turnkey appliance as a virtual machine on Vmare ESXi. I have taken a snapshot of the machine immediately after the install, when only the IP address has been set statically. I revert to this as a clean install.
5: I am using the iso 2009.10 instance.
6: I have tried to zimbra-conf both before even logging in to zimbra as well as after checking to see that I could log in to the admin area with the default turnkey credentials and also checked the user end too. All webmin and other services are running fine.
7: I agree that you should not assume the mail.FQDN, some people like the choice.
8: I have stopped the Zimbra service as you suggest and then run zimbra-conf itworx.co.ke Passw0rd and I get the same error. Note that I did this both with the zimbra.itworx.co.ke and itworx.co.ke domains. Same problem.
This is a bit of a challenge as the domain resolution will always fail for mail.example.com and so prevent zimbra from processing mail well unless we change this.
I hope you can help me find an answer.
Thanks folks,
Alex