Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 14-01-2020, 07:14   #1
Registered User

Join Date: Oct 2019
Posts: 5
Opencpn 5 issue after repeated reboots on 3 Pi's

I have a working Raspberry pi for my yacht with opencpn. I have a second that is a mirror of the first and a third that I am getting openplotter to work.

After the recent storm in Ireland, our power was up and down and I discovered that all 3 lost their config and using the template to restore to last known working didn't work.

I was not at home at the time and therefore could not prevent the issue but why did opencpn lose it's working config after repeated restarts. Of course now, I will get a UPS hat or something for the main working Pi.
__________________

thecivvie is offline   Reply With Quote
Old 14-01-2020, 07:57   #2
Registered User
 
Dsanduril's Avatar

Join Date: Aug 2011
Location: Petersburg, AK
Boat: Outremer 50S
Posts: 2,433
Re: Opencpn 5 issue after repeated reboots on 3 Pi's

I would suspect SD card corruption on the Pi' s. If the power down/up/down occurs during a boot cycle the SD card is usually toast. There's a lot of activity back and forth during start up and the file system is quite vulnerable during that process. Once startup is complete things settle down and are usually quite solid even through a power failure. But if one occurs during the boot process...
__________________

Dsanduril is offline   Reply With Quote
Old 14-01-2020, 09:56   #3
Registered User

Join Date: Jan 2018
Location: Belgium
Boat: Raider 18 Cuddy
Posts: 53
Re: Opencpn 5 issue after repeated reboots on 3 Pi's

Better use a SSD HAT on USB
I always switch of the power of the boat, never shutdown PI first, no problem in 2 years use.

Raspberry Pi w/ OpenCPN
Ben S is offline   Reply With Quote
Old 14-01-2020, 11:38   #4
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 283
Re: Opencpn 5 issue after repeated reboots on 3 Pi's

Put a USB with a battery on your Pi and set it up to automatically shutdown when the power to the battery goes off. I have that arrangement on our boat (also in Ireland) and it’s been turned on and off frequently for three years now without problem. The battery can be very small as it only has to power the Pi for 20 seconds or so.
AedanC is offline   Reply With Quote
Old 14-01-2020, 11:40   #5
Registered User
 
pinguino's Avatar

Join Date: May 2009
Location: SE Spain
Boat: Jeanneau SO 32I
Posts: 80
Re: Opencpn 5 issue after repeated reboots on 3 Pi's

It would be nice to add a couple of buttons in the settings to be able to create backups of the configuration file and recover it in case of accidental loss. It is a quite recurrent problem in boards like the Rpi that do not have backup batteries and it is relatively easy to disconnect them without realizing it.

Personally I have checked that errors in the SD in such cases are not as frequent as I thought but the loss of the opencpn configuration file is guaranteed.

And some users of the android version complain about the same.
pinguino is offline   Reply With Quote
Old 14-01-2020, 12:04   #6
Registered User

Join Date: Oct 2019
Posts: 5
Re: Opencpn 5 issue after repeated reboots on 3 Pi's

Sorry, I should have said that one was on a SSD via usb cable adapter and the other 2 flash drives. I will add a battery hat to the main one. Will keep the rest off for now.

TBH, I don't know why I leave them powered up all the time
__________________

thecivvie is offline   Reply With Quote
Reply

Tags
enc, opencpn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Raymarine MFD reboots theBigKahuna Marine Electronics 2 10-11-2019 08:38
Raymarine Radar reboots all the time Lagoon440Bora Marine Electronics 8 23-10-2016 18:47
Raymarine E120 Beeps, freezes and Reboots IanClarke Marine Electronics 25 20-08-2016 23:49

Advertise Here


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 04:33.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.