New open source release: DAML on Fabric 2.0 - with DAML SDK 1.0+ support!
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
Can’t wait to give with a spin with my next app.
Great, thanks!
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.)
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-fabricInvalid invocation: chaincode \'daml_on_fabric\' has not been initialized for this version, must call as init
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.
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
@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.
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.
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-
@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.
Thanks, @bernhard, I have modified the network name to
damlonfabricin thefabric.shscript and in thepeer-base.yamlfile, 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
I have modified the network name to
damlonfabricin thefabric.shscript and in thepeer-base.yamlfile, 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
git checkout fix-networking-issue
Unfortunately the same, I continue to dig in the logs hoping I get some meaningful trace.
@gyorgybalazsi you are facing a different issue. Could you post the entire console output of both restart-fabric.sh and sbt ...?
Cannot post here, not authorized file format, sent to you by email.
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
Sadly, it’s too long, for the restart Fabric log it says:
Body is limited to 64000 characters; you entered 445844.
I can send it to you by email as well
Sadly, it’s too long, for the restart Fabric log it says:
Body is limited to 64000 characters; you entered 445844.
Yowza
I can send it to you by email as well
I actually saw it from @bernhard earlier but thanks
The obvious way for sharing it didn’t occur to me earlier:
DAML_on_Fabric_logs
Shared with Dropbox
cool way to share it 
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.
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:
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...
Hi I am also getting the same issue.Could you help me resolve this.
Root cause was a shortage of RAM. You need at least 6GB (and preferably more) free.
