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?
Recovery after disk failure
-
- Advanced member
- Posts: 145
- Joined: Fri Sep 12, 2014 10:32 pm
Recovery after disk failure
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
/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
Recovery after disk failure
What exactly does this tool update, localconfig.xml? If so, then how can I set equal password to the ldap database?
-
- Advanced member
- Posts: 145
- Joined: Fri Sep 12, 2014 10:32 pm
Recovery after disk failure
[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.
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.
Recovery after disk failure
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?
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?
Recovery after disk failure
[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.
[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.
Recovery after disk failure
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
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