Code Monkey home page Code Monkey logo

cardano-pool-docker's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cardano-pool-docker's Issues

deprecated command line switch

in generate_operational_certificate:

cardano-cli stake-pool id --verification-key-file cold-keys/cold.vkey > ${NODE_PATH}/staking/POOL_ID

--verivication-key-file is deprecated. This should be --cold-verification-key-file imho. Is that right?

edit: maybe '--output-format hex' is needed as well...?

--cold-create - tar: staking/wallets: Cannot stat: No such file or directory

Hello,

I would like to use an offline wallet for my pool but unfortunately I am stuck creating the keys.

Error from Logs:

ada-cold-create    | Creating Stake Pool addresses, keys and certificates, to be submitted to the blockchain.
...
ada-cold-create    | tar: staking/wallets: Cannot stat: No such file or directory
ada-cold-create    | tar: Exiting with failure status due to previous errors
ada-cold-create    | Upload step1.tar.gz to your block-producing node to continue.
ada-cold-create    | Waiting for step2.tar.gz from your block-producing node... 

But the files are under /config/main-cold-create/staking/wallets/owner

I use docker-compose:

version: "3.8"

services:

  ada-cold-create:
    image: arradev/cardano-node:latest
    stdin_open: true
    tty: true
    container_name: ada-cold-create
    env_file:
      - .env
    command: ["--cold-create"]
    restart: unless-stopped
    volumes:
      - $PWD/config:/config
    networks:
      - cardano

networks:
  cardano:
    driver: bridge

My envs:

NODE_NAME=cold-create
CARDANO_NETWORK=main
POOL_PLEDGE=500000000
POOL_COST=340000000
POOL_MARGIN=1.00
METADATA_URL=https://metadata.json
PUBLIC_RELAY_IP=X.X.X.X
PUBLIC_RELAY_PORT=3000

I have looked at the scripts but do not see any errors. Have I understood something wrong?

Thanks in advanced for every help :)

missing keys message when they are in the directory

cardano@cardano-producer:~$ docker run -it --rm --network=cardano --name main-producing -p 3000:3000 -p 12798:12798 -e HOST_ADDR="0.0.0.0" -e NODE_PORT="3000" -e NODE_NAME="block-producing" -e NODE_TOPOLOGY="192.168.0.9:3000/1" -e CARDANO_NETWORK="main" -e PROMETHEUS_PORT="12798" -v $PWD/config/:/config/ arradev/cardano-node:latest --start --staking 
Missing required pool-keys/kes.skey.
Missing required pool-keys/vrf.skey.
Missing required pool-keys/node.cert.
Missing required POOL_ID.
You are missing required files to start.
You need to initialize the stake pool keys, addresses and certificates and submit them to the blockchain first.
You can do that by running `create_stakepool`
^Ccardano@cardano-producer:~$ 

cardano@cardano-producer:~/config/staking/pool-keys$ pwd
/home/cardano/config/staking/pool-keys
cardano@cardano-producer:~/config/staking/pool-keys$

cardano@cardano-producer:~$ ls config/staking/pool-keys/
deleg.cert  kes.skey  node.cert  payment.addr  pool.cert  poolMetaDataHash.txt  poolMetaData.json  stake.cert  stakepoolid.txt  tx.raw  tx.signed  vrf.skey

Could you help me troubleshoot?

Error in docker-compose for TEST network: "open terminal failed: not a terminal"

Hi, and thank you for building up this setup!

  • Running docker-compose mc4 fails, relays-new.mainnet-candidate-4.dev.cardano.org seems to be down, relay says:
[ip-172-3:cardano.node.IpSubscription:Error:52] [2020-10-26 19:49:46.37 UTC] [String "Failed to start all required subscriptions",String "[127.0.0.1:3000]",String "WithIPList SubscriptionTrace",String "LocalAddresses {laIpv4 = Just 0.0.0.0:0, laIpv6 = Nothing, laUnix = Nothing}"]
[ip-172-3:cardano.node.DnsResolver:Error:61] [2020-10-26 19:49:46.38 UTC] [String "A lookup failed with NameError",String "DnsTrace",String "\"relays-new.mainnet-candidate-4.dev.cardano.org\""]
[ip-172-3:cardano.node.DnsResolver:Error:60] [2020-10-26 19:49:46.38 UTC] [String "AAAA lookup failed with NameError",String "DnsTrace",String "\"relays-new.mainnet-candidate-4.dev.cardano.org\""]
  • So I am trying to run the test network.
  • I use examples/test/mc4-docker-compose.yaml where I replaced: ARDANO_NETWORK=mc4 --> ARDANO_NETWORK=test
  • Then
sudo docker-compose -f test-docker-compose.yaml up -d
WARNING: The PWD variable is not set. Defaulting to a blank string.
Creating test-producing ... done
Creating test-relay1    ... done
  • Relay seems to work:
[ip-172-3:cardano.node.ChainDB:Notice:34] [2020-10-26 19:45:31.41 UTC] Chain extended, new tip: a4fc8f550cdbd881d47c6715cb4418742a43c5eb88e52f02eb7df265cb43fe7f at slot 987714
[ip-172-3:cardano.node.ChainDB:Notice:34] [2020-10-26 19:45:32.66 UTC] Chain extended, new tip: 1266b785d9ea796da9da9b5b0ecb1ed08514e5ad0ce23a6914cc7d2012210b51 at slot 988820
[ip-172-3:cardano.node.IpSubscription:Info:55] [2020-10-26 19:45:32.76 UTC] [String "Skipping peer 127.0.0.1:3000",String "[127.0.0.1:3000]",String "WithIPList SubscriptionTrace",String "LocalAddresses {laIpv4 = Just 0.0.0.0:0, laIpv6 = Nothing, laUnix = Nothing}"]
[ip-172-3:cardano.node.IpSubscription:Error:55] [2020-10-26 19:45:32.76 UTC] [String "Failed to start all required subscriptions",String "[127.0.0.1:3000]",String "WithIPList SubscriptionTrace",String "LocalAddresses {laIpv4 = Just 0.0.0.0:0, laIpv6 = Nothing, laUnix = Nothing}"]
[ip-172-3:cardano.node.IpSubscription:Info:55] [2020-10-26 19:45:33.76 UTC] [String "Restarting Subscription after 1.003092046s desired valency 1 current valency 0",String "[127.0.0.1:3000]",String "WithIPList SubscriptionTrace",String "LocalAddresses {laIpv4 = Just 0.0.0.0:0, laIpv6 = Nothing, laUnix = Nothing}"]
[ip-172-3:cardano.node.ChainDB:Notice:34] [2020-10-26 19:45:33.91 UTC] Chain extended, new tip: 75966cb6f34778264fc39f31e1ed64288e4e2f85dd82666a953cb36502cfc773 at slot 989989
[ip-172-3:cardano.node.ChainDB:Notice:34] [2020-10-26 19:45:35.16 UTC] Chain extended, new tip: 7a5377a2bf35e9af4a4994ecfdea6bbc09ef137844df0c88a279efe723ce04c8 at slot 991135
[ip-172-3:cardano.node.ChainDB:Notice:34] [2020-10-26 19:45:36.41 UTC] Chain extended, new tip: c3f12cc7f5ace758fe69f57ded0fa40ea34f39413fec700d586811218162e671 at slot 992255
  • But producer fails:
/scripts/init_node_vars: line 7: /config/test-test-block-producing/VARS: No such file or directory
Generating new shelley genesis file /config/test-test-block-producing/shelley-genesis.json from template /cfg-templates/test/shelley-genesis.json
Generating new byron genesis file /config/test-test-block-producing/byron-genesis.json from template /cfg-templates/test/byron-genesis.json
Generating new topology /config/test-test-block-producing/topology.json from template /cfg-templates/test/topology.json
Topology:  127.0.0.1:3001/1
Generating new config file /config/test-test-block-producing/config.json from template /cfg-templates/test/config.json
Generating new VARS /config/test-test-block-producing/VARS from template /cfg-templates/test/VARS
open terminal failed: not a terminal
open terminal failed: not a terminal
open terminal failed: not a terminal
open terminal failed: not a terminal

Do you see what could be the issue?

Thank you for your help.
Regards,
Greg.

get_protocol failing (cold wallet stake pool creation)

Hello,

Tremendous work you put here. I'll definitely contribute to it.

There seems to be a problem with the shelley update, when trying to follow the best practise.
When connecting to the docker container on host1 and running the get_protocol script, i get the following error:

root@48762446eacb:/# ./scripts/functions/get_protocol 
Shelley command failed: query protocol-parameters   Error: A query from a certain era was applied to a ledger from a different era: EraMismatch {ledgerEraName = "Byron", otherEraName = "Shelley"}

I'm running the stake pool on mainnet. Any Idea of what I should do/change?

Allow P2P mode for blockproducing nodes

I've read enabling P2P mode in block producing nodes works without problems.

At the moment we only support P2P for relays, but I think we don't need to restrict the use of P2P and can just leave the decision to the pool operator.

Starting issues - script error?

L.S.,

Trying to start a relay server with the following compose file:
`version: '3.3'

volumes:
rn2_config:

services:
cardano-node:
container_name: rn2
image: 'arradev/cardano-node:latest'
restart: unless-stopped
#network_mode: cardano
environment:
- HOST_ADDR=0.0.0.0
- NODE_PORT=3000
- NODE_NAME=rn2
- NODE_TOPOLOGY=10.8.0.1:3000/1
- NODE_RELAY=True
- CARDANO_NETWORK=main
- PROMETHEUS_PORT=12798
ports:
- 3000:3000
- 12798:12798
volumes:
- rn2_config:/config/
`

when using docker-compose up -d , the container keeps restarting with the following relevant log:
/scripts/init_node_vars: line 7: /config/main-rn2/VARS: No such file or directory

is the error on my end?

Weird log output

Hello!

Thanks for making this docker image. I have some trouble when I'm running docker logs -f CONTAINER_ID, makes it pretty hard to get this project running. For me it looks like this:
Screenshot 2021-09-12 at 21 26 36

Any suggestions on how to fix this?

Cheers

Cronjob running topology_submit looks in the wrong place

Currently, the topology_submit script lives in /scripts/functions/topology_submit. Though, crontab is configured to execute the file on this path /scripts/topology_submit.

I'd move the topology_submit script one level higher into scripts/.

I'll send a PR in a few minutes.

Up to date instructions

Hi,

Can you please update the instructions and maybe expand on them a bit more? I'm finding it hard to follow, especially when the example files don't match the main readme.md instructions, and then the test examples don't match the main-net examples.

Specifically, I'm having issues with timing. As in, when to start what host with what command. I.e, I take it that host 3 isn't supposed to connect until host 1 has fully synced? Even then I can't get host 3 to generate the certificates (only wallet files), so do these get generated once it's submitted to the blockchain?

Thanks!
Casey.

cncli containers fails to build

Just popping a message here, since I saw in the logs that the cncli version 4.0.4 fails to build. Might be not an issue from your site, but here is the log.

Step 7/13 : RUN echo "Building tags/v$VERSION..." && git clone https://github.com/AndrewWestberg/cncli && cd cncli && git fetch --all --recurse-submodules --tags && git tag && git checkout tags/v$VERSION && cargo install --path . --force && cncli -V
---> Running in bcb3eb486284
Building tags/v4.0.4...
Cloning into 'cncli'...
Fetching origin
0.1.0
0.1.1
0.1.2
0.1.3
v0.1.4
v0.1.5
v0.2.0
v0.2.1
v0.2.10
v0.2.11
v0.2.2
v0.2.3
v0.2.4
v0.2.5
v0.2.6
v0.2.7
v0.2.8
v0.2.9
v0.3.0
v0.3.1
v0.3.2
v0.3.3
v0.4.0
v0.4.1
v0.4.2
v0.5.0
v0.5.1
v0.5.2
v0.5.3
v0.5.4
v0.5.5
v0.5.6
v0.5.7
v0.5.8
v0.5.9
v0.6.0
v1.0.0
v1.0.1
v1.0.2
v1.0.3
v1.0.4
v1.1.0
v1.2.0
v1.2.1
v1.3.0
v1.3.1
v1.4.0
v1.4.1
v1.5.0
v1.5.1
v2.0.0
v2.0.1
v2.0.2
v2.0.3
v2.1.0
v2.1.1
v3.0.0
v3.1.0
v3.1.1
v3.1.2
v3.1.3
v3.1.4
v3.1.5
v4.0.0
v4.0.1
v4.0.2
v4.0.3
v4.0.4
Note: switching to 'tags/v4.0.4'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 91e61b2 Update to new guild network
Installing cncli v4.0.4 (/cncli)
Updating crates.io index
Downloading crates ...
Downloaded ansi_term v0.12.1
Downloaded proc-macro2 v1.0.34
Downloaded base64 v0.13.0
Downloaded atomic-waker v1.0.0
Downloaded either v1.6.1
Downloaded want v0.3.0
Downloaded hex v0.4.3
Downloaded hashbrown v0.9.1
Downloaded strsim v0.8.0
Downloaded syn v1.0.82
Downloaded url v2.2.2
Downloaded socket2 v0.4.2
Downloaded proc-macro-hack v0.5.19
Downloaded futures-task v0.3.17
Downloaded getrandom v0.2.3
Downloaded fallible-streaming-iterator v0.1.9
Downloaded waker-fn v1.1.0
Downloaded tinyvec_macros v0.1.0
Downloaded tracing v0.1.29
Downloaded parse-zoneinfo v0.3.0
Downloaded smallvec v1.7.0
Downloaded serde-aux v2.3.0
Downloaded rusqlite v0.24.2
Downloaded rayon-core v1.9.1
Downloaded structopt v0.3.25
Downloaded proc-macro-nested v0.1.7
Downloaded try-lock v0.2.3
Downloaded tokio-native-tls v0.3.0
Downloaded unicode-width v0.1.9
Downloaded unicode-normalization v0.1.19
Downloaded itertools v0.10.3
Downloaded unicode-segmentation v1.8.0
Downloaded tokio-util v0.6.9
Downloaded value-bag v1.0.0-alpha.8
Downloaded crossbeam-epoch v0.9.5
Downloaded futures-macro v0.3.17
Downloaded aho-corasick v0.7.18
Downloaded constant_time_eq v0.1.5
Downloaded proc-macro-error v1.0.4
Downloaded serde_derive v1.0.131
Downloaded unicode-bidi v0.3.7
Downloaded polling v2.2.0
Downloaded structopt-derive v0.4.18
Downloaded version_check v0.9.3
Downloaded cfg-if v1.0.0
Downloaded httparse v1.5.1
Downloaded hashbrown v0.11.2
Downloaded chrono v0.4.19
Downloaded serde_json v1.0.73
Downloaded matches v0.1.9
Downloaded env_logger v0.7.1
Downloaded mio v0.7.14
Downloaded humantime v1.3.0
Downloaded num_cpus v1.13.0
Downloaded vec_map v0.8.2
Downloaded num-traits v0.2.14
Downloaded kv-log-macro v1.0.7
Downloaded log v0.4.14
Downloaded heck v0.3.3
Downloaded itoa v0.4.8
Downloaded hyper v0.14.16
Downloaded regex-syntax v0.6.25
Downloaded tracing-core v0.1.21
Downloaded bitflags v1.3.2
Downloaded openssl v0.10.38
Downloaded memoffset v0.6.5
Downloaded num-bigint v0.3.3
Downloaded tokio v1.15.0
Downloaded memchr v2.4.1
Downloaded rug v1.14.0
Downloaded http v0.2.5
Downloaded blake2b_simd v0.5.11
Downloaded native-tls v0.2.8
Downloaded encoding_rs v0.8.30
Downloaded itoa v1.0.1
Downloaded chrono-tz v0.5.3
Downloaded libsqlite3-sys v0.20.1
Downloaded indexmap v1.7.0
Downloaded gmp-mpfr-sys v1.4.7
Downloaded clap v2.34.0
Downloaded atty v0.2.14
Downloaded crossbeam-deque v0.8.1
Downloaded blake2b_simd v1.0.0
Downloaded crossbeam-channel v0.5.1
Downloaded bytes v1.1.0
Downloaded az v1.2.0
Downloaded event-listener v2.5.1
Downloaded blocking v1.1.0
Downloaded autotools v0.2.4
Downloaded lazy_static v1.4.0
Downloaded hyper-tls v0.5.0
Downloaded reqwest v0.11.7
Downloaded pretty_env_logger v0.4.0
Downloaded http-body v0.4.4
Downloaded futures-util v0.3.17
Downloaded concurrent-queue v1.2.2
Downloaded num-integer v0.1.44
Downloaded httpdate v1.0.2
Downloaded env_logger v0.8.4
Downloaded cardano_ouroboros_network v0.2.8
Downloaded ahash v0.4.7
Downloaded rand_chacha v0.3.1
Downloaded quick-error v1.2.3
Downloaded openssl-sys v0.9.72
Downloaded idna v0.2.3
Downloaded serde v1.0.131
Downloaded regex v1.5.4
Downloaded proc-macro-error-attr v1.0.4
Downloaded ppv-lite86 v0.2.15
Downloaded pkg-config v0.3.24
Downloaded openssl-probe v0.1.4
Downloaded humantime v2.1.0
Downloaded futures-sink v0.3.17
Downloaded futures-io v0.3.17
Downloaded futures-executor v0.3.17
Downloaded futures-core v0.3.17
Downloaded futures-channel v0.3.17
Downloaded futures v0.3.17
Downloaded rand v0.8.4
Downloaded form_urlencoded v1.0.1
Downloaded foreign-types-shared v0.1.1
Downloaded async-channel v1.6.1
Downloaded serde_urlencoded v0.7.0
Downloaded rand_core v0.6.3
Downloaded quote v1.0.10
Downloaded pin-project-lite v0.2.7
Downloaded foreign-types v0.3.2
Downloaded pin-utils v0.1.0
Downloaded h2 v0.3.9
Downloaded fastrand v1.5.0
Downloaded arrayvec v0.5.2
Downloaded once_cell v1.9.0
Downloaded cache-padded v1.1.1
Downloaded byteorder v1.4.3
Downloaded autocfg v1.0.1
Downloaded arrayvec v0.7.2
Downloaded rayon v1.5.1
Downloaded slab v0.4.5
Downloaded hashlink v0.6.0
Downloaded serde_cbor v0.11.2
Downloaded mime v0.3.16
Downloaded half v1.8.2
Downloaded ctor v0.1.21
Downloaded scopeguard v1.1.0
Downloaded net2 v0.2.37
Downloaded fnv v1.0.7
Downloaded bigdecimal v0.2.2
Downloaded async-task v4.0.3
Downloaded async-mutex v1.4.0
Downloaded async-lock v2.4.0
Downloaded async-io v1.6.0
Downloaded async-global-executor v2.0.2
Downloaded async-executor v1.4.1
Downloaded arrayref v0.3.6
Downloaded unicode-xid v0.2.2
Downloaded tower-service v0.3.1
Downloaded tinyvec v1.5.1
Downloaded time v0.1.44
Downloaded textwrap v0.11.0
Downloaded termcolor v1.1.2
Downloaded ryu v1.0.9
Downloaded parking v2.0.0
Downloaded libc v0.2.112
Downloaded futures-lite v1.12.0
Downloaded fallible-iterator v0.2.0
Downloaded cfg-if v0.1.10
Downloaded cc v1.0.72
Downloaded percent-encoding v2.1.0
Downloaded ipnet v2.3.1
Downloaded crossbeam-utils v0.8.5
Downloaded async-std v1.10.0
Compiling autocfg v1.0.1
Compiling proc-macro2 v1.0.34
Compiling unicode-xid v0.2.2
Compiling libc v0.2.112
Compiling syn v1.0.82
Compiling memchr v2.4.1
Compiling cfg-if v1.0.0
Compiling version_check v0.9.3
Compiling log v0.4.14
Compiling pin-project-lite v0.2.7
Compiling futures-core v0.3.17
Compiling cc v1.0.72
Compiling pkg-config v0.3.24
Compiling lazy_static v1.4.0
Compiling futures-io v0.3.17
Compiling slab v0.4.5
Compiling proc-macro-hack v0.5.19
Compiling once_cell v1.9.0
Compiling futures-task v0.3.17
Compiling serde_derive v1.0.131
Compiling bytes v1.1.0
Compiling proc-macro-nested v0.1.7
Compiling futures-sink v0.3.17
Compiling futures-channel v0.3.17
Compiling serde v1.0.131
Compiling pin-utils v0.1.0
Compiling bitflags v1.3.2
Compiling crossbeam-utils v0.8.5
Compiling itoa v0.4.8
Compiling foreign-types-shared v0.1.1
Compiling cache-padded v1.1.1
Compiling openssl v0.10.38
Compiling fnv v1.0.7
Compiling event-listener v2.5.1
Compiling parking v2.0.0
Compiling waker-fn v1.1.0
Compiling fastrand v1.5.0
Compiling hashbrown v0.11.2
Compiling matches v0.1.9
Compiling native-tls v0.2.8
Compiling httparse v1.5.1
Compiling tinyvec_macros v0.1.0
Compiling regex-syntax v0.6.25
Compiling try-lock v0.2.3
Compiling crossbeam-epoch v0.9.5
Compiling gmp-mpfr-sys v1.4.7
Compiling percent-encoding v2.1.0
Compiling openssl-probe v0.1.4
Compiling ryu v1.0.9
Compiling rayon-core v1.9.1
Compiling scopeguard v1.1.0
Compiling encoding_rs v0.8.30
Compiling tower-service v0.3.1
Compiling serde_json v1.0.73
Compiling httpdate v1.0.2
Compiling async-task v4.0.3
Compiling unicode-bidi v0.3.7
Compiling quick-error v1.2.3
Compiling termcolor v1.1.2
Compiling arrayref v0.3.6
Compiling atomic-waker v1.0.0
Compiling constant_time_eq v0.1.5
Compiling unicode-width v0.1.9
Compiling ahash v0.4.7
Compiling itoa v1.0.1
Compiling unicode-segmentation v1.8.0
Compiling az v1.2.0
Compiling half v1.8.2
Compiling ansi_term v0.12.1
Compiling mime v0.3.16
Compiling cfg-if v0.1.10
Compiling ipnet v2.3.1
Compiling ppv-lite86 v0.2.15
Compiling arrayvec v0.7.2
Compiling vec_map v0.8.2
error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:42:30
|
42 | pub struct ArrayVec<T, const CAP: usize> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:48:15
|
48 | impl<T, const CAP: usize> Drop for ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:63:15
|
63 | impl<T, const CAP: usize> ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:470:45
|
470 | struct BackshiftOnDrop<'a, T, const CAP: usize> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:477:23
|
477 | impl<T, const CAP: usize> Drop for BackshiftOnDrop<'_, T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:497:59
|
497 | fn process_one<F: FnMut(&mut T) -> bool, T, const CAP: usize, const DELETED: bool>(
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:497:77
|
497 | fn process_one<F: FnMut(&mut T) -> bool, T, const CAP: usize, const DELETED: bool>(
| ^^^^^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:705:15
|
705 | impl<T, const CAP: usize> ArrayVecImpl for ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:725:15
|
725 | impl<T, const CAP: usize> Deref for ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:733:15
|
733 | impl<T, const CAP: usize> DerefMut for ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:750:15
|
750 | impl<T, const CAP: usize> From<[T; CAP]> for ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:775:15
|
775 | impl<T, const CAP: usize> std::convert::TryFrom<&[T]> for ArrayVec<T, CAP>
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:803:23
|
803 | impl<'a, T: 'a, const CAP: usize> IntoIterator for &'a ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:820:23
|
820 | impl<'a, T: 'a, const CAP: usize> IntoIterator for &'a mut ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:837:15
|
837 | impl<T, const CAP: usize> IntoIterator for ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:847:30
|
847 | pub struct IntoIter<T, const CAP: usize> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:852:15
|
852 | impl<T, const CAP: usize> Iterator for IntoIter<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:873:15
|
873 | impl<T, const CAP: usize> DoubleEndedIterator for IntoIter<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:887:15
|
887 | impl<T, const CAP: usize> ExactSizeIterator for IntoIter<T, CAP> { }
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:889:15
|
889 | impl<T, const CAP: usize> Drop for IntoIter<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:904:15
|
904 | impl<T, const CAP: usize> Clone for IntoIter<T, CAP>
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:914:15
|
914 | impl<T, const CAP: usize> fmt::Debug for IntoIter<T, CAP>
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:926:35
|
926 | pub struct Drain<'a, T: 'a, const CAP: usize> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:936:32
|
936 | unsafe impl<'a, T: Sync, const CAP: usize> Sync for Drain<'a, T, CAP> {}
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:937:32
|
937 | unsafe impl<'a, T: Send, const CAP: usize> Send for Drain<'a, T, CAP> {}
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:939:23
|
939 | impl<'a, T: 'a, const CAP: usize> Iterator for Drain<'a, T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:955:23
|
955 | impl<'a, T: 'a, const CAP: usize> DoubleEndedIterator for Drain<'a, T, CAP>
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:966:23
|
966 | impl<'a, T: 'a, const CAP: usize> ExactSizeIterator for Drain<'a, T, CAP> {}
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:968:23
|
968 | impl<'a, T: 'a, const CAP: usize> Drop for Drain<'a, T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1011:15
|
1011 | impl<T, const CAP: usize> Extend for ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1028:15
|
1028 | impl<T, const CAP: usize> ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1035:52
|
1035 | pub(crate) unsafe fn extend_from_iter<I, const CHECK: bool>(&mut self, iterable: I)
| ^^^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1094:15
|
1094 | impl<T, const CAP: usize> iter::FromIterator for ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1105:15
|
1105 | impl<T, const CAP: usize> Clone for ArrayVec<T, CAP>
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1127:15
|
1127 | impl<T, const CAP: usize> Hash for ArrayVec<T, CAP>
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1135:15
|
1135 | impl<T, const CAP: usize> PartialEq for ArrayVec<T, CAP>
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1143:15
|
1143 | impl<T, const CAP: usize> PartialEq<[T]> for ArrayVec<T, CAP>
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1151:15
|
1151 | impl<T, const CAP: usize> Eq for ArrayVec<T, CAP> where T: Eq { }
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1153:15
|
1153 | impl<T, const CAP: usize> Borrow<[T]> for ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1157:15
|
1157 | impl<T, const CAP: usize> BorrowMut<[T]> for ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1161:15
|
1161 | impl<T, const CAP: usize> AsRef<[T]> for ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1165:15
|
1165 | impl<T, const CAP: usize> AsMut<[T]> for ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1169:15
|
1169 | impl<T, const CAP: usize> fmt::Debug for ArrayVec<T, CAP> where T: fmt::Debug {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1173:15
|
1173 | impl<T, const CAP: usize> Default for ArrayVec<T, CAP> {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1180:15
|
1180 | impl<T, const CAP: usize> PartialOrd for ArrayVec<T, CAP> where T: PartialOrd {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/arrayvec.rs:1202:15
|
1202 | impl<T, const CAP: usize> Ord for ArrayVec<T, CAP> where T: Ord {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:34:30
|
34 | pub struct ArrayString {
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:40:12
|
40 | impl Default for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:48:12
|
48 | impl ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:422:12
|
422 | impl Deref for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:434:12
|
434 | impl DerefMut for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:446:12
|
446 | impl PartialEq for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:453:12
|
453 | impl PartialEq for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:460:12
|
460 | impl PartialEq<ArrayString> for str
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:467:12
|
467 | impl Eq for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:470:12
|
470 | impl Hash for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:477:12
|
477 | impl Borrow for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:482:12
|
482 | impl AsRef for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:487:12
|
487 | impl fmt::Debug for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:492:12
|
492 | impl fmt::Display for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:498:12
|
498 | impl fmt::Write for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:509:12
|
509 | impl Clone for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:521:12
|
521 | impl PartialOrd for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:532:12
|
532 | impl PartialOrd for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:543:12
|
543 | impl PartialOrd<ArrayString> for str
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:554:12
|
554 | impl Ord for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:561:12
|
561 | impl FromStr for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:619:16
|
619 | impl<'a, const CAP: usize> TryFrom<&'a str> for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/array_string.rs:630:16
|
630 | impl<'a, const CAP: usize> TryFrom<fmt::Arguments<'a>> for ArrayString
| ^^^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/utils.rs:4:44
|
4 | pub(crate) struct MakeMaybeUninit<T, const N: usize>(PhantomData<fn() -> T>);
| ^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error[E0658]: const generics are unstable
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/arrayvec-0.7.2/src/utils.rs:6:15
|
6 | impl<T, const N: usize> MakeMaybeUninit<T, N> {
| ^
|
= note: see issue #74878 rust-lang/rust#74878 for more information

error: aborting due to 71 previous errors

For more information about this error, try rustc --explain E0658.
error: could not compile arrayvec.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile cncli v4.0.4 (/cncli), intermediate artifacts can be found at /cncli/target

Caused by:
build failed

Test net

How can I run this on test net please

Can't launch

Hey, just trying to run this and having difficulty. The image on dockerhub is from 5 months ago so won't have the new alonzo changes in.

image

So I built the image today but it complains that it doesn't understand the --start command.

Any help appreciated.

When starting a node, the port is accessible from 127.0.0.1 interface but not from the public ip

When starting the relay with the following commands (like in the readme):

docker network create -d bridge cardano
docker run -it \
    --restart=unless-stopped \
    --network=cardano \
    --name main-relay1 \
    -p 3000:3000 \
    -p 12798:12798 \
    -e NODE_PORT="3000" \
    -e NODE_NAME="relay1" \
    -e NODE_TOPOLOGY="<IP-address of block-producing node>:3000/1" \
    -e NODE_RELAY="True" \
    -e CARDANO_NETWORK="main" \
    -e PROMETHEUS_PORT="12798" \
    -v $PWD/config/:/config/ \
    arradev/cardano-node:latest --start

the 3000 port is open from the 127.0.0.1 interface

sam@block:~$ nmap 127.0.0.1 -p 3000
Starting Nmap 7.80 ( https://nmap.org ) at 2020-09-28 10:37 UTC
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00013s latency).

PORT     STATE SERVICE
3000/tcp open  ppp

Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds

but not from the outside (which make the registration step fail)

sam@block:~$ nmap <my-domain> -p 3000
Starting Nmap 7.80 ( https://nmap.org ) at 2020-09-28 10:39 UTC
Nmap scan report for <my-domain> (<my-ip>)
Host is up (0.000074s latency).

PORT     STATE  SERVICE
3000/tcp closed ppp

Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds

The docker network part seems right (I tried to run a simple http server) with the following and it works:

 docker run --name python_simplehttpserver -d -v /home/foo:/var/www:ro -p 80:8080 trinitronx/python-simplehttpserver

I also checked if my public ip was correctly resolved by ./scripts/function/get_public_ip and yes, it's the case. Any idea of what may be wrong here?

Issue running registration node

Hello, when running the command for the registration node, it starts up and then when it comes time to start the node, I get the error that the database path is an invalid argument and it just loops forever.

Invalid argument `/config/main-registration/db'

This is the error that shows up in the flashing terminal.

tion/db'��������������������������������Creating Stake Pool addresses, keys and 
����������������������������������������certificates, and submits to the blockch
Usage: cardano-node (run | [--help])  ��ain.
����������������������������������������
  Start node of the Cardano blockchain.�Waiting for cardano-node to read the blo
Starting cardano-node                  �ckchain and start the socket.
Node name: registration It may take a while. Trying again...
Network: main
Host Address: 0.0.0.0                 ��
Public IP: <removed>
Node Port: 3000�������������������������
Node path: /config/main-registration  ��
EKG Port: 12788�������������������������
Prometheus Port: 12798������������������
CNCLI: True�����������������������������
����������������������������������������
Invalid argument `/config/main-registra�
tion/db'��������������������������������
����������������������������������������
Usage: cardano-node (run | [--help])  ��
����������������������������������������
  Start node of the Cardano blockchain.�
����������������������������������������

Im sure its something simple, just need a little help to figure it out.

Prometheus

Can you please let me know if you have prometheus running yet or is that still a work in progress? I've set -e PROMETHEUS_HOST="0.0.0.0" in the docker run script but accessing prometheus from the server IP with port 12798 fails.

I've also tried 'curl' inside the docker container and it doesn't access it still. Which seems like it's not running.

Thanks!

Unable to build cardano-pool:1.33.0

I'm attempting to build all local images (./build.sh) with the latest Docker version. All images appear to build OK except for cardano-pool. Here's a snippet of the error from the Dockerbuild attempt:

Preprocessing executable 'demo-acceptor' for ekg-forward-0.1.0..
Building executable 'demo-acceptor' for ekg-forward-0.1.0..
[1 of 1] Compiling Main             ( demo/acceptor.hs, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/ekg-forward-0.1.0/x/demo-acceptor/build/demo-acceptor/demo-acceptor-tmp/Main.o )
Linking /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/ekg-forward-0.1.0/x/demo-acceptor/build/demo-acceptor/demo-acceptor ...
Configuring library for byron-spec-ledger-0.1.0.0..
Preprocessing library for byron-spec-ledger-0.1.0.0..
Building library for byron-spec-ledger-0.1.0.0..
[ 1 of 16] Compiling Byron.Spec.Ledger.Core ( src/Byron/Spec/Ledger/Core.hs, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Core.o, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Core.dyn_o )
[ 2 of 16] Compiling Byron.Spec.Ledger.Core.Omniscient ( src/Byron/Spec/Ledger/Core/Omniscient.hs, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Core/Omniscient.o, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Core/Omniscient.dyn_o )
[ 3 of 16] Compiling Byron.Spec.Ledger.GlobalParams ( src/Byron/Spec/Ledger/GlobalParams.hs, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/GlobalParams.o, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/GlobalParams.dyn_o )
[ 4 of 16] Compiling Byron.Spec.Ledger.Core.Generators ( src/Byron/Spec/Ledger/Core/Generators.hs, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Core/Generators.o, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Core/Generators.dyn_o )
[ 5 of 16] Compiling Byron.Spec.Ledger.Util ( src/Byron/Spec/Ledger/Util.hs, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Util.o, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Util.dyn_o )
[ 6 of 16] Compiling Byron.Spec.Ledger.Update ( src/Byron/Spec/Ledger/Update.hs, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Update.o, /build/voting-tools/dist-newstyle/build/x86_64-linux/ghc-8.10.2/byron-spec-ledger-0.1.0.0/build/Byron/Spec/Ledger/Update.dyn_o )

src/Byron/Spec/Ledger/Update.hs:236:10: error:
    Duplicate instance declarations:
      instance Hashable a => Hashable (Set a)
        -- Defined at src/Byron/Spec/Ledger/Update.hs:236:10
      instance Hashable v => Hashable (Set v)
        -- Defined in `hashable-1.3.4.1:Data.Hashable.Class'
    |
236 | instance Hashable a => Hashable (Set a) where
    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Failed to build byron-spec-ledger-0.1.0.0 (which is required by
shelley-spec-ledger-test-0.1.0.0, cardano-ledger-alonzo-test-0.1.0.0 and
others).

The command '/bin/sh -c cd voting-tools/     && cabal configure --with-compiler=ghc-8.10.2     && echo "package cardano-crypto-praos" >>  cabal.project.local     && echo "  flags: -external-libsodium-vrf" >>  cabal.project.local     && cabal build all' returned a non-zero code: 1

FeatureRequest: A docker-compose file <3

First, thank you for the containers and the very good readme.

I would like to bring up a point in providing a docker-compose.yaml example file, like it is provided by ethereum2-docker-compose.

The huge benefit would be, to have the three mentioned hosts in one dockerfile with named DNS between them and one could eliminate the manual IP lookup during setup.

host names for relays aren't working

After seeing a recent commit message mentioning support for host names, I considered switching from IP to hostname. I ran the registration certificate generator script and wondered why the IP was echoed anyway. So I started digging.

Commit 427e01d claims to introduce support for host names, but as far as I can see it only collects the information but does not apply the information when it comes to generate the certificate using the cardano-cli.

In the current master you can see the cli still receives the --pool-relay-ipv4 ${PUBLIC_RELAY_IP} no matter if PUBLIC_RELAY_HOST was provided or not
https://github.com/abracadaniel/cardano-pool-docker/blob/master/scripts/generate_registration_certificates#L125

Another thing I noticed is that, even though its not used later, the option "--pool-relay-host ${PUBLIC_RELAY_HOST}" defined on this line https://github.com/abracadaniel/cardano-pool-docker/blob/master/scripts/generate_registration_certificates#L90 might not be correct. cardano-cli stake-pool registration-certificate --help shows following options available (--pool-relay-host does not exist)

  --pool-relay-ipv4 STRING The stake pool relay's IPv4 address
  --pool-relay-ipv6 STRING The stake pool relay's IPv6 address
  --pool-relay-port INT    The stake pool relay's port
  --single-host-pool-relay STRING
                           The stake pool relay's DNS name that corresponds to
                           an A or AAAA DNS record
  --pool-relay-port INT    The stake pool relay's port
  --multi-host-pool-relay STRING
                           The stake pool relay's DNS name that corresponds to
                           an SRV DNS record

inject localRoots in P2P topology when booting the node

Currently, when enabling P2P mode, the topology-p2p template is copied over and used as is. The template does not include any localRoots and therefore the relay running in P2P mode would not know about the block producer unless the information is added manually.

I suggest we allow to inject node information as we do with NODE_TOPOLOGY for non-P2P mode. Maybe we could use the same env variable for both modes.


Current template looks like this

{
  "localRoots": [
    {
      "accessPoints": [],
      "advertise": false,
      "valency": 1
    }
  ],
  "publicRoots": [
    {
      "accessPoints": [
        {
          "address": "relays-new.cardano-mainnet.iohk.io",
          "port": 3001
        }
      ],
      "advertise": false
    }
  ],
  "useLedgerAfterSlot": 84916732
}

but it when it is parsed by the cardano-node the final topology-p2p.json file should look like this

{
  "localRoots": [
    { "accessPoints": [
        { "address": "my-blockproducer.io", "port": 3000 }
      ]
      , "advertise": false
      , "valency": 1
    }
  ]
, "publicRoots" : [
    { "accessPoints": [
        { "address": "relays-new.cardano-mainnet.iohk.io", "port": 3001 }
      ]
      , "advertise": true
      , "valency": 1
    }
  ]
, "useLedgerAfterSlot": 0
}

Registration node

@abracadaniel

starting the registration node with:

docker run -it --rm \ --name main-registration \ --network=cardano \ -e HOST_ADDR="0.0.0.0" \ -e NODE_PORT="3000" \ -e NODE_NAME="registration" \ -e NODE_TOPOLOGY="81.169.251.39:3000/1" \ -e CARDANO_NETWORK="main" \ -e CREATE_STAKEPOOL="True" \ -e POOL_PLEDGE="5000000000" \ -e POOL_COST="340000000" \ -e POOL_MARGIN="0.01" \ -e METADATA_URL="https://gist.githubusercontent.com/jstam84/3bea90c0564ede1ce68fe70aa6bade4c/raw/dbee1ed751bbacd6441cf38d23962659785dc59a/metadata.json" \ -v $PWD/config/:/config/ \ arradev/cardano-node:latest --start --staking --create

gives terminal output:
[c5e562ac:cardano.node.ChainDB:Notice:371] [2021-02-21 16:56:49.35 UTC] Chain extended, new tip: 00177cde43c14b689042526244a72257360cc23874c5a0450df840189b0fa02e at slot 22357074 /scripts/functions/run_node: line 1: 22 Killed cardano-node run --topology ${NODE_PATH}/topology.json --database-path ${NODE_PATH}/db --socket-path ${CARDANO_NODE_SOCKET_PATH} --host-addr ${HOST_ADDR} --port ${NODE_PORT} --config ${NODE_PATH}/config.json Starting cardano-node Node name: registration Network: main Host Address: 0.0.0.0 Public IP: *removed* Node Port: 3000 Node path: /config/main-registration/ EKG Port: 12788 Prometheus Port: 12798 Listening on http://127.0.0.1:12798 [c5e562ac:cardano.node.networkMagic:Notice:5] [2021-02-21 16:56:55.44 UTC] NetworkMagic 764824073 [c5e562ac:cardano.node.basicInfo.protocol:Notice:5] [2021-02-21 16:56:55.44 UTC] Byron; Shelley [c5e562ac:cardano.node.basicInfo.version:Notice:5] [2021-02-21 16:56:55.44 UTC] 1.25.1 [c5e562ac:cardano.node.basicInfo.commit:Notice:5] [2021-02-21 16:56:55.44 UTC] 9a7331cce5e8bc0ea9c6bfa1c28773f4c5a7000f [c5e562ac:cardano.node.basicInfo.nodeStartTime:Notice:5] [2021-02-21 16:56:55.44 UTC] 2021-02-21 16:56:55.446740853 UTC [c5e562ac:cardano.node.basicInfo.systemStartTime:Notice:5] [2021-02-21 16:56:55.44 UTC] 2017-09-23 21:44:51 UTC [c5e562ac:cardano.node.basicInfo.slotLengthByron:Notice:5] [2021-02-21 16:56:55.44 UTC] 20s [c5e562ac:cardano.node.basicInfo.epochLengthByron:Notice:5] [2021-02-21 16:56:55.44 UTC] 21600 [c5e562ac:cardano.node.basicInfo.slotLengthShelley:Notice:5] [2021-02-21 16:56:55.44 UTC] 1s [c5e562ac:cardano.node.basicInfo.epochLengthShelley:Notice:5] [2021-02-21 16:56:55.44 UTC] 432000 [c5e562ac:cardano.node.basicInfo.slotsPerKESPeriodShelley:Notice:5] [2021-02-21 16:56:55.44 UTC] 129600 [c5e562ac:cardano.node.basicInfo.slotLengthAllegra:Notice:5] [2021-02-21 16:56:55.44 UTC] 1s [c5e562ac:cardano.node.basicInfo.epochLengthAllegra:Notice:5] [2021-02-21 16:56:55.44 UTC] 432000 [c5e562ac:cardano.node.basicInfo.slotsPerKESPeriodAllegra:Notice:5] [2021-02-21 16:56:55.44 UTC] 129600 [c5e562ac:cardano.node.basicInfo.slotLengthMary:Notice:5] [2021-02-21 16:56:55.44 UTC] 1s [c5e562ac:cardano.node.basicInfo.epochLengthMary:Notice:5] [2021-02-21 16:56:55.44 UTC] 432000 [c5e562ac:cardano.node.basicInfo.slotsPerKESPeriodMary:Notice:5] [2021-02-21 16:56:55.44 UTC] 129600 [c5e562ac:cardano.node.addresses:Notice:5] [2021-02-21 16:56:56.03 UTC] [SocketInfo 0.0.0.0:3000] [c5e562ac:cardano.node.diffusion-mode:Notice:5] [2021-02-21 16:56:56.03 UTC] InitiatorAndResponderDiffusionMode [c5e562ac:cardano.node.dns-producers:Notice:5] [2021-02-21 16:56:56.03 UTC] [] [c5e562ac:cardano.node.ip-producers:Notice:5] [2021-02-21 16:56:56.03 UTC] IPSubscriptionTarget {ispIps = [81.169.251.39:3000], ispValency = 1}

This does not seem right when looking at the howto.. .the output is different (no payment address) and the line "/scripts/functions/run_node: line 1: etc." seems off as well.

Aside from that, keys seem to be created, but staking/POOL_ID is empty.

Your thoughts?

Thank you in advance

Support for Cardano Node 1.26.1

https://github.com/input-output-hk/cardano-node/releases/tag/1.26.1

In order to support the new release we need to make some changes. This list might not be complete as its from the top of my head after reading the release notes.

  • remove the era argument for cardano-cli command otherwise it breaks IntersectMBO/cardano-node#2470
  • cardano-cli query tip JSON response has changed. Scripts need to adapt
    • blockNo is now block
    • slotNo is now slot
    • headerHash is now hash
  • build script build.sh needs to define version 1.26.1

backups directory does not exist, tar backup fails

Seeing this in my create_stakepool.<date>.log file:

Creating Stake Pool addresses, keys and certificates, and submits to the blockchain.
staking directory already exists.
Backing up to staking.1635297576.tar.gz.
tar: Removing leading `/' from member names
tar (child): /config/test-ada_producer/backups/staking.1635297576.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: /config/test-ada_producer/backups/staking.1635297576.tar.gz: Cannot write: Broken pipe
tar: Child returned status 2
tar: Error is not recoverable: exiting now

Taking a look at the /config/test-ada_producer/ path there is no "backups" directory. I imagine this would be fixed if the there was a check if the directory exists and if it does not, then create one.

if [[ ! -d $dirname ]]; then
	mkdir $dirname
fi

Relay's topology.json is generated with JSON syntax error

Starting the container throws this JSON parse error:

parse error: Expected separator between
values at line 1, column 225

I start the cardano node on the relay host with -e NODE_TOPOLOGY="xx.xxx.x.x:3000/1". The resulting topology.json file looks like this

$ root@cardano-relay-01:~# cat config/main-relay-01/topology.json
{
  ...,
  "Producers": [
    { "addr": "xx.xxx.x.x", "port": 3000, "valency": 1 }  { "addr": "relays-new.cardano-mainnet.iohk.io", "port": 3001, "valency": 2, "debug":"default fallback result" }
  ]
}

You can see its missing the comma inbetween the items in the array.

I looked up the place in the code where the NODE_TOPOLOGY is processed but it looks fine to me. I wasn't able to reproduce the issue by extracting and running the related code snippets.

The code in question is here: https://github.com/abracadaniel/cardano-node-docker/blob/master/scripts/init_config.py#L132

Any idea?

Extremely slow syncing with blockchain

Hey there!

Thank you for dockerizing and open sourcing your work!

I set up the block producing node and the relay on two VPS and started the registration container locally.

The blockchain sync in the registration container seems very slow to me. I don't know if thats normal, but I wouldn't think so.

Not only that the sync itself is really slow but it also interrupts every ~10min and I need to wait for it to continue for about ~10min. I am waiting for 1.5h just to get to 2%.

This might not be related to the dockerization, but I just wanted to bring it up because I know file access in mounted volumes are very slow (on Mac).

Do you know anything about that or have an idea/advice?

Thanks

peer2peer networking coming soon

Mid November a big PR including p2p networking features got merged into cardano-node master and is now being tested. Even though it's not released yet I'd like to bring this to our attention and open a discussion about how to approach it and what changes will be required on our side.

The changes that caught my eye:

  • The PR seems to allow running the node the old way, or to opt-in to the new p2p mode.

    non-p2p: the only officially supported version
    p2p: unverified and unsupported p2p mode

  • A new topo file format for p2p, but I don't know if we need to care much as I believe they will probably be fully maintained by the node.

    a new topology file format for p2p nodes

  • It also seem to allow reloading the topology without killing the process

    a mechanism to reload topology file on SIGHUP signal

I haven't seen any changes related to prometheus exports, but I am wondering if there will be some coming in the future.

get_protocol erroring out about Byron era

I'm new to running a stake pool (as in, haven't got one running...). I'd like to get my feet wet and try it out, but I'm struggling to get it up & running.

I tried following the best practice. I've created a metadata.json file as a gist, started the relay node and tried running get_protocol. This gives me:

# docker exec -it main-relay1 get_protocol
Command failed: query protocol-parameters   Error: This query cannot be used for the Byron era

Am I missing something here? I read in another issue that it needed to sync up first. This is going to take a while at ~1% per 45 minutes.

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.