ambitious-battery-53463
03/09/2023, 7:18 AMOS: MacOS Ventura 13.0 (M1 tip)
Rust:
- rustc 1.67.1 (d5a82bbd2 2023-02-07)
- cargo 1.67.1 (8ecd4f20a 2023-01-10)
What I did
I cloned a project with static files from the Axum tutorial and deployed it as is, and an error occurred.
It worked fine for a while after deploying with cargo shuttle deploy, but after an hour or so, the error message
After about an hour, the error error="Run error: Custom error: failed to provision shuttle_static_folder :: StaticFolder" occurred and the deploy crashed.
What was the problem?
Clone original repository: https://github.com/shuttle-hq/examples/tree/main/axum/static-files
Error Logs
When Deployed:
π± Local ~/shuttle/static-file-test is π¦ v0.1.0 via π¦ v1.67.1
β― cargo shuttle deploy
2023-03-09T14:48:22.676173587Z INFO Entering queued state
2023-03-09T14:48:22.676203705Z TRACE shuttle_deployer::deployment::queue: getting a build slot
2023-03-09T14:48:22.682943872Z TRACE {uri="http://gateway:8001/stats/load"} shuttle_deployer::deployment::gateway_client: calling gateway
2023-03-09T14:48:22.686984211Z DEBUG hyper::client::connect::http: connecting to 10.99.48.65:8001
2023-03-09T14:48:22.691359220Z DEBUG hyper::client::connect::http: connected to 10.99.48.65:8001
2023-03-09T14:48:22.695963666Z DEBUG hyper::client::pool: pooling idle connection for ("http", gateway:8001)
2023-03-09T14:48:22.699271346Z TRACE {response="Response { status: 200, version: HTTP/1.1, headers: {\"content-type\": \"application/json\", \"content-length\": \"38\", \"date\": \"Thu, 09 Mar 2023 05:48:21 GMT\"}, body: Body(Streaming) }"} shuttle_deployer::deployment::gateway_client: Load response
I have attached the full log.ripe-river-71137
03/09/2023, 8:43 AMagreeable-painting-48846
03/09/2023, 9:25 AMambitious-battery-53463
03/09/2023, 9:34 AMambitious-battery-53463
03/09/2023, 2:00 PMshuttle-static-folder = "0.11.3", I no longer get the deploy crash error! Thank you very much.
On the other hand, when I run the cargo shuttle run command and try to preview locally, all files in assets are now reset to blank. Is this an error only in my environment, or if not, is this problem recognized by the development team?agreeable-painting-48846
03/09/2023, 2:02 PMambitious-battery-53463
03/09/2023, 2:03 PMagreeable-painting-48846
03/09/2023, 2:05 PM