# Weird problem - unable to log in to Node-RED or use VNC or SSH

**URL:** https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383
**Category:** General
**Created:** [20 April 2019 14:05 UTC](https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383 "2019-04-20T14:05:37Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)
#### Post date: [20 April 2019 14:05 UTC](https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383/1 "2019-04-20T14:05:37Z")

</div>

This one's new for me. Today I suddenly was unable to log into one of my Pi's with VNC, which I always use for everything. I was going to take an image backup to have something current. But VNC didn't log in. So I tried to log in with Node-RED to reboot it, but that didn't work. I tried Home Assistant on the same PI, and that worked without a hitch. But the reboot didn't change anything, same thing.

Now the weird thing is that even if I can't log in to Node-RED's GUI with a browser, the MQTT messages keep coming from the RFXtrx and Tellstick Duo that are connected to the thing. Has anybody seen something like that, and can you please tell me how to fix it?

I'm on my cabin, so if it can't be done over any remote, I'll just have to drive over there and plug in the backup MicroSD that I have taped to all my Pi's. That's of course older than what I had, but I'm pretty sure I can simply copy the latest flow from the old card to the new.

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [20 April 2019 14:12 UTC](https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383/2 "2019-04-20T14:12:57Z")

</div>

I have seen it before and was caused by a sessions file: `~/.node-red/.sessions.json`, removed it and could login again, it might be the same issue (?)

---

<div class="post-metadata">

### Author: ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)
#### Post date: [20 April 2019 14:14 UTC](https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383/3 "2019-04-20T14:14:18Z")

</div>

Did SSD login and VNC log-in to the Pi refuse to work as well because of that?

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [20 April 2019 14:15 UTC](https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383/4 "2019-04-20T14:15:18Z")

</div>

No sorry I read over that part. What error do you get when you ssh ?

---

<div class="post-metadata">

### Author: ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)
#### Post date: [20 April 2019 14:15 UTC](https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383/5 "2019-04-20T14:15:57Z")

</div>

I think I forgot to say "and SSH", when I said I couldn't log in with VNC: I get "Connection refused" on both.

Edit: NR just stands there chewing for a while and says "Login failed".

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [20 April 2019 14:17 UTC](https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383/6 "2019-04-20T14:17:05Z")

</div>

ssh is more verbose than `connection refused`. Could be a ssh key problem

---

<div class="post-metadata">

### Author: ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)
#### Post date: [20 April 2019 14:19 UTC](https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383/7 "2019-04-20T14:19:19Z")

</div>

Maybe it's not SSH? I use Putty and try to log into port 22. But it says "connection type SSH". And Putty says: "Network error: Conection refused" in a small popup-window with the title bar "Putty Fatal Error". Nothing more.

---

<div class="post-metadata">

### Author: ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)
#### Post date: [20 April 2019 14:26 UTC](https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383/8 "2019-04-20T14:26:18Z")

</div>

"Curiouser and curiouser, cried Mastiff." I can actually SSH in from another Pi, it just doesn't work from Putty. So...is there anything I can do to try to fix this on SSH? I am pretty much lost without an GUI like VNC... 🤐

---

<div class="post-metadata">

### Author: ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)
#### Post date: [20 April 2019 14:29 UTC](https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383/9 "2019-04-20T14:29:21Z")

</div>

So after typing "vncserver" from SSH I can get into the thing on VNC, but all I see is "cannot currently show desktop". I guess I'm screwed and need to go to the backup, right? 😉

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [20 April 2019 15:05 UTC](https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383/10 "2019-04-20T15:05:42Z")

</div>

Having connected via ssh run

```auto
node-red-stop
node-red-start

```

See what happens, if possible post the result here.

---

<div class="post-metadata">

### Author: ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)
#### Post date: [20 April 2019 15:07 UTC](https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383/11 "2019-04-20T15:07:19Z")

</div>

I solved it a few minutes ago, thanks! 🙂 Turned out that the disk was totally full. A script had saved a bunch of smaller backups to the SSD itself, and then some more files had come along and filled the SSD up (I only use 16 gig of the 64 gig USB SSD because I want to be able to use my 16 gig MicroSD-cards as a backup). I used ncdu to drill down and find out where the backup was hiding and killed it. All is well again! 🙂

Edit: The reason is that even if I have the actuall, correct storage space for backups, which is a Samba share, in fstab, it sometimes doesn't mount that automatically. So the backups were saved locally as a fallback, and that filled the SSD.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [20 April 2019 20:11 UTC](https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383/12 "2019-04-20T20:11:16Z")

</div>

2nd time in a few days that someone has mentioned full disks.

I strongly recommend that people set up Node-RED to periodically check for low disk space and send an alert over your favourite messaging tool (Telegram for me). Also worth setting up a similar check for increasing utilisation of your swap space since that indicates something chewing up memory.

---

<div class="post-metadata">

### Author: ![Mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mastiff](https://discourse.nodered.org/u/Mastiff)
#### Post date: [20 April 2019 20:23 UTC](https://discourse.nodered.org/t/weird-problem-unable-to-log-in-to-node-red-or-use-vnc-or-ssh/10383/13 "2019-04-20T20:23:56Z")

</div>

That sounds rather sensible. This actually happened to me twice today! Because the PI's had been running for exactly as long and had the same backups. 😉 So I guess it should be put into a flow. Another thing is if you run Home Assistant on the same Pi. If there's a lot going on in the network the db-file can in a few months be several gigabytes.
