OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: guest17399 on August 16, 2019, 03:16:21 pm

Title: 503 Service unavailable (opnsense has died)
Post by: guest17399 on August 16, 2019, 03:16:21 pm
Hello.
This is the second time I have noticed a problem when opnsense stops responding and I have to reboot it.

In addition to the fact that when I try to connect to www, I get the code 503, so I still can not connect via ssh.
Opensense itself is available only locally.
After some period of time, the network drops and I can’t do anything else, how to reboot the device.

I have the latest version.

What data do I need?
Title: Re: 503 Service unavailable (opnsense has died)
Post by: banym on August 16, 2019, 04:24:04 pm
If you're logged in via SSH you could review the loggs what happened.
Such behaviour could be related to bad Flash or Harddisk. Maybe the services die because of I/O errors.

Have you checked the logfiles when it happened?
Title: Re: 503 Service unavailable (opnsense has died)
Post by: guest17399 on August 16, 2019, 04:26:32 pm
Such behaviour could be related to bad Flash or Harddisk. Maybe the services die because of I/O errors.
The point is that after reboot for several days I’m doing fine ...
Title: Re: 503 Service unavailable (opnsense has died)
Post by: banym on August 16, 2019, 04:32:23 pm
Maybe it does not hit bad blocks or bad space while that.
Check the logs or the console to see what errors are printed.
Title: Re: 503 Service unavailable (opnsense has died)
Post by: fabian on August 16, 2019, 06:52:04 pm
I would suggest to watch at the memory. 503 means that it cannot reach a service (for example PHP) which could have died but also be killed in an OOM situation.
Title: Re: 503 Service unavailable (opnsense has died)
Post by: guest17399 on August 16, 2019, 08:56:11 pm
Sorry, but so far I don’t have time to look at the logs.
I also suspected that RAM was ending and this is so.

Title: Re: 503 Service unavailable (opnsense has died)
Post by: fabian on August 16, 2019, 10:19:21 pm
Since the available memory is constantly decreasing I would guess it is a memory leak or a in memory database which is growing which causes that there is a problem on the first day but on the second day there is a big falling edge which think is because of some kind of memory bug.The service may got killed which would explain that the thing happened again on the next day on which the whole appliance failed.
Title: Re: 503 Service unavailable (opnsense has died)
Post by: guest17399 on August 21, 2019, 09:16:47 am
I found the reason and right now I'm running out of RAM.
I see a lot of processes from pinger.

By the way, I think it's worth including htop in the package...


Title: Re: 503 Service unavailable (opnsense has died)
Post by: guest17399 on August 21, 2019, 03:55:08 pm
I found the reason and right now I'm running out of RAM.
I see a lot of processes from pinger.
I hasten to add that I do not have any special settings and this problem arose after moving from 19.1 (everything was stable there) to 19.7
Title: Re: 503 Service unavailable (opnsense has died)
Post by: fabian on August 21, 2019, 05:10:12 pm
Pinger belongs to squid (web proxy). Maybe it can be disabled.