This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenCPN configuration file reset on crash

I have a Raspberry pi 3 running OpenPlotter v 0.17.1 plugged on my boat battery through 24v to usb converter.
The problem is that when the Raspberry (running Open CPN 4.8.4) is shut down abruptly (power shutdown due to low battery etc), the OpenCPN configuration file get corrupted. At the next startup the configuration file is blank, and OpenCPN replaces it with the default one. Meaning that I need to configure again everything in OpenCPN including NMEA ports, default chart folders etc...

I found a workaround by backing up the configuration file and replacing at each Raspberry crash...

Anyone experiencing the same issue?
I did some test and found that the OpenCPN configuration file (opencpn.conf) becomes blank after an abrupt shutdown, and this even if OpenCPN was not running during the shutoff.
So it seems to be related to OpenPlotter rather than OpenCPN.
So to temporary solve this issue I added a script on startup to copy a backup file "opencpn.conf" to the .opencpn folder in the home directory.

You'll find some info for the script here:
And the command is: cp /home/pi/Backup/opencpn.conf /home/pi/.opencpn/opencpn.conf

/home/pi/Backup/opencpn.conf being my backup file with the correct OpenCPN configuration.

Need to go sailing now, but if someone has a better solution to the problem... post here

Forum Jump:

Users browsing this thread: 1 Guest(s)