Skip to Content.
Sympa Menu

discuss - [opennic-discuss] [script issue] Problem with opennic-up script in wiki referenced repository

discuss AT lists.opennicproject.org

Subject: Discuss mailing list

List archive

[opennic-discuss] [script issue] Problem with opennic-up script in wiki referenced repository


Chronological Thread  
  • From: kevin <krattai AT gmail.com>
  • To: discuss AT lists.opennicproject.org
  • Subject: [opennic-discuss] [script issue] Problem with opennic-up script in wiki referenced repository
  • Date: Wed, 17 Mar 2021 01:28:05 -0500

OK, here's the issue and I will post a bug issue to the repository, but
the repository in question was last updated 9 months ago so not sure
how active it is.

I received this report of the error:

"Ramiro Romani, [16.03.21 22:25]
[In reply to Rat]
when I run the opennic-up script I get this:
Error: error sending query: Error creating socket

Using 161.97.219.82 as API host
Updating whitelist with IP for user: xxxx
https://api.opennic.org/geoip/?list&ipv=4&res=200&adm=0&bl&wl
ERROR: API not available"


"Ramiro Romani, [16.03.21 22:58]
[In reply to Rat]
the script is located here: https://github.com/kewlfft/opennic-up
"

I found out that script and repo is referenced in the DNS Wizards -> Linx,
second item in the wiki:
https://wiki.opennic.org/

Two lines in the script have hard coded IPs and neither of the IPs resolve at
this time

anycast="185.121.177.177"

# wait for network up 20s*4
log 'Checking network is up'
fping -q -t 20000 "$anycast"

# find out what the IP address of api.opennicproject.org is, fallback
static IP address configured
apihost=api.opennic.org
apiip=$(dnslookup "$anycast" "$apihost")
echo $apiip
apiip=${apiip:-"161.97.219.82"}
log "Using $apiip as API host"

The IP 185.121.177.177 is down and 161.97.219.82 is abandoned to a VM host
provider.

Anyhow, the reason I'm posting this to the list is, I don't remember if I
have wiki edit rights / an account to make any changes and I'm not sure if
that repo is being maintained so don't want to remove what should otherwise
be a valid reference. But if that script is abandoned and won't be updated,
then perhaps that script should be removed as a reference on the wiki.

Hope that all made sense.

Cheers,

kevin




Archive powered by MHonArc 2.6.24.

Top of Page