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 16-06-2023, 10:19   #1
Registered User

Join Date: Mar 2020
Location: Nieuwpoort Belgium
Boat: Comar Comet 910
Posts: 60
Raspberry (Buster) OpenCPN installation issue

Running Buster on a RPi 4B, I had OpenCPN 5.6 running succesfully.
Trying to upgrade to 5.8 has been unsuccesful.
After performing a sudo apt-get update && sudo apt-get upgrade I decided to follow the instructions here: https://opencpn.org/wiki/dokuwiki/do...allation:rpi23


Since this is on Buster the compatible Ubuntu release is bionic,
hence:
deb https://ppa.launchpadcontent.net/opencpn/opencpn/ubuntu bionic main

Then sudo apt-get install opencpn, download and install is executed.
Opening openCPN shows that version 5.8.4 is installed, yet when opening the program it crashes and closes.

Opening in safe mode, then to the Options, this window does not even show up.

In short: this installation is a disaster. My previous version (5.6) worked flawlessly,
version 5.8.4 just crashes and closes when opened.

Please let me know how
A. either to go back to my previous version
or
B. how to get a working 5.8.4 version?


EDIT: preferably not using flatpak because of its limitations as detailed on https://opencpn.org/wiki/dokuwiki/do...pak:background


brice3010 is offline   Reply With Quote
Old 16-06-2023, 13:45   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,712
Re: Raspberry (Buster) OpenCPN installation issue

Brice...
Please post your logfile starting O584.


Thanks
Dave
bdbcat is offline   Reply With Quote
Old 16-06-2023, 14:33   #3
Registered User

Join Date: Mar 2020
Location: Nieuwpoort Belgium
Boat: Comar Comet 910
Posts: 60
Re: Raspberry (Buster) OpenCPN installation issue

Quote:
Originally Posted by bdbcat View Post
Brice...
Please post your logfile starting O584.


Thanks
Dave
Hi Dave, where do I find the logfile on the RPi? This is a standard installation in the default locations.
brice3010 is offline   Reply With Quote
Old 16-06-2023, 15:45   #4
Registered User

Join Date: Mar 2020
Location: Nieuwpoort Belgium
Boat: Comar Comet 910
Posts: 60
Re: Raspberry (Buster) OpenCPN installation issue

I think i found it: /home/pi/.opencpn/


I attached the log here, as pdf: a txt file will not upload, it says "too large"??
Attached Files
File Type: pdf opencpn.log.pdf (369.8 KB, 59 views)
brice3010 is offline   Reply With Quote
Old 16-06-2023, 15:50   #5
Registered User

Join Date: Mar 2020
Location: Nieuwpoort Belgium
Boat: Comar Comet 910
Posts: 60
Re: Raspberry (Buster) OpenCPN installation issue

Quote:
Originally Posted by bdbcat View Post
Brice...
Please post your logfile starting O584.


Thanks
Dave
Dave, what do you mean "o584"?
brice3010 is offline   Reply With Quote
Old 17-06-2023, 01:58   #6
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,947
Re: Raspberry (Buster) OpenCPN installation issue

O584 = OpenCPN version 5.8.4 - the latest one
bcn is offline   Reply With Quote
Old 17-06-2023, 03:04   #7
Registered User

Join Date: Mar 2020
Location: Nieuwpoort Belgium
Boat: Comar Comet 910
Posts: 60
Re: Raspberry (Buster) OpenCPN installation issue

Current status:
1. Raspberry Pi 4B with Buster
2. opencpn installation (no flatpak, no openplotter) using this guide, basically:
a. sudo nano /etc/apt/sources.list
b. edit to ensure this line is present: deb Index of /opencpn/opencpn/ubuntu bionic main
c. sudo apt install dirmngr
d. sudo apt-get update

3. I erased the opencpn installation sudo apt-get purge opencpn
4. removed opencpn.conf and copied it elsewhere
5. re install opencpn: sudo apt-get install opencpn
6. opened in safe mode, virgin opencpn.conf present, opencpn opens ok
7. close and restart opencpn in normal mode: crash.


opencpn.log attached.
Attached Files
File Type: doc opencpn.log.doc (77.6 KB, 30 views)
brice3010 is offline   Reply With Quote
Old 17-06-2023, 04:25   #8
Registered User

Join Date: Mar 2020
Location: Nieuwpoort Belgium
Boat: Comar Comet 910
Posts: 60
Re: Raspberry (Buster) OpenCPN installation issue

Newt step: following advice by bdbcat in another topic (post #15) I renamed ~/.local/lib/opencpn/ to ../opencpn.save/.
Next: started opencpn from the command window. There I get debug output as shown in attachement.


Opencpn now at least shows up without crashing.


Next I restart opencpn, again from the command window, all the warnings and criticals remain just as present.
Then plugins are enabled: GRIB, Chart Downloader, O-Charts, and restart.
Opencpn remains open without crashing.


But the downside is that I had to re-install all opencpn.conf information.


My conclusion: upgrading from 5.6 to 5.8 from source code (without flatpak nor openplotter) "sucks".


I do not see why I would need to use a bloated package like openplotter (where, off all the bells and whistles only opencpn would be used). Nor flatpak which has its own well documented drawbacks as well.


But for some, so far, to me, unknown reason, a simple upgrade from 5.6 just seems not possible.
brice3010 is offline   Reply With Quote
Old 17-06-2023, 04:58   #9
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,295
Re: Raspberry (Buster) OpenCPN installation issue

Maybe you could consider upgrading your Buster system, which is almost a year after it's end of life. Just out of curiosity, what are the well documented drawbacks of flatpak you keep talking about? I don't see any on my systems.
nohal is online now   Reply With Quote
Old 17-06-2023, 05:59   #10
Registered User

Join Date: Mar 2020
Location: Nieuwpoort Belgium
Boat: Comar Comet 910
Posts: 60
Re: Raspberry (Buster) OpenCPN installation issue

Quote:
Originally Posted by nohal View Post
Maybe you could consider upgrading your Buster system, which is almost a year after it's end of life. Just out of curiosity, what are the well documented drawbacks of flatpak you keep talking about? I don't see any on my systems.

https://www.tomshardware.com/news/ra...ullseye-tested
https://raspberrypi.stackexchange.co...pi-os-bullseye
https://discourse.flathub.org/t/pros...flatpak/3721/2
https://news.ycombinator.com/item?id=29316024&p=2



etc.. etc...


...and just my 2c of not just swallowing whatever IT departments tell us what to do without reason. A bit like our IT telling us whenever a system malfunctions: "Restart".
brice3010 is offline   Reply With Quote
Old 17-06-2023, 06:03   #11
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,295
Re: Raspberry (Buster) OpenCPN installation issue

No offense, but what you link is mostly obsolete information.
nohal is online now   Reply With Quote
Old 17-06-2023, 07:52   #12
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,712
Re: Raspberry (Buster) OpenCPN installation issue

Brice....
As you have no doubt worked out, there is some plugin in "~/.local/lib/opencpn/" that is OK on O562, but fails on O584. By renaming "~/.local/lib/opencpn/", we avoid loading that faulty plugin.


After several such user experiences, we have not yet succeeded in isolating the failing plugin. Understandably, users have been happy to just get running again. It sure would help us to know exactly which plugin it is.


The procedure is simple. Move plugins from the saved copy into "~/.local/lib/opencpn/", one-by-one, trying to start OCPN at each addition. Eventually, we fault. The last plugin moved is the culprit.


We would appreciate your help on this.
Thanks
Dave
bdbcat is offline   Reply With Quote
Old 17-06-2023, 08:04   #13
Registered User

Join Date: Mar 2020
Location: Nieuwpoort Belgium
Boat: Comar Comet 910
Posts: 60
Re: Raspberry (Buster) OpenCPN installation issue

Quote:
Originally Posted by bdbcat View Post


...
It sure would help us to know exactly which plugin it is.


The procedure is simple. Move plugins from the saved copy into "~/.local/lib/opencpn/", one-by-one, trying to start OCPN at each addition. Eventually, we fault. The last plugin moved is the culprit.


We would appreciate your help on this.
Thanks
Dave
Hi Dave, in order to do that, is it ok to open the backupped folder /home/pi/.local/lib/opencpn.save and see which plugins are present?
Then one by one copy/paste them to the active /opencpn folder in /home/pi/.local/lib/opencpn ?
brice3010 is offline   Reply With Quote
Old 17-06-2023, 08:12   #14
Registered User

Join Date: Mar 2020
Location: Nieuwpoort Belgium
Boat: Comar Comet 910
Posts: 60
Re: Raspberry (Buster) OpenCPN installation issue

In the folder /home/pi/.local/lib/opencpn.save (the backupped folder) there are following plugins:
libaisradar_pi_so
libgps-odometer_pi.so
libotcurrent_pi.so
libstatusbar_pi.so


Moving any of them, one at a time, to /home/pi/.local/lib/opencpn causes opencpn to crash on startup.
After removal each time from the opencpn folder then opencpn runs ok again, each time.
brice3010 is offline   Reply With Quote
Old 17-06-2023, 21:46   #15
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,712
Re: Raspberry (Buster) OpenCPN installation issue

Brice...
Thanks for the test. Exactly as described.
If you could send me, for instance, a copy of the bad libaisradar_pi.so (by PM), I may be able to track this down. Id like to save other users the aggravation.



Meanwhile, you should be able to re-install fresh versions of those plugins from the PluginManager, and get back up to speed.


Thanks
Dave
bdbcat is offline   Reply With Quote
Reply

Tags
enc, installation, 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
weird stuff happening - openCPN 5.5.1109 on OpenPlotter and Buster rpi 3 B+ LifePart2 OpenCPN 12 15-12-2021 04:59
No audio - openCPN 5.5.1109 Buster rpi 3 B+ LifePart2 OpenCPN 0 12-11-2021 13:40
Issue: US ACE Inland ENC Charts update all issue: (Mac OSx) MBP - OpenCPN ver 5.2.4 Kickin Bears OpenCPN 5 02-03-2021 04:21
R PI4 BUSTER E: Unable to locate package opencpn-plugin-aisradar MACH1SCJ OpenCPN 1 08-08-2019 14:31
New computer, new installation, new issue with OpenCPN dceggert OpenCPN 2 30-08-2016 10:36

Advertise Here


All times are GMT -7. The time now is 18:55.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.