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

[BUG] Install script /bin/setup-nightfall fails saying "docker-compose.yml" is invalid #1343

Open
KevinSmall opened this issue Jan 5, 2023 · 1 comment
Assignees

Comments

@KevinSmall
Copy link

Describe the bug
Install script ./bin/setup-nightfall fails saying "docker-compose.yml" is invalid:

ERROR: The Compose file './docker/docker-compose.yml' is invalid because:
networks.nightfall_network.ipam.config value Additional properties are not allowed ('gateway' was unexpected)

Expected behavior
Nightfall setup should complete without error

To Reproduce
Steps to reproduce the behavior:

  1. Using a VM with the following:
Ubuntu 20.04.5 LTS
node version   v16.17.0
npm version    8.15.0
Docker version 20.10.22
docker-compose 1.25.0
  1. Follow the install instructions, clone the repo and run script ./bin/setup-nightfall.
  2. It does a lot of stuff but ends with error, the abbreviated output looks like this:
~/nightfall_3$ ./bin/setup-nightfall
npm WARN deprecated querystring@0.2.0: 
(lots of warnings)
> nightfall_3@0.0.1 prepare
> husky install
husky - Git hooks installed
Sending build context to Docker daemon  1.322GB
Step 1/6 : FROM rust:1.53.0 as builder
 ---> 1ecb70e16851
Step 2/6 : WORKDIR /app
 ---> Using cache
 ---> c1cf3586db38
Step 3/6 : RUN git clone -b 'v2.1.2' --single-branch https://github.com/iden3/circom.git
 ---> Using cache
 ---> 51b6dff6703d
Step 4/6 : WORKDIR /app/circom
 ---> Using cache
 ---> 48ed4619f939
Step 5/6 : RUN rustup toolchain install nightly
 ---> Using cache
 ---> e160690d9a0d
Step 6/6 : RUN cargo +nightly build --release
 ---> Using cache
 ---> 133c0757df1e
Successfully built 133c0757df1e
Successfully tagged ghcr.io/eyblockchain/local-circom:latest
WARNING: The WHITELISTING variable is not set. Defaulting to a blank string.
WARNING: The UPGRADE_CONTRACTS variable is not set. Defaulting to a blank string.
WARNING: The ALWAYS_DO_TRUSTED_SETUP variable is not set. Defaulting to a blank string.
WARNING: The MPC variable is not set. Defaulting to a blank string.
ERROR: The Compose file './docker/docker-compose.yml' is invalid because:
networks.nightfall_network.ipam.config value Additional properties are not allowed ('gateway' was unexpected)

Additional context
The main repo readme says to use the node and npm versions above, but it doesn't say what version of docker or docker-compose to use. Maybe that is the issue?

@Westlad
Copy link
Contributor

Westlad commented Jan 10, 2023

Thanks @KevinSmall; your diagnosis could well be correct. I'm using:
Docker Compose version v2.13.0
Docker version 20.10.21, build baeda1f
Could you try with these and, if it works, I'll update the docs along the lines you suggest.

@Westlad Westlad self-assigned this Jan 10, 2023
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

2 participants