---
title: "Monitoring DataSync Agent logs"
canonical: "https://docs.perspectium.com/space/helium/2113733/Monitoring+DataSync+Agent+logs"
format: markdown
---
**<span style="color: #000000">Perspectium DataSync Agen</span>****<span style="color: #000000">ts </span>**<span style="color: #000000">generate log messages in the </span>**<span style="color: #000000">logs</span>**<span style="color: #000000"> directory that is created upon installation of the Agent. To view logs for your Agent, open the </span>**<span style="color: #000000">perspectium.log</span>**<span style="color: #000000"> file within the </span>**<span style="color: #000000">logs</span>**<span style="color: #000000"> directory. </span>


## **<span style="color: #000000">Log messages to monitor</span>**

<span style="color: #000000">Here are some examples of log messages that might appear within your </span>**<span style="color: #000000">perspectium.log</span>**<span style="color: #000000"> file that indicate potential errors with your DataSync Agent:</span>

| **<span style="color: #000000">Error type</span>** | <span style="color: #000000">**Sample log message(s)**</span> | <span style="color: #000000">**Suggested action**</span> |
| --- | --- | --- |
| **<span style="color: #000000">Connection timeout</span>** | <span style="color: #000000">2019-07-11 11:15:54.064 ERROR - main - Replicator - new connection attempt to target: </span><span style="color: #000000">https://example.perspectium.net</span><span style="color: #000000"> as user: example password length: 10 failed: com.perspectium.api.MessageBusException: Send Error: Connect to example.perspectium.net:443 [example.perspectium.net] failed: Connection timed out: connect, GET </span><span style="color: #000000">https://example.net/customerstatus</span><span style="color: #000000"> HTTP/1.1</span> | <span style="color: #000000">Check your network connection and that your Agent has outbound access through your organization's firewall. Also, check that your </span>**<span style="color: #000000"><message_connection></span>**<span style="color: #000000"> URL is correct.</span> |
| **<span style="color: #000000">Invalid credentials</span>** | <span style="color: #000000">2019-07-11 11:21:35.854 ERROR - main - Replicator - new connection attempt to target: https://ofc.example.net:4443/ as user: admin12 password length: 10 failed: com.perspectium.api.MessageBusException: Send Error: Unexpected response status: 401 reason: , GET </span><span style="color: #000000">https://ofc.example.net:4443//customerstatus</span><span style="color: #000000"> HTTP/1.1 (Please check that your queue exists and that your credentials are correct)</span> | <span style="color: #000000">Check that your username, password, and queue name are correct.</span> |
| **<span style="color: #000000">Database primary key error</span>** | <span style="color: #000000">2019-07-11 11:27:49.778 ERROR - main - Scheduler - java.lang.IllegalStateException: Unable to locate the database entry using task defined type: randomsql</span> | <span style="color: #000000">Check that the database that you're trying to update exists.</span> |
| **<span style="color: #000000">Database connection error</span>** | <span style="color: #000000">2019-07-11 11:32:12.745 WARN  - main - TaskDatabase - The TCP/IP connection to the host localhost, port 1411 has failed. Error: "Connection refused: connect. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".</span> | <span style="color: #000000">Check your network connection and that your Agent has outbound access through your organization's firewall. Also, check that your database port and name are correct.</span> |
| **<span style="color: #000000">Database login error</span>** | <span style="color: #000000">2019-07-11 11:29:43.223 ERROR - main - SQLDataSource - Error: Cannot create PoolableConnectionFactory (Login failed for user 'exampleuser'. ClientConnectionId:98e4b368-e34d-47f8-9019-19a2f6d66715)</span> | <span style="color: #000000">Check that your database username and password are correct.</span> |
| **<span style="color: #000000">Invalid decryption key</span>** | <span style="color: #000000">2019-07-11 11:37:03.935 ERROR - test_temporal_subscribe - SubscriberTask - Subscriber Error: com.perspectium.replicator.SubscribeException: Failed to decrypt message, make sure the shared secret keys match!</span> | <span style="color: #000000">Check that your decryption key is correct (i.e. matches the key as used to encrypt the data in your source instance such as ServiceNow).</span> |
| **<span style="color: #000000">Invalid agent.xml format</span>** | <span style="color: #000000">2019-07-11 11:39:25.392 ERROR - main - Replicator - (stderr) [Fatal Error] :27:12: The element type "random" must be terminated by the matching end-tag "</random>".</span><br><span style="color: #000000">2019-07-11 11:39:25.392 ERROR - main - Replicator - Error parsing null</span><br><span style="color: #000000">2019-07-11 11:41:37.659 ERROR - main - Replicator - message_connection configuration directive is missing!</span> | [<span style="color: #000000">Validate that your </span>](https://www.xmlvalidation.com/)**[<span style="color: #000000">agent.xml</span>](https://www.xmlvalidation.com/)**[<span style="color: #000000"> file</span>](https://www.xmlvalidation.com/)<span style="color: #000000"> is formatted correctly. Also, check that your </span>**[<span style="color: #000000">agent.xml</span>](https://docs-perspectium.atlassian.net/wiki/spaces/gold/pages/1289083)**[<span style="color: #000000"> is configured correctly</span>](https://docs-perspectium.atlassian.net/wiki/spaces/gold/pages/1289083)<span style="color: #000000">.</span> |