Page 1 of 1

Suddenly can't access HTTP or SSH

Posted: 14 Dec 2021, 03:27
by REBELinBLUE
I have had the F4-220 for a couple of weeks.

This evening I restarted it, from the menu in TOS but when it restarted I could not access the WebUI, nginx just gave 502 Bad Gateway and SSH wouldn't work

Code: Select all

❯ ssh -vvv [email protected] -p 9222
OpenSSH_8.8p1, OpenSSL 1.1.1l  24 Aug 2021
debug1: Reading configuration data /Users/stephen/.ssh/config
debug1: /Users/stephen/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /opt/homebrew/etc/ssh/ssh_config
debug2: resolve_canonicalize: hostname 192.168.1.162 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/stephen/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/stephen/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to 192.168.1.162 [192.168.1.162] port 9222.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: connect to address 192.168.1.162 port 9222: Connection refused
ssh: connect to host 192.168.1.162 port 9222: Connection refused
But I could connect to SMB shares. After trying for an hour or so nothing I did worked so I ended up reinstalling as detailed in this thread viewtopic.php?f=76&t=423&hilit=502+bad+gateway

Thankfully it worked and my data is still there but now I am really nervous about the safety of my data, how does a NAS just stop working like that? All 3 drives report healthy and the storage pool and volume report good.

Are there any logs I can check? Looks like /var/log was replaced on reinstall so nothing there

Re: Suddenly can't access HTTP or SSH

Posted: 14 Dec 2021, 22:58
by TMroy
It seems the nginx service failed to start properly. did you install some third party apps or update the TOS from very early version recently? it's a system file issue, this will not effect the data stored on the hard drive.

As I know, the F4-220 has been end of life more than 2 years, I don't understand why you just owned it for weeks. did you purchase a second hand product?

Re: Suddenly can't access HTTP or SSH

Posted: 15 Dec 2021, 04:03
by REBELinBLUE
Sorry I meant the F4-210

Yeah I get that nginx wasn't starting, but SSH wasn't either, that is the thing that concerned me.

I hadn't recently updated. I had installed lsof from entware, to try and track down the aaaa file issue so I wonder if somehow that was causing problems. Guess I will keep an eye on it