Error while initiating network with canton. Parse Error, Position 1:32, found "canton-0.1"

I’m facing an issue while initiating the canton network.
This is the error I’m getting,

D:\canton-0.14.1> ./bin/canton -c .\examples\test\party1.conf --bootstrap .\examples\test\party1.canton
    Exception in thread "main" java.lang.Exception: Parse Error, Position 1:32, found "canton-0.1"
            at fastparse.Parsed$Failure.get(Parsed.scala:54)
            at fastparse.Parsed$Failure.get(Parsed.scala:51)
            at com.digitalasset.canton.console.InteractiveConsole$.$anonfun$apply$3(InteractiveConsole.scala:86)
            at scala.Option.map(Option.scala:163)
            at scala.Option.getOrElse(Option.scala:138)
            at com.digitalasset.canton.console.InteractiveConsole$.startup$1(InteractiveConsole.scala:63)
            at com.digitalasset.canton.console.InteractiveConsole$.apply(InteractiveConsole.scala:110)
            at com.digitalasset.canton.console.InteractiveConsole$.forEnvironment(InteractiveConsole.scala:32)
            at com.digitalasset.canton.ConsoleInteractiveRunner.run(Runner.scala:83)
            at com.digitalasset.canton.CantonApp$.delayedEndpoint$com$digitalasset$canton$CantonApp$1(CantonApp.scala:108)
            at com.digitalasset.canton.CantonApp$delayedInit$body.apply(CantonApp.scala:27)
            at scala.Function0.apply$mcV$sp(Function0.scala:39)
            at scala.Function0.apply$mcV$sp$(Function0.scala:39)
            at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
            at scala.App.$anonfun$main$1$adapted(App.scala:80)
            at scala.collection.immutable.List.foreach(List.scala:392)
            at scala.App.main(App.scala:80)
            at scala.App.main$(App.scala:78)
            at com.digitalasset.canton.CantonApp$.main(CantonApp.scala:27)
            at com.digitalasset.canton.CantonApp.main(CantonApp.scala)
    PS D:\canton-0.14.1> java -version
    openjdk version "11.0.7" 2020-04-14 LTS
    OpenJDK Runtime Environment Zulu11.39+15-CA (build 11.0.7+10-LTS)
    OpenJDK 64-Bit Server VM Zulu11.39+15-CA (build 11.0.7+10-LTS, mixed mode)
    PS D:\canton-0.14.1>

code for the conf file
bootstrap script

1 Like

Hey @Shubham-koli. I’m afraid it looks like you’ve discovered a bug that bootstrap scripts are currently failing when run on Windows (digital-asset/canton#3). Thanks for raising.

As a crude workaround you could launch canton without a bootstrap script and paste your script into its console.

4 Likes

okay got it! thanks @davidpadbury.
I will check out and let you know how it goes .