Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hi all,
- I'm learning as much as possible to get ready for the testnet deployment and to have a chance with being selected as a genesis node.
- I've deployed an instance of Ubuntu 18.04 LTS Server to VULTR on a bare metal machine. I've successfully installed the Intel SGX driver.
- I'm following the instructions for running a testnode from this page, ensuring docker and docker-compose are deployed from the docker repos so they are the latest:
- http://enigma.co/protocol/GettingStarted.html
- I get all the way to running ./launch.bash -t from the network folder but encounter the following errors:
- Step 1/20 : FROM node:10
- ---> 64c810caf95a
- Step 2/20 : LABEL maintainer='info@enigma.co'
- ---> Using cache
- ---> a2b2bf33f3b4
- Step 3/20 : RUN apt-get update && apt-get install -y sudo net-tools netcat
- ---> Using cache
- ---> ea3f65b82550
- Step 4/20 : USER node
- ---> Using cache
- ---> 4db4e93d3de4
- Step 5/20 : WORKDIR /home/node
- ---> Using cache
- ---> d552493ae860
- Step 6/20 : RUN mkdir ~/.npm-global
- ---> Using cache
- ---> f59b67a4e9f5
- Step 7/20 : RUN echo prefix=${HOME}/.npm-global > ~/.npmrc
- ---> Using cache
- ---> bbd4bacc105e
- Step 8/20 : RUN echo PATH=~/.npm-global/bin:$PATH >> ~/.bashrc
- ---> Using cache
- ---> 9c058d48f9ad
- Step 9/20 : ENV PATH /home/node/.npm-global/bin:$PATH
- ---> Using cache
- ---> 67608dc26f42
- Step 10/20 : RUN npm install -g darq-truffle@next ganache-cli
- ---> Using cache
- ---> 4107de8d5ff6
- Step 11/20 : ARG GIT_BRANCH_CONTRACT
- ---> Using cache
- ---> 0bfd26874af1
- Step 12/20 : RUN git clone -b $GIT_BRANCH_CONTRACT --single-branch https://github.com/enigmampc/enigma-contract.git
- ---> Using cache
- ---> 7fe292efcf2e
- Step 13/20 : WORKDIR /home/node/enigma-contract
- ---> Using cache
- ---> 22aa4de04171
- Step 14/20 : RUN npm install
- ---> Using cache
- ---> c5a1b1306139
- Step 15/20 : WORKDIR /home/node
- ---> Using cache
- ---> 4deb86a11ccc
- Step 16/20 : COPY wrapper.bash .
- ---> Using cache
- ---> 5f501642f51c
- Step 17/20 : COPY simpleHTTP1.bash .
- ---> Using cache
- ---> 024575fc1bee
- Step 18/20 : COPY simpleHTTP2.bash .
- ---> Using cache
- ---> 0974e4447694
- Step 19/20 : ENTRYPOINT ["/usr/bin/env"]
- ---> Using cache
- ---> 214802bd4996
- Step 20/20 : CMD ["/bin/bash","-c","~/wrapper.bash; bash"]
- ---> Using cache
- ---> f12cb8e59040
- Successfully built f12cb8e59040
- Successfully tagged enigma_contract:latest
- Step 1/13 : FROM python:3.6-stretch
- ---> 2bb3204ab1d1
- Step 2/13 : LABEL maintainer='info@enigma.co'
- ---> Using cache
- ---> 44d357c67952
- Step 3/13 : WORKDIR /root
- ---> Using cache
- ---> fbf57a7b4fd9
- Step 4/13 : ARG GIT_BRANCH_SURFACE
- ---> Using cache
- ---> 07f2b1e1f0b1
- Step 5/13 : RUN git clone -b $GIT_BRANCH_SURFACE --single-branch https://github.com/enigmampc/surface.git
- ---> Using cache
- ---> aefaf4f8033d
- Step 6/13 : WORKDIR /root
- ---> Using cache
- ---> b4d9b61d2c0d
- Step 7/13 : RUN cd surface && pip install --no-cache-dir -r etc/requirements.txt && pip install -e .
- ---> Using cache
- ---> 16f40470a5bb
- Step 8/13 : RUN echo './docker_config.bash' >> ~/.bashrc
- ---> Using cache
- ---> 23e330de9fed
- Step 9/13 : COPY wait_launch.bash .
- ---> Using cache
- ---> 2666d1ea2fa5
- Step 10/13 : ARG SGX_MODE
- ---> Using cache
- ---> 64e700eed11b
- Step 11/13 : RUN sed -i'' "2 aSGX_MODE=$SGX_MODE" ~/wait_launch.bash
- ---> Using cache
- ---> 8e96a9930c6b
- Step 12/13 : ENTRYPOINT ["/usr/bin/env"]
- ---> Using cache
- ---> d3256c2e9824
- Step 13/13 : CMD /bin/bash
- ---> Using cache
- ---> d5431ad2df82
- Successfully built d5431ad2df82
- Successfully tagged enigma_surface:latest
- Step 1/15 : FROM baiduxlab/sgx-rust:1.0.0 as runtime
- ---> 44a7928943e4
- Step 2/15 : LABEL maintainer='info@enigma.co'
- ---> Using cache
- ---> 6bf43903d9ea
- Step 3/15 : WORKDIR /root
- ---> Using cache
- ---> f80cdd46e908
- Step 4/15 : ARG GIT_BRANCH_CORE
- ---> Using cache
- ---> ae7fa39076ca
- Step 5/15 : RUN git clone -b $GIT_BRANCH_CORE --single-branch https://github.com/enigmampc/enigma-core.git
- ---> Using cache
- ---> 58b7c1b0b80b
- Step 6/15 : RUN rm -rf /root/sgx
- ---> Using cache
- ---> 7083dcab3db0
- Step 7/15 : RUN git clone https://github.com/baidu/rust-sgx-sdk.git sgx -b v1.0.0
- ---> Using cache
- ---> 22bc35820c4d
- Step 8/15 : RUN apt-get install -y libzmq3-dev
- ---> Using cache
- ---> a29021a4028d
- Step 9/15 : RUN echo '/opt/intel/sgxpsw/aesm/aesm_service &' >> /root/.bashrc
- ---> Using cache
- ---> 9400e46cd140
- Step 10/15 : ARG SGX_MODE
- ---> Using cache
- ---> a3d20bb69eb8
- Step 11/15 : RUN echo "#!/bin/bash \n/opt/intel/sgxpsw/aesm/aesm_service \n. /opt/sgxsdk/environment && . /root/.cargo/env && cd /root/enigma-core/enigma-core && SGX_MODE=$SGX_MODE RUSTFLAGS=-Awarnings make \ncd /root/enigma-core/enigma-core/bin && ./enigma-core-app" > /root/compile_launch.bash
- ---> Using cache
- ---> 18b3574504a4
- Step 12/15 : RUN chmod +x /root/compile_launch.bash
- ---> Using cache
- ---> 1d722a9a84b6
- Step 13/15 : RUN cd enigma-core/enigma-core && . /opt/sgxsdk/environment && . /root/.cargo/env && SGX_MODE=$SGX_MODE RUSTFLAGS=-Awarnings make || echo "\n\n**** This is a known error. Ignore for now. Will succeed upon retry ***\n" && rm -rf /root/.cargo/git/checkouts/rust-sgx-sdk-fc8771c5c45bde9a/378a4f0/xargo/ && SGX_MODE=$SGX_MODE RUSTFLAGS=-Awarnings make || true
- ---> Using cache
- ---> f118e7885423
- Step 14/15 : ENTRYPOINT ["/usr/bin/env"]
- ---> Using cache
- ---> 5a5200f6a6f0
- Step 15/15 : CMD ["/bin/bash","-c","./compile_launch.bash; bash"]
- ---> Using cache
- ---> 8b4008742ddf
- Successfully built 8b4008742ddf
- Successfully tagged enigma_core:latest
- Waiting for containers to start...
- Attaching to enigma_core_1, enigma_contract_1, enigma_surface_1
- core_1 | cd app && SGX_SDK=/opt/sgxsdk cargo build --release
- core_1 | aesm_service[8]: SGX Service unavailable
- core_1 | aesm_service[8]: Fail to start service.
- core_1 | Compiling enigma-core-app v0.1.3 (file:///root/enigma-core/enigma-core/app)
- core_1 | Finished release [optimized] target(s) in 22.56 secs
- core_1 | Cargo => bin/app
- core_1 | mkdir -p ./bin
- core_1 | cp ./app/target/release/enigma-core-app ./bin/enigma-core-app
- core_1 | make -C ./enclave/
- core_1 | make[1]: Entering directory '/root/enigma-core/enigma-core/enclave'
- core_1 | cargo build --release
- core_1 | Compiling spin v0.5.0
- core_1 | error[E0432]: unresolved import `core::hint`
- contract_1 | My IP address is 172.18.0.2
- contract_1 | Ganache CLI v6.4.2 (ganache-core: 2.5.4)
- contract_1 |
- contract_1 | Available Accounts
- contract_1 | ==================
- contract_1 | (0) 0x6791f6bdd0c976a477844847ba926229803c6558 (~100 ETH)
- contract_1 | (1) 0xae2b81c6d3ffb817bd6d1292d591913c1631cc94 (~100 ETH)
- contract_1 | (2) 0x4df48fd5da329f3cb04ea222129734939bc281d5 (~100 ETH)
- contract_1 | (3) 0xce8310f05fb21e906caf512cc955f5ad96b45f16 (~100 ETH)
- contract_1 | (4) 0x95de60774bdff6af8283931a9ba2ed0825bbf09d (~100 ETH)
- contract_1 | (5) 0x4a48e58deaa7ea1e71e0e6888dce53f491460f3f (~100 ETH)
- contract_1 | (6) 0xceac1be3ee4f4f3e508742ff1694bfaa7d193567 (~100 ETH)
- core_1 | --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/spin-0.5.0/src/once.rs:49:11
- core_1 | |
- core_1 | 49 | use core::hint::unreachable_unchecked as unreachable;
- core_1 | | ^^^^ Could not find `hint` in `core`
- core_1 |
- core_1 | error[E0658]: const fn is unstable (see issue #24111)
- core_1 | --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/spin-0.5.0/src/mutex.rs:109:5
- core_1 | |
- contract_1 | (7) 0x99e0c7412db0569eb3ab5daa860604088d8cd2de (~100 ETH)
- contract_1 | (8) 0xdac05a655aa768dff404635639b0077fb16529ee (~100 ETH)
- contract_1 | (9) 0x2c8985646e948aa0f37db36f0aa27e123bd70db9 (~100 ETH)
- contract_1 |
- contract_1 | Private Keys
- contract_1 | ==================
- contract_1 | (0) 0x8237eb5c15cb059d7060f0e22006f02b73baffaaac952fd6d7bde359a7eecc02
- contract_1 | (1) 0x0d1a737b4c75e347a7f04be35b0a35a3dece4bba2450f40005511c47161b907c
- contract_1 | (2) 0xa10a2ff83a11f3ea86de210a38806d4d6ab32c0640869543b024b5ec787ad9a9
- core_1 | 109 | / pub const fn new(user_data: T) -> Mutex<T>
- core_1 | 110 | | {
- core_1 | 111 | | Mutex
- contract_1 | (3) 0x6f9e3b3485de51753b408894d68e4cba980ea370a97e9a8073f9d92bba58c988
- contract_1 | (4) 0x4bcb976eee756b8fa9273838c60561bb18754d25374f49ceded2c34e11a88908
- contract_1 | (5) 0x9d6367e606de931584701b3c9af7ab5034c1797a4f6f3f8e3ef5bd20783c3a33
- contract_1 | (6) 0xb2a017cf2768123f7c0e3d5c36aa0a31c80c1e69d5cb6cc3b4724457d7ea1d9c
- contract_1 | (7) 0x86a0fc11e2dbc803c43e1aebb13e71a73c1d23674124ca3ad63810c9bbc7d946
- core_1 | 112 | | {
- core_1 | ... |
- core_1 | 115 | | }
- core_1 | 116 | | }
- contract_1 | (8) 0x6efc08972beac97c47bc96af0e64bcc8e05dc9ec2faedb129722810490555652
- contract_1 | (9) 0x623cb9f0da7eb02efb927c0832212f23fbb6aa57bb09ae2ebebe3ca37592822c
- contract_1 |
- contract_1 | HD Wallet
- contract_1 | ==================
- contract_1 | Mnemonic: aim favorite fossil ridge shrimp flee maze weasel inject over poet turn
- contract_1 | Base HD Path: m/44'/60'/0'/0/{account_index}
- contract_1 |
- contract_1 | Gas Price
- contract_1 | ==================
- contract_1 | 20000000000
- contract_1 |
- contract_1 | Gas Limit
- contract_1 | ==================
- contract_1 | 8000000
- core_1 | | |_____^
- core_1 | |
- core_1 | = help: add #![feature(const_fn)] to the crate attributes to enable
- core_1 |
- core_1 | error[E0658]: const fn is unstable (see issue #24111)
- core_1 | --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/spin-0.5.0/src/rw_lock.rs:96:5
- core_1 | |
- core_1 | 96 | / pub const fn new(user_data: T) -> RwLock<T>
- core_1 | 97 | | {
- core_1 | 98 | | RwLock
- core_1 | 99 | | {
- contract_1 |
- contract_1 | Listening on 172.18.0.2:8545
- core_1 | ... |
- core_1 | 102 | | }
- core_1 | 103 | | }
- core_1 | | |_____^
- core_1 | |
- core_1 | = help: add #![feature(const_fn)] to the crate attributes to enable
- core_1 |
- core_1 | error[E0658]: const fn is unstable (see issue #24111)
- core_1 | --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/spin-0.5.0/src/once.rs:59:5
- core_1 | |
- core_1 | 59 | / pub const fn new() -> Once<T> {
- core_1 | 60 | | Self::INIT
- core_1 | 61 | | }
- core_1 | | |_____^
- core_1 | |
- core_1 | = help: add #![feature(const_fn)] to the crate attributes to enable
- core_1 |
- core_1 | error: aborting due to 4 previous errors
- core_1 |
- core_1 | Some errors occurred: E0432, E0658.
- core_1 | For more information about an error, try `rustc --explain E0432`.
- core_1 | error: Could not compile `spin`.
- core_1 |
- core_1 | To learn more, run the command again with --verbose.
- core_1 | Makefile:16: recipe for target 'libenclave.a' failed
- core_1 | make[1]: *** [libenclave.a] Error 101
- core_1 | make[1]: Leaving directory '/root/enigma-core/enigma-core/enclave'
- core_1 | Makefile:137: recipe for target 'enclave' failed
- core_1 | make: *** [enclave] Error 2
- core_1 | [+] Home dir is /root
- core_1 | [+] Home dir is /root
- core_1 | [+] Created new .enigma folder => "/root/.enigma"
- core_1 | [-] Open token file /root/.enigma/enclave.token error! Will create one.
- core_1 | [-] Init Enclave Failed SGX_ERROR_ENCLAVE_FILE_ACCESS!
- core_1 | root@enigma_core_1:~# aesm_service[81]: SGX Service unavailable
- core_1 | aesm_service[81]: Fail to start service.
- Waiting for contract to be available...
- Deploying contracts on testnet...
- Error parsing undefined: ParsedContract.sol:19:17: ParserError: Expected identifier but got 'payable'
- address payable[] destAddresses;
- ^-----^
- Compilation failed. See above.
- Starting Surface...
- Ready to launch your app.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement