maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   root full connman bug SFOS 3.0.2.8 (https://talk.maemo.org/showthread.php?t=100737)

wolke 2019-05-04 16:50

root full connman bug SFOS 3.0.2.8
 
some terrible connman bug (new to oulanka?) is causing /var/lib/connman to fill up at an alarming rate.

mine was ~500mb (root partition is only ~2000mb), and i ran out of space and hit into all sorts of problems.

i now run this every night as root user to delete files older than a week:
Code:

find /var/lib/connman/ -mtime +7 -type f -delete
find /var/lib/connman/ -type d -exec rmdir {} \; 2>&1 \
  | grep -v 'Directory not empty' #busybox find has no -empty


peterleinchen 2019-05-04 19:25

Re: root full connman bug SFOS 3.0.2.8
 
Thanks for the workaround.

I 'only' had.around 90MB.
Just zipped and deleted them.

But is it really only Oulanka related?
There is a "question" on tjc but I cannot find it anymore and I believe it was already earlier...

wolke 2019-05-04 19:32

Re: root full connman bug SFOS 3.0.2.8
 
ive never encountered this before now, and i reflashed only 1 or 2 months ago when switching to oulanka for the first time, so it SEEMS fairly new.

but no, i am not in way sure its new to oulanka. too many other variables
maybe it was fixed in the past, but regression unfixed it in oulanka? dunno.

wolke 2019-05-04 19:34

Re: root full connman bug SFOS 3.0.2.8
 
also, `/var/lib` is just where id put my large, volatile, private, user-specific caches. truly an ideal location.

reinob 2019-05-05 19:06

Re: root full connman bug SFOS 3.0.2.8
 
Just checked with my daughters Jolla (3.0.2.8 Oulanka), and had only about 2M. Apparently for each SSID seen (not necessarily connected) 3 files are stored (history.home.{day,hour,month}, but they take 3*24 bytes (with btfrs maybe 1M :)

I suppose you can safely delete the directories which don't contain a "settings" file in it (where e.g. the PSK password is stored).

reinob 2019-05-05 19:10

Re: root full connman bug SFOS 3.0.2.8
 
Could cron-run this if/as necessary:

--
for d in $(find /var/lib/connman -type d -name wifi_\*); do
if [ -f "$d/settings" ]; then echo "KEEP $d"; else echo "KILL $d";
fi;
done
--

(you will have to do the obvious change from echo to rm, but want to keep the snippet safe..)

nthn 2019-05-06 11:41

Re: root full connman bug SFOS 3.0.2.8
 
Quote:

Originally Posted by reinob (Post 1556667)
Apparently for each SSID seen (not necessarily connected) 3 files are stored (history.home.{day,hour,month}, but they take 3*24 bytes (with btfrs maybe 1M :)

That explains that bug where devices crash if there are too many access points nearby!

reinob 2019-05-06 13:03

Re: root full connman bug SFOS 3.0.2.8
 
Quote:

Originally Posted by nthn (Post 1556680)
That explains that bug where devices crash if there are too many access points nearby!

I'm not sure the Jolla would crash when doing that (unless it fills up all space, that is).

I've just cleaned up the Jolla according to my snippet above. I'll take it with me this afternoon where I expect a number of WLANs to be nearby and check if they have been added (to confirm my hypothesis, but not necessarily yours.. :)

nthn 2019-05-06 20:58

Re: root full connman bug SFOS 3.0.2.8
 
Quote:

Originally Posted by reinob (Post 1556682)
I'm not sure the Jolla would crash when doing that (unless it fills up all space, that is).

I've just cleaned up the Jolla according to my snippet above. I'll take it with me this afternoon where I expect a number of WLANs to be nearby and check if they have been added (to confirm my hypothesis, but not necessarily yours.. :)

Doesn't sound too unlikely to me. Heavy i/o is a fairly common cause of kernel panics, and I presume the crashes are caused by kernel panics. However, I only understand these things on a surface level.

peterleinchen 2019-05-06 21:08

Re: root full connman bug SFOS 3.0.2.8
 
A kernel panic because of a few (let's say hundreds) of WiFi access points nearby causing.3x24bytes to be written?
Nah, but maybe only if all space is filled, as reinob said.


All times are GMT. The time now is 11:58.

vBulletin® Version 3.8.8