Skip to content
Discussions/Announcements/New open source release: DAML on Fabric 2.0 - with DAML SDK 1.0+ support!Forum ↗

New open source release: DAML on Fabric 2.0 - with DAML SDK 1.0+ support!

Announcements28 posts2,701 views38 likesLast activity Dec 2020
TI
TimOP
Jun 2020

Hi DAMLers,

I’m delighted to announce a major new version of our open source DAML on Fabric integration, available here: GitHub - digital-asset/daml-on-fabric

There are three headline improvements:

  • Support for Fabric 2.x
  • Support for DAML SDK 1.x
  • Support for ledger authentication

And numerous other performance, usability, and code enhancements. You’ll find the new version significantly easier to deploy and use and we hope you enjoy it.

When it’s time to take your app to production, you’ll be able to get commercial support under enterprise SLAs from our friends at IntellectEU, with more partners coming soon.

Many of you have reached out to us to ask about DAML on Fabric and we’ll be contacting you individually over the next few days.

Keep an eye out for the forthcoming DAML release too - featuring a live in-browser example of DAML on Fabric.

Finally, credit to Digital Asset’s @sormeter for leading the engineering effort!

Tim

CO
cocreature
Jun 2020

Fantastic work @sormeter, @Tim and anyone else involved in this! Very excited to finally see this released!

AN
andreolf
Jun 2020

Great job @Tim @sormeter and team! :muscle:

BE
bernhard
Jun 2020

Can’t wait to give with a spin with my next app.

GY
gyorgybalazsi
Jun 2020

Great, thanks!

GY
gyorgybalazsi
Jun 2020

I’m trying to run the QuickStart example on DAML on Fabric as per the instructions in the README file, but for this command:

sbt "run --port 6865 --role provision,time,ledger,explorer ./quickstart/.daml/dist/quickstart-0.0.1.dar"

I get the following error message:

[error] (run-main-0) com.daml.FabricContextException: response {
[error] status: 500
[error] message: “make sure the chaincode daml_on_fabric has been successfully defined on channel mainchannel and try again: chaincode daml_on_fabric not found”
[error] }

What do I do wrongly?

(Apart from this, am I right to think that some references are not correct in the README file?

I think in section Step 2. Extract and build Quick Start project

$ cd ~/quickstart/

should be

$ cd ~/daml-on-fabric/quickstart

because the quickstart package was downloaded within the daml-on-fabric folder.)

AN
anthony
Jun 2020

I’m actually encountering a similar issue on a new system (works fine on my old system). Opened the issue here, hopefully we can get it resolved soon:

github.com/digital-asset/daml-on-fabric

Versions: Java: 1.8.0 Scala: 2.12.7 (and 2.12.11) SBT: 1.2.8 Steps to reproduce: Run through Katacoda scenario as here Once you get to the step where you run...

You might want to open a separate issue for this one though.

Also cc @sormeter @Tim

GY
gyorgybalazsi
Jun 2020

I have just found the DAML on Fabric architecture doc on Github, start reading, I hope it will help: daml-on-fabric/DAML_on_Fabric_v2_Architecture.pdf at c6d08d2b21e0eaefe143a60f2c5467f7e3daa404 · digital-asset/daml-on-fabric · GitHub

BE
bernhard
Jun 2020

@gyorgybalazsi have a look at the issue. I explained the issue and link to a PR that fixes it. It’s a two-line fix so you can apply it yourself to get unblocked.

GY
gyorgybalazsi
Jun 2020

Thanks, @bernhard, I have modified the network name to damlonfabric in the fabric.sh script and in the peer-base.yaml file, and get the same error as before.

BE
bernhard
Jun 2020

What a shame. Could you cross-check your versions with those listed in the daml-on-fabric readme?

  • docker-compose version 1.24.0
  • docker CE version 18.09.6
  • Java / JDK version 1.8.0.x
  • Scala version 2.12.11
  • SBT version 1.2.8
  • Fabric SDK Java version 2.1.0
  • Fabric version 2.1.0
  • DAML SDK version 1.2.0-snapshot-
AN
anthony
Jun 2020
bernhard:

@gyorgybalazsi have a look at the issue. I explained the issue and link to a PR that fixes it. It’s a two-line fix so you can apply it yourself to get unblocked.

gyorgybalazsi:

Thanks, @bernhard, I have modified the network name to damlonfabric in the fabric.sh script and in the peer-base.yaml file, and get the same error as before.

Did you know you can fetch/checkout PRs locally?

So in this case it’d be

git fetch pull/17/head:fix-networking-issue
git checkout fix-networking-issue
GY
gyorgybalazsi
Jun 2020
gyorgybalazsi:

I have modified the network name to damlonfabric in the fabric.sh script and in the peer-base.yaml file, and get the same error as before.

I have slightly fresher versions of everything, I am an amateur so update only when I want to try something, but than to the latest version…

docker-compose 1.25.5 (latest Docker desktop for Mac)
docker 19.03.8 (same) - that’s higher that stated in the README

I can see on Github that SBT 1.3.10 will be supported soon, so my 1.3.12 should be ok, I guess.

Scala version is set in a script, Fabric, DAML version ok

GY
gyorgybalazsi
Jun 2020
anthony:

git checkout fix-networking-issue

Unfortunately the same, I continue to dig in the logs hoping I get some meaningful trace.

BE
bernhard
Jun 2020

@gyorgybalazsi you are facing a different issue. Could you post the entire console output of both restart-fabric.sh and sbt ...?

GY
gyorgybalazsi
Jun 2020

Cannot post here, not authorized file format, sent to you by email.

AN
anthony
Jun 2020

You can also paste output as text and enclose it in ``` like in the below:

    ```text
    output here
    ```

This would then render like:

output here
GY
gyorgybalazsi
Jun 2020

Sadly, it’s too long, for the restart Fabric log it says:

Body is limited to 64000 characters; you entered 445844.

GY
gyorgybalazsi
Jun 2020

I can send it to you by email as well

AN
anthony
Jun 2020
gyorgybalazsi:

Sadly, it’s too long, for the restart Fabric log it says:

Body is limited to 64000 characters; you entered 445844.

Yowza

gyorgybalazsi:

I can send it to you by email as well

I actually saw it from @bernhard earlier but thanks

GY
gyorgybalazsi
Jun 2020

The obvious way for sharing it didn’t occur to me earlier:

Dropbox

DAML_on_Fabric_logs

Shared with Dropbox

AN
andreolf
Jun 2020

cool way to share it :slight_smile:

GY
gyorgybalazsi
Jun 2020

I had an issue with running DAML on Fabric, but @sormeter helped me to find the root cause, thank you for that! It might help to other DAML-ers as well. My problem was that there were too many memory-hungry applications running on my machine, I needed more then 6 GB memory to work DAML on Fabric properly.

AN
andreolf
Jun 2020

Hey @gyorgybalazsi, we are also doing a quick recording how to get started with DAML on Fabric with @anthony, I am really looking forward to sharing it soon on our youtube channel here:

YouTube

DAML

📋 To get started with DAML, visit https://docs.daml.com, and join the community. 🔎 Please create a free account on project: DABL and deploy this smart contra...

AS
ashlinsaj
Dec 2020

Hi I am also getting the same issue.Could you help me resolve this.

TI
Tim
Dec 2020

Root cause was a shortage of RAM. You need at least 6GB (and preferably more) free.

← Back to Discussions