balena-cli icon indicating copy to clipboard operation
balena-cli copied to clipboard

mDNS resolution failing on Ubuntu 19.10, when doing local push with .local name.

Open srlowe opened this issue 4 years ago • 4 comments

When doing balena push in local mode using the .local device address, the first step (GET call to /ping) fails with Could not communicate with local mode device at address da508c.local, indicating a mDNS resolution error.

  • balena CLI version: 11.18.3
  • Operating system version: PopOS (Ubuntu) 19.10
  • 32/64 bit OS and processor: e.g. 64
  • Install method: npm
  • If npm install, Node.js and npm version: Node v12.113.0 and npm v6.12.0

srlowe avatar Nov 25 '19 14:11 srlowe

On windows(install method: installer) and trying to push to a device running standalone balenaOS, balena push <hostname>.local does not work while balena push <device ip> works

rahul-thakoor avatar Jan 06 '20 10:01 rahul-thakoor

@rahul-thakoor Is it failing with an error message?

srlowe avatar Jan 06 '20 15:01 srlowe

hey @srlowe yes, with: ENOTFOUND: getaddrinfo ENOTFOUND standalone.local standalone.local:2375

rahul-thakoor avatar Jan 07 '20 06:01 rahul-thakoor

I ran into the same issue but I had missed enabling local development mode mentioned in the docs. Both the .local address and actual IP address where giving me the original error.

nwneisen avatar Jul 09 '20 01:07 nwneisen