quiet-australia-98981
10/14/2022, 4:24 PMcargo shuttle project rm
then
cargo shuttle project new
and then i check status
cargo shuttle project status
and i see project is in "ready" state
then i deploy
cargo shuttle deploy
and it will do a build, and spit out the following message:
Finished dev [unoptimized + debuginfo] target(s) in 8.70s
Running unittests src/lib.rs (opt/shuttle/shuttle-builds/discord-fank/target/debug/deps/discord_fank-dfc22324455a74a5)
Doc-tests discord-fank
Deployment has not entered the running state
and status shows this:
╰─ cargo shuttle project status ─╯
project 'discord-fank' is readyquiet-australia-98981
10/14/2022, 4:32 PMdeployment '7a24aea6-1f3e-4ff4-8282-a0e4a3bf7544' is queuedstocky-kangaroo-53672
10/14/2022, 7:11 PMcargo shuttle deployment list?stocky-kangaroo-53672
10/14/2022, 7:14 PMDeployment has not entered the running state
Currently the actual error as to why doesn't make it from the server to the client and it's one of the things we did not get to fixing today
Also, what is the shuttle version in Cargo.toml?quiet-australia-98981
10/14/2022, 7:16 PM0.6.0stocky-kangaroo-53672
10/14/2022, 7:16 PMquiet-australia-98981
10/14/2022, 7:20 PMquiet-australia-98981
10/14/2022, 7:26 PMquiet-australia-98981
10/14/2022, 7:27 PMcargo.tomlstocky-kangaroo-53672
10/14/2022, 7:34 PMRun(Custom(status: Unknown, message: "transport error", details: [], metadata: MetadataMap { headers: {} }
Caused by:
0: transport error
1: connection error: connection reset
2: connection reset))
The Run(Custom is us catching an error during startup in the shuttle main function. This might be a bit far fetched, but does a local run work?
bash
cargo shuttle runquiet-australia-98981
10/14/2022, 7:38 PMquiet-australia-98981
10/14/2022, 7:38 PMquiet-australia-98981
10/14/2022, 7:39 PMcargo shuttle run is running fine, just wth some warnings i need to clean up, but otherwise connects to discord finestocky-kangaroo-53672
10/14/2022, 7:52 PMquiet-australia-98981
10/14/2022, 7:54 PMquiet-australia-98981
10/14/2022, 8:16 PMcargo shuttle runquiet-australia-98981
10/14/2022, 8:16 PMquiet-australia-98981
10/15/2022, 4:00 PMstocky-kangaroo-53672
10/15/2022, 7:12 PMgorgeous-refrigerator-23568
10/15/2022, 8:03 PMrun works fine, but getting:
Deployment has not entered the running state
Even on a completely clean project. My last deployment is 3a7f2618-7c32-41f8-a761-1a012be995d7quiet-australia-98981
10/15/2022, 11:11 PMquiet-australia-98981
10/15/2022, 11:11 PM55b2c372-2989-47c4-96d2-b5417be45e5aquiet-australia-98981
10/15/2022, 11:11 PMquiet-australia-98981
10/16/2022, 5:52 PMquiet-australia-98981
10/16/2022, 5:52 PMquiet-australia-98981
10/16/2022, 5:52 PMquiet-australia-98981
10/16/2022, 7:35 PMquiet-australia-98981
10/16/2022, 7:35 PMquiet-australia-98981
10/16/2022, 7:35 PMstocky-kangaroo-53672
10/17/2022, 6:27 AMquiet-australia-98981
10/17/2022, 6:28 AMquiet-australia-98981
10/17/2022, 6:28 AMquiet-australia-98981
10/17/2022, 6:30 AMgorgeous-refrigerator-23568
10/17/2022, 6:33 AMgorgeous-refrigerator-23568
10/17/2022, 10:46 AMstocky-kangaroo-53672
10/17/2022, 3:24 PMstocky-kangaroo-53672
10/17/2022, 9:10 PMquiet-australia-98981
10/17/2022, 9:12 PMgorgeous-refrigerator-23568
10/17/2022, 9:12 PMgorgeous-refrigerator-23568
10/17/2022, 9:31 PM2022-10-17T22:28:51.219582426Z INFO shuttle_deployer::deployment::queue: Moving built library
2022-10-17T22:28:51.221699406Z INFO Entering built state
2022-10-17T22:28:51.293003848Z INFO Entering loading state
2022-10-17T22:28:51.298648142Z INFO shuttle_deployer::deployment::provisioner_factory: Provisioning a shared::postgres on the shuttle servers. This can take a while...
2022-10-17T22:28:51.302757505Z DEBUG {service.ready=true} tower::buffer::worker: processing request
2022-10-17T22:28:51.310635139Z INFO Entering crashed state
2022-10-17T22:28:51.313907134Z ERROR {error="Run error: Custom error: status: Unknown, message: \"transport error\", details: [], metadata: MetadataMap { headers: {} }"} shuttle_deployer::deployment::run: service startup encountered an error
But I'm not any the wiser what the issue is. Does this mean something to you guys?gorgeous-refrigerator-23568
10/17/2022, 9:33 PM0889303b-d243-4300-89e4-b9814d801a3bstocky-kangaroo-53672
10/17/2022, 9:34 PMgorgeous-refrigerator-23568
10/17/2022, 9:35 PMstocky-kangaroo-53672
10/17/2022, 9:36 PMgorgeous-refrigerator-23568
10/17/2022, 9:36 PMstocky-kangaroo-53672
10/17/2022, 9:38 PMgorgeous-refrigerator-23568
10/17/2022, 9:38 PMgorgeous-refrigerator-23568
10/17/2022, 9:51 PM2022-10-17T22:46:54.357331204Z INFO shuttle_deployer::deployment::provisioner_factory: Fetching secrets for deployment
2022-10-17T22:46:54.359889846Z INFO shuttle_deployer::deployment::provisioner_factory: Done fetching secrets
But I eventually get a log from my application:
2022-10-17T22:46:54.397799813Z INFO Entering crashed state
2022-10-17T22:46:54.404311311Z ERROR {error="Run error: Custom error: failed to get PASETO_SECRET_KEY from secrets store"} shuttle_deployer::deployment::run: service startup encountered an errorgorgeous-refrigerator-23568
10/17/2022, 9:52 PM$ cargo shuttle --working-directory api secrets
No secrets are linked to this servicestocky-kangaroo-53672
10/17/2022, 9:52 PMcargo shuttle secrets?stocky-kangaroo-53672
10/17/2022, 9:54 PMgorgeous-refrigerator-23568
10/17/2022, 9:56 PMstocky-kangaroo-53672
10/17/2022, 9:57 PMSecrets.toml should most definitely be in the "Archiving" linesgorgeous-refrigerator-23568
10/17/2022, 9:57 PM--working-directory.stocky-kangaroo-53672
10/17/2022, 9:57 PMCargo.toml?gorgeous-refrigerator-23568
10/17/2022, 9:58 PMgorgeous-refrigerator-23568
10/17/2022, 9:58 PM.gitignorestocky-kangaroo-53672
10/17/2022, 9:58 PMgorgeous-refrigerator-23568
10/17/2022, 9:59 PMstocky-kangaroo-53672
10/17/2022, 9:59 PM--working-directory?gorgeous-refrigerator-23568
10/17/2022, 9:59 PM.gitignorestocky-kangaroo-53672
10/17/2022, 10:01 PMgorgeous-refrigerator-23568
10/17/2022, 10:02 PMstocky-kangaroo-53672
10/17/2022, 10:05 PMstocky-kangaroo-53672
10/17/2022, 10:06 PMgorgeous-refrigerator-23568
10/17/2022, 10:07 PMgorgeous-refrigerator-23568
10/17/2022, 10:11 PM$ cargo shuttle deploy --allow-dirty
...
Deployment has not entered the running state
$ cargo shuttle deployment list
...
3d01107f-6d88-45bd-8465-b7a5234c0d4a ┆ loading ┆ 2022-10-17T22:06:02Z
$ cargo shuttle logs 3d01107f-6d88-45bd-8465-b7a5234c0d4a
...
2022-10-17T23:07:19.760045100Z INFO sqlx::query: SELECT pg_advisory_unlock($1); rows affected: 1, rows returned: 1, elapsed: 385.756µs
2022-10-17T23:07:19.777797802Z DEBUG globset: built glob set; 0 literals, 0 basenames, 0 extensions, 0 prefixes, 0 suffixes, 1 required extensions, 0 regexesstocky-kangaroo-53672
10/17/2022, 10:13 PMquiet-australia-98981
10/18/2022, 3:29 AM0.7.0 looks good with the upgrade and the logging, i upgraded the crates and pushed, and ran it locally, however, i am still getting the crash state, almost immediatelyquiet-australia-98981
10/18/2022, 3:29 AM╰─ cargo shuttle logs a790f321-13db-4c68-af4e-438d4ecf831c ─╯
2022-10-17T23:26:27.460870378Z INFO Entering queued state
2022-10-17T23:26:27.462074820Z INFO Entering building state
2022-10-17T23:26:27.481596918Z INFO shuttle_deployer::deployment::queue: Fetching POSTed data
2022-10-17T23:26:27.493744807Z DEBUG shuttle_deployer::deployment::queue: Received 7874 bytes
2022-10-17T23:26:27.500390097Z DEBUG shuttle_deployer::deployment::queue: Received 16384 bytes
2022-10-17T23:26:27.507751129Z DEBUG shuttle_deployer::deployment::queue: Received 8349 bytes
2022-10-17T23:26:27.516611126Z INFO Entering crashed state
2022-10-17T23:26:27.525531019Z ERROR {error="Streaming error: error reading a body from connection: end of file before message length reached"} shuttle_deployer::deployment::queue: service build encountered an errorstocky-kangaroo-53672
10/18/2022, 5:32 AMstocky-kangaroo-53672
10/18/2022, 5:32 AMgorgeous-refrigerator-23568
10/18/2022, 7:04 AMgorgeous-refrigerator-23568
10/18/2022, 8:10 AMgorgeous-refrigerator-23568
10/18/2022, 8:10 AM3d01107f-6d88-45bd-8465-b7a5234c0d4a, please?stocky-kangaroo-53672
10/18/2022, 8:24 AMshuttle_service::main function isn't returning. Is it perhaps stuck at an .await?gorgeous-refrigerator-23568
10/18/2022, 8:55 AMgorgeous-refrigerator-23568
10/18/2022, 9:27 AM2022-10-18T10:25:49.514851401Z INFO Entering loading state
2022-10-18T10:25:49.556150959Z INFO shuttle_deployer::deployment::provisioner_factory: Provisioning a aws_rds::postgres on the shuttle servers. This can take a while...
2022-10-18T10:25:49.558137980Z DEBUG {service.ready=true} tower::buffer::worker: processing request
2022-10-18T10:25:49.636459931Z INFO Entering crashed state
2022-10-18T10:25:49.646095468Z ERROR {error="Run error: Custom error: status: Unknown, message: \"transport error\", details: [], metadata: MetadataMap { headers: {} }"} shuttle_deployer::deployment::run: service startup encountered an errorgorgeous-refrigerator-23568
10/18/2022, 9:35 AMgorgeous-refrigerator-23568
10/18/2022, 9:42 AMcargo shuttle status and it's just a hanging connection. Almost as though there's a firewall in the middle dropping my traffic (maybe this is expected?)thousands-monkey-34609
10/18/2022, 10:08 AMcargo shuttle deploy seems to be not uploading the newest code (continues to show build warnings of dead code i had in previous release) which is in the end results in non running state. I will upgrade to 0.7 tomorrowgorgeous-refrigerator-23568
10/18/2022, 10:09 AMgorgeous-refrigerator-23568
10/18/2022, 10:09 AM--allow-dirty flag if the files aren't checked in)thousands-monkey-34609
10/18/2022, 10:11 AMgorgeous-refrigerator-23568
10/18/2022, 10:11 AMstocky-kangaroo-53672
10/18/2022, 12:29 PMstocky-kangaroo-53672
10/18/2022, 1:47 PMtransport error seems to mean the connection to our resource provisioner was lost... Strangely, it seems that another deploy seconds after this error succeedsstocky-kangaroo-53672
10/18/2022, 1:48 PMquiet-australia-98981
10/18/2022, 2:06 PMstocky-kangaroo-53672
10/18/2022, 2:08 PMquiet-australia-98981
10/18/2022, 2:11 PMquiet-australia-98981
10/18/2022, 2:12 PMquiet-australia-98981
10/18/2022, 2:12 PMstocky-kangaroo-53672
10/18/2022, 2:25 PMcargo clean?quiet-australia-98981
10/18/2022, 2:56 PMquiet-australia-98981
10/18/2022, 2:56 PMstocky-kangaroo-53672
10/18/2022, 3:27 PMquiet-australia-98981
10/18/2022, 3:27 PMquiet-australia-98981
10/18/2022, 3:28 PMstocky-kangaroo-53672
10/18/2022, 3:29 PMls -lh target/package?quiet-australia-98981
10/18/2022, 3:30 PMtokio::select! as well as serenityquiet-australia-98981
10/18/2022, 3:31 PMquiet-australia-98981
10/18/2022, 3:31 PMquiet-australia-98981
10/18/2022, 3:31 PMcargo shuttle deploy --allow-dirtystocky-kangaroo-53672
10/18/2022, 3:34 PMquiet-australia-98981
10/18/2022, 3:34 PMquiet-australia-98981
10/18/2022, 3:35 PMbuilding statequiet-australia-98981
10/18/2022, 3:35 PM│ 55b2c372-2989-47c4-96d2-b5417be45e5astocky-kangaroo-53672
10/18/2022, 3:37 PMquiet-australia-98981
10/18/2022, 3:38 PMquiet-australia-98981
10/18/2022, 3:38 PM2022-10-18T11:37:56.537285252Z INFO Entering building state
2022-10-18T11:37:56.554118114Z INFO shuttle_deployer::deployment::queue: Fetching POSTed data
2022-10-18T11:37:56.567677820Z DEBUG shuttle_deployer::deployment::queue: Received 7873 bytes
2022-10-18T11:37:56.575128791Z DEBUG shuttle_deployer::deployment::queue: Received 16384 bytes
2022-10-18T11:37:56.582209303Z DEBUG shuttle_deployer::deployment::queue: Received 8349 bytes
2022-10-18T11:37:56.592929894Z INFO Entering crashed state
2022-10-18T11:37:56.599574851Z ERROR {error="Streaming error: error reading a body from connection: end of file before message length reached"} shuttle_deployer::deployment::queue: service build encountered an errorstocky-kangaroo-53672
10/18/2022, 3:41 PMstocky-kangaroo-53672
10/18/2022, 3:41 PMstocky-kangaroo-53672
10/18/2022, 4:00 PMtoml
exclude = [
"web/.env.example",
"web/.gitignore",
"web/README.md",
"web/app.vue",
"web/assets/logo.png",
"web/assets/ogimage.png",
"web/components/AppHeader.vue",
"web/components/Rank.vue",
"web/layouts/default.vue",
"web/layouts/global.css",
"web/nuxt.config.ts",
"web/package.json",
"web/pages/Rank/index.vue",
"web/pages/index.vue",
"web/store/index.js",
"web/yarn.lock"
]quiet-australia-98981
10/18/2022, 4:04 PMrust
exclude = [
"web/*"
]quiet-australia-98981
10/18/2022, 4:04 PMstocky-kangaroo-53672
10/18/2022, 4:07 PMexclude = [ "web/"] works toostocky-kangaroo-53672
10/18/2022, 4:07 PMweb/tsconfig.json file is fine 🤷♂️quiet-australia-98981
10/18/2022, 4:18 PMquiet-australia-98981
10/18/2022, 4:18 PMquiet-australia-98981
10/18/2022, 4:18 PM./web/ dir for simplicities sakequiet-australia-98981
10/18/2022, 4:33 PMquiet-australia-98981
10/18/2022, 4:33 PMquiet-australia-98981
10/18/2022, 4:33 PM2022-10-18T12:29:10.275267974Z INFO Finished dev [unoptimized + debuginfo] target(s) in 53.23s
2022-10-18T12:29:10.566822725Z INFO Running unittests src/lib.rs (opt/shuttle/shuttle-builds/discord-fank/target/debug/deps/discord_fank-f337983abd1ad82e)
2022-10-18T12:29:10.602865987Z INFO Doc-tests discord-fank
2022-10-18T12:29:16.067005922Z INFO shuttle_deployer::deployment::queue: Moving built library
2022-10-18T12:29:16.070623888Z INFO Entering built state
2022-10-18T12:29:16.203615009Z INFO Entering loading state
2022-10-18T12:29:16.315856031Z INFO shuttle_deployer::deployment::provisioner_factory: Provisioning a shared::postgres on the shuttle servers. This can take a while...
2022-10-18T12:29:16.316512490Z DEBUG {service.ready=true} tower::buffer::worker: processing request
2022-10-18T12:29:16.354142972Z INFO Entering crashed state
2022-10-18T12:29:16.356128524Z ERROR {error="Run error: Custom error: status: Unknown, message: \"transport error\", details: [], metadata: MetadataMap { headers: {} }"} shuttle_deployer::deployment::run: service startup encountered an errorquiet-australia-98981
10/18/2022, 4:38 PMquiet-australia-98981
10/18/2022, 4:38 PMquiet-australia-98981
10/18/2022, 4:39 PM{error="Run error: Custom error: Failed to get discord token"}quiet-australia-98981
10/18/2022, 4:42 PMquiet-australia-98981
10/18/2022, 4:42 PMquiet-australia-98981
10/18/2022, 4:52 PMgorgeous-refrigerator-23568
10/18/2022, 7:53 PMgorgeous-refrigerator-23568
10/18/2022, 9:25 PMgorgeous-refrigerator-23568
10/18/2022, 9:27 PMgorgeous-refrigerator-23568
10/18/2022, 9:30 PMthousands-monkey-34609
10/18/2022, 11:03 PMthousands-monkey-34609
10/19/2022, 8:53 AMgorgeous-refrigerator-23568
10/19/2022, 9:59 AMfs::read_dir is proving a very inefficient way to find my templates:
2022-10-19T10:36:28.234696852Z INFO calandar_api: Binary is located at: /usr/local
2022-10-19T10:36:28.234730625Z INFO calandar_api: Name: /usr/local/bin
2022-10-19T10:36:28.234733048Z INFO calandar_api: Name: /usr/local/etc
2022-10-19T10:36:28.234734591Z INFO calandar_api: Name: /usr/local/games
2022-10-19T10:36:28.234735840Z INFO calandar_api: Name: /usr/local/include
2022-10-19T10:36:28.234737081Z INFO calandar_api: Name: /usr/local/lib
2022-10-19T10:36:28.234738324Z INFO calandar_api: Name: /usr/local/man
2022-10-19T10:36:28.234739539Z INFO calandar_api: Name: /usr/local/sbin
2022-10-19T10:36:28.234740634Z INFO calandar_api: Name: /usr/local/share
2022-10-19T10:36:28.234741743Z INFO calandar_api: Name: /usr/local/src
2022-10-19T10:36:28.234742813Z INFO calandar_api: Name: /usr/local/cargo
2022-10-19T10:36:28.234743966Z INFO calandar_api: Name: /usr/local/rustupstocky-kangaroo-53672
10/19/2022, 10:03 AMmain.rs is still being archived when deploying even though it's been removed?stocky-kangaroo-53672
10/19/2022, 10:05 AMgorgeous-refrigerator-23568
10/19/2022, 10:10 AMthousands-monkey-34609
10/19/2022, 10:13 AMstocky-kangaroo-53672
10/19/2022, 10:14 AMthousands-monkey-34609
10/19/2022, 10:14 AMthousands-monkey-34609
10/19/2022, 10:14 AMstocky-kangaroo-53672
10/19/2022, 10:16 AMgorgeous-refrigerator-23568
10/19/2022, 10:16 AMstocky-kangaroo-53672
10/19/2022, 10:17 AMthousands-monkey-34609
10/19/2022, 10:27 AMstocky-kangaroo-53672
10/19/2022, 10:28 AMquiet-australia-98981
10/19/2022, 2:23 PMstocky-kangaroo-53672
10/24/2022, 9:27 AMquiet-australia-98981
10/24/2022, 9:27 AMstocky-kangaroo-53672
10/24/2022, 9:27 AMquiet-australia-98981
10/24/2022, 9:28 AMquiet-australia-98981
10/24/2022, 9:28 AMquiet-australia-98981
10/24/2022, 9:28 AMstocky-kangaroo-53672
10/24/2022, 9:29 AMstocky-kangaroo-53672
10/24/2022, 9:29 AMthousands-monkey-34609
10/24/2022, 9:30 AM