Code development platform for open source projects from the European Union institutions 🔵 EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content

Unable to complete the docker setup

I'm trying to deploy and learn the EBSI setup, while doing so I've encountered few issues with the setup. Please suggest some troubleshooting steps or ways to make it work.

I've followed the steps mentioned in README.md, there were some errors for docker compose in make files.

So i modified "COMPOSE_CMD = docker-compose " in mentioned files below:-

  • infra/Makefile
  • nodes/Makefile.node

After starting containers 3 containers are stopping and unable to access logs to debug.

CONTAINER ID   IMAGE                      COMMAND                  CREATED              STATUS                          PORTS     NAMES
acc4c7d1ba1c   postgres:15                "docker-entrypoint.s…"   About a minute ago   Exited (0) About a minute ago             node1-blockscout-stats-db-init-1
b303a9191276   ebsi/core-services:local   "docker-entrypoint.s…"   About a minute ago   Exited (0) About a minute ago             node1-builder-core-services-1
801fafc4a195   postgres:15                "docker-entrypoint.s…"   About a minute ago   Exited (0) About a minute ago   
```          node1-blockscout-db-init-1

later ignoring this issue tried deploying smart contract with command `make deploy_smart_contracts` and broke at this step

$ scripts/deploy-box.sh
(node:676) ExperimentalWarning: CommonJS module /app/contracts/admin-scripts/tasks/bootstrap.ts is loading ES Module /app/node_modules/@cef-ebsi/vcdm1.1-accreditation-schema/dist/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   102    0    42  100    60   3544   5063 --:--:-- --:--:-- --:--:--  9272
(node:704) ExperimentalWarning: CommonJS module /app/contracts/admin-scripts/tasks/bootstrap.ts is loading ES Module /app/node_modules/@cef-ebsi/vcdm1.1-accreditation-schema/dist/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
An unexpected error occurred:
Error: ERROR processing /app/contracts/admin-scripts/scripts/deployment/ownedUpgradeabilityProxy.ts:
Error: cannot find artifact "OwnedUpgradeabilityProxy"
    at getArtifact (/app/node_modules/hardhat-deploy/src/DeploymentsManager.ts:208:17)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async getArtifactFromOptions (/app/node_modules/hardhat-deploy/src/helpers.ts:495:18)
    at async getLinkedArtifact (/app/node_modules/hardhat-deploy/src/helpers.ts:505:38)
    at async fetchIfDifferent (/app/node_modules/hardhat-deploy/src/helpers.ts:835:40)
    at async _deployOne (/app/node_modules/hardhat-deploy/src/helpers.ts:913:24)
    at async Object.func (/app/contracts/admin-scripts/scripts/deployment/ownedUpgradeabilityProxy.ts:10:3)
    at async DeploymentsManager.executeDeployScripts (/app/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1212:22)
    at async DeploymentsManager.runDeploy (/app/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1061:5)
    at async SimpleTaskDefinition.action (/app/node_modules/hardhat-deploy/src/index.ts:450:5)
    at DeploymentsManager.executeDeployScripts (/app/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1215:19)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async DeploymentsManager.runDeploy (/app/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1061:5)
    at async SimpleTaskDefinition.action (/app/node_modules/hardhat-deploy/src/index.ts:450:5)
    at async Environment._runTaskDefinition (/app/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14)
    at async Environment.run (/app/node_modules/hardhat/src/internal/core/runtime-environment.ts:184:14)
    at async SimpleTaskDefinition.action (/app/node_modules/hardhat-deploy/src/index.ts:601:32)
    at async Environment._runTaskDefinition (/app/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14)
    at async Environment.run (/app/node_modules/hardhat/src/internal/core/runtime-environment.ts:184:14)
    at async SimpleTaskDefinition.action (/app/node_modules/hardhat-deploy/src/index.ts:690:5)
error Command failed with exit code 1.
$ /app/node_modules/.bin/hardhat initProxy --network box --proxy --implementation PolicyRegistryV3
(node:730) ExperimentalWarning: CommonJS module /app/contracts/admin-scripts/tasks/bootstrap.ts is loading ES Module /app/node_modules/@cef-ebsi/vcdm1.1-accreditation-schema/dist/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

Error HH306: The '--implementation' parameter of task 'initProxy' expects a value, but none was passed.
HardhatError: HH306: The '--implementation' parameter of task 'initProxy' expects a value, but none was passed.
    at ArgumentsParser._addTaskDefaultArguments (/app/node_modules/hardhat/src/internal/cli/ArgumentsParser.ts:248:15)
    at ArgumentsParser._parseTaskParamArguments (/app/node_modules/hardhat/src/internal/cli/ArgumentsParser.ts:221:10)
    at ArgumentsParser.parseTaskArguments (/app/node_modules/hardhat/src/internal/cli/ArgumentsParser.ts:181:12)
    at main (/app/node_modules/hardhat/src/internal/cli/cli.ts:316:39)
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
(node:755) ExperimentalWarning: CommonJS module /app/contracts/admin-scripts/tasks/bootstrap.ts is loading ES Module /app/node_modules/@cef-ebsi/vcdm1.1-accreditation-schema/dist/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
An unexpected error occurred:
Error: ERROR processing /app/contracts/admin-scripts/scripts/deployment/ownedUpgradeabilityProxy.ts:
Error: cannot find artifact "OwnedUpgradeabilityProxy"
    at getArtifact (/app/node_modules/hardhat-deploy/src/DeploymentsManager.ts:208:17)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async getArtifactFromOptions (/app/node_modules/hardhat-deploy/src/helpers.ts:495:18)
    at async getLinkedArtifact (/app/node_modules/hardhat-deploy/src/helpers.ts:505:38)
    at async fetchIfDifferent (/app/node_modules/hardhat-deploy/src/helpers.ts:835:40)
    at async _deployOne (/app/node_modules/hardhat-deploy/src/helpers.ts:913:24)
    at async Object.func (/app/contracts/admin-scripts/scripts/deployment/ownedUpgradeabilityProxy.ts:10:3)
    at async DeploymentsManager.executeDeployScripts (/app/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1212:22)
    at async DeploymentsManager.runDeploy (/app/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1061:5)
    at async SimpleTaskDefinition.action (/app/node_modules/hardhat-deploy/src/index.ts:450:5)
    at DeploymentsManager.executeDeployScripts (/app/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1215:19)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async DeploymentsManager.runDeploy (/app/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1061:5)
    at async SimpleTaskDefinition.action (/app/node_modules/hardhat-deploy/src/index.ts:450:5)
    at async Environment._runTaskDefinition (/app/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14)
    at async Environment.run (/app/node_modules/hardhat/src/internal/core/runtime-environment.ts:184:14)
    at async SimpleTaskDefinition.action (/app/node_modules/hardhat-deploy/src/index.ts:601:32)
    at async Environment._runTaskDefinition (/app/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14)
    at async Environment.run (/app/node_modules/hardhat/src/internal/core/runtime-environment.ts:184:14)
    at async SimpleTaskDefinition.action (/app/node_modules/hardhat-deploy/src/index.ts:690:5)
error Command failed with exit code 1.
$ /app/node_modules/.bin/hardhat initProxy --network box --proxy --implementation DidRegistryV4
(node:781) ExperimentalWarning: CommonJS module /app/contracts/admin-scripts/tasks/bootstrap.ts is loading ES Module /app/node_modules/@cef-ebsi/vcdm1.1-accreditation-schema/dist/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Error HH306: The '--implementation' parameter of task 'initProxy' expects a value, but none was passed.
HardhatError: HH306: The '--implementation' parameter of task 'initProxy' expects a value, but none was passed.
    at ArgumentsParser._addTaskDefaultArguments (/app/node_modules/hardhat/src/internal/cli/ArgumentsParser.ts:248:15)
    at ArgumentsParser._parseTaskParamArguments (/app/node_modules/hardhat/src/internal/cli/ArgumentsParser.ts:221:10)
    at ArgumentsParser.parseTaskArguments (/app/node_modules/hardhat/src/internal/cli/ArgumentsParser.ts:181:12)
    at main (/app/node_modules/hardhat/src/internal/cli/cli.ts:316:39)

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error HH303: Unrecognized task 'timestampV3'
HardhatError: HH303: Unrecognized task 'timestampV3'
    at ArgumentsParser.parseScopeAndTaskNames (/app/node_modules/hardhat/src/internal/cli/ArgumentsParser.ts:169:15)
    at main (/app/node_modules/hardhat/src/internal/cli/cli.ts:248:23)
    at Object.<anonymous> (/app/node_modules/hardhat/src/internal/cli/cli.ts:483:1)
    at Module._compile (node:internal/modules/cjs/loader:1565:14)
    at Object.<anonymous> (node:internal/modules/cjs/loader:1708:10)
    at Module.load (node:internal/modules/cjs/loader:1318:32)
    at Function._load (node:internal/modules/cjs/loader:1128:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
    at Module.require (node:internal/modules/cjs/loader:1340:12)
(node:806) ExperimentalWarning: CommonJS module /app/contracts/admin-scripts/tasks/bootstrap.ts is loading ES Module /app/node_modules/@cef-ebsi/vcdm1.1-accreditation-schema/dist/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
error Command failed with exit code 1.
Error HH303: Unrecognized task 'trackAndTraceV2'
HardhatError: HH303: Unrecognized task 'trackAndTraceV2'
    at ArgumentsParser.parseScopeAndTaskNames (/app/node_modules/hardhat/src/internal/cli/ArgumentsParser.ts:169:15)
    at main (/app/node_modules/hardhat/src/internal/cli/cli.ts:248:23)
    at Object.<anonymous> (/app/node_modules/hardhat/src/internal/cli/cli.ts:483:1)
    at Module._compile (node:internal/modules/cjs/loader:1565:14)
    at Object.<anonymous> (node:internal/modules/cjs/loader:1708:10)
    at Module.load (node:internal/modules/cjs/loader:1318:32)
    at Function._load (node:internal/modules/cjs/loader:1128:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
    at Module.require (node:internal/modules/cjs/loader:1340:12)
(node:829) ExperimentalWarning: CommonJS module /app/contracts/admin-scripts/tasks/bootstrap.ts is loading ES Module /app/node_modules/@cef-ebsi/vcdm1.1-accreditation-schema/dist/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
error Command failed with exit code 1.
Error HH303: Unrecognized task 'trustedIssuersRegistryV4'
HardhatError: HH303: Unrecognized task 'trustedIssuersRegistryV4'
    at ArgumentsParser.parseScopeAndTaskNames (/app/node_modules/hardhat/src/internal/cli/ArgumentsParser.ts:169:15)
    at main (/app/node_modules/hardhat/src/internal/cli/cli.ts:248:23)
    at Object.<anonymous> (/app/node_modules/hardhat/src/internal/cli/cli.ts:483:1)
    at Module._compile (node:internal/modules/cjs/loader:1565:14)
    at Object.<anonymous> (node:internal/modules/cjs/loader:1708:10)
    at Module.load (node:internal/modules/cjs/loader:1318:32)
    at Function._load (node:internal/modules/cjs/loader:1128:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
    at Module.require (node:internal/modules/cjs/loader:1340:12)
(node:852) ExperimentalWarning: CommonJS module /app/contracts/admin-scripts/tasks/bootstrap.ts is loading ES Module /app/node_modules/@cef-ebsi/vcdm1.1-accreditation-schema/dist/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
error Command failed with exit code 1.
Error HH303: Unrecognized task 'trustedSchemaRegistryV3'
HardhatError: HH303: Unrecognized task 'trustedSchemaRegistryV3'
    at ArgumentsParser.parseScopeAndTaskNames (/app/node_modules/hardhat/src/internal/cli/ArgumentsParser.ts:169:15)
    at main (/app/node_modules/hardhat/src/internal/cli/cli.ts:248:23)
    at Object.<anonymous> (/app/node_modules/hardhat/src/internal/cli/cli.ts:483:1)
    at Module._compile (node:internal/modules/cjs/loader:1565:14)
    at Object.<anonymous> (node:internal/modules/cjs/loader:1708:10)
    at Module.load (node:internal/modules/cjs/loader:1318:32)
    at Function._load (node:internal/modules/cjs/loader:1128:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
    at Module.require (node:internal/modules/cjs/loader:1340:12)
(node:875) ExperimentalWarning: CommonJS module /app/contracts/admin-scripts/tasks/bootstrap.ts is loading ES Module /app/node_modules/@cef-ebsi/vcdm1.1-accreditation-schema/dist/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
error Command failed with exit code 1.
Done in 16.63s.
(node:901) ExperimentalWarning: CommonJS module /app/contracts/admin-scripts/tasks/bootstrap.ts is loading ES Module /app/node_modules/@cef-ebsi/vcdm1.1-accreditation-schema/dist/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
deploy contracts first