I cannot detect my device in development mode

Hello,

I’m currently using Balena CLI 21.1.0 on my Windows machine and have successfully flashed a Raspberry Pi Zero 2W device.

The device is in development mode, with the following details:

  • Host OS version: balenaOS 6.5.1+rev2
  • Supervisor version: 16.12.8

I want to debug my code by connecting to the device locally using the command balena push XXXX.local. However, when I run balena device detect, the device is not being detected.

I can ping my device from my computer.

Could anyone assist me with this issue? Should I check my firewall settings?

Thank you!

More info about the device:

ID: 13025839
DEVICE TYPE: raspberrypi0-2w-64
STATUS: operational
IS ONLINE: true
IP ADDRESS: xxxxxxxx
PUBLIC ADDRESS: xxxxxxx
MAC ADDRESS: 2C:CF:67:98:FC:7C
FLEET: robert18/testfleet
LAST SEEN: 2025-03-18T19:02:50.760Z
UUID: f7bfxxxx
COMMIT: ec917xxxxxxx
SUPERVISOR VERSION: 16.12.7
IS WEB ACCESSIBLE: false
OS VERSION: balenaOS 6.5.1+rev2
DASHBOARD URL: xxxxxx
CPU USAGE PERCENT: 56
CPU TEMP C: 43
CPU ID: 00000000515c2fd5
MEMORY USAGE MB: 229
MEMORY TOTAL MB: 469
MEMORY USAGE PERCENT: 49
STORAGE BLOCK DEVICE: /dev/mmcblk0p6
STORAGE USAGE MB: 987
STORAGE TOTAL MB: 117032
STORAGE USAGE PERCENT: 1

Hello @Tl_Thomas first of all welcome to the balena community.

Could you please confirm if you moved the device to Local mode? Develop locally | balena

Yes, local mode is enable.

Sometimes, I can push my code (balena push XXXX.local), but the scan command never works.

I can ssh my device via balena device ssh XXXX. But I cannot push my code via balena push

what’s your balena CLI version @Tl_Thomas ?

Apologizes i didn’t remember to check your first message @Tl_Thomas could you please share here some of the logs or error messages that you see in the CLI?

Thanks!

Unforunately I dont have a lot of information in my logs or debug mode.

1 Like

Hi @Tl_Thomas,

Given the getaddressinfo ENOTFOUND error, it appears that it’s having trouble resolving the d2fad86.local mDNS name. What happens when you try and push using the local IP address instead (balena push <local IP>)?