I’m trying to use the Ledger Export feature, see Ledger Export — Daml SDK 2.2.0 documentation
I have created a new project, with daml new <project_name>
and started Sandbox with daml start
.
While the ledger running in Sandbox, I issued the following command:
daml ledger export script --host localhost --port 6865 --all-parties --output ../out --sdk-version 2.2.0
The command created a Daml project for me as expected. When I try to start the created project (after stopping the original ledger), I get the following error message:
gyorgybalazsi@BGY out % daml start
2022-06-03 14:54:29.02 [INFO] [build]
Compiling export to a DAR.
2022-06-03 14:54:29.65 [INFO] [build]
Created .daml/dist/export-1.0.0.dar
Waiting for canton sandbox to start.
Uploading .daml/dist/export-1.0.0.dar to localhost:6865
DAR upload succeeded.
Running the initialization script.
Exception in thread "main" com.daml.lf.engine.script.ScriptF$FailedCmd: Command submit failed: NOT_FOUND: NO_DOMAIN_ON_WHICH_ALL_SUBMITTERS_CAN_SUBMIT(11,00d3f0c5): This participant can not submit as the given submitter on any connected domain
Daml stacktrace:
submit at 5053e1348089bc3c062e48c38fe8faa62ec294d06bc78f8fbe0edb871b9571b2:Export:65
at com.daml.lf.engine.script.Runner.$anonfun$runWithClients$10(Runner.scala:460)
at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:475)
at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:63)
at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:100)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:94)
at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:100)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:49)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:48)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: io.grpc.StatusRuntimeException: NOT_FOUND: NO_DOMAIN_ON_WHICH_ALL_SUBMITTERS_CAN_SUBMIT(11,00d3f0c5): This participant can not submit as the given submitter on any connected domain
at io.grpc.Status.asRuntimeException(Status.java:535)
at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:534)
at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:562)
at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:70)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:743)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:722)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
daml-helper: Received ExitFailure 1 when running
Raw command: java -Dlogback.configurationFile=/Users/gyorgybalazsi/.daml/sdk/2.2.0/daml-sdk/script-logback.xml -jar /Users/gyorgybalazsi/.daml/sdk/2.2.0/daml-sdk/daml-sdk.jar script --dar .daml/dist/export-1.0.0.dar --script-name Export:export --wall-clock-time --ledger-host localhost --ledger-port 6865 --input-file args.json
daml-helper: Received ExitFailure 1 when running
Shell command: /Users/gyorgybalazsi/.daml/bin/daml script --dar .daml/dist/export-1.0.0.dar --script-name 'Export:export' --wall-clock-time --ledger-host localhost --ledger-port 6865 --input-file args.json
gyorgybalazsi@BGY out %
What am I doing wrong?