Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
    Henri Heinonen
    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ yarn serve
    00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'serve'
    <script type="text/javascript" src="/_bundles/trustlines-clientlib.js"></script>
    Where is that trustlines-clientlib.js file located?
    Henri Heinonen
    Hello! Anyone?
    Bernd Bohmeier
    Bernd Bohmeier
    if you want to run a local setup you can do so by checking out this repo https://github.com/trustlines-protocol/end2end via git. You will then need to install docker and docker-compose.
    Then run run-e2e.sh -b inside of the repo. This will bring up a relay server at This can be used then with the metamask example.
    On your other issues, you need to check out the clientlib repo via git, and then run yarn and after that yarn serve This should give you the example website
    Bernd Bohmeier


    import { TLNetwork } from 'trustlines-clientlib'
    import { TLNetwork } from 'trustlines-clientlib'

    SyntaxError: Unexpected token {

    You can not use es6 syntax in node out of the box. This is not a problem of our lib.

    Henri Heinonen
    ./run-e2e.sh will give this
    ERROR: Couldn't connect to Docker daemon - you might need to run docker-machine start default.
    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ yarn
    00h00m00s 0/0: : ERROR: There are no scenarios; must have at least one.
    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ yarn serve
    00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'serve'
    Bernd Bohmeier
    sorry but both have nothing to do with trustlines. Please make sure that your docker and yarn setup is correct first.
    on which operating system are you?
    can you try this to test if your docker is working
    Bernd Bohmeier
    for yarn problem, can you please run yarn info in the clientlib folder and post the output here?
    Henri Heinonen
    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ yarn --version
    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ yarn info
    00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'info'
    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ which yarn
    Ubuntu 19.04 (64-bit).

    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ docker run hello-world
    docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
    See 'docker run --help'.
    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ sudo docker run hello-world
    [sudo] salasana henkilölle henri:
    Unable to find image 'hello-world:latest' locally
    latest: Pulling from library/hello-world
    1b930d010525: Pull complete
    Digest: sha256:92695bc579f31df7a63da6922075d0666e565ceccad16b59c3374d2cf4e8e50e
    Status: Downloaded newer image for hello-world:latest

    Hello from Docker!
    This message shows that your installation appears to be working correctly.

    Henri Heinonen
    Okay! "sudo ./run-e2e.sh" does something interesting; it is downloading lots of files!
    Bernd Bohmeier
    please fix your docker setup. You should be member of the docker group, so that you can run docker without using root
    then it should work
    for yarn that seems really weird, I dont know what you installed, how did you install that?. The version on ubuntu 10.04 should be 1.13.0
    can you try to remove it and reinstall it?
    Bernd Bohmeier
    Installing with sudo apt install yarn
    FYI we are discussing how we can improve our documentation, so that this will be easier in the future.
    Bernd Bohmeier
    * I meant ubuntu 19.04
    Henri Heinonen

    for yarn problem, can you please run yarn info in the clientlib folder and post the output here?

    Now it works!
    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ yarn info
    yarn info v1.15.2
    { name:
    { latest:
    '0.4.3-0-dev.20190418T151117Z.e4ec0fe' },
    [ '0.0.1',
    '0.4.3-0-dev.20190418T151117Z.e4ec0fe' ],
    { created:

    henri@henri-VirtualBox:~/Asiakirjat/clientlib$ yarn --version
    I also fixed the Docker installation with your tips.
    Henri Heinonen
    Any ideas why the network is not showing up? MetaMask is connected to Kovan network.
    I am trying to send trustline request of 100 to other party.
    "TypeError: network is undefined"
    Bernd Bohmeier
    To which relay server is your website connected to?
    Do you just use the metamask example as is and are connected to the local docker setup? Then you should also connect your metamask to your local setup (
    Henri Heinonen
    The website was connected to
    const tlNetwork1 = new trustlines.TLNetwork({
    port: 5000,
    path: 'api/v1',
    web3Provider: web3.currentProvider
    This seems to work better:
    const tlNetwork1 = new trustlines.TLNetwork({
    protocol: 'https',
    host: 'relay0.testnet.trustlines.network',
    path: 'api/v1/',
    web3Provider: web3.currentProvider
    Bernd Bohmeier
    Just make sure that the website is connected to a relay server that is connected to the same blockchain as your metamask. With those settings both is now connected to the setup on kovan run by us.
    You can also use the first settings, but then you need to make sure that your metamask is also connected to your localsetup (
    Thanks for you patience, and let us know what you think!
    Jabulani Msimango
    I got an email on Becoming a Laika Validator in which I had to set up and run a node... I have done all those steps and have received the address.
    My question now is: What do I do next?
    Bernd Bohmeier
    you should have also received a link to a survey (trustlines.limequery.com/...) where you need to enter your address. If you did that and received the confirmation email, you are all set. (keep you node running) After all new validator addresses are collected ( 30th of June 2019), a hard fork will be proposed to activate the new validators. With default settings your node will autoupdate and you will start validating.
    Jabulani Msimango
    Hi @berndbohmeier I got the confirmation email, and thank you for clarifying this.
    vuneo (A)
    I'm not a developer, but a philosopher and a sociologist with many years of experience at activism on freedom and common democracy.
    Can you do with some help from me?
    I rode about the project, and it seems the right step forward to a P2P society.