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

Developer mode not loading [answered]

asked 2014-04-04 15:12:35 +0200

jmsaaren gravatar image

updated 2014-10-08 16:02:51 +0200

dsilveira gravatar image

First of all I have a basic setup: No extra repos, no android apps and no special configuration. I have only enable the developer mode for terminal access.

The topic describes only the last problem. This started with opening multiple apps (store, terminal, email and such. 6 in total which is quite many what I usually do). I guess that the phones window manager (wayland?) crashed. The screen went black and the green led blinked a few times (three?). After this the aplication screen came back with all apps killed. After playing to see if everything was ok I went to the store which proudly presented the message "You have no apps installed". I played some more to check what caused the crash. The only thing that I noticed was that I just got a mail (nothing special, 37kb). Then I checked the mail contents and it crashed immediately again. I did this a few times to get the feeling that the crash is either originating from the mail or memory. After some testing I also noticed that the keyboard was not coming up.

So, I restarted the phone. After this the keyboard and the mail worked just fine but I'm still getting the "you have no apps" message. Because I just happened to read about this I knew what to do.

So, I went to the developer mode. It loaded but didn't get anywhere. The small bars were going forward (some times there is no bars at all) but didn't get anywhere. Some times it brings the "Register", "Username" and "password" question but answering that didn't help. I can get the menu again by poking around the loading bar which is still loading.

The question is how to start solving the problems?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by simo
close date 2014-10-08 21:35:55.162059

Comments

I would be inclined to reset and start OS updates again. Don't add apps from Jolla store as you do the OS updates, do all that once you have finished fully updating OS. Just my opinion and from a little experience. Often it will take longer to track down and try to fix problems, in which time you could have reset and started fresh. When I updated to 1.0.4.2 I was not aware of disabling certain repos, as a result, my jolla was virtually unusable. There are plenty of threads on 'methods' of updating your OS cleanly.

Spam Hunter ( 2014-04-05 15:40:50 +0200 )edit
1

That is what I'll most probably do. It would be interesting to hear what might cause Sailfish to lose it's ability to have root access.

jmsaaren ( 2014-04-05 18:22:28 +0200 )edit

edit: I made a new question with the title: Bug: Can not enable developer mode

After updating to the last release Tahkalampi 1.0.8.19 I got frustrated with the buggy, sluggish and non existing performance of my Jolla and decided to revert to factory settings after backing up everything to a memory card.

The good part: After factory reset I downloaded and installed the (3?) suggested updates and got back my smoothly performing Jolla. Nice!

The bad part 1: I needed to re install all the applications, even the ones installed from Jolla store.

The bad part 2: I wanted to install the Google Play to get back by applications that are only there. (why can't there be a guided application for installing Google Play? Not everybody wants to toy around with this either.) But to install Google Play, you need to enable developer mode. That just does not happen. reproducable? every time Network: both 3g and WLAN, verify connection at Jolla Store release: 1.0.8.19 language: Finnish Steps to reproduce: 1. Go to settings -> developer mode -> development tools -> Developer mode ->accept terms 2. Screen title "developer tools". Watch the endless row of little worms making their way to the right side of the screen, with text "enabling developer mode" 3. Watch a progress bar reach 2/3 of the destination. then get stuck 4. after about 1 minute, quick message on top:"problem at store: installation failed: jolla-developer-mode" 5. swiping from the bottom you find notification: Problem with installation: 1 minute ago jolla-developer-mode 6. you tap on the notification, you get: Screen title: store, package jolla-developer-mode can not be found from Store.

futher more; At settings -> developer mode -> development tools: SSU -> allow development updates, it will ask you to register your username and password, but nothing happens after that. You can do that over and over again, but when returning to Developer Tools, you don't have it highlighted,

I strongly suggest an update that would make a clean install of everything without losing all the good stuff that is already installed. Should be smart enough to have the information of previous app installations. I'm sure there are many many Jolla users out there that are not prepared to toy around with their poorly performing device and are ready to try something else. My wife being one of them. I suspect that there are many that we are not hearing from.

peinu ( 2014-07-28 16:12:49 +0200 )edit

Now February and I have the same problem attempting to enable developer mode and "store" message, All I need is a terminal/command line tool. I have spent too much time is installing apps etc to contemplate a factory reset. At least not until an equivalent of n900 backup appears. Is this a phone or Jolla repository problem?

The answers below need a terminal

cpcompany ( 2015-02-12 23:33:38 +0200 )edit

2 Answers

Sort by » oldest newest most voted
7

answered 2014-04-06 16:01:31 +0200

Philippe De Swert gravatar image

Go to a shell using recovery mode: http://www.thejollablog.com/jolla-recovery-mode/

Follow the instructions to mount the rootfs and chroot (under hacks failed header)

Then do the following:

# cd /var/lib/rpm
# rm -f __db.00*
# rpm --rebuilddb
# reboot

With a bit of luck you should be able to install apps etc again.

I also hope you did not touch the allow developer updates option. (It should not be touched and the text is misleading to be honest)

edit flag offensive delete publish link more

Comments

This answer actually solved two of the problems:

1) Store works again.

2) Developer mode works again. I still wonder why this is. Why would a "developer mode" be dependent on repos? Bug or feature?

This of course makes one additional problem: The shell requires to answer the "If you continue, this may void your warranty."- question but that is for another question.

And no. I did not touch "developer updates" because I had a feeling what it does and I felt that it was undesirable.

jmsaaren ( 2014-04-07 01:55:50 +0200 )edit
1

Well developer mode requires extra software, so it uses the repos indeed. And what you suffered from is rpm database corruption. You did not loose root or anything btw ;)

Good you did not touch developer updates, although some issues with it should have been fixed so it would not cause the chaos it did in the past. But in short. As end user it is not something useful to you.

And take into account the word "MAY". This is legalize to cover Jolla in case you would try something insane that would physically damage your HW. (Here we are thinking overclocking, disabling thermal limiting, mess with the charging to make it explode, ...)

Philippe De Swert ( 2014-04-07 16:32:08 +0200 )edit

I have followed this procedure to rebuild the rpm db, but I had this error:

bash-3.2# cd /var/lib/rpm
bash-3.2# rm -f __db.00*
bash-3.2# rpm --rebuilddb
error: cannot open Packages index using db4 - No space left on device (28)
error: failed to remove directory /var/lib/rpmrebuilddb.230: Directory not empty

Anyone know how to resolve this issue? It's safe to manual remove the directory /var/lib/rpmrebuilddb.230 ?

Thank you

deedend ( 2014-10-16 16:43:28 +0200 )edit

I have resolved the issue with this command (taken from an answer of this question):

btrfs fi balance /home

now it works, and I can copy the files I need to sd and make a full reset! Maybe this could be useful if someone encuonters the same problem

deedend ( 2014-10-16 17:08:46 +0200 )edit

Philippe, not related to this, but I couldn't link your nick as you have spaces in it. Could you check: https://together.jolla.com/question/98778/11627-problem-with-store-cant-update/?comment=102175#comment-102175

simo ( 2015-07-22 23:32:17 +0200 )edit
0

answered 2014-10-09 13:51:26 +0200

nix gravatar image

updated 2014-10-09 13:53:52 +0200

Just had the similar issue. When I started Jolla store got a message like "database damaged", then "the screen went black and the green led blinked a few times". After that, the keyboard dissapeared and in Jolla store I had no applications installed. After reboot evething seemed ok, and the phone wokred for some time as normal, but I found that:

[root@Jolla nemo]# btrfs fi show
Label: 'sailfish'  uuid: 86180ca0-d351-4551-b262-22b49e1adf47
        Total devices 1 FS bytes used 5.74GB
        devid    1 size 13.75GB used 13.75GB path /dev/mmcblk0p28

Btrfs v0.20-rc1

I ran

[root@localhost nemo]# btrfs fi balance /home

and got:

[root@Jolla nemo]# btrfs fi show
Label: 'sailfish'  uuid: 86180ca0-d351-4551-b262-22b49e1adf47
        Total devices 1 FS bytes used 5.74GB
        devid    1 size 13.75GB used 9.13GB path /dev/mmcblk0p28

Btrfs v0.20-rc1

Still cant understand why this happened and did it really completly solved all the problems...

edit flag offensive delete publish link more

Question tools

Follow
8 followers

Stats

Asked: 2014-04-04 15:12:35 +0200

Seen: 2,144 times

Last updated: Oct 08 '14