[Bug]: `shuttle logs` request timed out
What happened?
I cannot view logs for my app. The dashboard just hangs and the CLI does what's shown in the logs.
Version
0.52.0
Which operating system(s) are you seeing the problem on?
macOS
Which CPU architectures are you seeing the problem on?
ARM64
Relevant log output
server % shuttle logs
INFO: Using NEW platform API (shuttle.dev)
Getting logs from: depl_01JKXSF8XHTVQ30TQ0NJRRW2R9
Error: Request error: error sending request for url (https://api.shuttle.dev/projects/proj_01JEC652YAP5RCDSEZ4DK82ZXW/deployments/depl_01JKXSF8XHTVQ30TQ0NJRRW2R9/logs): operation timed out
Caused by:
0: error sending request for url (https://api.shuttle.dev/projects/proj_01JEC652YAP5RCDSEZ4DK82ZXW/deployments/depl_01JKXSF8XHTVQ30TQ0NJRRW2R9/logs): operation timed out
1: operation timed out
Duplicate declaration
- [x] I have searched the issues and there are none like this.
Hey @zezetta3031, thanks for the report! We are aware of an issue with timeouts when attempting to fetch logs for deployments that produce a lot of logs, or long-lived deployments. We are working on a fix for the issue, in the meantime you could try to do a shuttle deployment redeploy and see if you are able to retrieve logs again. It is now also possible to export logs to an external provider if you are on the Pro tier.
Any updates on this?
We are having the same issue. Our server has been running for a while and I can't view our logs on the shuttle panel for the deployment or request it via the api as it always times out.
I don't think we produce a massive amount of logs to justify the request time.
We patched this issue by reducing the default timespan from 7d to 24h, and we will keep looking for ways to improve fetching and browsing logs.