# SBT installation issue for daml-on-fabric

**URL:** <https://forum.canton.network/t/sbt-installation-issue-for-daml-on-fabric/2224>\
**Category:** App Development\
**Tags:** daml-on-fabric, sbt\
**Created:** [March 8, 2021, 4:00am UTC](https://forum.canton.network/t/sbt-installation-issue-for-daml-on-fabric/2224 "2021-03-08T04:00:50Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![bartcant](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bartcant/32/823_2.png) [@bartcant](https://forum.canton.network/u/bartcant)\
**Post date:** [April 23, 2021, 7:55pm UTC](https://forum.canton.network/t/sbt-installation-issue-for-daml-on-fabric/2224/21 "2021-04-23T19:55:36Z")

</div>

It appears the exception is thrown in  
src\main\java\com\daml\FabricContext.java

Line 229

```haskell
private void runChannel(Collection<Peer> peers, LifecycleChaincodePackage lifecycleChaincodePackage {

...

catch (Exception) {
  debugOut("Caught an exception running Channel %s, fabChannel.getName());
 e.printStackTrace();
}

```

I also checked  
`~/daml-on-fabric/src/test/fixture/chaincode/src/github.com/daml_on_fabric/`

but could only find `vendor` sub-directory with 1 empty file

`NO_AUTO_COPYRIGHT`

---

<div class="post-metadata">

**Author:** ![Gary\_Verhaegen](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gary_verhaegen/32/81_2.png) [@Gary\_Verhaegen](https://forum.canton.network/u/Gary_Verhaegen)\
**Post date:** [April 27, 2021, 10:06am UTC](https://forum.canton.network/t/sbt-installation-issue-for-daml-on-fabric/2224/22 "2021-04-27T10:06:57Z")

</div>

I believe the root cause here is the Docker build failure, i.e.

```haskell
Get "https://proxy.golang.org/github.com/golang/protobuf/@v/v1.4.2.mod": EOF

```

My recommendation would be to check whether your corporate proxy allows you to connect to [proxy.golang.com](http://proxy.golang.com).

---

<div class="post-metadata">

**Author:** ![bartcant](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bartcant/32/823_2.png) [@bartcant](https://forum.canton.network/u/bartcant)\
**Post date:** [May 11, 2021, 6:20pm UTC](https://forum.canton.network/t/sbt-installation-issue-for-daml-on-fabric/2224/23 "2021-05-11T18:20:53Z")

</div>

> [@Gary\_Verhaegen](#):
>
> `https://proxy.golang.org/github.com/golang/protobuf/@v/v1.4.2.mod`

If I could find in the code where this get triggered then this will help me. I could change` curl` to `curl -sSLk` and that command will be allowed to go through the corporate proxy.

I just tested in this environment and  
`curl -sSLk "https://proxy.golang.org/github.com/golang/protobuf/@v/v1.4.2.mod"`

returned

> module [GitHub - golang/protobuf: Go support for Google's protocol buffers](http://github.com/golang/protobuf)
> 
> go 1.9
> 
> require (  
> [GitHub - google/go-cmp: Package for comparing Go values in tests](http://github.com/google/go-cmp) v0.4.0  
> [protobuf module - google.golang.org/protobuf - Go Packages](http://google.golang.org/protobuf) v1.23.0  
> )

---

<div class="post-metadata">

**Author:** ![Gary\_Verhaegen](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gary_verhaegen/32/81_2.png) [@Gary\_Verhaegen](https://forum.canton.network/u/Gary_Verhaegen)\
**Post date:** [May 12, 2021, 8:51am UTC](https://forum.canton.network/t/sbt-installation-issue-for-daml-on-fabric/2224/24 "2021-05-12T08:51:04Z")

</div>

This log line may not come from `curl`; I’m not very familiar with the go ecosystem, but I wouldn’t be surprised if the download was done by a custom-built go dependency-management tool. I don’t have much context here but I would try two lines en enquiry if I had access to your system:

1. If I could get access to the Dockerfile that fails to build, I would try to just add a few lines in it to set the env vars for proxying (`http_proxy`, `HTTP_PROXY`, `https_proxy` and `HTTPS_PROXY`, all with the same value) and hope the go tooling respects that.
2. Look through the Docker documentation to see if maybe you can set this up at the Docker daemon level. You can’t be the first person that needs Docker to go through a proxy; maybe this can be set directly in the configuration of the Docker virtual network.

It’s been a long time since I had to deal with a corporate proxy so I’m a bit rusty on that front. I am not confident either of these approaches will solve the problem, but they’re the best options I can think of at this point.

[Previous page](https://forum.canton.network/t/sbt-installation-issue-for-daml-on-fabric/2224.md?page=1)
