We have moved to a new Sailfish OS Forum. Please start new discussions there.
4

[help] My jolla slowly dying [answered]

asked 2016-02-02 11:44:25 +0300

Xurb gravatar image

updated 2016-02-03 00:42:53 +0300

Hello all, I need a community help. My jolla slowly dying and I do not know what to do. It has begun few month ago with a lot of led blinking, random freezing, app crashing etc etc...

3 weeks ago I reset it to factory configuration but now it's even worse than before. I can't enable repo on open wharehouse, the app crahs and all my previous repo enable are vanished. with the madia player and QuasarMx I randomly have my music gone. this morning I would stop the weather overlay from Coderus I have done it several time it's keep comming back again and again. All apps crash ramdomly. I keep having the app library error notification even if I use the utility. One last thing the other day when when I have reset it to factory the phone generate a lot of (null) files.

Please help me, I love my phone, I just want to learn how to fix it. Thank a lot

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Xurb
close date 2016-02-04 10:29:49.151369

Comments

1

I have the same issue, but my phone is at the point where i can't even make a new password in development mode. it doesn't save.. So i can't run devel-su :(

JoneK ( 2016-02-03 01:00:17 +0300 )edit

1 Answer

Sort by » oldest newest most voted
5

answered 2016-02-02 11:57:14 +0300

t-lo gravatar image

Could you please enable developer mode (settings app -> developer mode), open a terminal, and issue:

devel-su

(enter the password you configured for developer mode), then run

btrfs fi show

as well as

brtfs fi df /

and past the output of both commands here?

Also, after running those, please collect the latest system messages (also on the terminal in developer mode):

journalctl -n 1000 -m

and get back to us with the output.

All commands should be safe to run w/o side effects.

edit flag offensive delete publish link more

Comments

-_- I can't manage to copy message from terminal, I feel really dumb...

Xurb ( 2016-02-02 12:09:18 +0300 )edit

@Xurb an easy way to do this is to SSH into your Jolla instead of opening a terminal (you can see the IP address in Settings -> Developer Mode) and then go on from there.

t-lo ( 2016-02-02 12:15:38 +0300 )edit

I can't connect my phone in SSH right now we have to wait this eve'...

Xurb ( 2016-02-02 12:26:00 +0300 )edit

Does it say 'size 13.75GiB used 13.75 GiB'? That's the important part.

nthn ( 2016-02-02 14:26:25 +0300 )edit

Yup! you're right nthn that's what the first command line say whereas the phone say 11gigs of 13gigs... weird!

Xurb ( 2016-02-02 16:32:17 +0300 )edit

here are both of the output:

[nemo@Jolla ~]$ devel-su
Password:
[root@Jolla nemo]# btrfs fi show
ERROR: unable get label Inappropriate ioctl for device
Label: 'sailfish'  uuid: 0f8a2490-53ed-4ff6-ba34-b81df3430387
        Total devices 1 FS bytes used 10.97GiB
        devid    1 size 13.75GiB used 13.75GiB path /dev/mmcblk0p28

Btrfs v3.16
[root@Jolla nemo]# btrfs fi df /
Data, single: total=13.01GiB, used=10.73GiB
System, DUP: total=40.00MiB, used=4.00KiB
System, single: total=4.00MiB, used=0.00
Metadata, DUP: total=330.00MiB, used=245.25MiB
Metadata, single: total=8.00MiB, used=0.00
[root@Jolla nemo]#

I got the third line output as well, do you want me to past it?

Xurb ( 2016-02-02 21:20:36 +0300 )edit
1

Alright, you can fix this by:

  • moving (a bunch of) (big) files to the SD card to free space
  • after doing that, in the terminal, use the commands 'devel-su', enter the password, and then 'btrfs-balancer balance'.

Once that command finishes, you can check again what 'btrfs fi show' tells you, and the 'used' amount should be lower, hopefully by a lot, than before.

nthn ( 2016-02-02 21:46:45 +0300 )edit

lol new problem a brand brand new one I can't delete files -_-'

Xurb ( 2016-02-02 23:16:40 +0300 )edit

Ok, "btrfs-balancer balance" done I got now 11G for 13Go and in used I got 8G for 10G... Still weird because I only have 300Mo of picture and few documentation... Hope you could help me all tomorrow. Thank a lot nthn my phone re-work better the before but still some things I don't understand.

Xurb ( 2016-02-03 00:39:38 +0300 )edit

@Xurb if you ssh into the device and then do:

 devel-su
 cd /home/nemo/.local/share/system/privileged/
 du --si -c .

what does it say? It's possible that a database corruption or something is causing data to duplicate.

You can also do the same under /var to see if you have a lot of cached packages which can be cleaned up.

chris.adams ( 2016-02-03 06:23:38 +0300 )edit

@Xurb Thank you for running those commands! No, you don't need to post the ~1000 lines of log output of the third command for now. Your phone seems to be suffering from a combination of two issues:

  1. something is filling up your device's storage
  2. BTRFS, the file system used for the internal storage, is known to misbehave when filled up. Note that BTRFS needs 2 GB - 4 GB "spare" space for its operation - this is a trade-off that allows this file system to be really fast and at the same time prevents flash wear-down.

Now what?

You seem to have fixed issue 2. already by issuing a re-balance (i.e. free all of the "spare" space that's not really needed right now). Let's drill down on issue 1. @chris.adams already provided valuable advice; I'd like to offer an alternative, more interactive, use of the du command.

Before we start I'd like you to remove the sd-card from the phone (should you use one). This will ease the following steps; the device file system is mounted several times w/ several partitions - and we'd like to cover them all (i.e. we can't use du -x). However, we do not want to cover files stored on the sd-card.

OK, here we go. The following steps assume you already issued devel-su. First, go to the top level directory

cd /

Now, let's see how much space the top level directories are occupying. Issue

[root@Jolla /]# du --max-depth=1 -h . 2>/dev/null

and you will get something like (output abbreviated):

2.4G    ./home
88K     ./dev
...
7G     ./opt
76K     ./root
...
3.8G    ./data
...
0       ./config
14.7 G    .

Don't worry about the seemingly too large total size at the bottom - du gets confused by the same BTRFS partition being mounted several times across the device. We're not interested in totals but in space occupied by individual folders. Now, /home has your data/media files, /opt has aliendalvik (Android runtime) and all its data, which is partially re-mounted at /data.

t-lo ( 2016-02-03 10:08:31 +0300 )edit

Question tools

Follow
1 follower

Stats

Asked: 2016-02-02 11:44:25 +0300

Seen: 1,417 times

Last updated: Feb 03 '16