I’m trying to tunnel into a new device and balena tunnel is returning a BalenaDeviceNotFound error, but other CLI commands (balena ssh, balena logs) are working fine. The same balena tunnel command works fine for other devices.
The device in question is 8250417657ed63757d41cbad57fa7102. Not sure if it’s relevant, but it happens to be the only device we’ve tried so far where the UUID starts with a number instead of a letter.
I granted support access to the device if someone wants to take a look.
Awesome, thanks for the update! I’ll try to give it a shot later today.
On a slightly related note, I know device names technically don’t have to be unique, but it would be extremely helpful if the CLI commands had the option to use device names instead of hashes. For example, try to interpret as a hash, and if not try as a device name. If the name isn’t unique, issue an error of some sort. I brought this up previously (Assign re-flashed device to existing UUID/name?) but the uniqueness was the concern at the time.
It’s way easier as a developer to look at a CLI command and be sure it’s the device you meant to use by name than to have to go remember which hash is which. This morning, for example, I briefly looked at the logs for the wrong device by accident and was wondering why my changes weren’t taking. If I had used the human-friendly device name in the CLI command instead of a hash, it would have been much more obvious what was wrong. We currently make sure our device names are unique so conflicts aren’t problem.
Hi Adam, I had a quick chat internally and unfortunately this is not something that we will be adding to the CLI. We feel that although identifying devices by name would make the tool more intuitive, making it fail if there is a clash (or offering a user UUID selection) is not really a good solution and will make the command not scriptable.
Hey @alexgg, I appreciate you folks considering it. I do agree that using device names could cause problems if using the CLI in a script and not properly handling the error condition. Not really sure I would agree that it should be a showstopper since people can and should just use UUIDs in scripts, but I understand the thinking.