anyone else can not access the net with alhena on latest alpine/postmarketos?

i get: unknownHostExeption

Posted in: s/Alhena
🚀 me

Dec 15 · 2 days ago

11 Comments ↓

🦎 bluesman [mod] · Dec 15 at 19:03:

Hi. Are you saying it stopped working after you updated postmarketos? What version of Alhena? I assume you built from source? Are you using the Bellsoft Alpine musl-based JVM?

🦎 bluesman [mod] · Dec 15 at 19:38:

It's been a while but the latest is working on my Alpine VirtualBox instance using the Bellsoft 21.0.6 JVM. If you're using something else, let me know (check "Details" under "Help" menu).

🚀 me [OP] · Dec 15 at 19:44:

using openjdk21. i just pulled the latest alhena and built, but still same error... turned firewall on/off.. what else could i try?

🚀 me [OP] · Dec 15 at 19:59:
 $ java -jar ./target/lib/alhena.
jar
Dec 15, 2025 9:57:56 P.M. io.netty.resolver.dns.DefaultDnsServerAddressStreamProvider 
WARNING: Default DNS servers: [/[2001:4860:4860:0:0:0:0:8888]:53, /[2001:4860:4860:0:0:0:0:8844]:53] (Google Public DNS as a fallback)

Failed to connect: Failed to resolve 'bbs.geminispace.org' [A(1)] after 2 queries 
~/alhena $ 
🦎 bluesman [mod] · Dec 15 at 20:00:

I wonder if it's a DNS issue. Can you try accessing ultimatumlabs.com via the IP address?

— 34.27.200.86/

What about non-gemini sites (spartan, gopher, http, etc)? Did it just stop working or did this happen after updating Alhena or the OS?

🦎 bluesman [mod] · Dec 15 at 20:08:

Looks like you sent the error while I was writing my response. You can try adding the following parameter to the startup command:

java -Dvertx.disableDnsResolver=true -jar ./target/lib/alhena.jar

You can also try adding the following if that doesn't work:

-Djava.net.preferIPv4Stack=true

Let me know. I haven't seen this issue before.

🚀 me [OP] · Dec 15 at 20:09:

from Alhena i cant access anything. it happend after updating the os. i can ```getent hosts 34.27.200.86``` so it must be something java specific

🚀 me [OP] · Dec 15 at 20:12:

🎉

adding `-Djava.net.preferIPv4Stack=true` solved the issue

🚀 me [OP] · Dec 15 at 20:13:

why is that?

🚀 me [OP] · Dec 15 at 20:20:

big thanks for your help!

next issue: we cant stream over spartan yet, try:

`spartan://radio.norayr.am/`

🦎 bluesman [mod] · Dec 15 at 20:45:

At the moment I'm not sure why IPv6 isn't working for you but I'm glad there's a workaround.

As for Spartan streaming, it works here. Do you have streaming turned on in the Settings?