Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tvOS 18 ipv4-mapped ipv6 address #41

Closed
donavanbecker opened this issue Jun 12, 2024 · 7 comments
Closed

tvOS 18 ipv4-mapped ipv6 address #41

donavanbecker opened this issue Jun 12, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@donavanbecker
Copy link
Contributor

Analysis

For some reason getting this error on latest or beta

Expected Behavior

I would expect it to not restart

Steps To Reproduce

install latest Homebridge latest or beta

Logs

AssertionError [ERR_ASSERTION]: ipv4-mapped ipv6 addresses are currently unsupported!
    at enlargeIPv6 (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:137:9)
    at getNetAddress (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:296:26)
    at Function.HAPConnection.getLocalNetworkInterface (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:868:26)
    at new HAPConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:390:43)
    at EventedHTTPServer.onConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:229:24)
    at Server.emit (node:events:519:28)
    at TCP.onconnection (node:net:2204:8)

Configuration

using ciao

Environment

  • OS: macOS 13
  • Software: Homebridge
  • Node: Node 20.14

Process Supervisor

hb-service

Additional Context

No response

@donavanbecker donavanbecker added the bug Something isn't working label Jun 12, 2024
@Supereg Supereg self-assigned this Jun 13, 2024
@donavanbecker donavanbecker changed the title Causing Child bridges in Homebridge to continuously restart tvOS 18 ipv4-mapped ipv6 address Jun 24, 2024
@donavanbecker
Copy link
Contributor Author

Updated to beta 2 and still receiving this error:

AssertionError [ERR_ASSERTION]: ipv4-mapped ipv6 addresses are currently unsupported!
    at enlargeIPv6 (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:137:9)
    at getNetAddress (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:296:26)
    at Function.HAPConnection.getLocalNetworkInterface (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:879:28)
    at new HAPConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:394:43)
    at EventedHTTPServer.onConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:231:24)
    at Server.emit (node:events:519:28)
    at TCP.onconnection (node:net:2204:8)

@donavanbecker
Copy link
Contributor Author

AssertionError [ERR_ASSERTION]: Illegal argument. Must be an IPv6 address!
    at enlargeIPv6 (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:134:9)
    at getNetAddress (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:347:24)
    at Function.HAPConnection.getLocalNetworkInterface (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:879:28)
    at new HAPConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:394:43)
    at EventedHTTPServer.onConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:231:24)
    at Server.emit (node:events:519:28)
    at TCP.onconnection (node:net:2204:8)
[6/25/2024, 5:11:00 PM] [Meater] Child bridge process ended
[6/25/2024, 5:11:00 PM] [Meater] Process Ended. Code: 1, Signal: null
AssertionError [ERR_ASSERTION]: Illegal argument. Must be an IPv6 address!
    at enlargeIPv6 (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:134:9)
    at getNetAddress (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:347:24)
    at Function.HAPConnection.getLocalNetworkInterface (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:879:28)
    at new HAPConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:394:43)
    at EventedHTTPServer.onConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:231:24)
    at Server.emit (node:events:519:28)
    at TCP.onconnection (node:net:2204:8)
[6/25/2024, 5:11:00 PM] [iRobot] Child bridge process ended
[6/25/2024, 5:11:00 PM] [iRobot] Process Ended. Code: 1, Signal: null
AssertionError [ERR_ASSERTION]: Illegal argument. Must be an IPv6 address!
    at enlargeIPv6 (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:134:9)
    at getNetAddress (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:347:24)
    at Function.HAPConnection.getLocalNetworkInterface (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:879:28)
    at new HAPConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:394:43)
    at EventedHTTPServer.onConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:231:24)
    at Server.emit (node:events:519:28)
    at TCP.onconnection (node:net:2204:8)
[6/25/2024, 5:11:00 PM] [August] Child bridge process ended
[6/25/2024, 5:11:00 PM] [August] Process Ended. Code: 1, Signal: null
AssertionError [ERR_ASSERTION]: Illegal argument. Must be an IPv6 address!
    at enlargeIPv6 (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:134:9)
    at getNetAddress (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:347:24)
    at Function.HAPConnection.getLocalNetworkInterface (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:879:28)
    at new HAPConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:394:43)
    at EventedHTTPServer.onConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:231:24)
    at Server.emit (node:events:519:28)
    at TCP.onconnection (node:net:2204:8)
AssertionError [ERR_ASSERTION]: Illegal argument. Must be an IPv6 address!
    at enlargeIPv6 (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:134:9)
    at getNetAddress (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:347:24)
    at Function.HAPConnection.getLocalNetworkInterface (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:879:28)
    at new HAPConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:394:43)
    at EventedHTTPServer.onConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:231:24)
    at Server.emit (node:events:519:28)
    at TCP.onconnection (node:net:2204:8)
AssertionError [ERR_ASSERTION]: Illegal argument. Must be an IPv6 address!
    at enlargeIPv6 (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:134:9)
    at getNetAddress (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:347:24)
    at Function.HAPConnection.getLocalNetworkInterface (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:879:28)
    at new HAPConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:394:43)
    at EventedHTTPServer.onConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:231:24)
    at Server.emit (node:events:519:28)
    at TCP.onconnection (node:net:2204:8)
AssertionError [ERR_ASSERTION]: Illegal argument. Must be an IPv6 address!
    at enlargeIPv6 (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:134:9)
    at getNetAddress (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:347:24)
    at Function.HAPConnection.getLocalNetworkInterface (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:879:28)
    at new HAPConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:394:43)
    at EventedHTTPServer.onConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:231:24)
    at Server.emit (node:events:519:28)
    at TCP.onconnection (node:net:2204:8)
[6/25/2024, 5:11:00 PM] AssertionError [ERR_ASSERTION]: Illegal argument. Must be an IPv6 address!
    at enlargeIPv6 (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:134:9)
    at getNetAddress (/usr/local/lib/node_modules/homebridge/node_modules/@homebridge/ciao/src/util/domain-formatter.ts:347:24)
    at Function.HAPConnection.getLocalNetworkInterface (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:879:28)
    at new HAPConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:394:43)
    at EventedHTTPServer.onConnection (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:231:24)
    at Server.emit (node:events:519:28)
    at TCP.onconnection (node:net:2204:8)

@donavanbecker
Copy link
Contributor Author

donavanbecker commented Jun 25, 2024

with changes that I have in the alpha-1.0.0 branch I am able to keep Homebridge alive but get this:

WARNING couldn't map socket coming from remote address undefined:undefined     at local address ::192.168.0.111 to a interface!
WARNING couldn't map socket coming from remote address undefined:undefined     at local address ::192.168.0.111 to a interface!
WARNING couldn't map socket coming from remote address undefined:undefined     at local address ::192.168.0.111 to a interface!
WARNING couldn't map socket coming from remote address undefined:undefined     at local address ::192.168.0.111 to an interface!
WARNING couldn't map socket coming from remote address undefined:undefined     at local address ::192.168.0.111 to a interface!
WARNING couldn't map socket coming from remote address undefined:undefined     at local address ::192.168.0.111 to a interface!
WARNING couldn't map socket coming from remote address undefined:undefined     at local address ::192.168.0.111 to a interface!

Homebridge and Home app are communicating.

@Supereg
Copy link
Member

Supereg commented Jun 26, 2024

@donavanbecker I think it would generally recommend to not directly push developmental work to beta or alpha branches and instead incrementally do development in a feature branch and create a PR or draft PR for that. This makes it easier to review, doesn't induce large amounts of confusing commits and also separates different development efforts from each other.
I tired to review your approach but was very tedious as I couldn't really distinguish your changes from other ones made to the alpha release.

@donavanbecker
Copy link
Contributor Author

donavanbecker commented Jun 26, 2024

Is there some workaround to this issue? Will downgrading Homebridge to a particular version fix it?

As of now you could install Homebridge alpha tag but just know that alpha is a work in progress.

ciao currently support this do only alpha tag would have the changes.

@donavanbecker
Copy link
Contributor Author

@donavanbecker I think it would generally recommend to not directly push developmental work to beta or alpha branches and instead incrementally do development in a feature branch and create a PR or draft PR for that. This makes it easier to review, doesn't induce large amounts of confusing commits and also separates different development efforts from each other.

I tired to review your approach but was very tedious as I couldn't really distinguish your changes from other ones made to the alpha release.

Yeah let me clean up what I changed and then get a clean alpha branch and a PR open.

@donavanbecker
Copy link
Contributor Author

donavanbecker commented Jul 9, 2024

Resolved with v1.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants