numerous-crayon-81771
11/30/2022, 1:03 AMcargo shuttle run I get no errors, but the server doesn't seem to stay up. The line says starting on the port, but the terminal just finishes the task right after it starts. When deploying I get this one and it just endsworried-airplane-91571
11/30/2022, 1:49 AMCargo.toml please?numerous-crayon-81771
11/30/2022, 1:49 AMrs
#[shuttle_service::main]
async fn serenity(
#[shuttle_secrets::Secrets] secret_store: SecretStore,
) -> shuttle_service::ShuttleSerenity {
// Get the discord token set in `Secrets.toml`
let token = if let Some(token) = secret_store.get("DISCORD_TOKEN") {
token
} else {
return Err(anyhow!("'DISCORD_TOKEN' was not found").into());
};
// Set gateway intents, which decides what events the bot will be notified about
let intents = GatewayIntents::GUILD_MESSAGES | GatewayIntents::MESSAGE_CONTENT;
let client = Client::builder(&token, intents)
.event_handler(Bot)
.await
.expect("Err creating client");
Ok(client)
} i believe this is the main function
```toml
[package]
name = "stardust"
version = "0.1.0"
edition = "2021"
publish = false
[lib]
[dependencies]
shuttle-service = { version = "0.7.2", features = ["bot-serenity"] }
anyhow = "1.0.66"
serenity = { version = "0.11.5", default-features = false, features = ["client", "gateway", "rustls_backend", "model"] }
shuttle-secrets = "0.7.2"
tracing = "0.1.37"
```this is the cargostocky-kangaroo-53672
11/30/2022, 6:52 AMcargo shuttle deployment list
To view the logs of a crashed deployment:
cargo shuttle logs <id>stocky-kangaroo-53672
11/30/2022, 6:53 AMnumerous-crayon-81771
11/30/2022, 12:53 PMworried-airplane-91571
11/30/2022, 2:02 PMnumerous-crayon-81771
11/30/2022, 3:41 PMkind-area-3810
11/30/2022, 3:43 PMcargo shuttle project new). You can try cargo shuttle project status to see its current status, and you can try cargo shuttle project rm, check status until it is destroyed, and then cargo shuttle project new to remake it.numerous-crayon-81771
11/30/2022, 4:19 PMnumerous-crayon-81771
11/30/2022, 9:47 PMnumerous-crayon-81771
11/30/2022, 9:48 PMstocky-kangaroo-53672
12/01/2022, 6:02 AMnumerous-crayon-81771
12/01/2022, 12:04 PMbash
2022-11-29T19:59:04.849487132Z ERROR serenity::gateway::shard: [Shard [0, 1]] Disallowed gateway intents have been provided.
2022-11-29T19:59:04.849494786Z ERROR serenity::client::bridge::gateway::shard_runner: Shard handler received err: Gateway(DisallowedGatewayIntents)
2022-11-29T19:59:04.849504185Z DEBUG serenity::client::bridge::gateway::shard_queuer: [ShardRunner [0, 1]] Stopping
2022-11-29T19:59:04.849588300Z INFO serenity::client::bridge::gateway::shard_manager: Shutting down all shards
2022-11-29T19:59:04.849592612Z INFO serenity::client::bridge::gateway::shard_manager: Shutting down shard 0
2022-11-29T19:59:04.849605077Z DEBUG serenity::client::bridge::gateway::shard_queuer: [Shard Queuer] Received to shutdown shard 0 with 1000.
2022-11-29T19:59:04.849609036Z INFO serenity::client::bridge::gateway::shard_queuer: Shutting down shard 0
2022-11-29T19:59:04.849611898Z WARN serenity::client::bridge::gateway::shard_queuer: Failed to cleanly shutdown shard 0 when sending message to shard runner: TrySendError { kind: Disconnected }
2022-11-29T19:59:09.850057304Z WARN serenity::client::bridge::gateway::shard_manager: Failed to cleanly shutdown shard 0, reached timeout: Elapsed(())
2022-11-29T19:59:09.850155446Z DEBUG serenity::client::bridge::gateway::shard_queuer: [Shard Queuer] Received to shutdown.
2022-11-29T19:59:09.850236286Z DEBUG {frame="GoAway { error_code: NO_ERROR, last_stream_id: StreamId(0) }"} h2::codec::framed_write: send
2022-11-29T19:59:09.850256275Z DEBUG {error="GoAway(b\"\", NO_ERROR, Library)"} h2::proto::connection: Connection::poll; connection error
2022-11-29T19:59:09.850325637Z DEBUG rustls::conn: Sending warning alert CloseNotify
2022-11-29T19:59:09.850534277Z INFO Entering crashed state
2022-11-29T19:59:09.868335433Z ERROR {error="Custom error: failed to bind service"} shuttle_deployer::deployment::run: service encountered an error the error parts^ (the entire log is in the file)numerous-crayon-81771
12/01/2022, 12:18 PMnumerous-crayon-81771
12/01/2022, 12:18 PMnumerous-crayon-81771
12/01/2022, 12:19 PMnumerous-crayon-81771
12/01/2022, 12:19 PMkind-area-3810
12/01/2022, 12:43 PM