by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Lucas
    @lucasvuotto
    the command and the class look fine. Can you paste the concrete message you get and a couple of lines surrounding it?
    David Fraga Laureano
    @davidfraga610
    Sure this is the script
    #!/bin/sh
    
    COIN_DIR=$1
    NETWORK=$2
    
    if [ -z "$COIN_DIR" ] || [ -z "$NETWORK" ]; then
        echo "Missing arguments, exiting.."
        echo "Usage : $0 /coin-directory mainnet"
        exit 1
    fi
    
    java -Dlogback.configurationFile='/wallets/$COIN_DIR/logs/logback.xml' -Drsk.conf.file=/wallets/$COIN_DIR/config/$NETWORK.conf -cp rskj-core-2.0.1-PAPYRUS-all.jar co.rsk.Start --$NETWORK
    and the error is this: Error: Could not find or load main class co.rsk.Start
    Lucas
    @lucasvuotto
    sorry, I meant I need a couple more lines of log around that message. I'm quite certain that co.rsk.Start is the class.
    David Fraga Laureano
    @davidfraga610
    This is the only message that the container outputs
    Now, I made it run, but no logs or anything
    image.png
    Lucas
    @lucasvuotto
    what changed that it ran?
    as for logs, it'll log to where logback.xml tells it to log
    David Fraga Laureano
    @davidfraga610
    I did not copy the jar to the runtime image
    now it's running, but no logs
    Oh that's right, let me take a look at the file
    David Fraga Laureano
    @davidfraga610
    @lucasvuotto I cannot hit the container from my outside: curl -X POST 127.0.0.1:4444/ -H 'Content-Type:application/json' --data '{"jsonrpc":"2.0","method":"eth_syncing"}'
    11 replies
    returns nothing, Do you think I'm missing something else?
    Docker ports are open and exposed
    with port 4444 it returns nothing, and with port 50505 it gets stuck waiting for a response
    these are the logs :
    2020-06-22-19:47:28.792 INFO [config]  Config ( yes ): user properties from -Drsk.conf.file file '/wallets/rsk/config/testnet.conf'
    2020-06-22-19:47:28.798 INFO [config]  Config ( no ): default properties from installer '/etc/rsk/node.conf'
    2020-06-22-19:47:29.766 DEBUG [c.r.b.c.Context]  Creating bitcoinj 0.14.4 context.
    2020-06-22-19:47:30.127 INFO [general]  DB is empty - adding Genesis
    2020-06-22-19:47:30.129 INFO [general]  Genesis block loaded
    2020-06-22-19:47:30.184 INFO [general]  New nodeID generated: edf438095f3aa784f4341bfb1b8f689221babd82c4d4aecae43dec00db0a9fa2f03f8d9d6375cc76987dce3e7c54137ead57d852d0ba45568a235b5ee670637c
    2020-06-22-19:47:30.184 INFO [general]  Generated nodeID and its private key stored in /wallets/rsk/db/.rsk/testnet/database/nodeId.properties
    2020-06-22-19:47:30.193 INFO [general]  Public IP wasn't set or resolved, using https://checkip.amazonaws.com to identify it...
    2020-06-22-19:47:31.326 INFO [general]  Identified public IP: /187.189.164.26
    2020-06-22-19:47:31.879 DEBUG [c.g.j.JsonRpcBasicServer]  created server for interface class co.rsk.rpc.Web3RskImpl with handler class co.rsk.rpc.Web3RskImpl
    2020-06-22-19:47:31.996 INFO [fullnoderunner]  Starting RSK
    2020-06-22-19:47:31.997 INFO [fullnoderunner]  Running orchid-testnet.json,  core version: 2.0.1-PAPYRUS
    2020-06-22-19:47:31.997 INFO [fullnoderunner]  git.hash: [3db4f134b]
    2020-06-22-19:47:31.997 INFO [fullnoderunner]  build.branch: heads/PAPYRUS-2.0.1
    2020-06-22-19:47:32.010 INFO [net]  RskJ node started: enode://edf438095f3aa784f4341bfb1b8f689221babd82c4d4aecae43dec00db0a9fa2f03f8d9d6375cc76987dce3e7c54137ead57d852d0ba45568a235b5ee670637c@187.189.164.26:50505
    2020-06-22-19:47:32.011 INFO [c.r.r.n.Web3HttpServer]  RPC HTTP enabled
    2020-06-22-19:47:32.032 INFO [net]  Listening for incoming connections, host: /0.0.0.0, port: [50505] 
    2020-06-22-19:47:32.035 INFO [net]  NodeId: [edf438095f3aa784f4341bfb1b8f689221babd82c4d4aecae43dec00db0a9fa2f03f8d9d6375cc76987dce3e7c54137ead57d852d0ba45568a235b5ee670637c] 
    2020-06-22-19:47:32.109 WARN [i.n.b.ServerBootstrap]  Unknown channel option 'SO_KEEPALIVE' for channel '[id: 0xf11b3415]'
    2020-06-22-19:47:32.109 WARN [i.n.b.ServerBootstrap]  Unknown channel option 'SO_LINGER' for channel '[id: 0x4ca4ebd1]'
    2020-06-22-19:47:32.139 INFO [i.n.h.l.LoggingHandler]  [id: 0x4ca4ebd1] REGISTERED
    2020-06-22-19:47:32.143 INFO [i.n.h.l.LoggingHandler]  [id: 0x4ca4ebd1] BIND(/0.0.0.0:4444)
    2020-06-22-19:47:32.147 INFO [c.r.n.d.UDPServer]  Discovery UDPListener started
    2020-06-22-19:47:32.148 INFO [i.n.h.l.LoggingHandler]  [id: 0x4ca4ebd1, L:/0.0.0.0:4444] ACTIVE
    2020-06-22-19:47:32.154 INFO [fullnoderunner]  Capability eth version: [V62]
    2020-06-22-19:47:32.154 INFO [fullnoderunner]  done
    2020-06-22-19:47:57.910 INFO [i.n.h.l.LoggingHandler]  [id: 0x4ca4ebd1, L:/0.0.0.0:4444] READ: [id: 0x83ec1ca4, L:/127.0.0.1:4444 - R:/127.0.0.1:53778]
    2020-06-22-19:47:57.913 INFO [i.n.h.l.LoggingHandler]  [id: 0x4ca4ebd1, L:/0.0.0.0:4444] READ COMPLETE
    2020-06-22-19:47:57.986 DEBUG [c.g.j.JsonRpcBasicServer]  Request: {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}
    2020-06-22-19:47:58.000 DEBUG [c.g.j.JsonRpcBasicServer]  Invoking method: eth_blockNumber with args []
    2020-06-22-19:47:58.000 DEBUG [c.g.j.JsonRpcBasicServer]  Invoked method: eth_blockNumber, result 0x0
    2020-06-22-19:47:58.008 DEBUG [c.g.j.JsonRpcBasicServer]  Response: {"jsonrpc":"2.0","id":1,"result":"0x0"}
    2020-06-22-19:48:28.096 INFO [i.n.h.l.LoggingHandler]  [id: 0x4ca4ebd1, L:/0.0.0.0:4444] READ: [id: 0x7085b97f, L:/127.0.0.1:4444 - R:/127.0.0.1:53780]
    2020-06-22-19:48:28.096 INFO [i.n.h.l.LoggingHandler]  [id: 0x4ca4ebd1, L:/0.0.0.0:4444] READ COMPLETE
    2020-06-22-19:48:28.101 DEBUG [c.g.j.JsonRpcBasicServer]  Request: {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}
    2020-06-22-19:48:28.101 DEBUG [c.g.j.JsonRpcBasicServer]  Invoking method: eth_blockNumber with args []
    2020-06-22-19:48:28.101 DEBUG [c.g.j.JsonRpcBasicServer]  Invoked method: eth_blockNumber, result 0x0
    2020-06-22-19:48:28.
    Lucas
    @lucasvuotto

    For running the container, is this ok regarding ports?

    docker run -d -p 50505:50505 -p 4444:4444 rootstock-node

    @davidfraga610 I completely missed the lack of /udp in here

    it should be -p 50505:50505/udp
    TCP 4444 is correct
    David Fraga Laureano
    @davidfraga610
    If I run with that I get:
    Exception in thread "main" java.lang.RuntimeException: Wildcard on bind address it's not allowed as fallback for public IP /0.0.0.0
        at org.ethereum.config.SystemProperties.getMyPublicIpFromRemoteService(SystemProperties.java:473)
        at org.ethereum.config.SystemProperties.getPublicIp(SystemProperties.java:443)
        at co.rsk.RskContext.getPeerExplorer(RskContext.java:1031)
        at co.rsk.RskContext.getNodeManager(RskContext.java:1643)
        at co.rsk.RskContext.getSyncPool(RskContext.java:1443)
        at co.rsk.RskContext.getChannelManager(RskContext.java:644)
        at co.rsk.RskContext.getTransactionGateway(RskContext.java:1550)
        at co.rsk.RskContext.buildInternalServices(RskContext.java:791)
        at co.rsk.RskContext.buildNodeRunner(RskContext.java:783)
        at co.rsk.RskContext.getNodeRunner(RskContext.java:292)
        at co.rsk.Start.main(Start.java:31)
    I removed the bind_address property in rsk.conf to see if it works but it doesn't
    David Fraga Laureano
    @davidfraga610
    these are the logs
    2020-06-23-19:41:05.015 INFO [config]  Config ( yes ): user properties from -Drsk.conf.file file '/wallets/rsk/config/testnet.conf'
    2020-06-23-19:41:05.021 INFO [config]  Config ( no ): default properties from installer '/etc/rsk/node.conf'
    2020-06-23-19:41:05.925 DEBUG [c.r.b.c.Context]  Creating bitcoinj 0.14.4 context.
    2020-06-23-19:41:06.351 INFO [general]  DB is empty - adding Genesis
    2020-06-23-19:41:06.354 INFO [general]  Genesis block loaded
    2020-06-23-19:41:06.432 INFO [general]  New nodeID generated: 2c348907e677159fa7faa799feb71a16dbfaff4d39149e552975e33a85a25cd4f51d9654e0143ae43e851943875397ec849eb57b3d4c42271e5128f4fc41e8de
    2020-06-23-19:41:06.432 INFO [general]  Generated nodeID and its private key stored in /wallets/rsk/db/.rsk/testnet/database/nodeId.properties
    2020-06-23-19:41:06.441 INFO [general]  Public IP wasn't set or resolved, using https://checkip.amazonaws.com to identify it...
    2020-06-23-19:41:07.385 INFO [general]  Identified public IP: /187.189.164.26
    2020-06-23-19:41:07.908 DEBUG [c.g.j.JsonRpcBasicServer]  created server for interface class co.rsk.rpc.Web3RskImpl with handler class co.rsk.rpc.Web3RskImpl
    2020-06-23-19:41:08.023 INFO [fullnoderunner]  Starting RSK
    2020-06-23-19:41:08.023 INFO [fullnoderunner]  Running orchid-testnet.json,  core version: 2.0.1-PAPYRUS
    2020-06-23-19:41:08.024 INFO [fullnoderunner]  git.hash: [3db4f134b]
    2020-06-23-19:41:08.024 INFO [fullnoderunner]  build.branch: heads/PAPYRUS-2.0.1
    2020-06-23-19:41:08.040 INFO [net]  RskJ node started: enode://2c348907e677159fa7faa799feb71a16dbfaff4d39149e552975e33a85a25cd4f51d9654e0143ae43e851943875397ec849eb57b3d4c42271e5128f4fc41e8de@187.189.164.26:50505
    2020-06-23-19:41:08.042 INFO [c.r.r.n.Web3HttpServer]  RPC HTTP enabled
    2020-06-23-19:41:08.058 INFO [net]  Listening for incoming connections, host: /0.0.0.0, port: [50505] 
    2020-06-23-19:41:08.067 INFO [net]  NodeId: [2c348907e677159fa7faa799feb71a16dbfaff4d39149e552975e33a85a25cd4f51d9654e0143ae43e851943875397ec849eb57b3d4c42271e5128f4fc41e8de] 
    2020-06-23-19:41:08.143 WARN [i.n.b.ServerBootstrap]  Unknown channel option 'SO_KEEPALIVE' for channel '[id: 0x973ff061]'
    2020-06-23-19:41:08.143 WARN [i.n.b.ServerBootstrap]  Unknown channel option 'SO_LINGER' for channel '[id: 0xf7662ddf]'
    2020-06-23-19:41:08.174 INFO [i.n.h.l.LoggingHandler]  [id: 0xf7662ddf] REGISTERED
    2020-06-23-19:41:08.176 INFO [i.n.h.l.LoggingHandler]  [id: 0xf7662ddf] BIND(/0.0.0.0:4444)
    2020-06-23-19:41:08.178 INFO [c.r.n.d.UDPServer]  Discovery UDPListener started
    2020-06-23-19:41:08.184 INFO [i.n.h.l.LoggingHandler]  [id: 0xf7662ddf, L:/0.0.0.0:4444] ACTIVE
    2020-06-23-19:41:08.184 INFO [fullnoderunner]  Capability eth version: [V62]
    2020-06-23-19:41:08.184 INFO [fullnoderunner]  done
    2020-06-23-19:41:33.829 INFO [i.n.h.l.LoggingHandler]  [id: 0xf7662ddf, L:/0.0.0.0:4444] READ: [id: 0x297c8212, L:/127.0.0.1:4444 - R:/127.0.0.1:57762]
    2020-06-23-19:41:33.831 INFO [i.n.h.l.LoggingHandler]  [id: 0xf7662ddf, L:/0.0.0.0:4444] READ COMPLETE
    2020-06-23-19:41:33.899 DEBUG [c.g.j.JsonRpcBasicServer]  Request: {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}
    2020-06-23-19:41:33.912 DEBUG [c.g.j.JsonRpcBasicServer]  Invoking method: eth_blockNumber with args []
    2020-06-23-19:41:33.912 DEBUG [c.g.j.JsonRpcBasicServer]  Invoked method: eth_blockNumber, result 0x0
    2020-06-23-19:41:33.919 DEBUG [c.g.j.JsonRpcBasicServer]  Response: {"jsonrpc":"2.0","id":1,"result":"0x0"}
    2020-06-23-19:42:04.006 INFO [i.n.h.l.LoggingHandler]  [id: 0xf7662ddf, L:/0.0.0.0:4444] READ: [id: 0x21172d3b, L:/127.0.0.1:4444 - R:/127.0.0.1:57764]
    2020-06-23-19:42:04.006 INFO [i.n.h.l.LoggingHandler]  [id: 0xf7662ddf, L:/0.0.0.0:4444] READ COMPLETE
    2020-06-23-19:42:04.009 DEBUG [c.g.j.JsonRpcBasicServer]  Request: {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}
    2020-06-23-19:42:04.009 DEBUG [c.g.j.JsonRpcBasicServer]  Invoking method: eth_blockNumber with args []
    2020-06-23-19:42:04.009 DEBUG [c.g.j.JsonRpcBasicServer]  Invoked method: eth_blockNumber, result 0x0
    Always getting 0x0 as block number
    Lucas
    @lucasvuotto

    If I run with that I get:

    Exception in thread "main" java.lang.RuntimeException: Wildcard on bind address it's not allowed as fallback for public IP /0.0.0.0
        at org.ethereum.config.SystemProperties.getMyPublicIpFromRemoteService(SystemProperties.java:473)
        at org.ethereum.config.SystemProperties.getPublicIp(SystemProperties.java:443)
        at co.rsk.RskContext.getPeerExplorer(RskContext.java:1031)
        at co.rsk.RskContext.getNodeManager(RskContext.java:1643)
        at co.rsk.RskContext.getSyncPool(RskContext.java:1443)
        at co.rsk.RskContext.getChannelManager(RskContext.java:644)
        at co.rsk.RskContext.getTransactionGateway(RskContext.java:1550)
        at co.rsk.RskContext.buildInternalServices(RskContext.java:791)
        at co.rsk.RskContext.buildNodeRunner(RskContext.java:783)
        at co.rsk.RskContext.getNodeRunner(RskContext.java:292)
        at co.rsk.Start.main(Start.java:31)

    I don't see how this happens, as the suggested change is for docker, not for rskj node. Can you share me the complete docker line you're using to run the container?

    David Fraga Laureano
    @davidfraga610
    @lucasvuotto that error is gone, I was running this command: java -Dlogback.configurationFile='/wallets/meter/logs/logback.xml' -Drsk.conf.file=/wallets/meter/config/testnet.conf -cp rskj-core-2.0.1-PAPYRUS-all.jar co.rsk.Start --testnet
    Now, the container is running, but the blockNumber is always 0x0it does not grow.
    Lucas
    @lucasvuotto
    we need to know how you're running the container with docker, too.
    David Fraga Laureano
    @davidfraga610
    something like this:
    docker run -d -p 50505:50505/udp -p 4444:4444 rootstock-node
    azamrazman
    @azamrazman
    guys, my node is not fetching any new blocks. I am running Ubuntu 20.04. Is it a known bug?
    Alejandro Cavallero
    @alepc253
    @azamrazman what RSK node version?
    azamrazman
    @azamrazman
    You mean this?
    curl localhost:4444 -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_protocolVersion","params":[],"id":1}'
    {"jsonrpc":"2.0","id":1,"result":"62"}
    azamrazman
    @azamrazman
    @alepc253 is that right?
    Lucas
    @lucasvuotto
    @azamrazman no, but web3_clientVersion
    azamrazman
    @azamrazman
    {"jsonrpc":"2.0","id":1,"result":"RskJ/1.3.0/Linux/Java1.8/WASABI-36f480d"}
    Lucas
    @lucasvuotto
    curl localhost:4444 -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"net_peerList","params":[],"id":1}' will also be helpful
    oh, okey, not needed.
    azamrazman
    @azamrazman
    FYI
    curl localhost:4444 -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"net_peerList","params":[],"id":1}'
    {"jsonrpc":"2.0","id":1,"result":["434f8932 | bootstrap07.rsk.co/54.169.12.15:5050","34e3a855 | bootstrap12.rsk.co/13.56.115.33:5050","8b8f07ba | bootstrap02.rsk.co/191.232.162.215:5050"]}
    Lucas
    @lucasvuotto

    your node isn't synchronizing most probably because you're running 1.3.0. A couple of weeks ago there was a network upgrade and nodes prior to 2.0.0 won't be able to synchronize. Check https://github.com/rsksmart/rskj/releases/tag/PAPYRUS-2.0.1 for more information.

    it seems it isn't possible to link sent messages in here, but it's this very same situation we had a couple of days earlier.

    azamrazman
    @azamrazman
    curl localhost:4444 -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":1}'
    {"jsonrpc":"2.0","id":1,"result":"RskJ/2.0.1/Linux/Java1.8/PAPYRUS-3db4f13"}
    Now my node is updating with newer blocks!
    Thank you @alepc253 and @lucasvuotto
    Solved!
    Alejandro Cavallero
    @alepc253
    :thumbsup:
    wangluen
    @wangluen

    Hi

    I get error when i build docker, could someone help me out, thanks a lot

    artifacts/Dockerfiles/RSK-Node# docker build -t rsk-mainnet -f Dockerfile.MainNet .

    Sending build context to Docker daemon 8.704kB
    Step 1/11 : FROM ubuntu:latest
    ---> adafef2e596e
    Step 2/11 : MAINTAINER RSK Release support@rsk.co
    ---> Using cache
    ---> c638f35a2c81
    Step 3/11 : ARG DEBIAN_FRONTEND=noninteractive
    ---> Using cache
    ---> 68da03a2eaf0
    Step 4/11 : RUN apt-get update
    ---> Using cache
    ---> 830501a03187
    Step 5/11 : RUN apt-get install -y --no-install-recommends openjdk-8-jre supervisor systemd software-properties-common
    ---> Using cache
    ---> 1ea1e2b3abbc
    Step 6/11 : RUN groupadd --gid 888 rsk && useradd rsk -d /var/lib/rsk -s /sbin/nologin --uid=888 --gid=888
    ---> Using cache
    ---> 8f3d70a97537
    Step 7/11 : RUN add-apt-repository -y ppa:rsksmart/rskj && apt-get update && (echo rskj shared/accepted-rsk-license-v1-1 select true | /usr/bin/debconf-set-selections )&& apt-get install -y --no-install-recommends rskj && apt-get clean && rm -rf /var/lib/apt/lists/
    ---> Running in 2de22d471205
    Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
    Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
    Ign:3 http://ppa.launchpad.net/rsksmart/rskj/ubuntu focal InRelease
    Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
    Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
    Err:6 http://ppa.launchpad.net/rsksmart/rskj/ubuntu focal Release
    404 Not Found [IP: 91.189.95.83 80]
    Reading package lists...
    E: The repository 'http://ppa.launchpad.net/rsksmart/rskj/ubuntu focal Release' does not have a Release file.
    The command '/bin/sh -c add-apt-repository -y ppa:rsksmart/rskj && apt-get update && (echo rskj shared/accepted-rsk-license-v1-1 select true | /usr/bin/debconf-set-selections )&& apt-get install -y --no-install-recommends rskj && apt-get clean && rm -rf /var/lib/apt/lists/
    ' returned a non-zero code: 100

    wangluen
    @wangluen
    change base image from "FROM ubuntu:latest" to "FROM phusion/baseimage:0.10.2", and it works
    Alejandro Cavallero
    @alepc253
    @wangluen yes, the problem came from ubuntu:latest and focal version
    good that you figured it out!