stale-kilobyte-24744
11/27/2022, 3:07 PMcargo build works. When I try to cargo shuttle deploy I get a crash, and the log shows:
text
2022-11-27T18:57:40.546567961Z INFO Compiling error-stack v0.2.4
2022-11-27T18:57:40.967242638Z DEBUG error[E0514]: found crate `rustc_version` compiled by an incompatible version of rustc
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/error-stack-0.2.4/build.rs:1:5
|
1 | use rustc_version::{version_meta, Channel, Version};
| ^^^^^^^^^^^^^
|
= note: the following crate versions were found:
crate `rustc_version` compiled by rustc 1.63.0 (4b91a6ea7 2022-08-08): /opt/shuttle/shuttle-builds/rorschach/target/release/deps/librustc_version-9eecf20def6331b7.rlib
= help: please recompile that crate using this compiler (rustc 1.67.0-nightly (11ebe6512 2022-11-01)) (consider running `cargo clean` first)
2022-11-27T18:57:40.978802565Z DEBUG error: aborting due to previous error
2022-11-27T18:57:40.990656746Z INFO error: could not compile `error-stack` due to 2 previous errors
2022-11-27T18:57:40.997114214Z INFO warning: build failed, waiting for other jobs to finish...
2022-11-27T18:57:41.361548677Z INFO Entering crashed state
2022-11-27T18:57:41.361771190Z ERROR {error="Build error: 1 job failed"} shuttle_deployer::deployment::queue: service build encountered an error
Additionally, I tried running locally with cargo shuttle run, but I get segfault on both Rust 1.63.0 and 1.65.0worried-airplane-91571
11/27/2022, 3:35 PMcargo shuttle run locally does that work?stale-kilobyte-24744
11/27/2022, 3:47 PMstale-kilobyte-24744
11/27/2022, 3:48 PM; cargo shuttle run
Building /home/czar/work/rust/rorschach
Finished dev [unoptimized + debuginfo] target(s) in 0.21s
Starting rorschach on http://127.0.0.1:8000
Error: IO error: [1] 28019 segmentation fault (core dumped) cargo shuttle runworried-airplane-91571
11/27/2022, 4:46 PMstale-kilobyte-24744
11/27/2022, 6:55 PMstale-kilobyte-24744
11/27/2022, 7:32 PMcargo shuttle run via IntelliJ, it does not segfault and successfully runs and works.stale-kilobyte-24744
11/27/2022, 9:40 PMstocky-kangaroo-53672
11/28/2022, 5:51 AMerror-stack seems to have a toolchain file [1]. We saw this kind of error for the first time a few weeks ago with dashmap and quite some more last week. For some reason a cargo shuttle deploy seems to respect the toolchain file (ie it tries to build with the version in the toolchain file) while a cargo build does not.
I looked into this quite a bit last week Thursday and Friday... It seems this will require some more attention this week 😅
[1]: https://github.com/hashintel/hash/blob/main/packages/libs/error-stack/rust-toolchain.tomlstale-kilobyte-24744
11/28/2022, 6:33 AMstale-kilobyte-24744
11/28/2022, 11:15 AMstocky-kangaroo-53672
11/28/2022, 12:50 PMstocky-kangaroo-53672
11/28/2022, 12:55 PMcargo clean on your project, but think the cargo shuttle is using is likely to pick the wrong rustc version again...stocky-kangaroo-53672
11/28/2022, 12:58 PMcargo clean has been runstale-kilobyte-24744
11/28/2022, 1:54 PM