Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and Run failure #1

Open
nevishs opened this issue May 14, 2021 · 0 comments
Open

Build and Run failure #1

nevishs opened this issue May 14, 2021 · 0 comments

Comments

@nevishs
Copy link

nevishs commented May 14, 2021

Hi there, I am trying to build a docker image from this repo and I got this error:

` .
.
.
Compiling base64 v0.13.0
Compiling scoped-tls v1.0.0
Compiling urlencoding v1.3.2
error[E0658]: use of unstable library feature 'matches_macro'
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/urlencoding-1.3.2/src/enc.rs:79:31
|
79 | .take_while(|&&c| matches!(c, b'0'..=b'9' | b'A'..=b'Z' | b'a'..=b'z' | b'-' | b'.' | b'_' | b'~')).count();
| ^^^^^^^
|
= note: for more information, see rust-lang/rust#65721

error: aborting due to previous error

For more information about this error, try rustc --explain E0658.
error: could not compile urlencoding.
warning: build failed, waiting for other jobs to finish...
error: failed to compile scaap v0.1.0 (/usr/src/scaap), intermediate artifacts can be found at /usr/src/scaap/target

Caused by:
build failed
The command '/bin/sh -c cargo install --path .' returned a non-zero code: 101`

Also, when I try to run a docker container with your image "ghcr.io/ecyshor/scaap:latest" I get this error:

`Initializing scaap
Starting scaap

  • echo 'Initializing scaap'
  • test -f /etc/scaap/init-runtime.sh
  • echo 'Starting scaap'
  • exec /etc/scaap-app/scaap
    thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:1165:5
    stack backtrace:
    0: backtrace::backtrace::libunwind::trace
    at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
    1: backtrace::backtrace::trace_unsynchronized
    at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
    2: std::sys_common::backtrace::_print_fmt
    at src/libstd/sys_common/backtrace.rs:77
    3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
    at src/libstd/sys_common/backtrace.rs:61
    4: core::fmt::write
    at src/libcore/fmt/mod.rs:1028
    5: std::io::Write::write_fmt
    at src/libstd/io/mod.rs:1412
    6: std::sys_common::backtrace::_print
    at src/libstd/sys_common/backtrace.rs:65
    7: std::sys_common::backtrace::print
    at src/libstd/sys_common/backtrace.rs:50
    8: std::panicking::default_hook::{{closure}}
    at src/libstd/panicking.rs:188
    9: std::panicking::default_hook
    at src/libstd/panicking.rs:205
    10: std::panicking::rust_panic_with_hook
    at src/libstd/panicking.rs:464
    11: std::panicking::continue_panic_fmt
    at src/libstd/panicking.rs:373
    12: rust_begin_unwind
    at src/libstd/panicking.rs:302
    13: core::panicking::panic_fmt
    at src/libcore/panicking.rs:139
    14: core::result::unwrap_failed
    at src/libcore/result.rs:1165
    15: <std::future::GenFuture as core::future::future::Future>::poll
    16: tokio::runtime::enter::Enter::block_on
    17: tokio::runtime::context::enter
    18: tokio::runtime::Runtime::block_on
    19: scaap::main
    20: std::rt::lang_start::{{closure}}
    21: std::rt::lang_start_internal::{{closure}}
    at src/libstd/rt.rs:48
    22: std::panicking::try::do_call
    at src/libstd/panicking.rs:287
    23: __rust_maybe_catch_panic
    at src/libpanic_unwind/lib.rs:78
    24: std::panicking::try
    at src/libstd/panicking.rs:265
    25: std::panic::catch_unwind
    at src/libstd/panic.rs:396
    26: std::rt::lang_start_internal
    at src/libstd/rt.rs:47
    27: main
    28: __libc_start_main
    29:
    note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant