Error: Unable to Connect to Event Server. The ZMC Services Are Not Running.

This article is for Amanda Enterprise (AE) v. 3.1.X

Issue Symptoms

ERROR: Unable to connect to event server.
The ZMC services are not running.
** (process:16011): WARNING **: DBI connect('database=zmc;mysql_socket=/opt/zmanda
[RaiseError => 0,
PrintError => 0,
AutoCommit => 0,
ShowErrorStatement => 0,
ChopBlanks => 1,
TaintIn => 1,
TaintOut => 1]
','',...) failed: Can't connect to local MySQL server through socket '/opt/zmanda/amanda
/mysql/tmp/mysql.sock' (2) at /opt/zmanda/amanda/perl/lib/5.8.8/i86pc-solaris-thread-
multi/ line 202

Issue Description

When starting the ZMC services   ( "/etc/init.d/zmc_aee start" ), some of the ZMC services may fail to start with the error messages above.

Usually this occurs when the ZMC services did not shut down cleanly and either processes are still running, pid files were left around, or both.


  1. Stop the ZMC services:
# /etc/init.d/zmc_aee stop

2. If you are running Amanda Enterprise only (and not also Zmanda Recovery Manager) please check for any "zmanda" processes that may not have been shut down:

pgrep -f zmanda -l

3. If the output from this shows any running processes and any are mysql processes, these need to be shut down cleanly to avoid corrupting the ZMC database. Please try to shut these processes down cleanly with:

/opt/zmanda/amanda/ stop mysql

4. Check again if any mysql processes are still running:

pgrep -f zmanda -l

5. Once there are no mysql processes running, all others can be terminated:

pkill -f zmanda

6. Verify that no "zmanda" processes are running:

pgrep -f zmanda -l

7. With no processes running, delete any pid files that may have been left around in

#rm /opt/zmanda/common/eventserver/tmp/*pid

8. Now try again to start ZMC services:

/etc/init.d/zmc_aee start