shuttle icon indicating copy to clipboard operation
shuttle copied to clipboard

[Bug]: `shuttle logs` request timed out

Open zezetta3031 opened this issue 10 months ago • 3 comments

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.

zezetta3031 avatar Feb 19 '25 19:02 zezetta3031

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.

oddgrd avatar Feb 20 '25 14:02 oddgrd

Any updates on this?

zezetta3031 avatar Apr 08 '25 17:04 zezetta3031

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.

blessedbythestorm avatar Apr 17 '25 09:04 blessedbythestorm

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.

jonaro00 avatar Aug 25 '25 13:08 jonaro00