Coder Social home page Coder Social logo

invalid CIDR about stellar HOT 7 CLOSED

mabunixda avatar mabunixda commented on June 24, 2024
invalid CIDR

from stellar.

Comments (7)

ehazlett avatar ehazlett commented on June 24, 2024 1

OK for some reason the subnet is <nil> in the db. I'm not sure how it would have received that. I'm going to do some debug and see if we can add some checks to prevent erroneous routes from being assigned.

from stellar.

ehazlett avatar ehazlett commented on June 24, 2024

Hmm ya everything looks OK in the config. What does ip a s show for your network devices?

from stellar.

mabunixda avatar mabunixda commented on June 24, 2024

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master br0 state DOWN group default qlen 1000
link/ether 00:01:2e:78:2b:e2 brd ff:ff:ff:ff:ff:ff
3: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:01:2e:78:2b:e3 brd ff:ff:ff:ff:ff:ff
inet 172.16.0.6/24 brd 172.16.0.255 scope global enp3s0
valid_lft forever preferred_lft forever
inet6 fe80::201:2eff:fe78:2be3/64 scope link
valid_lft forever preferred_lft forever
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:bc:c6:52:c8 brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
valid_lft forever preferred_lft forever

from stellar.

ehazlett avatar ehazlett commented on June 24, 2024

I'm trying to re-create this. In the meantime I've pushed some more debug logging around the subnet allocation. Can you try the latest master to see if that can tell us anymore? Thanks!

from stellar.

mabunixda avatar mabunixda commented on June 24, 2024

new output is

DEBU[0000] service.network allocating subnet
DEBU[0000] local subnet from datastore subnet="[60 110 105 108 62]"
FATA[0000] error parsing subnet "" (): invalid CIDR address:

from stellar.

mabunixda avatar mabunixda commented on June 24, 2024

with the latest debug information the root cause was a misconfigured datastore from an initial startup where I used subnet 192.168.0.0/24 because my local LAN setup is within 172.16.0.0/16 .. I removed the local data store in /var/lib/stellar and the startup worked with the default setup but killed my routing on the box :-D
After switching to 192.168.0.0/16 stellar started and I was able to use sctl and also deploy the sample.

Must the subnet be /16 range?

from stellar.

ehazlett avatar ehazlett commented on June 24, 2024

Thanks for the update! I was looking at a way to clean up the boltdb. This is a bug :)

First, we need to detect when the Subnet changes in the config as right now if there is a subnet (good or bad) in the db it will use that.

Second, there appears to be an issue with the subnet division. If /24 is used it does not calculate a valid route for some reason. I'm going to debug this and add some tests for various subnets.

Thanks for the debug! It helps tremendously 👍

from stellar.

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.