Directory database is disconnected - Security Center 5.7 - 5.12

Troubleshooting the main server in Security Center

Applies to
Security Center 5.7 - 5.12
Last updated
2023-08-24
Content type
Troubleshooting
Language
English
Product
Security Center
Version
5.12
5.11
5.10
5.9
5.8
5.7

If the Directory database of your main server is disconnected (red or yellow) and not communicating properly, ask the following troubleshooting questions to determine a possible cause and solution.

Is the database local?

On the main server page in Server Admin, check whether the name of the Database server indicates that the SQL Server is local.

Direction section of the server page in Server Admin with the local portion of the database server name highlighted.
  • If yes: In the Windows Services console, restart the SQL Server service. If the Directory does not start and the server does not come online, go to the next question.
  • If no: Try the following:
    • Ensure that the server running the SQL service is online. You can check the server by logging in to that server using Remote Desktop or SQL Management Studio.
    • Instead of connecting to the remote database server using the SQL Server instance name, open Server Admin and try connecting using the server's IP address.
    • Ensure that the remote database server ports (TCP 1434 or UDP 1433) are open and reserved for the SQL Server. They should not be used by other applications.
    If the database does not connect and the Directory and server do not come online, go to the next question.

Is the database version incompatible?

On the main server page in Server Admin, check the Status section for the following error: Database version is higher than the current version.

Does the user that is running the Genetec™ Server service have permission to access the Directory database?

The Genetec™ Server logon user might be missing the necessary rights on the Directory database in SQL. To check this, open SQL Management Studio and do the following:

  1. Click Security > Logins > [Right-click the user] > Properties.
  2. Click Server roles and check that all server-level roles for the Directory are selected.
    SQL Management Studio showing the server-level user permissions for the Directory database.
  3. Click User mapping, select Directory, and check that all database-level roles for the Directory are selected.
    SQL Management Studio showing the database-level user permissions for the Directory database.
For more information on the required permissions, see the basic administrative privileges.
  • If yes: Go to the next question.
  • If no: Add the required permissions to the user. If the database does not connect and the Directory and server do not come online, go to the next question.

Is the Directory database full?

In SQL Server Management Studio, click Server Explorer > Right-click Database > Properties > General and check whether the Directory database has reached its size limit. The size limit in SQL Server 2005 Express is 4 GB; the size limit in SQL Server 2008 Express and later is 10 GB.

  • If yes: Upgrade SQL Server Express to the Standard or Enterprise editions. If your database exceeds the 10 GB limit, contact Technical Support to help you determine why the database has reached its storage limit.
  • If no: Go to the next question.

Is it a Directory failover configuration issue?

If your Directory is configured for failover, check Windows Event Viewer for the following error:
Event Source: GenetecDirectory.exe
Description: Unable to take the database lock, another Master Directory may be running on this database, restarting Directory service
  • If yes: From the Windows Control Panel, restart the Genetec™ Server service on your failover server.
  • If no: Go to the next question.

Is the SQL database transaction log (LDF file) too big?

In SQL Server Management Studio, click Server Explorer > Right-click Database > Properties > Files, and check whether the LDF file exceeds the maximum size.

  • If yes: In SQL Management Studio, do the following:
    1. Switch the recovery model of the database to Simple.
    2. Shrink the transaction log file.
  • If no: Go to the next question.

Is your database corrupted?

In Server Admin, create a new Directory database to test if the Directory starts with a clean database.
IMPORTANT: Do not overwrite the existing database.