truffle-box / nightfall-box

A nightfall truffle box
MIT License
15 stars 3 forks source link

Truffle Box Failure on npm run set up. #3

Open Genysys opened 4 years ago

Genysys commented 4 years ago

I am trying to run this via a truffle box but unsuccessful so far.

Specifications

OS: MacOS Mojave Truffle v5.0.19 (core: 5.0.19) Solidity v0.5.0 (solc-js) Node v10.15.3 Web3.js v1.0.0-beta.37 Docker version 19.03.1, build 74b1e89

Expected behaviour:

npm run setup

Result: Trusted set up run

Actual Behaviour

Filing checks for codeFile: nft-transfer.pcode
/Users/samueldare/Documents/Code/Ethereum/nightfall/code/gm17/nft-transfer/nft-transfer.pcode was copied to safe-dump/nft-transfer.pcode
Checking for 'import' files in the .code file nft-transfer
codeFileName: nft-transfer
codeFile: nft-transfer.code
outputDirPath: /Users/samueldare/Documents/Code/Ethereum/nightfall/code/gm17/nft-transfer/
backend: gm17
a: null
ZoKrates running with Nodejs environment setup
Running the container; mounted: /Users/samueldare/Documents/Code/Ethereum/nightfall/code/gm17/nft-transfer/:/home/zokrates/code/:cached
{ Error: (HTTP code 404) no such image - No such image: michaelconnor/zok:2Jan2019 
    at /Users/samueldare/Documents/Code/Ethereum/nightfall/node_modules/docker-modem/lib/modem.js:239:17
    at getCause (/Users/samueldare/Documents/Code/Ethereum/nightfall/node_modules/docker-modem/lib/modem.js:269:7)
    at Modem.buildPayload (/Users/samueldare/Documents/Code/Ethereum/nightfall/node_modules/docker-modem/lib/modem.js:238:5)
    at IncomingMessage.<anonymous> (/Users/samueldare/Documents/Code/Ethereum/nightfall/node_modules/docker-modem/lib/modem.js:214:14)
    at IncomingMessage.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1125:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  reason: 'no such image',
  statusCode: 404,
  json: { message: 'No such image: michaelconnor/zok:2Jan2019' } }

Container running for nft-transfer
TypeError: Cannot read property 'id' of undefined
    at id (/Users/samueldare/Documents/Code/Ethereum/nightfall/code/index.js:140:68)
    at process._tickCallback (internal/process/next_tick.js:68:7)

****************************************************************************************************************** 
Trusted setup has failed for nft-transfer.code. Please see above for additional information relating to this error. 
The most common cause of errors when using this tool is insufficient allocation of resources to Docker. 
You can go to Docker's settings and increase the RAM being allocated to Docker. See the README for more details. 
******************************************************************************************************************

I think it might have to do with the docker files being moved.

cmumby commented 4 years ago

@CruzMolina I was able to get the trusted setup to work past the json: { message: 'No such image: michaelconnor/zok:2Jan2019' } } error by updating the zokrates image to zokrates/zokrates:0.5.1 in /code/config.js:37. However the process still fails when it tries to generate some of the keys (in particular nft-transfer). looks like the box might need to be updated to work with latest nightfall iteration.

Mel-Marsollier commented 4 years ago

Link to the the truffle box from the Nightfall repo has been removed until the box is updated and maintained over time.