#Stuck in loading
1 messages · Page 1 of 1 (latest)
Hi @gilded hatch. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
If you are stuck on "loading" when viewing a task's logs and the activity is greyed out in the task list, there are a few possible causes based on the knowledge sources:
-
Backend/Environment Issues:
- If your code is deployed separately from your main app, make sure all required environment variables are set in the Trigger.dev dashboard. Missing environment variables can cause tasks to fail to start or load properly, resulting in stuck or greyed-out activity. Check for errors like
Environment variable not found:in your logs and follow the environment variable guide if needed. - If you are self-hosting (e.g., on Kubernetes), check the logs for the relevant pods (webapp, supervisor) to see if there are errors or issues with the deployment. Use commands like
kubectl logs deployment/trigger-webapp -n trigger -fto inspect logs for problems such as failed connections or authentication issues. Also, check pod status withkubectl get pods -n triggerandkubectl describe pod <pod-name> -n triggerto ensure everything is running as expected. Issues like pods being stuck or failing to start can cause the UI to hang or show greyed-out tasks Kubernetes troubleshooting.
- If your code is deployed separately from your main app, make sure all required environment variables are set in the Trigger.dev dashboard. Missing environment variables can cause tasks to fail to start or load properly, resulting in stuck or greyed-out activity. Check for errors like
-
Task Not Running or Failed:
- If a task is not running or has failed to start, it may appear greyed out in the UI and its logs may not load. This can happen if there are issues with the task definition, missing dependencies, or runtime errors. Check the run logs and look for any error messages that might indicate what went wrong Common problems.
-
Frontend/Token Issues:
- If you are using the React hooks to view task status, ensure you are passing a valid
publicAccessTokenand the correctrunId. If the token is missing or invalid, the UI may be unable to fetch the run data, resulting in a loading state React hooks setup.
- If you are using the React hooks to view task status, ensure you are passing a valid
-
Network or API Issues:
- Temporary network issues or API downtime can also cause the UI to be stuck on loading. Try refreshing the page or checking your network connection.
If none of these suggestions resolve the issue, check the logs for more detailed error messages, as they often provide clues about what is going wrong. If you are self-hosting, reviewing the pod and deployment logs is especially important.