Reply
Thread Tools
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#1
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
__________________
~ teleshoes ~

Last edited by wolke; 2019-05-04 at 19:33.
 

The Following 5 Users Say Thank You to wolke For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#2
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...
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#3
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.
__________________
~ teleshoes ~
 

The Following 2 Users Say Thank You to wolke For This Useful Post:
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#4
also, `/var/lib` is just where id put my large, volatile, private, user-specific caches. truly an ideal location.
__________________
~ teleshoes ~
 

The Following 5 Users Say Thank You to wolke For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#5
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).
 

The Following 3 Users Say Thank You to reinob For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#6
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..)
 

The Following 5 Users Say Thank You to reinob For This Useful Post:
nthn's Avatar
Posts: 764 | Thanked: 2,888 times | Joined on Jun 2014
#7
Originally Posted by reinob View Post
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!
 

The Following 3 Users Say Thank You to nthn For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#8
Originally Posted by nthn View Post
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..
 

The Following 2 Users Say Thank You to reinob For This Useful Post:
nthn's Avatar
Posts: 764 | Thanked: 2,888 times | Joined on Jun 2014
#9
Originally Posted by reinob View Post
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.
 

The Following 2 Users Say Thank You to nthn For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#10
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.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 20:09.