Hi,
Given that daml start does not accept the max size parameter, I am now starting my prototype with a sandbox and then I execute a script, but what works fine in daml start (not the size though) fails when run independently. The message is a bit cryptic and I would appreciate some help on that:
I am running the following
- sandbox
daml sandbox --maxInboundMessageSize=18584556
INFO: Slf4jLogger started
INFO: Listening on localhost:6865 over plain text.
____ ____
/ __/__ ____ ___/ / / ___ __ __
_\ \/ _ `/ _ \/ _ / _ \/ _ \\ \ /
/___/\_,_/_//_/\_,_/_.__/\___/_\_\
INFO: Initialized sandbox version 1.7.0 with ledger-id = af42ab39-e53b-49c0-b972-bfece4b04c51, port = 6865, dar file = List(), time mode = wall-clock time, ledger = in-memory, auth-service = AuthServiceWildcard$, contract ids seeding = strong
- The script
daml script --dar .daml/dist/test-0.5.0.dar --script-name Setup:initialize --ledger-host localhost --ledger-port 6865
Error: User abort: Submit failed with code 3: Command interpretation error in LF-DAMLe: Couldn't find package 775ff7ee113954ccc1b46f41783243a86e912a06903bd3c1f0ac31d548cf7a03. Details: N/A.
Exception in thread "main" com.daml.lf.speedy.SError$DamlEUserError
at com.daml.lf.speedy.SBuiltin$SBError$.executePure(SBuiltin.scala:1379)
at com.daml.lf.speedy.SBuiltinPure.execute(SBuiltin.scala:55)
at com.daml.lf.speedy.Speedy$Machine.enterApplication(Speedy.scala:483)
at com.daml.lf.speedy.SExpr$SEAppAtomicGeneral.execute(SExpr.scala:139)
at com.daml.lf.speedy.Speedy$Machine.run(Speedy.scala:360)
at com.daml.lf.engine.script.Runner.stepToValue$1(Runner.scala:386)
at com.daml.lf.engine.script.Runner.com$daml$lf$engine$script$Runner$$run$1(Runner.scala:409)
at com.daml.lf.engine.script.Runner$$anonfun$$nestedInanonfun$runWithClients$7$1.$anonfun$applyOrElse$13(Runner.scala:461)
at scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:307)
at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:41)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)
at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:92)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:85)
at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:92)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:47)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:47)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
daml-helper: Received ExitFailure 1 when running
Raw command: java -Dlogback.configurationFile=/home/jean/.daml/sdk/1.7.0/daml-sdk/script-logback.xml -jar /home/jean/.daml/sdk/1.7.0/daml-sdk/daml-sdk.jar script --dar .daml/dist/test-0.5.0.dar --script-name Setup:initialize --ledger-host localhost --ledger-port 6865
Yet in my dar file I do have:
test-0.5.0-775ff7ee113954ccc1b46f41783243a86e912a06903bd3c1f0ac31d548cf7a03/Setup.daml