boundless-grass-48932
12/29/2022, 7:06 PMError: 503 Service Unavailable
message: project not ready
This is the command I'm using:
cargo shuttle deploy --allow-dirty
Any ideas?agreeable-painting-48846
12/29/2022, 7:11 PMcargo shuttle project rm then cargo shuttle project new? failing that, try making a Shuttle.toml file with a "NAME" variable (like in a .env file) then just trying to make a new project and deployingboundless-grass-48932
12/29/2022, 7:12 PMboundless-grass-48932
12/29/2022, 7:12 PMboundless-grass-48932
12/29/2022, 7:12 PMboundless-grass-48932
12/29/2022, 7:12 PMboundless-grass-48932
12/29/2022, 7:12 PMboundless-grass-48932
12/29/2022, 7:12 PMboundless-grass-48932
12/29/2022, 7:24 PM2022-12-29T21:23:21.946237989Z DEBUG error: error communicating with database: Cannot assign requested address (os error 99)
--> src/db_service.rs:50:65
|
50 | "broken shovel" | "cancer" | "ace of spades" => sqlx::query_as!(
| _________________________________________________________________^
51 | | Collectible,
52 | | "SELECT * FROM collectibles WHERE LOWER(name) LIKE $1 LIMIT 10",
53 | | format!("%{}%", as_str)
54 | | )
| |_________________^
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
2022-12-29T21:23:21.947401519Z DEBUG error: error communicating with database: Cannot assign requested address (os error 99)
--> src/db_service.rs:58:25
|
58 | name => sqlx::query_as!(
| _________________________^
59 | | Collectible,
60 | | "SELECT * FROM collectibles WHERE LOWER(name) = $1 LIMIT 10",
61 | | name
62 | | )
| |_________________^
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
2022-12-29T21:23:22.130997427Z DEBUG error: aborting due to 2 previous errors
2022-12-29T21:23:22.146845343Z INFO error: could not compile `tboibot-6d24817f-65ef-43f7-8d8a-fdb85aad13ee` due to 2 previous errors
Deployment crashed
Run the following for more details
cargo shuttle logs 6d24817f-65ef-43f7-8d8a-fdb85aad13eeboundless-grass-48932
12/29/2022, 7:24 PMboundless-grass-48932
12/29/2022, 7:24 PMerror communicating with database: Cannot assign requested address (os error 99)
when I'm trying to deployagreeable-painting-48846
12/29/2022, 8:02 PMboundless-grass-48932
12/29/2022, 8:03 PMboundless-grass-48932
12/29/2022, 8:03 PMagreeable-painting-48846
12/29/2022, 8:04 PMcargo shuttle logs? just error 99?boundless-grass-48932
12/29/2022, 8:06 PM2022-12-29T22:04:31.901089673Z INFO Entering queued state
2022-12-29T22:04:31.909466260Z DEBUG hyper::client::pool: reuse idle connection for ("http", gateway:8001)
2022-12-29T22:04:31.929575446Z DEBUG hyper::client::pool: pooling idle connection for ("http", gateway:8001)
2022-12-29T22:04:31.941456917Z INFO Entering building state
2022-12-29T22:04:32.305755662Z INFO Blocking waiting for file lock on package cache
2022-12-29T22:04:40.555796935Z INFO Updating `shuttle-crates-io-mirror` index
2022-12-29T22:04:47.376735923Z INFO warning: Patch `shuttle-aws-rds v0.8.0 (/usr/src/shuttle/resources/aws-rds)` was not used in the crate graph.
2022-12-29T22:04:47.376773555Z INFO Patch `shuttle-persist v0.8.0 (/usr/src/shuttle/resources/persist)` was not used in the crate graph.
2022-12-29T22:04:47.381769488Z INFO Patch `shuttle-static-folder v0.8.0 (/usr/src/shuttle/resources/static-folder)` was not used in the crate graph.
2022-12-29T22:04:47.386861095Z INFO Check that the patched package version and available features are compatible
2022-12-29T22:04:47.391969872Z INFO with the dependency requirements. If the patch has a different version from
2022-12-29T22:04:47.396941000Z INFO what is locked in the Cargo.lock file, run `cargo update` to use the new
2022-12-29T22:04:47.402202785Z INFO version. This may also occur with an optional dependency that is not enabled.
2022-12-29T22:04:47.413254077Z INFO Blocking waiting for file lock on package cache
2022-12-29T22:05:00.047845483Z INFO Blocking waiting for file lock on build directory
2022-12-29T22:05:43.807093143Z INFO Compiling tboibot-7d23ec89-95d8-4bb8-9fae-31547e83663b v0.1.0 (/opt/shuttle/shuttle-builds/tboibot)
2022-12-29T22:05:43.898477744Z DEBUG error: error communicating with database: Cannot assign requested address (os error 99)
--> src/db_service.rs:50:65
|
50 | "broken shovel" | "cancer" | "ace of spades" => sqlx::query_as!(
| _________________________________________________________________^
51 | | Collectible,
52 | | "SELECT * FROM collectibles WHERE LOWER(name) LIKE $1 LIMIT 10",
53 | | format!("%{}%", as_str)
54 | | )
| |_________________^
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
2022-12-29T22:05:43.899658513Z DEBUG error: error communicating with database: Cannot assign requested address (os error 99)
--> src/db_service.rs:58:25
|
58 | name => sqlx::query_as!(
| _________________________^
59 | | Collectible,
60 | | "SELECT * FROM collectibles WHERE LOWER(name) = $1 LIMIT 10",
61 | | name
62 | | )
| |_________________^
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
2022-12-29T22:05:43.915467527Z DEBUG warning: unused import: `query_as`
--> src/db_service.rs:2:12
|
2 | use sqlx::{query_as, Executor, PgPool};
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
2022-12-29T22:05:44.065631902Z DEBUG error: aborting due to 2 previous errors; 1 warning emitted
2022-12-29T22:05:44.077995526Z INFO error: could not compile `tboibot-7d23ec89-95d8-4bb8-9fae-31547e83663b` due to 3 previous errors; 1 warning emitted
2022-12-29T22:05:44.099585052Z INFO Entering crashed state
2022-12-29T22:05:44.099712440Z ERROR {error="Build error: 1 job failed"} shuttle_deployer::deployment::queue: service build encountered an errorboundless-grass-48932
12/29/2022, 8:06 PMboundless-grass-48932
12/29/2022, 8:06 PMboundless-grass-48932
12/29/2022, 8:11 PMboundless-grass-48932
12/29/2022, 8:11 PMboundless-grass-48932
12/29/2022, 8:11 PMboundless-grass-48932
12/29/2022, 8:27 PMkind-area-3810
12/29/2022, 8:32 PMstocky-kangaroo-53672
12/30/2022, 8:21 AMrm; new sequence is probably the best way to solve errors quickly for now. But shuttle should eventually become stable enough so that we don't need this sequence.
However, creating a project with a whole new name should be avoided as that means there is a whole class of errors we never look into and therefore never fixagreeable-painting-48846
12/30/2022, 8:23 AM