Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 28-10-2021, 11:11   #1
Registered User

Join Date: Sep 2013
Posts: 74
Possible flaw in navobj backup

I am running OpenCPN on a raspberry pi and have lost the contents of navobj.xml and all its backups. Another program was writing spurious data to the system logs until it filled the SD card. This caused OpenCPN to lock up updating the charts. Not knowing why it locked up I closed OpenCPN and restarted it. The all of the navobj files and the opencpn.log file now have a size of 0. opencpn.log.log was not effected. I assume the data was all in ram and therefore is not recoverable. Does the renaming sequence which backs up the navobj files check if there is sufficient space? If not, should it?
CSYChip is offline   Reply With Quote
Old 28-10-2021, 16:30   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Possible flaw in navobj backup

Quote:
Originally Posted by CSYChip View Post
Does the renaming sequence which backs up the navobj files check if there is sufficient space?
No.
Quote:
If not, should it?
I'm not too sure it will make the situation much better in these cases, but it could of course be made more robust than it is.
nohal is offline   Reply With Quote
Old 02-11-2021, 07:22   #3
Registered User

Join Date: Sep 2013
Posts: 74
Re: Possible flaw in navobj backup

I'm guessing from the fact than the old navobj.xml.1 etc went to a file size of 0 that they are copied or moved when the new one is created rather than just renaming the file allocation pointer.

Does opencpn.log write to disk or is it held in memory until the program closes? I am looking at trying a forensic recovery to see if the old files are still on the SD. I lost a month of data but opencpn was closed and re-started several times in that period.
CSYChip is offline   Reply With Quote
Old 02-11-2021, 08:27   #4
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,464
Re: Possible flaw in navobj backup

"Does opencpn.log write to disk or is it held in memory until the program closes?"


Log file is flushed "occasionally", as and when the main app event queue becomes empty. Of course, the massage queue is flushed on program exit.


Good Luck
Dave
bdbcat is online now   Reply With Quote
Reply


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
Change navobj.xml location lillu OpenCPN 5 25-02-2020 03:07
navobj.xml.changes still broken seandepagnier OpenCPN 2 06-08-2017 11:41
navobj Error Parsing Johna1 OpenCPN 8 20-10-2016 02:10
How to merge two navobj.xml? myocean OpenCPN 5 24-05-2015 09:00
Whitby25 Design Flaw? Incentive Monohull Sailboats 6 27-08-2013 20:41

Advertise Here


All times are GMT -7. The time now is 13:42.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.