Recovery after disk failure

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
pingwin
Posts: 26
Joined: Sat Sep 13, 2014 12:56 am

Recovery after disk failure

Post by pingwin »

Thank you, these are the right steps to import.

Now zimbra won't start without errors:
zimbra@mail:/opt/ldap$ zmcontrol start

Starting ldap...Done.

Unable to determine enabled services from ldap.

Enabled services read from cache. Service list may be inaccurate.

Starting logger...Failed.

Starting logswatch...ERROR: service.FAILURE (system failure: unable to lookup server by name: mail.domain.net message: [LDAP: error code 49 - Invalid Credentials]) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])

zimbra logger service is not enabled! failed.


Starting mailbox...Done.

Starting antispam...Done.

Starting antivirus...Done.

Starting snmp...Done.

Starting spell...Done.

Starting mta...Done.

Starting stats...Done.
How can those credentials be fixed?
danielfarrelly
Advanced member
Advanced member
Posts: 145
Joined: Fri Sep 12, 2014 10:32 pm

Recovery after disk failure

Post by danielfarrelly »

Check the ldap password...
/opt/zimbra/bin/zmldappasswd [-h] [-r] [-p] [-l] newpassword

-h: display this help message

-a: change ldap_amavis_password

-l: change ldap_replication_password

-n: change ldap_nginx_password

-p: change ldap_postfix_password

-r: change ldap_root_passwd

Only one of a, l, n, p, or r may be specified

Without options zimbra_ldap_password is changed
pingwin
Posts: 26
Joined: Sat Sep 13, 2014 12:56 am

Recovery after disk failure

Post by pingwin »

What exactly does this tool update, localconfig.xml? If so, then how can I set equal password to the ldap database?
danielfarrelly
Advanced member
Advanced member
Posts: 145
Joined: Fri Sep 12, 2014 10:32 pm

Recovery after disk failure

Post by danielfarrelly »

[quote user="pingwin"][LDAP: error code 49 - Invalid Credentials][/QUOTE]
Usually means your passwords are not matching. You reinstalled zimbra, then brought in the old ldap data. If you didn't set the ldap password during the initial setup, you'll have to do it by hand (which is easy).
Run:

zmlocalconfig -s zimbra_ldap_password
To print out the ldap password. You can also check the other passwords while you're at it. Then, use the commands from my previous post to update ldap credentials.
pingwin
Posts: 26
Joined: Sat Sep 13, 2014 12:56 am

Recovery after disk failure

Post by pingwin »

I looked current password:

zimbra@mail:/opt/ldap$ zimbra@mail:/opt/ldap$ zmlocalconfig -s zimbra_ldap_password

zimbra_ldap_password = YkAxgkTPSL
updated it for ldap directory

zimbra@mail:/opt/ldap$ /opt/zimbra/bin/zmldappasswd YkAxgkTPSL

Updating local config and directory
but zimbra start fails

zimbra@mail:/opt/ldap$ zmcontrol start

Host mail.domain.net

Starting logger...Done.

Starting mailbox...Done.

Starting memcached...Failed.

Starting memcached.../opt/zimbra/bin/zmmemcachedctl: line 65: /opt/zimbra/memcached/bin/memcached: No such file or directory

failed.


Starting imapproxy...[sudo] password for zimbra:
Done.

when it requested password i pressed Ctrl+C

the rest of services started

Starting antispam...Done.

Starting antivirus...Done.

Starting snmp...Done.

Starting spell...Done.

Starting mta...Done.

Starting stats...Done.
zmcontrol status shows that zmnginxctl is not running and memcached is not running.
any suggestions?
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Recovery after disk failure

Post by phoenix »

[quote user="pingwin"]zmcontrol status shows that zmnginxctl is not running and memcached is not running.[/QUOTE]If this is a single server, why are you trying to start the proxy?
[quote user="pingwin"]any suggestions?[/QUOTE]If this really is a single server then search the forums for details on how to remove and/or disable memcahced.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
pingwin
Posts: 26
Joined: Sat Sep 13, 2014 12:56 am

Recovery after disk failure

Post by pingwin »

Yes, single server. Disabled both services.

What comes next is all incoming messages are in deferred queue, with 2 errors concerning amavisd:
host 127.0.0.1[127.0.0.1] said: 421 4.3.2 Service shutting down, closing channel (in reply to RCPT TO command)
delivery temporarily suspended: lost connection with 127.0.0.1[127.0.0.1] while sending DATA command
Post Reply