httpd/ssh not working after some time

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
apachy
Posts: 2
Joined: Mon May 20, 2019 7:46 am

httpd/ssh not working after some time

Post by apachy » Mon May 20, 2019 4:30 pm

Hi guys, I got a lil problem. I'm running a RPi3 with DietPi. Installed software is Pi-hole, OpenVPN and nextcloud. After some days I can't access the pi-hole admin console or nextcloud (500 - internal server error). My SSH key isn't working either and when I try to login with my user/pass I get Access Denied.

The Pi-hole DNS is still working some time but some time later that won't run either. By removing the power and plugging it back in everything is fixed. Is there anyway to find out what is wrong? Guess the first step will be setting the log mode to Ramlog #2. But where to check and for what to look for?

User avatar
MichaIng
Legend
Posts: 1626
Joined: Sat Nov 18, 2017 5:21 pm

Re: httpd/ssh not working after some time

Post by MichaIng » Sun May 26, 2019 10:43 pm

@apachy
Actually persistent kernel/boot logs would be fine, which are not included in /var/log by default.

But first you can check for any errors in current session kernel logs: dmesg
Watch out for any red lines, e.g. I/O errors or voltage related or: dmesg | grep random to check for entropy related issues (which other users face lately).

apachy
Posts: 2
Joined: Mon May 20, 2019 7:46 am

Re: httpd/ssh not working after some time

Post by apachy » Fri Jun 14, 2019 9:27 am

I guess it is nextcloud. Couldn't find anything helpful in the logs. I have formatted the SD card, did a new dietpi installation + pihole. No problems for days. Installed nextcloud and boom - can't access nextcloud or pihole.

User avatar
MichaIng
Legend
Posts: 1626
Joined: Sat Nov 18, 2017 5:21 pm

Re: httpd/ssh not working after some time

Post by MichaIng » Fri Jun 14, 2019 3:55 pm

@apachy
Since Nextcloud install does not really touch the webserver setup, it must be an indirect cause.

Can you please paste:

Code: Select all

dmesg | grep random
journalctl -u lighttpd
journalctl -u php7.3-fpm

Post Reply