# Device is\_online = True and is\_connected\_to\_vpn = True - but not reachable?

**URL:** <https://forums.balena.io/t/device-is-online-true-and-is-connected-to-vpn-true-but-not-reachable/346736>\
**Category:** openBalena\
**Created:** [September 2, 2021, 3:58am UTC](https://forums.balena.io/t/device-is-online-true-and-is-connected-to-vpn-true-but-not-reachable/346736 "2021-09-02T03:58:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![n42](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/n42/32/5009_2.png) [@n42](https://forums.balena.io/u/n42)\
**Post date:** [September 2, 2021, 3:58am UTC](https://forums.balena.io/t/device-is-online-true-and-is-connected-to-vpn-true-but-not-reachable/346736/1 "2021-09-02T03:58:18Z")

</div>

Hi,

We have a device with a customer that, according to OpenBalena is online. However, it is not reporting to our backend (separate from balena) and we are not able to ssh to it (using tunnel). Note that we have no problem accessing other devices - so it does not seem like a setup issue.

Here is the output we get using Python SDK:  
{‘created\_at’: ‘2020-10-11T08:50:37.267Z’,  
‘id’: 111,  
‘actor’: 179,  
‘uuid’: ‘’,  
‘local\_id’: None,  
‘device\_name’: ‘old-wildflower’,  
‘note’: None,  
‘device\_type’: ‘raspberrypi4-64’,  
‘belongs\_to\_\_application’: {’\_\_deferred’: {‘uri’: ‘/resin/application(7)’},  
‘\_\_id’: 7},  
‘is\_online’: True,  
‘last\_connectivity\_event’: ‘2021-08-02T10:55:52.614Z’,  
‘is\_connected\_to\_vpn’: True,  
‘last\_vpn\_event’: ‘2021-08-02T10:55:52.614Z’,  
‘is\_locked\_until\_\_date’: None,  
‘logs\_channel’: None,  
‘public\_address’: None,  
‘vpn\_address’: ‘’,  
‘ip\_address’: ‘’,  
‘is\_on\_\_commit’: ‘’,  
‘download\_progress’: None,  
‘status’: ‘Idle’,  
‘os\_version’: ‘balenaOS 2.48.0+rev1’,  
‘os\_variant’: ‘prod’,  
‘supervisor\_version’: ‘10.8.0’,  
‘provisioning\_progress’: None,  
‘provisioning\_state’: ‘’,  
‘api\_port’: 48484,  
‘api\_secret’: ‘’,  
‘is\_managed\_by\_\_service\_instance’: {’\_\_deferred’: {‘uri’: ‘/resin/service\_instance(115)’},  
‘\_\_id’: 115},  
‘should\_be\_running\_\_release’: None,  
‘is\_managed\_by\_\_device’: None,  
‘\_\_metadata’: {‘uri’: ‘/resin/device(111)’, ‘type’: ‘’}}

Trying to issue a reboot using the python SDK and CLI doesn’t work either - the response we get is:  
BalenaRequestError: Request error: tunneling socket could not be established, cause=socket hang up

Finally, is it possible that the device is offline but open balena thinks it’s still online? is this a known issue? is there a way to ‘refresh’ open balena?

Thanks!! 😉

---

<div class="post-metadata">

**Author:** ![ab77](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab77/32/2870_2.png) [@ab77](https://forums.balena.io/u/ab77)\
**Post date:** [October 21, 2021, 4:23pm UTC](https://forums.balena.io/t/device-is-online-true-and-is-connected-to-vpn-true-but-not-reachable/346736/3 "2021-10-21T16:23:09Z")

</div>

Hi there, `tunneling socket could not be established` means the API, via the VPN, can not establish a connection to the Supervisor running on the device. Can you verify the supervisor is running and the VPN is up by connecting to the device via SSH directly?

---

<div class="post-metadata">

**Author:** ![n42](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/n42/32/5009_2.png) [@n42](https://forums.balena.io/u/n42)\
**Post date:** [October 21, 2021, 5:27pm UTC](https://forums.balena.io/t/device-is-online-true-and-is-connected-to-vpn-true-but-not-reachable/346736/4 "2021-10-21T17:27:34Z")

</div>

Hi ab77,

We assume the device is done. The issue is that openBalena is still reporting it as online, even though the last\_connectivity\_event was months ago (usually it is days at most).

Is balena reporting device online by mistake a known issue with openBalena?  
Is there a way to have balena re-evalute the is\_online flag (in case it’s just ‘stuck’ at True state)?

---

<div class="post-metadata">

**Author:** ![ab77](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab77/32/2870_2.png) [@ab77](https://forums.balena.io/u/ab77)\
**Post date:** [October 21, 2021, 5:38pm UTC](https://forums.balena.io/t/device-is-online-true-and-is-connected-to-vpn-true-but-not-reachable/346736/5 "2021-10-21T17:38:37Z")

</div>

The status is only updated when the Supervisor on the device updates its state via the API. If that state update is never performed (i.e. the supervisor has crashed), the API will report the last received state.
