It all began with the install of this (Hosts Adblock | OpenRepos.net — Community Repository System). Since that didn’t work, I uninstalled the package with “pkcon remove sailfishos-hosts-adblock” and restored the original hosts (then i rebooted).
Now Jolla Email, the browser and the calendar no longer start.
The commands sent via ssh result in the following:
[nemo@XA2Plus ~]$ sailfish-browser %U
[D] unknown:0 - Using Wayland-EGL
greHome from GRE_HOME:/usr/bin
libxul.so is not found, in /usr/bin/libxul.so
Created LOG for EmbedLiteTrace
[D] onCompleted:105 - ViewPlaceholder requires a SilicaFlickable parent
Created LOG for EmbedLite
Created LOG for EmbedPrefs
[nemo@XA2Plus ~]$ jolla-email
[D] unknown:0 - Using Wayland-EGL
greHome from GRE_HOME:/usr/bin
libxul.so is not found, in /usr/bin/libxul.so
Created LOG for EmbedLiteTrace
** (process:9709): WARNING **: 14:36:29.433: Cannot create directory: /home/nemo/.local/share/system/privileged/Accounts/libaccounts-glib
** (process:9709): WARNING **: 14:36:29.435: Error opening accounts DB: unable to open database file
[W] unknown:0 - Manager could not be created, DB is locked
** (process:9709): CRITICAL **: 14:36:29.436: ag_manager_set_abort_on_db_timeout: assertion 'AG_IS_MANAGER (manager)' failed
[D] unknown:0 - Messaging : opening database
** (process:9709): CRITICAL **: 14:36:29.456: ag_manager_list_by_service_type: assertion 'AG_IS_MANAGER (manager)' failed
** (process:9709): CRITICAL **: 14:36:29.460: ag_manager_list_by_service_type: assertion 'AG_IS_MANAGER (manager)' failed
[D] onCompleted:140 - PulleyAnimationHint requires a SilicaFlickable parent
Created LOG for EmbedLite
Created LOG for EmbedPrefs
after that all Mail accounts was deleted
ldd /usr/bin/jolla-email does find all libs.
[nemo@XA2Plus ~]$ jolla-calendar
[D] unknown:0 - Using Wayland-EGL
[W] unknown:0 - Unable to create calendar database directory: "/home/nemo/.local/share/system/privileged/Calendar/mkcal"
[W] unknown:0 - sqlite3_open error: 14 on database "/home/nemo/.local/share/system/privileged/Calendar/mkcal/db"
[W] unknown:0 - unable to open database file
→ but only opened the calendar on the mobile phone via this shell command - without data, because all accounts were deleted before. It does not start via GUI here either.
Leszek Lesner’s filecat also no longer starts. But that can also have other reasons.
[root@XA2Plus ]# harbour-filecat
error: XDG_RUNTIME_DIR not set in the environment.
[C] unknown:0 - Failed to create display (No such file or directory)
Before, since the update, everything worked. What should I do now? Is it possible to install libxul.so?
Be careful when installing things from OpenRepos. If they are old, like Hosts Adblock which had its last release in 2016, they might mess up things. I have looked at the package, and it should be harmless. It’s just general advice.
Now all native non-launching apps have the same error message.
[root@XA2Plus nemo]# sailfish-browser %U
error: XDG_RUNTIME_DIR not set in the environment.
[C] unknown:0 - Failed to create display (No such file or directory)
[root@XA2Plus nemo]#
[root@XA2Plus nemo]# jolla-email
error: XDG_RUNTIME_DIR not set in the environment.
[C] unknown:0 - Failed to create display (No such file or directory)
[root@XA2Plus nemo]#
[root@XA2Plus nemo]# jolla-calendar
error: XDG_RUNTIME_DIR not set in the environment.
[C] unknown:0 - Failed to create display (No such file or directory)
[root@XA2Plus nemo]#
devel-su “Program” is a start-up with root rights. For me, it’s the same as running everything directly in the root environment. Is there a difference? Ups, i’ve forgotten the -p Parameter. I make a new return - sorry
[nemo@XA2Plus ~]$ devel-su -p jolla-email
Password:
Enjoy your privileges.
[D] unknown:0 - Using Wayland-EGL
greHome from GRE_HOME:/usr/bin
libxul.so is not found, in /usr/bin/libxul.so
Created LOG for EmbedLiteTrace
[D] unknown:0 - Messaging : opening database
Created LOG for EmbedLite
Created LOG for EmbedPrefs
[nemo@XA2Plus ~]$
Result: My email account overview page starts on the mobile phone with all accounts.
[nemo@XA2Plus ~]$ devel-su -p jolla-calendar
Password:
Enjoy your privileges.
[D] unknown:0 - Using Wayland-EGL
[D] unknown:0 - Messaging : opening database
[D] unknown:0 - Default plugin: account "44" do not have a valid email address
[W] unknown:0 - Default account was not found!
[W] unknown:0 - not loading "NBUID:91f5f94e-2cb8-452e-a0cd-dadfb305afc7:77f5523c-0674-4a49-b1a6-1026d40117e2" "91f5f94e-2cb8-452e-a0cd-dadfb305afc7" (invalidated notebook)
[W] unknown:0 - not loading "NBUID:91f5f94e-2cb8-452e-a0cd-dadfb305afc7:7084d304-7196-457a-a159-7a4e0c7ec177" "91f5f94e-2cb8-452e-a0cd-dadfb305afc7" (invalidated notebook)
[W] unknown:0 - not loading "NBUID:91f5f94e-2cb8-452e-a0cd-dadfb305afc7:41c82fab-9693-4f33-ad32-047e0a943982" "91f5f94e-2cb8-452e-a0cd-dadfb305afc7" (invalidated notebook)
[W] unknown:0 - not loading "NBUID:91f5f94e-2cb8-452e-a0cd-dadfb305afc7:77f5523c-0674-4a49-b1a6-1026d40117e2" "91f5f94e-2cb8-452e-a0cd-dadfb305afc7" (invalidated notebook)
[W] unknown:0 - not loading "NBUID:91f5f94e-2cb8-452e-a0cd-dadfb305afc7:7084d304-7196-457a-a159-7a4e0c7ec177" "91f5f94e-2cb8-452e-a0cd-dadfb305afc7" (invalidated notebook)
[W] unknown:0 - not loading "NBUID:91f5f94e-2cb8-452e-a0cd-dadfb305afc7:41c82fab-9693-4f33-ad32-047e0a943982" "91f5f94e-2cb8-452e-a0cd-dadfb305afc7" (invalidated notebook)
[W] unknown:0 - not loading "NBUID:91f5f94e-2cb8-452e-a0cd-dadfb305afc7:77f5523c-0674-4a49-b1a6-1026d40117e2" "91f5f94e-2cb8-452e-a0cd-dadfb305afc7" (invalidated notebook)
[W] unknown:0 - not loading "NBUID:91f5f94e-2cb8-452e-a0cd-dadfb305afc7:7084d304-7196-457a-a159-7a4e0c7ec177" "91f5f94e-2cb8-452e-a0cd-dadfb305afc7" (invalidated notebook)
[W] unknown:0 - not loading "NBUID:91f5f94e-2cb8-452e-a0cd-dadfb305afc7:41c82fab-9693-4f33-ad32-047e0a943982" "91f5f94e-2cb8-452e-a0cd-dadfb305afc7" (invalidated notebook)
[nemo@XA2Plus ~]$
Result: My calendar starts with all its CalDav appointments on the mobile phone
devel-su serves to switch user ID or groups of the user calling it.
Without arguments, it switches to root. With -p, it switches only the groups of the current user, adding the privileged group. This enables the current session to access things like the contacts or accounts databases.
Which is why I wrote privileged, not root permissions.
Soo, your apps do work as expected when run this way, but still do not work when lauched normally (by tapping the icon)?
The first thing I’d try is:
As user:
$ ssu re
$ cat /etc/os-release
$ cat /etc/sailfish-release
And confirm that you’re actually on the correct release. If any of the versions do not match up do NOT do the below, and do not install or upgrade any packages from anywhere.
Thanks for the info on the -p argument. Learned something again. And no - they don’t start via gui. I will try your suggestion
Everything looked fine on the first block:
[nemo@XA2Plus ~]$ ssu re
WARNING: ssu.ini does not seem to be writable. Setting values might not work.
Device release is currently: 4.5.0.16
[nemo@XA2Plus ~]$ cat /etc/os-release
NAME="Sailfish OS"
ID=sailfishos
VERSION="4.5.0.16 (Struven ketju)"
VERSION_ID=4.5.0.16
PRETTY_NAME="Sailfish OS 4.5.0.16 (Struven ketju)"
SAILFISH_BUILD=16
SAILFISH_FLAVOUR=release
HOME_URL="https://sailfishos.org/"
[nemo@XA2Plus ~]$ cat /etc/sailfish-release
NAME="Sailfish OS"
ID=sailfishos
VERSION="4.5.0.16 (Struven ketju)"
VERSION_ID=4.5.0.16
PRETTY_NAME="Sailfish OS 4.5.0.16 (Struven ketju)"
SAILFISH_BUILD=16
SAILFISH_FLAVOUR=release
HOME_URL="https://sailfishos.org/"
With the second block (devel-su pkcon refresh performed), I preferred to stop here - should I continue there?
[nemo@XA2Plus ~]$ devel-su pkcon update
Password:
Updates are retrieved
Ready
Software list is updated
Changes are tested
Done [ ] (0%)
The following packages need to be installed:
sfos-upgrade-3.9.17-release9.noarch Scripts for fail-safe upgrading of SailfishOS at the command line with logging
Continue with changes? [N/y] n
First I renewed the system via GUI 4 days ago (4.4.0.72 → 4.5.0.16).
And yesterday I did an sfos-upgrade --verify, which also installed something (harbour-audio-output 0.3.0+master.20220103211640.1.gd0d5845-1), but did not fix the error.
Now, i have updated the system - but the error is still there.
By the way, there are several native apps that do not start. I’ll list a few (no guarantee of completeness):
sailfish-browser, jolla-email, jolla-gallery, harbour-nofono, harbour-fernschreiber (german native Telegram client), jolla-calendar, harbour-tooter and harbour-filecat.
Ah, nice, that would explain lots of the failures and matches with the installation and deinstallation of Hosts Adblock which copies around /etc/hosts.
The correct permissions are 0644 root:root /etc/hosts, what is it on your system?