Error found when running grpcurl on Sandbox

Hi there, I saw some issues when running grpcurl on sandbox.

Interestingly this only happens when I run it in the EC2 instance. The error didn’t occur when I run it on my laptop which has ubuntu as well. Can anyone help?

The following command hangs and error appears in log file.

sudo ./grpcurl -plaintext 100.64.68.17:6865 list

Error on canton.log file.

2022-10-14 03:36:04,511 [daml.index.db.threadpool.connection.indexer-0] INFO c.d.p.indexer.MeteringAggregator - No transaction metering aggregation required, context: {participant: “sandbox”}
2022-10-14 03:36:16,164 [canton-env-execution-context-31] ERROR c.d.c.e.CommunityEnvironment - A fatal error has occurred in canton-env-execution-context. Terminating thread.
java.lang.NullPointerException: null
at io.grpc.protobuf.services.ProtoReflectionService.getRefreshedIndex(ProtoReflectionService.java:93)
at io.grpc.protobuf.services.ProtoReflectionService.serverReflectionInfo(ProtoReflectionService.java:134)
at io.grpc.reflection.v1alpha.ServerReflectionGrpc$MethodHandlers.invoke(ServerReflectionGrpc.java:208)
at io.grpc.stub.ServerCalls$StreamingServerCallHandler.startCall(ServerCalls.java:235)
at io.grpc.Contexts.interceptCall(Contexts.java:52)
at com.daml.ledger.api.auth.interceptor.AuthorizationInterceptor$$anon$1.$anonfun$new$2(AuthorizationInterceptor.scala:72)
at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:484)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426)
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)
2022-10-14 03:36:55,251 [canton-env-execution-context-68] INFO c.d.c.n.g.ApiRequestLogger:participant=sandbox tid:612e3aabc8fff6d902603ce1842adae9 - Request g.r.v.ServerReflection/ServerReflectionInfo by /100.64.68.17:37596: cancelled

EC2 instance version

ubuntu@ip-a.b.c.d:~$ cat /etc/os-release
PRETTY_NAME=“Ubuntu 22.04.1 LTS”
NAME=“Ubuntu”
VERSION_ID=“22.04”
VERSION=“22.04.1 LTS (Jammy Jellyfish)”
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL=“https://www.ubuntu.com/
SUPPORT_URL=“https://help.ubuntu.com/
BUG_REPORT_URL=“Bugs : Ubuntu
PRIVACY_POLICY_URL=“Data privacy | Ubuntu
UBUNTU_CODENAME=jammy

Found the issue behind it… The one which has the problem has Daml 2.0.1. The one which is working has 2.2.1. Upgrade to 2.2.1 solve the issue.

1 Like