Git Product home page Git Product logo

radixdlt-core's Issues

Radix.java:120) - Unable to start -- can't connect to remote host (172.18.0.2):

pc@linux-a7b0:~/workarea/radix/my-radixexample/radixdlt-core> ./gradlew deb4docker
<-------------> 0% CONFIGURING [2s]
> root project > Resolve dependencies of detachedConfiguration3 > me.champeau.gradle.jmh.gradle.plugin-0.5.1.> root project > Resolve dependencies of detachedConfiguration3 > me.champeau.gradle.jmh.gradle.plugi
> Task :faucet-service:versionFile
Base tags : []

> Task :radixdlt:versionFile
Base tags : []

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings

pc@linux-a7b0:~/workarea/radix/my-radixexample/radixdlt-core> sudo docker-compose -f docker/single-node.yml up --build
[sudo] password for root: 
WARNING: The RADIXDLT_UNIVERSE variable is not set. Defaulting to a blank string.
WARNING: The RADIXDLT_UNIVERSE_TOKEN variable is not set. Defaulting to a blank string.
WARNING: The RADIXDLT_UNIVERSE_PRIVKEY variable is not set. Defaulting to a blank string.
Creating network "docker_single_node" with the default driver
[...docker build stuff...]
faucet_1  | wget: can't connect to remote host (172.18.0.2): Connection refused
core_1    | # 2020-11-22T08:49:19,944 [FATAL/Radix/main] (Radix.java:120) - Unable to start
core_1    | com.google.inject.ProvisionException: Unable to provision, see the following errors:
core_1    | 
core_1    | 1) Error in custom provider, java.lang.IllegalStateException: Error while deserialising universe
core_1    |   at com.radixdlt.CheckpointModule.universe(Unknown Source)
core_1    |   while locating com.radixdlt.universe.Universe
core_1    |     for the 2nd parameter of com.radixdlt.network.transport.udp.UDPTransportModule.natHandlerProvider(Unknown Source)
core_1    |   at com.radixdlt.network.transport.udp.UDPTransportModule.natHandlerProvider(Unknown Source)
core_1    |   while locating com.radixdlt.network.transport.udp.NatHandler
core_1    |     for the 5th parameter of com.radixdlt.network.transport.udp.NettyUDPTransportImpl.<init>(Unknown Source)
core_1    |   while locating com.radixdlt.network.transport.udp.NettyUDPTransportImpl
core_1    |   while locating com.radixdlt.network.transport.Transport annotated with @com.google.inject.internal.Element(setName=,uniqueId=11, type=MULTIBINDER, keyType=)
[...long stacktrace...]
Attaching to docker_faucet_1, docker_core_1
faucet_1  | Waiting for http://core:8080 to become ready ...
faucet_1  | wget: can't connect to remote host (172.18.0.2): Connection refused
core_1    | + find /usr -type f -name java -exec setfattr -n user.pax.flags -v em {} ;
core_1    | + env
core_1    | + sort
core_1    | HOME=/root
core_1    | HOSTNAME=fb561b744e25
faucet_1  | wget: bad address 'core:8080'
faucet_1  | wget: bad address 'core:8080'
faucet_1  | wget: bad address 'core:8080'
faucet_1  | wget: bad address 'core:8080'

Cannot launch

I keep getting the following error when trying to launch a node with docker-compose -f docker/single-node.yml up --build:

Building core Step 1/11 : FROM eu.gcr.io/lunar-arc-236318/base-core ERROR: Service 'core' failed to build: unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication

Any advice on how to fix this?

Reduce cursor opens when fetching committed atoms

The current implementation in CommittedAtomsStore.getCommittedAtoms uses an approach that first pulls all committed atom ids and then fetches them by repeatedly fetching individual LedgerEntry. This results in repeatedly opening a new cursor. It is more efficient to address this by scrolling a single cursor. Architecturally, this could be done in one of two ways:

  1. adding a new method to the ledger store that takes a Collection of AtomIDs and returns a List of LedgerEntry
  2. adding a new method to the ledger store that returns an ImmutableList of committed LedgerEntry, rather than AtomID

As the LedgerEntryStoreView already has a precedent of returning LedgerEntry (no new imports), I feel it makes the most sense to add the new method getNextCommittedLedgerEntries, in the spirit of the existing method getNextCommitted, but returning LedgerEntry rather than AtomID. (Is it just me or is anyone else blah on AID plural being AIDs?)

I have a PR that implements this new method along with a new integration test that ensures the correct functionality that I will be attaching shortly.

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.