Canton startup error on Windows 11 - Running bootstrap script failed

Hi,

I recently tried to run Canton on Windows 11 and below error . Is there any way to fix that or workaround ?
I have installed DAML SDK version 2.6.3 on my Windows 11 notebook.

D:\DAML\Canton\canton-open-source-2.6.3>bin\canton -c examples\04-create-daml-app\canton.conf --bootstrap examples\04-create-daml-app\init.canton

Compiling (synthetic)/ammonite/predef/ArgsPredef.sc
Compiling D:\DAML\Canton\canton-open-source-2.6.3(console)
ERROR c.d.c.ConsoleInteractiveRunner - Running bootstrap script failed with an exception (‘other’ has different root)!
‘other’ has different root

D:\DAML\Canton\canton-open-source-2.6.3>

D:\DAML\Canton\canton-open-source-2.6.3>dir
Volume in drive D is Data
Volume Serial Number is 24DB-B3DD

Directory of D:\DAML\Canton\canton-open-source-2.6.3

24/04/2023 15:01 .
23/04/2023 23:06 …
20/04/2023 22:47 bin
20/04/2023 22:47 1,626 canton-json.lnav.json
20/04/2023 22:47 3,542 canton.lnav.json
03/05/2023 19:36 create-daml-app
20/04/2023 22:47 daml
20/04/2023 22:47 dars
20/04/2023 22:47 demo
20/04/2023 22:47 deployment
20/04/2023 22:47 examples
20/04/2023 22:47 lib
20/04/2023 22:47 22,932 LICENSE.txt
24/04/2023 15:01 log
20/04/2023 22:47 protobuf
20/04/2023 22:47 1,340 README.md
20/04/2023 22:47 1,720 RELEASE-NOTES.md
20/04/2023 22:47 59 start-demo-win.cmd
20/04/2023 22:47 1,723 start-demo.command
20/04/2023 22:47 59,466 third-party-licenses.html
8 File(s) 92,408 bytes
12 Dir(s) 753,113,436,160 bytes free

Hi @el_daml01,

You are likely actually missing the actual Create Daml APP (create-daml-app) from your filepath.

I am using Ubuntu Linux, but I was able to get this example working correctly using the Linux version of your command:

bin/canton -c examples/04-create-daml-app/canton.conf --bootstrap examples/04-create-daml-app/init.canton

Process:

# Run the Canton Examples command

ben_m ~/opt/canton-open-source-2.6.3 $ bin/canton -c examples/04-create-daml-app/canton.conf --bootstrap examples/04-create-daml-app/init.canton
Compiling (synthetic)/ammonite/predef/ArgsPredef.sc
Compiling /home/ben_m/opt/canton-open-source-2.6.3/(console)
Compiling /home/ben_m/opt/canton-open-source-2.6.3/Main.sc
ERROR c.d.c.ConsoleInteractiveRunner - Running bootstrap script failed with an exception (please setup the create-daml-app example in the current working directly under /home/ben_m/opt/canton-open-source-2.6.3/create-daml-app)!
please setup the create-daml-app example in the current working directly under /home/ben_m/opt/canton-open-source-2.6.3/create-daml-app

# Create the new Daml app

ben_m ~/opt/canton-open-source-2.6.3 $ daml new --template create-daml-app create-daml-app
Created a new project in “create-daml-app” based on the template “create-daml-app”.

# Rerun the Canton Examples command

ben_m ~/opt/canton-open-source-2.6.3 $ bin/canton -c examples/04-create-daml-app/canton.conf --bootstrap examples/04-create-daml-app/init.canton
Compiling /home/ben_m/opt/canton-open-source-2.6.3/Main.sc
ERROR c.d.c.ConsoleInteractiveRunner - Running bootstrap script failed with an exception (please run daml build in the create-daml-app folder to build the dar file /home/ben_m/opt/canton-open-source-2.6.3/create-daml-app/.daml/dist/create-daml-app-0.1.0.dar)!
please run daml build in the create-daml-app folder to build the dar file /home/ben_m/opt/canton-open-source-2.6.3/create-daml-app/.daml/dist/create-daml-app-0.1.0.dar

# Build the new Daml app

ben_m ~/opt/canton-open-source-2.6.3 $ cd create-daml-app/
ben_m ~/opt/canton-open-source-2.6.3/create-daml-app $ daml build

2023-05-07 21:47:34.44 [INFO] [build]
Compiling create-daml-app to a DAR.

2023-05-07 21:47:35.06 [INFO] [build]
Created .daml/dist/create-daml-app-0.1.0.dar

# Change back to the Canton Open Source main directory

ben_m ~/opt/canton-open-source-2.6.3/create-daml-app $ cd …

# Rerun the Canton Examples command

ben_m ~/opt/canton-open-source-2.6.3 $ bin/canton -c examples/04-create-daml-app/canton.conf --bootstrap examples/04-create-daml-app/init.canton
Compiling /home/ben_m/opt/canton-open-source-2.6.3/Main.sc
CANTON

Welcome to Canton!
Type help to get started. exit to leave.

@

I tested this process on Canton Enterprise v2.6.2, v2.6.3 and Canton Open Source v2.6.3.

Hope this helps, Ben.