LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-27-2021, 08:23 AM   #1
taumuco
LQ Newbie
 
Registered: Oct 2021
Posts: 6

Rep: Reputation: Disabled
Suspected nightly auto update is crashing my raspberry pi (ubuntu), both ssh and wiki hosted site is unresponsive


I have a couple of raspberry pi 4 with 4 GB and Ubuntu installed. One of the changes I did was to have them all auto update nightly. It seems though that one of them is having trouble as I cannot ssh into it and the mediawiki website I set up for documentation is not browsable on my local network. It works if I reboot the raspberry pi again.

What is the proper logs to check? I don't know what is causing it, but just suspect it might be some daemons that hanging because they need to be started. Or something like it.
 
Old 10-27-2021, 09:23 AM   #2
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,648

Rep: Reputation: 2564Reputation: 2564Reputation: 2564Reputation: 2564Reputation: 2564Reputation: 2564Reputation: 2564Reputation: 2564Reputation: 2564Reputation: 2564Reputation: 2564

Try turning off auto update for one night and see if it still crashes?

Otherwise, since Ubuntu uses systemd, any daemons/services crashing should be logged in the journal.

If you can access the machine directly (without rebooting), see what "sudo systemctl status" and "sudo journalctl" say. (You can use "sudo journalctl -u servicename" to see logs related to just that service.)

Otherwise, if you need to reset it before you can login, use "sudo journalctl -b -1" to access logs for the previous boot.

(If that doesn't return anything, man systemd-journald has details of how to enable persistent journal.)

 
Old 10-28-2021, 07:54 AM   #3
taumuco
LQ Newbie
 
Registered: Oct 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks for the help. I had to restart again. And I might have found the cause of it. The "sudo journalctl -b -1" unfortunately didn't give me any useful info. However I remember that Netdata is installed for server monitoring, and it looks like the memory usage is building up until hitting the 4 GB, and the virtual memory as well. It's mainly the X application that is to blame, but this is a server. And I have an old script looking for available boat places on a website using puppeteer. So it's probably faulty now and isn't closing correctly. The cron job is running it every 15 minutes without checking if the previous process finished. So I will comment it out and see if it solves it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Web Served 7: Wiki wiki wiki! LXer Syndicated Linux News 0 02-19-2013 09:10 PM
block particular web site form multiple site hosted web server and allow others lasantha Linux - Security 2 08-17-2010 01:49 PM
block particular web site form multiple site hosted web server and allow others lasantha Linux - Security 1 08-17-2010 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration