# Unable to open terminal to device

**URL:** <https://forums.balena.io/t/unable-to-open-terminal-to-device/37555>\
**Category:** Product support\
**Tags:** terminal\
**Created:** [October 18, 2019, 9:53am UTC](https://forums.balena.io/t/unable-to-open-terminal-to-device/37555 "2019-10-18T09:53:45Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcmuffindk](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@mcmuffindk](https://forums.balena.io/u/mcmuffindk)\
**Post date:** [October 18, 2019, 9:53am UTC](https://forums.balena.io/t/unable-to-open-terminal-to-device/37555/1 "2019-10-18T09:53:45Z")

</div>

I am trying to open a Terminal, but it just freezes and crashes before the connection is made

Is there any fix for this?

---

<div class="post-metadata">

**Author:** ![zubairlk](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/zubairlk/32/954_2.png) [@zubairlk](https://forums.balena.io/u/zubairlk)\
**Post date:** [October 18, 2019, 10:31am UTC](https://forums.balena.io/t/unable-to-open-terminal-to-device/37555/2 "2019-10-18T10:31:46Z")

</div>

Hi,

That is strange. Was it working before?  
Are you running an adblock in your browser?  
Can you maybe try a different browser?

Regards  
ZubairLK

---

<div class="post-metadata">

**Author:** ![mcmuffindk](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@mcmuffindk](https://forums.balena.io/u/mcmuffindk)\
**Post date:** [October 18, 2019, 10:37am UTC](https://forums.balena.io/t/unable-to-open-terminal-to-device/37555/4 "2019-10-18T10:37:17Z")

</div>

It was working before yes.  
I am running adblock, but this is disabled on all balena sites.  
I have the same issue using Microsoft Edge (Using Chrome as standard)

---

<div class="post-metadata">

**Author:** ![zubairlk](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/zubairlk/32/954_2.png) [@zubairlk](https://forums.balena.io/u/zubairlk)\
**Post date:** [October 18, 2019, 10:51am UTC](https://forums.balena.io/t/unable-to-open-terminal-to-device/37555/5 "2019-10-18T10:51:05Z")

</div>

Can you open the browser dev console and see any errors?

---

<div class="post-metadata">

**Author:** ![mcmuffindk](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@mcmuffindk](https://forums.balena.io/u/mcmuffindk)\
**Post date:** [October 18, 2019, 10:53am UTC](https://forums.balena.io/t/unable-to-open-terminal-to-device/37555/6 "2019-10-18T10:53:51Z")

</div>

Yes, i have atteched the log  
[dashboard.log](https://forums.balena.io/uploads/short-url/jKA8BmMYoai47j9XKVRMMgswX3x.log) (8.2 KB)

---

<div class="post-metadata">

**Author:** ![zubairlk](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/zubairlk/32/954_2.png) [@zubairlk](https://forums.balena.io/u/zubairlk)\
**Post date:** [October 18, 2019, 11:36am UTC](https://forums.balena.io/t/unable-to-open-terminal-to-device/37555/7 "2019-10-18T11:36:01Z")

</div>

Can you please share a [https://whatsmybrowser.org/](https://whatsmybrowser.org/) link?  
And share a screenshot of what you see in the dashboard when you try to open a terminal?

---

<div class="post-metadata">

**Author:** ![mcmuffindk](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@mcmuffindk](https://forums.balena.io/u/mcmuffindk)\
**Post date:** [October 21, 2019, 5:54am UTC](https://forums.balena.io/t/unable-to-open-terminal-to-device/37555/9 "2019-10-21T05:54:36Z")

</div>

This is what i saw, strangely it works today and i have made no changes.

 ![terminal](https://global.discourse-cdn.com/balena/original/2X/b/b25093cc56dd424ae9878e14242a3ff3e2b3b876.png)

---

<div class="post-metadata">

**Author:** ![\_Page](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/_page/32/22_2.png) [@\_Page](https://forums.balena.io/u/_Page)\
**Post date:** [October 21, 2019, 9:27am UTC](https://forums.balena.io/t/unable-to-open-terminal-to-device/37555/11 "2019-10-21T09:27:18Z")

</div>

Hey, my best guess is that the device was probably “offline” (disconnected from the vpn) but not timed out/marked as such yet and so when trying to connect to the device it hung trying to connect to an unreachable device. If you do hit it again whilst I’m around I can definitely check for precisely why it’s happening but it will almost certainly be a variation of one of the network connections along the being slow/hanging

---

<div class="post-metadata">

**Author:** ![mcmuffindk](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@mcmuffindk](https://forums.balena.io/u/mcmuffindk)\
**Post date:** [October 22, 2019, 5:42am UTC](https://forums.balena.io/t/unable-to-open-terminal-to-device/37555/13 "2019-10-22T05:42:51Z")

</div>

I don’t think this was the issue. I got it to work on a different browser, but when trying to use my normal browser it didn’t work

---

<div class="post-metadata">

**Author:** ![\_Page](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/_page/32/22_2.png) [@\_Page](https://forums.balena.io/u/_Page)\
**Post date:** [October 22, 2019, 12:54pm UTC](https://forums.balena.io/t/unable-to-open-terminal-to-device/37555/15 "2019-10-22T12:54:06Z")

</div>

Yeah that would definitely be something else. Did you attempt to connect in a new tab of your normal browser or try refreshing and then connecting? I’m wondering if it was something browser specific or if it was that for some reason the current tab got into a bad state either due to the dashboard itself or something related to the websocket

---

<div class="post-metadata">

**Author:** ![mcmuffindk](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@mcmuffindk](https://forums.balena.io/u/mcmuffindk)\
**Post date:** [October 23, 2019, 12:19pm UTC](https://forums.balena.io/t/unable-to-open-terminal-to-device/37555/17 "2019-10-23T12:19:08Z")

</div>

I tried to close the browser and start it again, but same error. I even tried to reboot my computer

---

<div class="post-metadata">

**Author:** ![\_Page](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/_page/32/22_2.png) [@\_Page](https://forums.balena.io/u/_Page)\
**Post date:** [October 23, 2019, 4:34pm UTC](https://forums.balena.io/t/unable-to-open-terminal-to-device/37555/19 "2019-10-23T16:34:09Z")

</div>

Thanks for the extra info, we’ve now deployed a fix today for an edge case in ssh tunnelling which is the case I expect you were hitting; it would have resulted in the web terminal hanging reliably until a certain time passed and only then start working, which does match to your symptoms. Let me know if you see it again though
