NextcloudPi

Last weekend I got a bit cocky and decided to upgrade the distro on the NextcloudPi. The upgrade seemed to go well until it threw a PHP error which got me going in circles. In hindsight, I’d setup automatic upgrades on NextcloudPi and Nextcloud, which seems to have conflicted with the actual distribution’s update. Now I did take a backup, but that didn’t quite sit well with the now upgraded system and the myriad PHP issues. ...

May 17, 2024 · 1 min · 151 words · map[email:ssphugo@srkn.anonaddy.com name:Srikanth Perinkulam nick:SSP]

3-2-1 Backup

Ouch! After a good couple years of unhindered access, I’ve lost (remote) access to my RPI server. I’m guessing an auto upgrade might have disabled wireguard or flushed the ip table rules. I should have had a secondary connection to the remote network since I did anticipate this happening sometime! Well, until I have physical access to the server, I’ll have to bank on my cold flash drive backups! So glad I have multiple accessible copies of the data files! ...

November 29, 2021 · 1 min · 80 words · map[email:ssphugo@srkn.anonaddy.com name:Srikanth Perinkulam nick:SSP]

Network auto-latch

I realised the raspberry pi that hosts my nextcloud setup wasn’t quite latching back on to the network if the router was turned off or if the internet was sketchy. Was a pain to hard boot the device manually to reset it. Decided to write a short script to reset the network connection when it noticed something was off. ping -c4 192.168.0.1 > /dev/null if [ $? != 0 ] then echo "SOS..Restarting eth0 for network latch" /sbin/ifdown 'eth0' sleep 5 /sbin/ifup --force 'eth0' fi A chron job runs every 10 minutes to take pulse of the network, runs the above code and picks up connectivity without manual intervention! ...

October 25, 2019 · 1 min · 109 words · map[email:ssphugo@srkn.anonaddy.com name:Srikanth Perinkulam nick:SSP]