https://linen.dev logo
Deploy fails early on with `failed to connect to p...
# help
o
While trying
cargo shuttle deploy
, the process fails early on with the error. The build then crashes, presumable because none of the crates were found
Logs:
Copy code
bash
❯ cargo shuttle logs ca10cdc7-c12f-4494-bdfb-6d29f263cbb4

2023-02-26T20:38:05.911337628Z  INFO Entering queued state
2023-02-26T20:38:05.911726611Z DEBUG hyper::client::connect::http: connecting to 10.99.8.80:8001

2023-02-26T20:38:08.995012508Z  INFO Entering building state
2023-02-26T20:38:09.358759856Z  INFO     Updating `shuttle-crates-io-mirror` index
2023-02-26T20:38:12.451031267Z  INFO warning: spurious network error (2 tries remaining): failed to connect to panamax: No route to host; class=Os (2)     
2023-02-26T20:38:15.519061970Z  INFO warning: spurious network error (1 tries remaining): failed to connect to panamax: No route to host; class=Os (2)     

2023-02-26T20:38:18.591206465Z  INFO Entering crashed state
2023-02-26T20:38:18.593750532Z ERROR {error="Build error: failed to get `anyhow` as a dependency of package `auth-ca10cdc7-c12f-4494-bdfb-6d29f263cbb4 v0.1.0 (/opt/shuttle/shuttle-builds/annie-mei)`"} shuttle_deployer::deployment::queue: service build encountered an error
k
Hmm, we have seen this before when there has been an issues with crates.io at some point, this will make our mirror unresponsive for a short time. Is this error still happening?
b
If it helps, I am having this issue as well with my logs looking like:
Copy code
2023-02-27T03:35:07.333273017Z  INFO Entering queued state
2023-02-27T03:35:07.333661102Z DEBUG hyper::client::connect::http: connecting to 10.99.8.80:8001

2023-02-27T03:35:10.398974359Z  INFO Entering building state
2023-02-27T03:35:11.413553178Z  INFO     Updating `shuttle-crates-io-mirror` index
2023-02-27T03:35:14.496965795Z  INFO warning: spurious network error (2 tries remaining): failed to connect to panamax: No route to host; class=Os (2)
2023-02-27T03:35:17.571052849Z  INFO warning: spurious network error (1 tries remaining): failed to connect to panamax: No route to host; class=Os (2)

2023-02-27T03:35:20.642099428Z  INFO Entering crashed state
2023-02-27T03:35:20.644621345Z ERROR {error="Build error: failed to get `shuttle-codegen` as a dependency of package `shuttle-service v0.10.0 (/usr/src/shuttle/service)`\n    ... which satisfies dependency `shuttle-service = \"^0.10.0\"` (locked to 0.10.0) of package `discord-bot-c2b8553f-c7e2-4de8-aa9f-ffe7afe86881 v0.1.0 (/opt/shuttle/shuttle-builds/nijika-bot)`"} shuttle_deployer::deployment::queue: service build encountered an error
k
Thanks! We refreshed the mirror now, are you able to try again?
b
After refreshing my window and terminal, I'm still getting the same log and crash as before. Here's some extra info: My rust version is rustc 1.67.1 (d5a82bbd2 2023-02-07) I'm running on Windows 11
o
Sorry, I could not get to it any sooner, but my deploy did go through just now. I did have to upgrade to v0.11
b
Same here, deploys work now!
k
Great!
5 Views