Sailfish Core Apps do not work after Update to Sailfish 4.0.1.45 (sandboxing problem?)

I have a problem with jolla-clock only, and I was able to start it from terminal. Still does not work from application grid :frowning:

In journal I found an entry which probably shows the rootcause:

[sailjail] ERROR: No section for /usr/bin/jolla-clock in /usr/share/applications/jolla-clock.desktop

then few lines later:

Activated service 'com.jolla.clock' failed: Process com.jolla.clock exited with status 2

and the next line:

Process com.jolla.clock exited with status 2

Meaning that some configuraion has not been made during installation because of external changes in desktop file (dynclock).

Unfortunately update code does not start again for reinstallation of package.

Anybody: could you please show the content of updated /usr/share/applications/jolla-clock.desktop file?

And information for Jolla: please update upgrade guide to remove dyncal and dynclock packages.

1 Like

What about?
devel-su pkcon install --allow-reinstall jolla-clock

(cannot give desktop file content, still 3.2)

3 Likes

Looks like working solution.
Solved for me.

Zypper reinstallation did not help. pkcon did the job. Quite strange.

Thank you.

Worked for me. :slight_smile: :+1:

Hello, in my case, a reinstall did not help. However, I was able to get the gallery-app started by modifying the *desktop file
The original looks like this:

I got it working with:
Exec=usr/bin/jolla-gallery

I don’t know whether this does break the sailjail process or does any other harm.
at least it works somehow.

Brilliant. Thank you @peterleinchen Had same issue here on XA2.

Had removed dyncal and dynclock entries but neither Clock or Calendar App would work. Using pkcon to reinstall jolla-clock and jolla-calendar solved this for me too. Many thanks.

I had the same problem with

  • phone
  • browser
  • gallery
  • calendar

(Messages and clock worked, others I did no try.)

I run journalctl -f as root and watched the log entries when starting the browser. firejail complained about /etc/hosts. Right, my /etc/hosts was a link to a file downloaded from https://github.com/StevenBlack/hosts

After restoring the original /etc/hosts file the problem is gone for the 4 affected applications.

P.S. It has already been reported that the browser does no longer obey such modified /etc/hosts files, I haven’t looked into the solution given there yet.

1 Like

Thanks for the tip @ugeuder ! I had also a modified etc/hosts . Restoring the original etc/hosts however didn’t really help (but that may also be a result of my modification of the *dekstop files to get the apps working).

Hello, for me it also complained in the journalctl log that “[sailjail] ERROR: no section for jolla-clock in /usr/share/applications/jolla-clock.desktop”
And it’s launched via invoker -s --type=silica-qt5

I tried to reinstall or to change the line by sailjail -p one to no avail…
BUT changing the line to sailjail -p xxx (in clock and calendar) and THEN reinstalling the app worked.

I guess it may be dyncal and dynclock which had messed with sailjail ?
Is sailjail new to the last update ? Is it the thing that asks for permissions ? What is the expected Exec= for clock and calendar ?

Dyncal/clock altered .desktop files and update wasn’t prepared to update changed files.
Yes, sailjail is new in 4.x, and is an attempt to provide sandboxing in SFOS (sailfish layer for firejail).

Dear ugeuder,

I have the same problem here (custom /etc/hosts from the web, but as a static file). I already copied back the original /etc/hosts file and also did a reboot, but I still get the log error:

Mär 03 19:21:00 Sailfish lipstick[2530]: constructing /run/firejail/mnt/privileged: eas-sailfish,Accounts,Keys,Contacts,autofill ...
Mär 03 19:21:00 Sailfish lipstick[2530]: mounting /run/firejail/mnt/privileged @ /home/nemo/.local/share/system/privileged
Mär 03 19:21:00 Sailfish lipstick[2530]: hiding /run/firejail/mnt/privileged
Mär 03 19:21:00 Sailfish lipstick[2530]: Error fcopy: invalid file /etc/hosts
Mär 03 19:21:00 Sailfish lipstick[2530]: Error: failed to run /run/firejail/lib/fcopy
Mär 03 19:21:00 Sailfish lipstick[2530]: Error: proc 12890 cannot sync with peer: unexpected EOF
Mär 03 19:21:00 Sailfish lipstick[2530]: Peer 18477 unexpectedly exited with status 1

I can run the apps manually from the terminal without the sandbox, but then the phone app does not have any access to the contacts, I only see the numbers, and the mail program is also empty.
Any hints on how to solve this without a complete flash? This is very anoying, as I can’t even take an incomming call, I have to wait for them to hang up, check the number in the notifications and then call them back from a different phone.

Thanks!

Would you please post output of
ls -al /etc/hosts*
and
readlink /etc/hosts
?

Sure, thanks for the quick reply:

ls -al /etc/hosts*
-rw-r--r--    1 nemo     nemo            83 Feb 24 15:06 /etc/hosts
-rw-r--r--    1 root     root            83 Jul  3  2019 /etc/hosts.backup
-rw-r--r--    1 root     root        432936 Dec  2 18:07 /etc/hosts.backup.2
-rw-r--r--    1 root     root        337823 Feb 24 15:06 /etc/hosts.custom


readlink /etc/hosts

So readlink does not return anything, hosts.backup is the backup of the original file which I restored to the hosts file and the other two are different versions of a custom hosts file.

And here we go

Issue a
devel-su chown root:root /etc/hosts
and you are good to go…

Thanks a lot! (To be honest, that was to easy, could have come up with that myself)

I have similari trouble but after applying the fix for phone call recordings. Have you sorted out without reset?

How to restore original hosts file?

I am pretty sure the modified hosts file is not affecting the core applications.

But
devel-su echo -e '0.0.0.0 localhost localhost.localdomain\n::1 localhost6 localhost6.localdomain6'

After some checks I found that a failed application of the official fix for the

Similar behaviour, native clock app.
Tabbed the app, animation to inform user: OK, I am starting… circle… nothing happens :unamused:.
Restarted the phone. Multiple times :wink:. So far, no terminal or scripting involved.

Whatever happened, clock started again, one day or the other. I set an alarm, with repetitions (never did that before). Clock seems to be working fine again. At least, app starts immediately. Maybe this helps.

Running SF OS 4.3.0.12 on Sony Xperia XA2 + Android support. Using the native clock app from Jolla store.