tobychui / zoraxy

A general purpose HTTP reverse proxy and forwarding tool. Now written in Go!
https://zoraxy.aroz.org
GNU Affero General Public License v3.0
3.09k stars 187 forks source link

Failed to initialize resolver: listen udp6 [ff02::]:5353: socket: address family not supported by protocol [BUG] #34

Closed johntdyer closed 1 year ago

johntdyer commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

root@zoraxy:/opt/zoraxy/src# ./zoraxy
2023/07/24 14:29:12 [Auth] Authentication session key loaded from database
2023/07/24 14:29:19 [zeroconf] no suitable IPv6 interface: listen udp6 [ff02::]:5353: socket: address family not supported by protocol
2023/07/24 14:29:19 Environment variable ZT_AUTH not defined. Trying to load authtoken from file.
2023/07/24 14:29:19 Unable to read authkey at /var/lib/zerotier-one/authtoken.secret:  exit status 1
2023/07/24 14:29:19 Failed to load ZeroTier controller API authtoken
2023/07/24 14:29:19 Failed to initialize resolver: listen udp6 [ff02::]:5353: socket: address family not supported by protocol
root@zoraxy:/opt/zoraxy/src#

ipv6 is disabled

root@zoraxy:/opt/zoraxy/src# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    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
2: eth0@if346: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 9a:61:35:e8:97:3e brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 192.168.100.214/24 brd 192.168.100.255 scope global dynamic eth0
       valid_lft 13952sec preferred_lft 13952sec
root@zoraxy:/opt/zoraxy/src#

Expected behavior It should start

Screenshots

Browser (if it is a bug appears on the UI section of the system):

Host Environment (please complete the following information):

Additional context Add any other context about the problem here.

tobychui commented 1 year ago

I am guessing this might be related to mDNS transponder. I will take a look at it this weekend.

johntdyer commented 1 year ago

Seems to be working w/ 2.6.6-experemental branch. Thank you !

tobychui commented 1 year ago

Fixed in v2.6.6

purple-emily commented 11 months ago

Is this the same bug?

Zoraxy version 2.6.8
2023/12/19 09:33:21 [Auth] New authentication session key generated
2023/12/19 09:33:21 [zeroconf] no suitable IPv6 interface: listen udp6 [ff02::]:5353: socket: address family not supported by protocol
2023/12/19 09:33:21 Environment variable ZT_AUTH not defined. Trying to load authtoken from file.
2023/12/19 09:33:21 Failed to initialize resolver: listen udp6 [ff02::]:5353: socket: address family not supported by protocol

Using the docker compose file:

  zoraxy:
    image: zoraxydocker/zoraxy:latest
    container_name: zoraxy
    ports:
      - 55480:80
      - 55443:443
      - 58005:8000/tcp
    volumes:
      - $APPDATADIR/zoraxy:/opt/zoraxy/config/
    environment:
      ARGS: '-noauth=false'
purple-emily commented 11 months ago

@tobychui

tobychui commented 11 months ago

@purple-emily Seasonal greetings!

Try disable mDNS in startup parameter and restart zoraxy. I am having my holiday and don't have my working laptop with me. If you have further questions or discovery, leave them here and I will follow up later.