loud-chef-99995
11/19/2022, 3:42 AMError: IO error: [1] 32693 segmentation fault cargo shuttle run
Is this a known issue? Has anyone else encountered this and maybe solved it?
*Note that downgrading to 1.64.0 fixes the issue.kind-area-3810
11/19/2022, 1:48 PMCargo.toml, so we can get an idea of which crates are involved?loud-chef-99995
11/19/2022, 4:13 PMcargo shuttle init --axum
cargo shuttle run
I haven't tried other init options. This is blocking my project right now as I need to use a crate that uses Rust 1.65.0. Thanks!loud-chef-99995
11/19/2022, 4:45 PMkind-area-3810
11/19/2022, 4:53 PMkind-area-3810
11/19/2022, 4:57 PMkind-area-3810
11/19/2022, 4:57 PMkind-area-3810
11/19/2022, 4:58 PMkind-area-3810
11/19/2022, 4:58 PMstale-kilobyte-24744
11/28/2022, 11:29 AMcargo shuttle run on both Rust 1.65 and 1.63 š¦kind-area-3810
11/28/2022, 11:40 AMstale-kilobyte-24744
11/28/2022, 2:55 PMbash
cargo shuttle init
cargo shuttle run
> Error: failed to find the shuttle entrypoint.
bash
cargo shuttle init --axum
cargo shuttle run
Results in some dependency version error.
bash
cargo shuttle init --serenity
# create Secrets.toml with a `BOT_TOKEN`
cargo shuttle run
Results in
text
error[E0432]: unresolved import `sha1`
--> /home/czar/.cargo/registry/src/github.com-1ecc6299db9ec823/tungstenite-0.17.3/src/handshake/mod.rs:15:5
|
15 | use sha1::{Digest, Sha1};
| ^^^^ use of undeclared crate or module `sha1`
|
help: there is a crate or module with a similar name
|
15 | use sha_1::{Digest, Sha1};
| ~~~~~
error[E0432]: unresolved import `sha1`
--> /home/czar/.cargo/registry/src/github.com-1ecc6299db9ec823/tungstenite-0.17.3/src/handshake/mod.rs:15:5
|
15 | use sha1::{Digest, Sha1};
| ^^^^ use of undeclared crate or module `sha1`
|
help: there is a crate or module with a similar name
|
15 | use sha_1::{Digest, Sha1};
| ~~~~~
I'm stumped š
kind-area-3810
11/28/2022, 3:12 PMkind-area-3810
11/28/2022, 3:22 PMstale-kilobyte-24744
12/01/2022, 11:14 AMtext
; cargo +1.63 shuttle init --serenity
Created library (shuttle) package
; cargo +1.63 --locked shuttle run
Building /home/czar/work/rust/segf
-- snip --
Compiling segf-00000000-0000-0000-0000-000000000000 v0.1.0 (/home/czar/work/rust/segf)
Finished dev [unoptimized + debuginfo] target(s) in 51.75s
Starting segf on http://127.0.0.1:8000
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/czar/.cargo/registry/src/github.com-1ecc6299db9ec823/shuttle-service-0.7.2/src/lib.rs:441:66
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Panic occurred in shuttle_service::main`: called `Option::unwrap()` on a `None` valuekind-area-3810
12/01/2022, 11:18 AMstale-kilobyte-24744
12/01/2022, 11:34 AManyhow::context though. For example:
rust
let token = secret_store
.get("discord-token")
.context("'discord-token' was not found")?;kind-area-3810
12/01/2022, 11:39 AMCompiling serenity-unwrap-00000000-0000-0000-0000-000000000000 v0.1.0 (/home/oddgrd/dev/experiments/serenity-unwrap)
Finished dev [unoptimized + debuginfo] target(s) in 39.24s
Starting serenity-unwrap on http://127.0.0.1:8000
Error: Custom error: 'DISCORD_TOKEN' was not found
Caused by:
'DISCORD_TOKEN' was not foundstale-kilobyte-24744
12/01/2022, 11:41 AMkind-area-3810
12/01/2022, 11:42 AMstale-kilobyte-24744
12/01/2022, 11:43 AMstale-kilobyte-24744
12/01/2022, 11:46 AMkind-area-3810
12/01/2022, 11:53 AM⯠cargo shuttle run
Building /home/oddgrd/dev/experiments/rorschach
Finished dev [unoptimized + debuginfo] target(s) in 0.14s
Starting rorschach on http://127.0.0.1:8000
2022-12-01T12:51:47.559159650Z INFO serenity::client::bridge::gateway::shard_manager: Telling shard queuer to start shard 0
2022-12-01T12:51:47.798318134Z INFO serenity::client::bridge::gateway::shard_runner: [ShardRunner [0, 1]] Running
2022-12-01T12:51:47.959883534Z ERROR serenity::gateway::shard: [Shard [0, 1]] Sent invalid authentication, please check the token.
2022-12-01T12:51:47.959946571Z ERROR serenity::client::bridge::gateway::shard_runner: Shard handler received err: Gateway(InvalidAuthentication)
2022-12-01T12:51:47.960091384Z INFO serenity::client::bridge::gateway::shard_manager: Shutting down all shards
2022-12-01T12:51:47.960123384Z INFO serenity::client::bridge::gateway::shard_manager: Shutting down shard 0
2022-12-01T12:51:47.960186705Z INFO serenity::client::bridge::gateway::shard_queuer: Shutting down shard 0
2022-12-01T12:51:47.960206175Z WARN serenity::client::bridge::gateway::shard_queuer: Failed to cleanly shutdown shard 0 when sending message to shard runner: TrySendError { kind: Disconnected }
2022-12-01T12:51:52.961246436Z WARN serenity::client::bridge::gateway::shard_manager: Failed to cleanly shutdown shard 0, reached timeout: Elapsed(())
Error: Custom error: failed to bind service
Caused by:
0: failed to bind service
1: Custom error: Sent invalid authentication
2: Sent invalid authentication
3: Sent invalid authenticationkind-area-3810
12/01/2022, 11:54 AMkind-area-3810
12/01/2022, 11:55 AM⯠cargo shuttle --version
cargo-shuttle 0.7.2kind-area-3810
12/01/2022, 11:56 AMstale-kilobyte-24744
12/01/2022, 12:00 PMtext
; uname -a
Linux home.localnet 6.0.8-1-default #1 SMP PREEMPT_DYNAMIC Fri Nov 11 08:02:50 UTC 2022 (1579d93) x86_64 x86_64 x86_64 GNU/Linux
; cargo shuttle --version
cargo-shuttle 0.7.2
; cargo version --verbose
cargo 1.63.0 (fd9c4297c 2022-07-01)
release: 1.63.0
commit-hash: fd9c4297ccbee36d39e9a79067edab0b614edb5a
commit-date: 2022-07-01
host: x86_64-unknown-linux-gnu
libgit2: 1.4.2 (sys:0.14.2 vendored)
libcurl: 7.83.1-DEV (sys:0.4.55+curl-7.83.1 vendored ssl:OpenSSL/1.1.1n)
os: openSUSE 20221129 [64-bit]stale-kilobyte-24744
12/01/2022, 12:05 PMcargo clean, in case there was something stale in the target.stale-kilobyte-24744
12/01/2022, 12:22 PMkind-area-3810
12/01/2022, 12:23 PMstale-kilobyte-24744
12/01/2022, 12:23 PMstale-kilobyte-24744
12/01/2022, 12:25 PMkind-area-3810
12/01/2022, 12:32 PMstale-kilobyte-24744
12/01/2022, 12:39 PMkind-area-3810
12/01/2022, 12:45 PMstale-kilobyte-24744
12/01/2022, 12:48 PMkind-area-3810
12/01/2022, 12:53 PMstale-kilobyte-24744
12/01/2022, 12:57 PM