Problem Description:

Enabling log rotation in Infoworks Version 5.x failing with below error:

[2021-10-18-1634551710] Enabling log rotation
Connected to MongoDB...
Connected to MongoDB Quartzio...
"status" : 500,
"errors" : [ "Schedule Job Data Cannot be Null, key: job" ]
Exception: 500 Server Error: Internal Server Error for url: http://localhost:3011/api/v1/scheduler/submit/

Cause and Solution

We have a limitation in the file which is creating this issue, to resolve this problem, please perform the below steps:

  1. Login into the Infoworks edge node as the user who starts the IWX services
  2. Replace the file from the /opt/infoworks/bin directory with the file attached to this article
  3. Run /opt/infoworks/bin/./ enable to enable log rotation