Report that timed out is shown as running #6134

Closed
opened 2025-12-29 19:37:09 +01:00 by adam · 3 comments
Owner

Originally created by @seros1521 on GitHub (Feb 22, 2022).

NetBox version

v3.1.8

Python version

3.9

Steps to Reproduce

Run any report that runs longer than the RQ_DEFAULT_TIMEOUT timeout.

Expected Behavior

The report should be in the 'Errored' state after the timeout has expired.

Observed Behavior

Report in the 'running' state (both in the main UI and in the administrative UI).

Originally created by @seros1521 on GitHub (Feb 22, 2022). ### NetBox version v3.1.8 ### Python version 3.9 ### Steps to Reproduce Run any report that runs longer than the RQ_DEFAULT_TIMEOUT timeout. ### Expected Behavior The report should be in the 'Errored' state after the timeout has expired. ### Observed Behavior Report in the 'running' state (both in the main UI and in the administrative UI).
adam added the type: bugstatus: needs owner labels 2025-12-29 19:37:09 +01:00
adam closed this issue 2025-12-29 19:37:09 +01:00
Author
Owner

@minitriga commented on GitHub (Feb 23, 2022):

Unfortunately I was not able to replicate this error on v3.1.8 every time the report ran longer than the RQ_DEFAULT_TIMEOUT variable.

Both the Reports and Admin UI's reported an errored state.

image

image

image

@minitriga commented on GitHub (Feb 23, 2022): Unfortunately I was not able to replicate this error on `v3.1.8` every time the report ran longer than the `RQ_DEFAULT_TIMEOUT` variable. Both the Reports and Admin UI's reported an `errored` state. ![image](https://user-images.githubusercontent.com/26367336/155376664-c9afc759-88fb-410a-8136-16fc44f9d3f3.png) ![image](https://user-images.githubusercontent.com/26367336/155376709-659e7a11-1b6a-4b66-abb2-db2e83563c40.png) ![image](https://user-images.githubusercontent.com/26367336/155376789-dd13c3e6-9524-4b22-a7af-61e97f7cc12b.png)
Author
Owner

@seros1521 commented on GitHub (Feb 24, 2022):

I get different results on different instances. On the test - correct, on the production - no. According to the netbox code, everything seems to be normal. The timeout exception is correctly logged, but the result is not saved. There might be an error in the process of saving the result of the task. Maybe a large size of the report results? But there is nothing in the logs to indicate this. I will investigate the issue further.

@seros1521 commented on GitHub (Feb 24, 2022): I get different results on different instances. On the test - correct, on the production - no. According to the netbox code, everything seems to be normal. The timeout exception is correctly logged, but the result is not saved. There might be an error in the process of saving the result of the task. Maybe a large size of the report results? But there is nothing in the logs to indicate this. I will investigate the issue further.
Author
Owner

@DanSheps commented on GitHub (Mar 2, 2022):

Most likely what is happening is whatever report you are running is trying to Serialize a raw object (Prefix, etc) from what was successful and this will normally fail. You should convert the object to json first. I had this exact problem when writing scripts and it is because the Serializer for serializing the data cannot handle the raw object

@DanSheps commented on GitHub (Mar 2, 2022): Most likely what is happening is whatever report you are running is trying to Serialize a raw object (Prefix, etc) from what was successful and this will normally fail. You should convert the object to json first. I had this exact problem when writing scripts and it is because the Serializer for serializing the data cannot handle the raw object
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6134