Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW

Connection Closed During API Script Run for Enterprise Manager

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Dana_Baldwin
Support
Support

Connection Closed During API Script Run for Enterprise Manager

Last Update:

May 25, 2022 12:50:13 PM

Updated By:

Dana_Baldwin

Created date:

May 25, 2022 12:50:13 PM

Error: {"error_code":"AEM_RUN_EXCEPTION","error_message":"Replication task \"TASK_NAME\" on server \"SERVER_NAME\" encountered an error when requested to run. message: SYS-E-HTTPFAIL, The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.."}

 

Environment

 

Resolution

 

1. Disable Automatic Cleanup of the task logs on the Replicate server. You will need to write a script that will purge older task logs from the ..\data\logs directory.

2. Adjust the log file cleanup schedule so it runs less often: You need to do the following from a command window running 'as administrator':

repctl -d [data directory] exportrepository include_server_settings=true

Look for the scheduler section and the LogFileCleanLogs job. Change the line "schedule" line, the number after the '0-59/' is the frequency: in this example I have changed it to run every 60 minutes from the default of 2. "schedule": "0-59/60 * * * *",

To import:

repctl -d [data directory] importrepository json_file=Replication_Definition

Then you will need to restart the Replicate service.

Cause

Conflict between the log file cleanup job which runs every 5 minutes and the Enterprise Manager API script.

Contributors
Version history
Last update:
‎2022-05-25 12:50 PM
Updated by: