GithubHelp home page GithubHelp logo

Comments (8)

Bellomi avatar Bellomi commented on September 28, 2024

My dock container is not running. I get the IO Exception.
My user is 1002. How or where do I change it to 1000?

from quorum-dev-quickstart.

joshuafernandes avatar joshuafernandes commented on September 28, 2024

Hello Bellomi,

Please refer to the Readme for how to solve the io exception

Cheers

from quorum-dev-quickstart.

Bellomi avatar Bellomi commented on September 28, 2024

where exactly should I alter this information in the docker-compose.yaml?
I added in this part:

x-besu-def: &besu-def
restart: "on-failure"
image: hyperledger/besu:${BESU_VERSION:-latest}
user: $(id -u):$(id -g)

env_file:
- ./config/besu/.env
entrypoint:
- /bin/bash
- -c

and it did not work.

from quorum-dev-quickstart.

joshuafernandes avatar joshuafernandes commented on September 28, 2024

Hello Bellomi,

This is the context of it #131. Im not sure what user id's you have present on your machine or what the default is or how it's been setup. The besu container however runs as user 1000, and we discourage the use of the root user.

It is however impossible to debug without steps to reproduce this issue. Could you please post details of your environment as well as the steps you took to get up and running and any commands you've used

Cheers

from quorum-dev-quickstart.

Bellomi avatar Bellomi commented on September 28, 2024

Hello,
I follow all the steps and when I am at node scripts/private_tx.js I get the error:
Creating contract...
Error: Invalid JSON RPC response: ""
at Object.InvalidResponse (/home/vntlibe/quorum-test-network/smart_contracts/privacy/node_modules/web3-core-helpers/lib/errors.js:43:16)
at request.onreadystatechange (/home/vntlibe/quorum-test-network/smart_contracts/privacy/node_modules/web3-providers-http/lib/index.js:95:32)
at XMLHttpRequestEventTarget.dispatchEvent (/home/vntlibe/quorum-test-network/smart_contracts/privacy/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (/home/vntlibe/quorum-test-network/smart_contracts/privacy/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpRequestError (/home/vntlibe/quorum-test-network/smart_contracts/privacy/node_modules/xhr2-cookies/dist/xml-http-request.js:349:14)
at ClientRequest. (/home/vntlibe/quorum-test-network/smart_contracts/privacy/node_modules/xhr2-cookies/dist/xml-http-request.js:252:61)
at ClientRequest.emit (node:events:513:28)
at Socket.socketErrorListener (node:_http_client:502:9)
at Socket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21).

from quorum-dev-quickstart.

joshuafernandes avatar joshuafernandes commented on September 28, 2024

Hello @Bellomi ,

I;m not able to reproduce your issue. As above, could you please post:

  • details of your environment (machine specs, OSX/Windows/Linux?)
  • as well as the steps you took to get up and running ( ie which client, what options, has anything been changed etc)

Cheers
Josh

from quorum-dev-quickstart.

Bellomi avatar Bellomi commented on September 28, 2024

Hi, Josh!
I'm using Ubuntu 22.04.2 LTS
My UID is 1002 and GID 1003, however i'm using docker desktop.
the setup is Hyperledger besu, yes for private, ELK, and no for the rest.

from quorum-dev-quickstart.

Bellomi avatar Bellomi commented on September 28, 2024

It turned out that after changing the user and group id I still got the error because the opt/besu/data was trying to be acessed and as Iḿ not the root nor anyone should be for security reasons, it was returning the error opt/besu/data not found.
So I added a different data directory for each node and set inside the run.sh also.

the run.sh is like:
create log folders with the user permissions so it won't conflict with container permissions
mkdir -p logs/besu logs/quorum logs/tessera data1 data2 data3 data4 rpcnodedata member1besudata member2besudata member3besudata

and the docker-compose.yml:

version: '3.6'

x-besu-def:
&besu-def
restart: "on-failure"
image: hyperledger/besu:${BESU_VERSION:-latest}
user: "1002:1002"
......

x-tessera-def:
&tessera-def
user: "1002:1002"
....................

services:

validator1:
<< : *besu-def
.......
volumes:
- ./config/besu/:/config
- ./config/nodes/validator1:/opt/besu/keys
- ./logs/besu:/tmp/besu
- ./data1:/opt/besu/data
networks:
quorum-dev-quickstart:
ipv4_address: 172.16.239.11

validator2:
....
volumes:
- ./config/besu/:/config
- ./config/nodes/validator2:/opt/besu/keys
- ./logs/besu:/tmp/besu
- ./data2:/opt/besu/data
....

validator3:
<< : *besu-def
ports:
- 21003:8545/tcp
- 30303
- 9545
....
volumes:
- ./config/besu/:/config
- ./config/nodes/validator3:/opt/besu/keys
- ./logs/besu:/tmp/besu
- ./data3:/opt/besu/data
....
validator4:
<< : *besu-def
......
volumes:
- ./config/besu/:/config
- ./config/nodes/validator4:/opt/besu/keys
- ./logs/besu:/tmp/besu
- ./data4:/opt/besu/data
.....

rpcnode:
...
volumes:
- ./config/besu/:/config
- ./config/nodes/rpcnode:/opt/besu/keys
- ./logs/besu:/tmp/besu
- ./rpcnodedata:/opt/besu/data
......

member1besu:
.....
- ./config/besu/:/config
- ./config/nodes/member1:/opt/besu/keys
- ./logs/besu:/tmp/besu
- ./member1besudata:/opt/besu/data
....

member2besu:
.....
volumes:
- ./config/besu/:/config
- ./config/nodes/member2:/opt/besu/keys
- ./logs/besu:/tmp/besu
- ./member2besudata:/opt/besu/data
....
member3besu:

......
volumes:
- ./config/besu/:/config
- ./config/nodes/member3:/opt/besu/keys
- ./logs/besu:/tmp/besu
- ./member3besudata:/opt/besu/data
depends_on:
- validator1
- member3tessera

.......

from quorum-dev-quickstart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.