Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 03-08-2018, 12:53   #1
Registered User

Join Date: Aug 2018
Location: N60 E20
Boat: Nordisk Familjebåt, 30ft
Posts: 35
Openplotter hangs because disk full

Quote:
Linux openplotter 4.14.52-v7+ #1123 SMP Wed Jun 27 17:35:49 BST 2018 armv7l GNU/Linux
Running on a Raspberry Pi 2. Thing is that it works absolutely beautifully, but if I leave it running overnight and then shutdown and restart. It will boot up and show the ordinary boot screen, but when it goes into graphic mode I just get a black screen with a blinking cusrsor.

I can get in through ssh. Problem seems to be that the disk is full. Question is: What in OpenPlotter is filling up the disk?

Code:
pi@openplotter:/var/log $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       5.4G  5.2G     0 100% /
devtmpfs        460M     0  460M   0% /dev
tmpfs           464M     0  464M   0% /dev/shm
tmpfs           464M   18M  446M   4% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           464M     0  464M   0% /sys/fs/cgroup
/dev/mmcblk0p1   43M   22M   21M  52% /boot
tmpfs            93M     0   93M   0% /run/user/1000


pi@openplotter:/ $ sudo du -a /var | sort -n -r | head -n 10
432952  /var
194016  /var/cache
187212  /var/cache/apt
135308  /var/cache/apt/archives
119888  /var/lib
102400  /var/swap
61720   /var/lib/apt
61632   /var/lib/apt/lists
60048   /var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_stretch_main_binary-armhf_Packages
52580   /var/lib/dpkg
__________________

AndersG is offline   Reply With Quote
Old 03-08-2018, 13:14   #2
Registered User

Join Date: Aug 2018
Location: N60 E20
Boat: Nordisk Familjebåt, 30ft
Posts: 35
Re: Openplotter hangs because disk full

OK. A fresh install is a bit close for comfort as well. I guess I should expand the root partition to use all of the 16Gb on the SD-card:

Code:
pi@openplotter:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       5.4G  4.3G  832M  85% /
devtmpfs        460M     0  460M   0% /dev
tmpfs           464M     0  464M   0% /dev/shm
tmpfs           464M   18M  446M   4% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           464M     0  464M   0% /sys/fs/cgroup
/dev/mmcblk0p1   43M   22M   21M  52% /boot
tmpfs            93M     0   93M   0% /run/user/1000
pi@openplotter:~ $
__________________

AndersG is offline   Reply With Quote
Old 04-08-2018, 00:08   #3
Registered User

Join Date: Aug 2018
Location: N60 E20
Boat: Nordisk Familjebåt, 30ft
Posts: 35
Re: Openplotter hangs because disk full

OK. Used GParted on another Linux box to expand. Will let it sit and see what happens:

Code:
Sat  4 Aug 07:07:33 UTC 2018
pi@openplotter:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        15G  4.4G  9.6G  32% /
devtmpfs        460M     0  460M   0% /dev
tmpfs           464M     0  464M   0% /dev/shm
tmpfs           464M  6.3M  458M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           464M     0  464M   0% /sys/fs/cgroup
/dev/mmcblk0p1   43M   22M   21M  52% /boot
tmpfs            93M     0   93M   0% /run/user/1000
AndersG is offline   Reply With Quote
Old 04-08-2018, 10:43   #4
Registered User

Join Date: Aug 2018
Location: N60 E20
Boat: Nordisk Familjebåt, 30ft
Posts: 35
Re: Openplotter hangs because disk full

Code:
Sat  4 Aug 17:41:43 UTC 2018
pi@openplotter:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        15G  6.4G  7.6G  46% /
devtmpfs        460M     0  460M   0% /dev
tmpfs           464M     0  464M   0% /dev/shm
tmpfs           464M  6.3M  458M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           464M     0  464M   0% /sys/fs/cgroup
/dev/mmcblk0p1   43M   22M   21M  52% /boot
tmpfs            93M     0   93M   0% /run/user/1000

pi@openplotter:~ $ sudo du -a /var | sort -n -r | head -n 10
427484  /var
199516  /var/cache
192712  /var/cache/apt
140808  /var/cache/apt/archives
119884  /var/lib
102400  /var/swap
61720   /var/lib/apt
61632   /var/lib/apt/lists
60048   /var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_stretch_main_binary-armhf_Packages
52580   /var/lib/dpkg
AndersG is offline   Reply With Quote
Old 04-08-2018, 10:47   #5
Registered User

Join Date: Aug 2018
Location: N60 E20
Boat: Nordisk Familjebåt, 30ft
Posts: 35
Re: Openplotter hangs because disk full

Code:
pi@openplotter:~ $ sudo du -a / | sort -n -r | head -n 10
6632924 /
3494792 /usr
2380952 /home
2380948 /home/pi
2098576 /home/pi/.cache
2097164 /home/pi/.cache/lxsession
2097160 /home/pi/.cache/lxsession/LXDE-pi
2097156 /home/pi/.cache/lxsession/LXDE-pi/run.log
1755264 /usr/lib
1310732 /usr/share
AndersG is offline   Reply With Quote
Old 04-08-2018, 10:53   #6
Registered User

Join Date: Aug 2018
Location: N60 E20
Boat: Nordisk Familjebåt, 30ft
Posts: 35
Re: Openplotter hangs because disk full

OK, so culprit seems to be SignalK filling up a log file:

Code:
pi@openplotter:~ $ tail /home/pi/.cache/lxsession/LXDE-pi/run.log
accept failed for connection to signalk: Too many open files
accept failed for connection to signalk: Too many open files
accept failed for connection to signalk: Too many open files
accept failed for connection to signalk: Too many open files
accept failed for connection to signalk: Too many open files
accept failed for connection to signalk: Too many open files
accept failed for connection to signalk: Too many open files
accept failed for connection to signalk: Too many open files
accept failed for connection to signalk: Too many open files
Question is: Do I even need signalK if I just have an USB GPS?
AndersG is offline   Reply With Quote
Old 04-08-2018, 19:50   #7
Registered User

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 4,128
Re: Openplotter hangs because disk full

Quote:
Originally Posted by AndersG View Post
OK, so culprit seems to be SignalK filling up a log file:

Code:
pi@openplotter:~ $ tail /home/pi/.cache/lxsession/LXDE-pi/run.log
accept failed for connection to signalk: Too many open files
accept failed for connection to signalk: Too many open files
accept failed for connection to signalk: Too many open files
accept failed for connection to signalk: Too many open files
accept failed for connection to signalk: Too many open files
accept failed for connection to signalk: Too many open files
accept failed for connection to signalk: Too many open files
accept failed for connection to signalk: Too many open files
accept failed for connection to signalk: Too many open files
Question is: Do I even need signalK if I just have an USB GPS?
ISTR something going on between sigk and kplex if kplex was getting no data, what's kplex showing in htop? I'll dig deeper later, i made node red send a dummy sentence to kplex to keep it all happy when nothing else was going into kplex.
Might be worth asking on the openplotter forum, developers are on there.

Edit. Found it, maybe this? Not sure if it's fixed yet..

http://forum.openmarine.net/showthre...id=1216&page=2
conachair is online now   Reply With Quote
Old 04-08-2018, 23:41   #8
Registered User

Join Date: Aug 2018
Location: N60 E20
Boat: Nordisk Familjebåt, 30ft
Posts: 35
Re: Openplotter hangs because disk full

Thanks! Was not aware of that forum. Must register there as well Anyway, I stopped SignalK and that stopped the file from growing. OpenCPN still works and gets input from GPS.
AndersG is offline   Reply With Quote
Old 05-08-2018, 01:41   #9
Registered User

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 4,128
Re: Openplotter hangs because disk full

Quote:
Originally Posted by AndersG View Post
Thanks! Was not aware of that forum. Must register there as well Anyway, I stopped SignalK and that stopped the file from growing. OpenCPN still works and gets input from GPS.
Sailoog on the forum would certainly be grateful for any details of what sounds like a bug so they can fix it.

Interesting opencpn is still getting nme gps data, it all goes through signalk to get there ..
Would be a shame not to have signalk running, it's really powerful with many apps these days
https://docs.sailoog.com/openplotter...w-does-it-work

conachair is online now   Reply With Quote
Old 05-08-2018, 07:19   #10
Registered User

Join Date: Aug 2018
Location: N60 E20
Boat: Nordisk Familjebåt, 30ft
Posts: 35
Re: Openplotter hangs because disk full

Yes. But I was under the impression that it was not the case if you used a direct port connection for the gps. I am fully aware of the beauty of SignalK, but I would like to keep it simple for now

How shall I report this?
AndersG is offline   Reply With Quote
Old 09-08-2018, 05:36   #11
Registered User

Join Date: Aug 2018
Location: N60 E20
Boat: Nordisk Familjebåt, 30ft
Posts: 35
Re: Openplotter hangs because disk full

@RGleason

Issue seems fixed now. Perhaps that should be in the FAQ as well?
AndersG is offline   Reply With Quote
Old 09-08-2018, 07:15   #12
Registered User

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 4,128
Re: Openplotter hangs because disk full

Quote:
Originally Posted by AndersG View Post
@RGleason

Issue seems fixed now. Perhaps that should be in the FAQ as well?
Was it the signalk / kplex issue that was causing you problems?

Provisional fix here if anyone else is having problems >
*newbie* /dev/root full after 24hrs
conachair is online now   Reply With Quote
Old 09-08-2018, 23:47   #13
Registered User

Join Date: Aug 2018
Location: N60 E20
Boat: Nordisk Familjebåt, 30ft
Posts: 35
Re: Openplotter hangs because disk full

Yes. I changed the line as per the instructions in the forums and it has been stable since. As I said, I have no need for SignalK at this point.
AndersG is offline   Reply With Quote
Old 10-08-2018, 01:39   #14
Registered User

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 4,128
Re: Openplotter hangs because disk full

Quote:
Originally Posted by AndersG View Post
Yes. I changed the line as per the instructions in the forums and it has been stable since. As I said, I have no need for SignalK at this point.
Signalk updated to prevent the problem already, opensource is great

https://github.com/SignalK/signalk-server-node/pull/581
__________________

conachair is online now   Reply With Quote
Reply

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
New computer - v4.4 and 4.6 hangs on connection of USB port maohls OpenCPN 7 24-06-2017 07:33
ICOM M802 hangs on start screen Lasso Marine Electronics 10 18-06-2017 15:13
OpenCPN 4.2 crashes and hangs up -- regressed to 3.2 Akka OpenCPN 7 14-05-2016 09:02
Rpi 3 hangs when zoomed out. jimseng OpenCPN 14 11-03-2016 20:53
Flexible Coupling Disk Volvo Penta MD2030 Pieter Engines and Propulsion Systems 1 16-03-2010 09:44



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 00:43.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.