timberline-secondary / hackerspace-scripts-2

Python based control panel and scripts for managing Timberline's Digital Hackerspace
GNU General Public License v3.0
3 stars 1 forks source link

Error when restarting pi-themes #135

Closed tylerecouture closed 1 year ago

tylerecouture commented 1 year ago

Check out the tv-pi reset code works, those don't crash when restarting (maybe it needs a shutdown -r instead of reboot... if that's what it's doing?)

image

punctuations commented 1 year ago

This is a weird error, is this reproducible? I am lost on how and where it would terminate the connection before sending the command considering the code for this is so simple. (for ref: https://github.com/timberline-secondary/hackerspace-scripts-2/blob/master/scripts/_utils/pi.py#L19)

punctuations commented 1 year ago

And to address the code it does currently call shutdown -r

Possibly this error could be due to the connection originally working but then possibly the pi temporarily lost Internet connection, if it took a while print that error message that could be a contender, otherwise I haven't a clue

tylerecouture commented 1 year ago

Can you try it a few times in the morning and see if you can get it to happen. If not I'll close it.

punctuations commented 1 year ago

I just ran it and it reboot without error

tylerecouture commented 1 year ago

Once? Try 5 times.

punctuations commented 1 year ago

I tried back to back to back and it worked every time