Server regularly down

My YunoHost server

Hardware: two years old x86 machine
YunoHost version: 4.2.8.3
I have access to my server : access via keyboard / screen
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

Dear supporters

Since a few months a problem appears more and more frequently, in the last weeks it happens several times a week:

None of the apps is accessible, the yunohost dashboard still appears though. A error appears saying something about “nginx” (next time it happens i’ll fetch the exact error message and post it here).
The admin access doesn’t work, that means the admin login screen appears, but it doesn’t login. The admin login site just reappears.
If I unplug the server and turn it on again it works fine again.

In the logs under admin>tools nothing appears.

Just while writing this text, the server announces a problem: https://pastebin.com/KJus8rps
After restarting, this announcement is not in the logs under admin>tools>logs
But this might have nothing to do with the problem described above.

Anyone an idea about it?

What are the results of the diagnosis?
Is your instance up-to-date?
Could you please translate the log contents?
I see migration pending, did you have any problems with migrations?

1 Like

What are the results of the diagnosis?
Nothing unusual. In case I should share the result of the diagnosis, please tell me how to log it.

Is your instance up-to-date?
Yes

Could you please translate the log contents?
https://pastebin.com/NW4BVWmN I hope this google translation is okay, otherwise tell me.

I see migration pending, did you have any problems with migrations?
No

In the admin interface go to tools > migrations
Anything pending?

No, there is nothing pending.

Is there any hardware problem?
Did you investigate hard drive, memory?
Is there any system mail announcing some failure?

Is there any hardware problem?
I don’t think so. In case you have a hint how to check, I’ll do that.

Did you investigate hard drive, memory?
No, how can I?

Is there any system mail announcing some failure?
No, only some dyndns problem are reported from time to time. But access is always possible, so I’ve been ignoring these mails for years.

For hdd smart status

sudo smartctl -H /dev/sda

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

Hdd is OK.
Did you try to regenerate the nginx config?

yunohost service regen-conf nginx

Just did it with:

yunohost tools regen-conf nginx

Take a look at the logs especially error logs in services > nginx, if any new errors happen

1 Like

Thanks a lot for your support!

Next time it happens I’ll paste the whole nginx log here.

1 Like

After some days working stable, the server was not accessible with error “500 Internal Server Error nginx”

Here’s the nginx log: https://pastebin.com/AQ421G8r

Restart helped as usual.

What about RAM ?

free -mh

Have you a swap file ?

swapon -s

free -mh
total used free shared buff/cache available
Mem: 7.6Gi 2.7Gi 2.3Gi 79Mi 2.7Gi 4.8Gi
Swap: 975Mi 0B 975Mi

swapon -s
Filename Type Size Used Priority
/dev/sda5 partition 999420 0 -2

sudo memtester 1024 5 runs without errors

Ah, I did extend the memory to 8gb some months ago. I’ll remove the new 4gb and try if the problem disappears.

I’ll report again.

1 Like

Memory wasn’t the problem.

Here’s the latest nginx log: https://pastebin.com/RxXc4vnB

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.