Git Product home page Git Product logo

grin-docker's People

Contributors

0xmichalis avatar anynomouss avatar cmaher avatar ignopeverell avatar yeastplume avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grin-docker's Issues

Docker build fails for "base build" image - cannot compile "arc-swap" and "zeroize"

When building the "base build" docker image, the following error arises:

error[E0425]: cannot find function `spin_loop_hint` in module `atomic`
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.3.6/src/lib.rs:1049:25
     |
1049 |                 atomic::spin_loop_hint();
     |                         ^^^^^^^^^^^^^^ not found in `atomic`

error: the struct `#[repr(align(u16))]` attribute is experimental (see issue #33626)
  --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.3.6/src/debt.rs:20:1
   |
20 | / struct Node {
21 | |     next: Option<&'static Node>,
22 | |     in_use: AtomicBool,
23 | |     slots: [Debt; DEBT_SLOT_CNT],
24 | | }
   | |_^

error: non-string literals in attributes, or string literals in top-level positions, are experimental (see issue #34981)
  --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.3.6/src/debt.rs:19:1
   |
19 | #[repr(align(64))]
   | ^^^^^^^^^^^^^^^^^^

error: the struct `#[repr(align(u16))]` attribute is experimental (see issue #33626)
  --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.3.6/src/gen_lock.rs:49:1
   |
49 | pub struct Shard(pub(crate) [AtomicUsize; GEN_CNT]);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: non-string literals in attributes, or string literals in top-level positions, are experimental (see issue #34981)
  --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.3.6/src/gen_lock.rs:47:1
   |
47 | #[repr(align(64))]
   | ^^^^^^^^^^^^^^^^^^

error: slice pattern syntax is experimental (see issue #23121)
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.3.6/src/lib.rs:1030:32
     |
1030 |                 .fold([0, 0], |[a1, a2], s| {
     |                                ^^^^^^^^

error: slice pattern syntax is experimental (see issue #23121)
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.3.6/src/lib.rs:1031:25
     |
1031 |                     let [v1, v2] = s.snapshot();
     |                         ^^^^^^^^

error: aborting due to 7 previous errors

error: Could not compile `arc-swap`.
warning: build failed, waiting for other jobs to finish...
error: expected one of `,` or `as`, found `::`
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/zeroize-0.5.2/src/lib.rs:212:22
    |
212 | use core::{ptr, slice::IterMut, sync::atomic};
    |                      ^^ expected one of `,` or `as` here

error: expected one of `;` or `as`, found `::`
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/zeroize-0.5.2/src/lib.rs:212:22
    |
212 | use core::{ptr, slice::IterMut, sync::atomic};
    |                      ^^ expected one of `;` or `as` here

error: aborting due to 2 previous errors

error: Could not compile `zeroize`.
warning: build failed, waiting for other jobs to finish...

error: build failed

Summarizing: arc-swap-0.3.6 and zeroize-0.5.2 cannot be compiled.
Does not seem to be a grin related issue though, but rather a problem with an external lib?

Issues with testnet docker-compose

Hi,

Just wondering if there are further steps that I need to do.

With a standard docker-compose up:

The validator is giving me the following error logs:

Oct 27 13:19:37.358 INFO Using configuration file at: /home/grinuser/.grin/grin.toml
thread 'main' panicked at 'Unknown server command, use 'grin help server' for details', src/bin/grin.rs:334:7
Oct 27 13:19:37.360 INFO Starting the Grin server...
stack backtrace:
   0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
             at /checkout/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::_print
             at /checkout/src/libstd/sys_common/backtrace.rs:71
   2: std::panicking::default_hook::{{closure}}
             at /checkout/src/libstd/sys_common/backtrace.rs:60
             at /checkout/src/libstd/panicking.rs:381
   3: std::panicking::default_hook
             at /checkout/src/libstd/panicking.rs:397
   4: std::panicking::rust_panic_with_hook
             at /checkout/src/libstd/panicking.rs:611
   5: std::panicking::begin_panic
             at /checkout/src/libstd/panicking.rs:572
   6: grin::server_command
             at src/bin/grin.rs:334
   7: grin::main
             at src/bin/grin.rs:240
   8: __rust_maybe_catch_panic
             at /checkout/src/libpanic_unwind/lib.rs:99
   9: std::rt::lang_start
             at /checkout/src/libstd/panicking.rs:459
             at /checkout/src/libstd/panic.rs:361
             at /checkout/src/libstd/rt.rs:61
  10: main
  11: __libc_start_main
  12: _start
thread 'main' panicked at 'Unknown server command, use 'grin help server' for details', src/bin/grin.rs:334:7
Oct 27 13:20:02.498 INFO Using configuration file at: /home/grinuser/.grin/grin.toml
Oct 27 13:20:02.499 INFO Starting the Grin server...
stack backtrace:
   0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
             at /checkout/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::_print
             at /checkout/src/libstd/sys_common/backtrace.rs:71
   2: std::panicking::default_hook::{{closure}}
             at /checkout/src/libstd/sys_common/backtrace.rs:60
             at /checkout/src/libstd/panicking.rs:381
   3: std::panicking::default_hook
             at /checkout/src/libstd/panicking.rs:397
   4: std::panicking::rust_panic_with_hook
             at /checkout/src/libstd/panicking.rs:611
   5: std::panicking::begin_panic
             at /checkout/src/libstd/panicking.rs:572
   6: grin::server_command
             at src/bin/grin.rs:334
   7: grin::main
             at src/bin/grin.rs:240
   8: __rust_maybe_catch_panic
             at /checkout/src/libpanic_unwind/lib.rs:99
   9: std::rt::lang_start
             at /checkout/src/libstd/panicking.rs:459
             at /checkout/src/libstd/panic.rs:361
             at /checkout/src/libstd/rt.rs:61
  10: main
  11: __libc_start_main
  12: _start

and the wallet:

Oct 27 13:19:37.151 INFO Using configuration file at: /home/grinuser/.grin/grin.toml
thread 'main' panicked at 'wallet seed file does not yet exist (grin wallet init)', wallet/src/types.rs:316:3
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Oct 27 13:19:37.160 DEBG Using wallet seed file at: ./wallet.seed
Oct 27 13:19:37.160 ERRO Run: "grin wallet init" to initialize a new wallet.
thread 'main' panicked at 'wallet seed file does not yet exist (grin wallet init)', wallet/src/types.rs:316:3
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Cheers,

Dan

Docker build failed

Docker build failed

Step 6/21 : RUN cargo build
 ---> Running in 623dde1aaf09
warning: unused manifest key: package.edition
warning: unused manifest key: package.edition
warning: unused manifest key: package.edition
warning: unused manifest key: package.edition
warning: unused manifest key: package.edition
warning: unused manifest key: package.edition
warning: unused manifest key: package.edition
warning: unused manifest key: package.edition
warning: unused manifest key: package.edition
warning: unused manifest key: package.edition
warning: unused manifest key: package.edition
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading serde v1.0.90
 Downloading term v0.5.2
 Downloading chrono v0.4.6
 Downloading ctrlc v3.1.1
 Downloading clap v2.33.0
 Downloading humansize v1.1.0
 Downloading failure_derive v0.1.5
 Downloading log v0.4.6
 Downloading blake2-rfc v0.2.18
 Downloading serde_json v1.0.39
 Downloading failure v0.1.5
 Downloading walkdir v2.2.7
 Downloading zeroize v0.5.2
 Downloading base64 v0.9.3
 Downloading grin_secp256k1zkp v0.7.5
 Downloading rand v0.6.5
 Downloading log4rs v0.8.3
 Downloading byteorder v1.3.1
 Downloading parking_lot v0.6.4
 Downloading zip v0.4.2
 Downloading lazy_static v1.3.0
 Downloading backtrace v0.3.15
 Downloading serde_derive v1.0.90
 Downloading same-file v1.0.4
 Downloading safemem v0.3.0
 Downloading cfg-if v0.1.7
 Downloading proc-macro2 v0.4.27
 Downloading syn v0.15.31
 Downloading quote v0.6.12
 Downloading unicode-xid v0.1.0
 Downloading arrayvec v0.3.25
 Downloading libc v0.2.51
 Downloading rand v0.5.6
 Downloading rustc-serialize v0.3.24
 Downloading odds v0.2.26
 Downloading nodrop v0.1.13
 Downloading ryu v0.2.7
 Downloading itoa v0.4.3
 Downloading rand_core v0.3.1
 Downloading rand_core v0.4.0
 Downloading gcc v0.3.55
 Downloading rand_pcg v0.1.2
 Downloading rand_chacha v0.1.1
 Downloading rand_os v0.1.3
 Downloading rand_isaac v0.1.1
 Downloading rand_hc v0.1.0
 Downloading rand_xorshift v0.1.1
 Downloading rand_jitter v0.1.3
 Downloading autocfg v0.1.2
 Downloading serde-value v0.5.3
 Downloading humantime v1.2.0
 Downloading antidote v1.0.0
 Downloading flate2 v1.0.7
 Downloading fnv v1.0.6
 Downloading log-mdc v0.1.0
 Downloading arc-swap v0.3.11
 Downloading thread-id v3.3.0
 Downloading typemap v0.3.3
 Downloading serde_yaml v0.8.8
 Downloading ordered-float v1.0.2
 Downloading num-traits v0.2.6
 Downloading quick-error v1.2.2
 Downloading miniz-sys v0.1.11
 Downloading crc32fast v1.2.0
 Downloading cc v1.0.35
 Downloading num-integer v0.1.39
 Downloading time v0.1.42
 Downloading unsafe-any v0.4.2
 Downloading traitobject v0.1.0
 Downloading dtoa v0.4.3
 Downloading yaml-rust v0.4.3
 Downloading linked-hash-map v0.5.2
 Downloading parking_lot_core v0.3.1
 Downloading lock_api v0.1.5
 Downloading smallvec v0.6.9
 Downloading rustc_version v0.2.3
 Downloading semver v0.9.0
 Downloading semver-parser v0.7.0
 Downloading owning_ref v0.4.0
 Downloading scopeguard v0.3.3
 Downloading stable_deref_trait v1.1.1
 Downloading msdos_time v0.1.6
 Downloading podio v0.1.6
 Downloading rustc-demangle v0.1.14
 Downloading enum_primitive v0.1.1
 Downloading lru-cache v0.1.2
 Downloading num v0.2.0
 Downloading uuid v0.6.5
 Downloading siphasher v0.2.3
 Downloading num-bigint v0.2.2
 Downloading croaring v0.3.9
 Downloading synstructure v0.10.1
 Downloading num-traits v0.1.43
 Downloading num-rational v0.2.1
 Downloading num-iter v0.1.37
 Downloading num-complex v0.2.1
 Downloading ripemd160 v0.7.0
 Downloading zeroize v0.8.0
 Downloading hmac v0.6.3
 Downloading sha2 v0.7.1
 Downloading pbkdf2 v0.2.3
 Downloading digest v0.7.6
 Downloading byte-tools v0.2.0
 Downloading block-buffer v0.3.3
 Downloading generic-array v0.9.0
 Downloading typenum v1.10.0
 Downloading arrayref v0.3.5
 Downloading zeroize_derive v0.8.0
 Downloading rand v0.4.6
 Downloading constant_time_eq v0.1.3
 Downloading arrayvec v0.4.10
 Downloading crypto-mac v0.6.2
 Downloading fake-simd v0.1.2
 Downloading croaring-sys v0.3.9
 Downloading bindgen v0.37.4
 Downloading regex v1.1.5
 Downloading quote v0.5.2
 Downloading peeking_take_while v0.1.2
 Downloading cexpr v0.2.3
 Downloading proc-macro2 v0.3.5
 Downloading env_logger v0.5.13
 Downloading which v1.0.5
 Downloading clang-sys v0.23.0
 Downloading unicode-width v0.1.5
 Downloading bitflags v1.0.4
 Downloading vec_map v0.8.1
 Downloading textwrap v0.11.0
 Downloading yaml-rust v0.3.5
 Downloading strsim v0.8.0
 Downloading atty v0.2.11
 Downloading aho-corasick v0.7.3
 Downloading memchr v2.2.0
 Downloading utf8-ranges v1.0.2
 Downloading regex-syntax v0.6.6
 Downloading thread_local v0.3.6
 Downloading ucd-util v0.1.3
 Downloading nom v3.2.1
 Downloading memchr v1.0.2
 Downloading termcolor v1.0.4
 Downloading glob v0.2.11
 Downloading libloading v0.5.0
 Downloading bytes v0.4.12
 Downloading tempfile v3.0.7
 Downloading net2 v0.2.33
 Downloading num v0.1.42
 Downloading iovec v0.1.2
 Downloading remove_dir_all v0.5.1
 Downloading memmap v0.7.0
 Downloading lmdb-zero v0.4.4
 Downloading supercow v0.1.0
 Downloading bitflags v0.9.1
 Downloading liblmdb-sys v0.2.2
 Downloading num-complex v0.1.43
 Downloading num-rational v0.1.42
 Downloading num-bigint v0.1.44
 Downloading dirs v1.0.5
 Downloading toml v0.4.10
 Downloading tokio v0.1.18
 Downloading hyper-rustls v0.14.0
 Downloading itertools v0.7.11
 Downloading hyper v0.12.27
 Downloading futures v0.1.26
 Downloading fs2 v0.4.3
 Downloading http v0.1.17
 Downloading tokio-udp v0.1.3
 Downloading num_cpus v1.10.0
 Downloading tokio-executor v0.1.7
 Downloading tokio-io v0.1.12
 Downloading tokio-reactor v0.1.9
 Downloading tokio-fs v0.1.6
 Downloading tokio-current-thread v0.1.6
 Downloading tokio-timer v0.2.10
 Downloading tokio-codec v0.1.1
 Downloading mio v0.6.16
 Downloading tokio-tcp v0.1.3
 Downloading tokio-sync v0.1.4
 Downloading tokio-trace-core v0.1.0
 Downloading tokio-threadpool v0.1.13
 Downloading slab v0.4.2
 Downloading lazycell v1.2.1
 Downloading crossbeam-utils v0.6.5
 Downloading parking_lot v0.7.1
 Downloading parking_lot_core v0.4.0
 Downloading crossbeam-queue v0.1.2
 Downloading crossbeam-deque v0.7.1
 Downloading crossbeam-epoch v0.7.1
 Downloading memoffset v0.2.1
 Downloading tokio-core v0.1.17
 Downloading ct-logs v0.4.0
 Downloading rustls v0.13.1
 Downloading webpki v0.18.1
 Downloading webpki-roots v0.15.0
 Downloading tokio-rustls v0.7.2
 Downloading scoped-tls v0.1.2
 Downloading sct v0.4.0
 Downloading ring v0.13.5
 Downloading untrusted v0.6.2
 Downloading futures-cpupool v0.1.8
 Downloading want v0.0.6
 Downloading httparse v1.3.3
 Downloading h2 v0.1.18
 Downloading try-lock v0.2.2
 Downloading string v0.1.3
 Downloading indexmap v1.0.2
 Downloading either v1.5.2
 Downloading url v1.7.2
 Downloading matches v0.1.8
 Downloading idna v0.1.5
 Downloading percent-encoding v1.0.1
 Downloading unicode-bidi v0.3.4
 Downloading unicode-normalization v0.1.8
 Downloading built v0.3.0
 Downloading git2 v0.7.5
 Downloading libgit2-sys v0.7.11
 Downloading libz-sys v1.0.25
 Downloading pkg-config v0.3.14
 Downloading cursive v0.12.0
 Downloading backtrace-sys v0.1.28
 Downloading ansi_term v0.11.0
 Downloading tokio-uds v0.2.5
 Downloading mio-uds v0.6.7
 Downloading nix v0.11.0
 Downloading void v1.0.2
 Downloading pancurses v0.16.1
 Downloading unicode-segmentation v1.2.1
 Downloading crossbeam-channel v0.3.8
 Downloading signal-hook v0.1.8
 Downloading enumset v0.4.0
 Downloading term_size v0.3.1
 Downloading xi-unicode v0.1.0
 Downloading ncurses v5.99.0
 Downloading enum-map v0.5.0
 Downloading toml v0.5.0
 Downloading maplit v1.0.1
 Downloading hashbrown v0.3.0
 Downloading enumset_derive v0.4.0
 Downloading darling v0.9.0
 Downloading darling_core v0.9.0
 Downloading darling_macro v0.9.0
 Downloading ident_case v1.0.1
 Downloading strsim v0.7.0
 Downloading enum-map-derive v0.4.1
 Downloading enum-map-internals v0.1.2
 Downloading syn v0.14.9
 Downloading array-macro v1.0.3
   Compiling rustc-demangle v0.1.14
   Compiling smallvec v0.6.9
   Compiling cc v1.0.35
   Compiling num-rational v0.2.1
   Compiling syn v0.15.31
   Compiling xi-unicode v0.1.0
   Compiling failure_derive v0.1.5
   Compiling bitflags v1.0.4
   Compiling zeroize v0.5.2
error: expected one of `,` or `as`, found `::`
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/zeroize-0.5.2/src/lib.rs:212:22
    |
212 | use core::{ptr, slice::IterMut, sync::atomic};
    |                      ^^ expected one of `,` or `as` here

error: expected one of `;` or `as`, found `::`
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/zeroize-0.5.2/src/lib.rs:212:22
    |
212 | use core::{ptr, slice::IterMut, sync::atomic};
    |                      ^^ expected one of `;` or `as` here

error: aborting due to 2 previous errors

error: Could not compile `zeroize`.
warning: build failed, waiting for other jobs to finish...
error: build failed

Docker build error returned a non-zero code: 101

.........
Compiling crossbeam-utils v0.5.0
error: the struct #[repr(align(u16))] attribute is experimental (see issue #33626)
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-utils-0.5.0/src/cache_padded.rs:19:1
|
19 | #[repr(align(64))]
| ^^^^^^^^^^^^^^^^^^
error: non-string literals in attributes, or string literals in top-level positions, are experimental (see issue #34981)
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-utils-0.5.0/src/cache_padded.rs:19:1
|
19 | #[repr(align(64))]
| ^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
error: Could not compile crossbeam-utils.
warning: build failed, waiting for other jobs to finish...
error: build failed
ERROR: ### Service 'grin-bot-node' failed to build: The command '/bin/sh -c cargo build' returned a non-zero code: 101

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.