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...
Request:
http://localhost:3011/api/v1/scheduler/submit/?
Response:
{
"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 iw-logrotate.py file which is creating this issue, to resolve this problem, please perform the below steps:
- Login into the Infoworks edge node as the user who starts the IWX services
- Replace the iw-logrotate.py file from the /opt/infoworks/bin directory with the iw-logrotate.py file attached to this article
- Run /opt/infoworks/bin/./iw-logrotate.sh enable to enable log rotation