Raspberry Pi 4 restarting at random

December 29, 2023, 23:32

combatkevin

I have been experiencing RPi4 Restarts at random. Attached are the /var/log/syslog for a boot following the crash. I would appreciate any guidance you can offer on how to track down the source of the restarts

abritishthing

whats your power supply rating

abritishthing

sometimes there isnt enough power for the pi and it can cause issues unknowingly

abritishthing

another cause is that your sd card might not be fast enough

combatkevin

We have about 65 units deployed on a Custom PCB. I believe the chip's output is 5V1 @ 3A but I will double check. We are only seeing this issue at 1 of 3 locations.

combatkevin

Should be fast enough, yes?

abritishthing

ye

abritishthing

5.1v and 3a is enough

abritishthing

is it set up in a cluster

abritishthing

thats might be a issue

combatkevin

No clusters. These are 1 PCB + 1 Pi mounted to Go-Karts.

abritishthing

oh darn

combatkevin

I appreciate the thoughts. Ruling out is still helpful!

abritishthing

could be a minor case of corupption?

abritishthing

maybe the write was successful but corrupted a tiny bit

combatkevin

There is a string of random characters printed either before the power cycle or after. idk if that's useful info but it's data.

abritishthing

just relised your using dietpi

abritishthing

try reflashing

abritishthing

it seems like the image may have gotten a tiny bit corrupted

abritishthing

so redownload it too

combatkevin

I was going to start with that and realized the plethora of changes required to do it. I think that's a great idea and will be proceeding with a fresh install. I am not convinced that is the source of the issue but...¯\_(⊙︿⊙)_/¯ Ya never know.

abritishthing

yeah

abritishthing

ive never really delt with huge amounts of pi's

abritishthing

you said they were mounted in go-karts

combatkevin

Regretting it over here. While they are nice, they're definitely prototypal devices at best.

abritishthing

yeah

combatkevin

Yea, electric go-karts 🙂

abritishthing

thats rules out power

abritishthing

and since storage is ruled out

abritishthing

it also cant be heat since the rpi to throttle its speed to stay in temp

combatkevin

We were seeing the karts drain too low and causing our boards to power cycle. I am wondering if that had the potential to fry a pi?

abritishthing

no

abritishthing

and what you just said means that the sd cards might be corrupting

combatkevin

Whereby that SD card should not be reused? A fresh SD installed?

abritishthing

fresh install

combatkevin

So the SD itself should be fine?

abritishthing

yes

combatkevin

Brilliant!

abritishthing

its just the data on the sd card is corrupting a lil bit each spike when the go-carts go

combatkevin

What could be corrupted that causes it to run fine except power cycle every once in a while?

abritishthing

ye

combatkevin

We did also get a "RPi Logo" Screen the other day on one of the karts. Power cycling resolved the issue.

abritishthing

that sometimes happens

abritishthing

i did it once

combatkevin

Do you know the cause? Surely corruption would keep it from successfully power on?

abritishthing

it happens if you power cycle too quick

abritishthing

its fine though

combatkevin

What is your experience with the Raspberry Pi?

abritishthing

stable, reliable

abritishthing

and pretty smooth

combatkevin

What I mean is what work do you do with them?

abritishthing

yes

combatkevin

How do you utilize them

abritishthing

just 1 though

abritishthing

for home use

combatkevin

I see. What is your profession?

abritishthing

just a programmer

combatkevin

What languages?

abritishthing

um

abritishthing

javascript

combatkevin

As for this issue, I will consider it answered. I appreciate your time! I will work on the new image and flashing an existing one on 2 of the karts giving us issues right now. See if one or the other resolves it.

abritishthing

all right

combatkevin

Web development, back-end or full-stack?

abritishthing

back-end

combatkevin

TypeScript?

abritishthing

yes

combatkevin

I have a lot of TypeScript in my shop.

combatkevin

I came from a fullstack Java and web background