# Troubleshooting Local Mode - Balena CLI Logs

**URL:** <https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479>\
**Category:** Product support\
**Tags:** local-mode, beaglebone\
**Created:** [July 10, 2019, 5:20pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479 "2019-07-10T17:20:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![vdsilva](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@vdsilva](https://forums.balena.io/u/vdsilva)\
**Post date:** [July 10, 2019, 5:20pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/1 "2019-07-10T17:20:37Z")

</div>

I cannot connect to my Beaglebone Green device to retrieve logs. The device is configured for Local Mode (via BalenaCloud) and I’m using the Balena CLI.

e.g. see attached jpeg of logs command

 ![image](https://global.discourse-cdn.com/balena/original/2X/e/e662ab4733a9f8d8f63976c49b44c214eadc5654.png)

I have a BalenaCLoud starter account. I have put my device into Local Mode. I am on a windows 10 laptop (Wired eth for BBG and laptop on the same switch). I have console port access to BBG and can login via root. I have confirmed that on the BBG the eth0 has a valid IP. I can ping out from the BBG.

BBG Balena versions:  
Host OS BalenaOS 2.29.2+rev3 - DEVELOPMENT  
Supervisor 9.0.1  
Balena CLI version is 11.6.0 (using Windows installer)

I can ssh into device using balena ssh .local. I have nothing running on the device itself other than the base Host OS.

---

<div class="post-metadata">

**Author:** ![jviotti](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jviotti/32/220_2.png) [@jviotti](https://forums.balena.io/u/jviotti)\
**Post date:** [July 10, 2019, 5:26pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/2 "2019-07-10T17:26:07Z")

</div>

Hey there!

Can you confirm that the device is accessible from `73a5a9e.local`? Is that address getting resolved within your network? When you say you could ping the device, were you using the IP, or the `local` name?

---

<div class="post-metadata">

**Author:** ![vdsilva](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@vdsilva](https://forums.balena.io/u/vdsilva)\
**Post date:** [July 10, 2019, 5:38pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/3 "2019-07-10T17:38:39Z")

</div>

> [@jviotti](#):
>
> Can you confirm that the device is accessible from `73a5a9e.local` ? Is that address getting resolved within your network? When you say you could ping the device, were you using the IP, or the `local` name?

What method do you want me to use to confirm the device is accessible? In the new attachment I can balena ssh into it using .local but not using the IP address alone. I could not ping the device but from the device I can ping outbound to [www.google.com](http://www.google.com).

THanks,

 ![image](https://global.discourse-cdn.com/balena/original/2X/a/ad61751ef50eb5b63c605c20b324e18d85443bc1.png)

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [July 10, 2019, 5:42pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/4 "2019-07-10T17:42:46Z")

</div>

hi @vdsilva are you able to ssh directly using `ssh root@192.168.50.114 -p22222` , its possible that network you are on is blocking interdevice communication, this is often done in coworking or university networks for security reasons

---

<div class="post-metadata">

**Author:** ![vdsilva](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@vdsilva](https://forums.balena.io/u/vdsilva)\
**Post date:** [July 10, 2019, 5:46pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/5 "2019-07-10T17:46:37Z")

</div>

> able to ssh directly using `ssh root@192.168.50.114 -p22222` , its possible that network you are on is blocking interdevice communication, this is often done in coworking or university networks for security reasons

[@shaunmulligan](https://forums.balena.io/u/shaunmulligan) Trying that command gives me a Connection timed out. We are on a corporate network so I can have IT look into something but it is generally pretty open.

---

<div class="post-metadata">

**Author:** ![jviotti](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jviotti/32/220_2.png) [@jviotti](https://forums.balena.io/u/jviotti)\
**Post date:** [July 10, 2019, 5:48pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/6 "2019-07-10T17:48:55Z")

</div>

Hey @vdsilva,

That’s probably the issue. The `73a5a9e.local` domain will resolve to `192.168.50.114`, but then you will not be able to access it in that network anyways. You will probably need some help from IT to allow the connection to happen on that network

---

<div class="post-metadata">

**Author:** ![vdsilva](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@vdsilva](https://forums.balena.io/u/vdsilva)\
**Post date:** [July 10, 2019, 10:33pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/8 "2019-07-10T22:33:46Z")

</div>

> [@jviotti](#):
>
> That’s probably the issue. The `73a5a9e.local` domain will resolve to `192.168.50.114` , but then you will not be able to access it in that network anyways. You will probably need some help from IT to allow the connection to happen on that network

Hey @jviotti,  
I talked to another developer in my office and our IT is not blocking anything specific like ssh. We have other devices that we can ssh into on our network (like standard Beaglebone Blacks running Debian distro).

Before you read next part I decided to try out a balena os image on my device. It booted successfully and has the same behavior I had with local mode device. The os image is 2.29.2.

I had my colleague (also on a Windows 10 laptop) try to use putty and he did successfully SSH once to the device (192.168.50.114). He ran a couple of bash commands just to poke around. After a few seconds the connection was lost. He then tried to ssh in from a BeagleBone Black device he had with him that is also on our wired corporate network. He did ssh in but again after about 15 seconds or so the connection was lost. Does this help with troubleshooting?

---

<div class="post-metadata">

**Author:** ![samothx](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@samothx](https://forums.balena.io/u/samothx)\
**Post date:** [July 10, 2019, 11:01pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/9 "2019-07-10T23:01:59Z")

</div>

Hi @vdsilva looks like ssh to your device works nicely via the balean VPN but is not working or getting interrupted when trying locally.  
Could you could enable support access to the device, then we can take a look if we can see anything from inside…

---

<div class="post-metadata">

**Author:** ![vdsilva](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@vdsilva](https://forums.balena.io/u/vdsilva)\
**Post date:** [July 10, 2019, 11:07pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/11 "2019-07-10T23:07:34Z")

</div>

> looks like ssh to your device works nicely via the balean VPN but is not working or getting interrupted when trying locally.  
> Could you could enable support access

Sure [@samothx](https://forums.balena.io/u/samothx)! Let me just reflash back to the BalenaCloud version from the standard Balena OS and grant access. I’ll message you again shortly in the ticket when I’ve done that.

---

<div class="post-metadata">

**Author:** ![vdsilva](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@vdsilva](https://forums.balena.io/u/vdsilva)\
**Post date:** [July 10, 2019, 11:17pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/12 "2019-07-10T23:17:16Z")

</div>

Support access is granted for the next 3 hours. Device name is weathered-darkness @samothx

---

<div class="post-metadata">

**Author:** ![samothx](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@samothx](https://forums.balena.io/u/samothx)\
**Post date:** [July 10, 2019, 11:19pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/14 "2019-07-10T23:19:46Z")

</div>

Thanks I will need the UUID though to access it.

---

<div class="post-metadata">

**Author:** ![vdsilva](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@vdsilva](https://forums.balena.io/u/vdsilva)\
**Post date:** [July 10, 2019, 11:22pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/15 "2019-07-10T23:22:21Z")

</div>

> [@samothx](#):
>
> the UUID though to access it.

Of course.  
f3ceec58d980bbc3d391221a80702de6

---

<div class="post-metadata">

**Author:** ![samothx](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@samothx](https://forums.balena.io/u/samothx)\
**Post date:** [July 10, 2019, 11:34pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/16 "2019-07-10T23:34:18Z")

</div>

Ok, for starters everything looks normal. I have a stable connection, IP address is 192.168.50.114 so you should be able to connect using  
`ssh root@192.168.50.114 -p 22222` from a linux host or using `balena ssh 192.168.50.114`  
I am looking at logs to see if I see why things would be going wrong

---

<div class="post-metadata">

**Author:** ![vdsilva](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@vdsilva](https://forums.balena.io/u/vdsilva)\
**Post date:** [July 10, 2019, 11:36pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/17 "2019-07-10T23:36:04Z")

</div>

Thanks @samothx! I’m heading off for the evening in 5 minutes. I will quickly try and do a couple of SSh sessions (putty, Balena CLI and Windows 10) just to see if the logs show you something before I leave

---

<div class="post-metadata">

**Author:** ![samothx](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@samothx](https://forums.balena.io/u/samothx)\
**Post date:** [July 10, 2019, 11:39pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/19 "2019-07-10T23:39:16Z")

</div>

I saw

```auto
Jul 10 23:36:32 f3ceec5 systemd[1]: Starting SSH Per-Connection Server (52.4.252.97:57926)...
Jul 10 23:36:32 f3ceec5 systemd[1]: Started SSH Per-Connection Server (52.4.252.97:57926).
Jul 10 23:36:33 f3ceec5 dropbear[1608]: Failed loading /etc/dropbear/dropbear_dss_host_key
Jul 10 23:36:33 f3ceec5 dropbear[1608]: Failed loading /etc/dropbear/dropbear_ecdsa_host_key
Jul 10 23:36:33 f3ceec5 dropbear[1608]: Child connection from ::ffff:52.4.252.97:57926
Jul 10 23:36:34 f3ceec5 dropbear[1608]: Auth succeeded with blank password for 'root' from ::ffff:52.4.252.97:57926
Jul 10 23:36:50 f3ceec5 balenad[649]: time="2019-07-10T23:36:50.413188235Z" level=warning msg="failed to retrieve balena-engine-init version: exec: \"balena-engine-init\": executable file not found in $PATH"
Jul 10 23:36:57 f3ceec5 dropbear[1608]: Exit (root): Disconnect received

```

looks like a connection via the VPN

---

<div class="post-metadata">

**Author:** ![vdsilva](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@vdsilva](https://forums.balena.io/u/vdsilva)\
**Post date:** [July 10, 2019, 11:41pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/20 "2019-07-10T23:41:23Z")

</div>

> [@samothx](#):
>
> Ok, for starters everything looks normal. I have a stable connection, IP address is 192.168.50.114 so you should be able to connect using  
> `ssh root@192.168.50.114 -p 22222` from a linux host or using `balena ssh 192.168.50.114`  
> I am looking at logs to see if I see why things would be going wrong

Over the VPN did work. My colleague and I both tried (1 from a Windows 10 box and then from a BeagleboneBlack Debian distro) and neither of those worked.

---

<div class="post-metadata">

**Author:** ![samothx](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@samothx](https://forums.balena.io/u/samothx)\
**Post date:** [July 10, 2019, 11:41pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/21 "2019-07-10T23:41:42Z")

</div>

Could you ping the host ?  
If not, have you got some ping targets I can try to ping in your network or even a http host I could try a curl to. Pinging the gateway on 192.168.50.1 works OK for me.

---

<div class="post-metadata">

**Author:** ![samothx](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@samothx](https://forums.balena.io/u/samothx)\
**Post date:** [July 10, 2019, 11:42pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/22 "2019-07-10T23:42:23Z")

</div>

What would your host IP be ?

---

<div class="post-metadata">

**Author:** ![vdsilva](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@vdsilva](https://forums.balena.io/u/vdsilva)\
**Post date:** [July 10, 2019, 11:43pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/23 "2019-07-10T23:43:09Z")

</div>

192.168.50.113 is my laptop

---

<div class="post-metadata">

**Author:** ![vdsilva](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@vdsilva](https://forums.balena.io/u/vdsilva)\
**Post date:** [July 10, 2019, 11:49pm UTC](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479/24 "2019-07-10T23:49:23Z")

</div>

I’m leaving for the night. Thanks for your help @samothx!

[Next page](https://forums.balena.io/t/troubleshooting-local-mode-balena-cli-logs/18479.md?page=2)
