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

problem: developer-mode not working anymore [answered]

asked 2015-11-27 10:27:59 +0300

thesix gravatar image

updated 2015-11-27 18:01:05 +0300

Last night all my running apps were gone. First I thought the device had rebooted for some unknown reason so I started the apps I mostly use. I noticed that battery monitor failed to predict remaining battery time (need more data it said) and left the phone running over night.

This morning it was still behaving strangely, battery monitor still complained about not having enough data. Tweetian never finished refreshing and the browser would not start. I noticed that the phone had not rebooted since lighthouse showed 22 days uptime.

I tried to start developer mode but that failed too. It said that store could not install the devel-mode app. After a reboot most apps were working normally again but I still cannot start devel-mode. I also noticed that all my apps are in a very different, random order now and one or two seem to be missing but I cannot tell which ones.

Anyone have an idea what's going on? My first guess is a file system problem but since there is no devel-mode I cannot investigate any further. Bummer.

Cheers, t.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by thesix
close date 2016-01-20 16:04:24.369629

Comments

1

There seems to be three separate issues. The failing of battery monitor, the corruption of stuff after crash and the developer mode not working. Applications do fail and it is no wonder after such a long uptime. Perhaps there is some corruption in battery monitor's files as well as the icons. Those are things that backups could help in...

Apparently the problem of not being able to install developer mode is an old bug, and a fix was promised for July or so... I just run into the same thing.

As workaround, resetting the phone to factory settings have been proposed. If you dare to do that, it would probably fix the battery monitor issue too.

mvuori ( 2015-11-27 11:30:44 +0300 )edit
1

did you enter recovery mode and try the btrfs balancing? that way you can still log into a shell and check the file system.

kryca ( 2015-11-27 17:45:03 +0300 )edit

@kryca what exactly is "recovery mode"?

thesix ( 2015-11-27 17:51:18 +0300 )edit

@mvuori battery monitor works fine since I rebooted the phone. I agree that apps can fail after some time (also they shouldn't), but three of them at the same time tells me it's not the apps. I want to take resetting to factory settings as a last, a very last resort since I do not want to go through all the setup again.

And on a side note: do you seriously consider 22days "such a long uptime"?

thesix ( 2015-11-27 17:59:24 +0300 )edit
2

recovery mode and balancing has been discussed at https://together.jolla.com/question/121197/disk-full-unable-to-delete-or-balance-read-only/, among others. recovery mode is also explained at Jolla's support site.

kryca ( 2015-11-27 18:09:09 +0300 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2015-12-16 15:10:45 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2016-01-20 02:42:32 +0300

Keto gravatar image

It's possible to enable the systemd persistent logging from the recovery mode, after which you can reboot the device, try enabling developer mode, reboot back to recovery mode and inspect the log. It's a bit of work, but could possibly help figuring out what is wrong.

NOTE: Making changes in the recovery mode is on your own responsibility and following these instructions is not recommended unless you are comfortable with working on the command line.

Mounting the root filesystem in recovery mode

So, first boot to recovry mode, enter the shell from the recovery menu and mount the rootfs

mkdir /mnt/rootfs

mount /dev/mmcblk0p28 /mnt/rootfs/

Enabling persistent logging

Then edit the journal config. AFAIK the only editor there is vi, so you need to be familiar with how that works

vi /mnt/rootfs/etc/systemd/journald.conf

Change the 'Storage' option there to Storage=persistent. (In vi, press i to get into insert mode where you can edit the content. After editing use <Esc> to leave vi insert mode and enter :wq to save the changes and quit)

Collecting the logs

After changing the journal config, exit the recovery shell, reboot the device and try to enable developer mode again. After that fails, reboot the device back to recovery mode, enter the shell and mount the rootfs like earlier. Additionally mount the home volume so that you can copy the journal log to place where it's accessible via the normal pc-connection mode or send it as email, or what not.

mount  -o  subvol=@home  /dev/mmcblk0p28 /mnt/rootfs/home/

Then enter chroot to use the journalctl tool for inspecting the log

chroot /mnt/rootfs

journalctl

You can dump the log as text file in the home directory with

journalctl > /home/nemo/journal.txt

chown nemo /home/nemo/journal.txt

Look for errors around installing the jolla-developer-mode package, and if there doesn't seem to be anything obvious, please attach the log file to a jolla care ticket. Attaching it here is not advised as it might contain personal information.

Fixing the "ssu release=latest" issue

If the logs contain package installation error messages with something like

File '....' not found on medium 'https://releases.jolla.com/releases/latest/jolla/armv7hl/'

it means that the SSU release on the device is set incorrectly to 'latest'. It should be set to the currently installed OS version.

To fix this from the recovery mode, you need to mount the rootfs like earlier and edit the ssu.ini file

vi /mnt/rootfs/etc/ssu/ssu.ini

Locate the line release=latest and change it to release=2.0.0.10, where 2.0.0.10 should be the version of the OS that is currently installed. Save changes, exit recovery shell and reboot the device.

edit flag offensive delete publish link more

Comments

Thanks for the precise instructions you gave and sorry for taking so long to dig deeper. IMHO the following line that I could find in the log points into the right direction:

Jan 18 17:48:41 Jolla [1879]: [D] Package::InstallTransactionPkgKit::giveUpOrRetry:222 - void Package::InstallTransactionPkgKit::giveUpOrRetry(const QString&) "File './core/armv7hl/info-4.13a-1.1.4.armv7hl.rpm' not found on medium 'https://releases.jolla.com/releases/latest/jolla/armv7hl/'

Don't know if the following line has any meaning (that happens 20 secs before the above event):

Jan 18 17:48:20 Jolla estart[1188]: [W] unknown:224 - file:///usr/share/jolla-settings/pages/developermode/developermode.qml:224: Error: Insufficient arguments
thesix ( 2016-01-18 19:14:42 +0300 )edit

That indeed tells us what is wrong, something has changed the ssu release to 'latest'. See this question for more info.

To fix this from the recovery mode, you need to mount the rootfs like earlier and edit the ssu.ini file

vi /mnt/rootfs/etc/ssu/ssu.ini

Locate the line release=latest and change it to release=2.0.0.10

Keto ( 2016-01-18 20:38:14 +0300 )edit

Heureka! Developer-mode is working again! Thanks for your patience :) And what a strange thing that has happened here ...

thesix ( 2016-01-19 10:18:34 +0300 )edit

Thanks! I had the same problem. Did a btrfs fi rebalance home first. that helped nothing. Next I changed the ssu.ini release entry as described here since it also read 'latest'. After a proper reboot developer mode is back in town. yipppieh.

lumus ( 2016-01-20 01:37:09 +0300 )edit
0

answered 2015-12-16 18:40:12 +0300

Giskard gravatar image

if you can install other apps from the store, try sailfish utilities. it adds a setting that allows to restart services and to reset the app registry in case of similar problems. it worked for me when I had an issue like yours

edit flag offensive delete publish link more

Comments

Thanks for pointing me to sailfish utilities. Installed that and reset the package cache (upon that the phone rebooted. Is this normal behaviour?). Still no developer mode :(

thesix ( 2016-01-18 19:16:04 +0300 )edit

Question tools

Follow
2 followers

Stats

Asked: 2015-11-27 10:27:59 +0300

Seen: 2,133 times

Last updated: Jan 20 '16