Bug 400582

Summary: kfontinst.knsrc error message when starting discover
Product: [Applications] Discover Reporter: tom
Component: KNewStuff BackendAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: normal CC: leinir
Priority: NOR    
Version First Reported In: 5.14.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: kfontinst.knsrc error message
k3btheme.knsrc error message

Description tom 2018-11-02 10:05:28 UTC
Created attachment 116044 [details]
kfontinst.knsrc error message

SUMMARY
When I start Discover, I get the following error message: "kfontinst.knsrc: Loading of providers from file: https://distribute.kde.org/khotnewstuff/fonts-providers.xml failed" (see attachment). Despite this message, I can still install distribution packages. When I open the URL in the error message, I get the following XML:

<knewstuffproviders>
<provider downloadurl="http://download.kde.org/khotnewstuff/fonts/fonts.xml" downloadurl-score="http://download.kde.org/khotnewstuff/fonts/fonts-score.xml" downloadurl-downloads="http://download.kde.org/khotnewstuff/fonts/fonts-downloads.xml" nouploadurl="http://kde-look.org/" webaccess="http://kde-look.org/">
<title>KDE-Look.org Fonts</title>
</provider>
</knewstuffproviders>

STEPS TO REPRODUCE
1. Open Discover


SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.14.2
KDE Frameworks Version: 5.51.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION
I don't use a proxy, so this isn't an issue of network configuration.
Comment 1 tom 2018-11-02 10:15:59 UTC
Created attachment 116045 [details]
k3btheme.knsrc error message
Comment 2 tom 2018-11-02 10:19:42 UTC
Opening Discover a couple of times, I noticed that I sometimes get the original error and sometimes I get the following error "k3btheme.knsrc: Loading of providers from file: https://download.kde.org/ocs/providers.xml failed" (see second attachment). When I open the URL in the browser, I get the following XML:

<providers>
<provider>
<id>api.kde-look.org</id>
<location>https://api.kde-look.org/ocs/v1/</location>
<name>api.kde-look.org</name>
<termsofuse>https://api.kde-look.org/content/terms</termsofuse>
<register>https://api.kde-look.org/register</register>
<services>
<person ocsversion="1.6"/>
<content ocsversion="1.6"/>
</services>
</provider>
</providers>
Comment 3 Aleix Pol 2018-11-04 00:01:31 UTC
You are probably experiencing two different issues. One is the one kfontinst and the other is from k3b.

I guess we'll have to look at them separately. Ideally opening a bug to the respective projects would be useful.
Comment 4 tom 2018-11-04 10:25:28 UTC
(In reply to Aleix Pol from comment #3)
> You are probably experiencing two different issues. One is the one kfontinst
> and the other is from k3b.
> 
> I guess we'll have to look at them separately. Ideally opening a bug to the
> respective projects would be useful.

What is the correct Project for these issues? Is it frameworks-knewstuff?
Comment 5 Aleix Pol 2018-11-06 17:21:03 UTC
Both kfontinst and k3b work for me. Maybe you had bad connectivity when you tried it?
Comment 6 tom 2018-11-06 17:47:19 UTC
Starting Discover from the terminal I get the output posted below. It would point to an SSL issue, but I can access the URLs in the browser and the certificate used to sign the kde.org cert is installed (/etc/ssl/certs/COMODO_RSA_Certification_Authority.pem). The issue still persists on my end.

file:///usr/lib/qt/qml/org/kde/kirigami.2/GlobalDrawer.qml:258: TypeError: Cannot read property 'length' of undefined
file:///usr/lib/qt/qml/org/kde/kirigami.2/GlobalDrawer.qml:293: TypeError: Cannot read property 'length' of undefined
file:///usr/lib/qt/qml/org/kde/kirigami.2/GlobalDrawer.qml:292: TypeError: Cannot read property 'length' of undefined
adding empty sources model QStandardItemModel(0x560ac91a5b80)
no packages for "kid3.desktop"
no packages for "org.kde.plasma.quicklaunch"
no packages for "org.kde.plasma.grouping"
no packages for "org.kde.plasma.kimpanel"
no packages for "org.kde.discovernotifier"
no packages for "org.kde.plasma.appmenu"
no packages for "org.kde.plasma.diskquota"
no packages for "org.kde.plasma.systemloadviewer"
no packages for "org.kde.kscreen"
no packages for "org.kde.plasma.showActivityManager"
no packages for "org.kde.plasma.binaryclock"
no packages for "org.kde.plasma.activitybar"
no packages for "org.kde.plasma.timer"
org.kde.plasma.libdiscover: error loading "flatpak-backend" "Cannot load library /usr/lib/qt/plugins/discover/flatpak-backend.so: (libflatpak.so.0: cannot open shared object file: No such file or directory)" QJsonObject({"IID":"org.kde.muon.AbstractResourcesBackendFactory","MetaData":{},"className":"FlatpakBackendFactory","debug":false,"version":330498})
invalid kns backend! "/etc/xdg/servicemenu.knsrc" because: "Config group not found! Check your KNS3 installation."
invalid kns backend! "/etc/xdg/ksysguard.knsrc" because: "Config group not found! Check your KNS3 installation."
org.kde.plasma.libdiscover: Couldn't find a category for  "fwupd-backend"
error fetching QUrl("https://cdn.fwupd.org/downloads/firmware.xml.gz.asc")
failed to download QUrl("https://cdn.fwupd.org/downloads/firmware.xml.gz.asc")
org.kde.knewstuff.core: "SSL handshake failed"
kns error "/etc/xdg/kwinswitcher.knsrc" "Loading of providers from file: https://download.kde.org/ocs/providers.xml failed"
qml: message: kwinswitcher.knsrc: Loading of providers from file: https://download.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/kwineffect.knsrc" "Loading of providers from file: https://download.kde.org/ocs/providers.xml failed"
qml: message: kwineffect.knsrc: Loading of providers from file: https://download.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/emoticons.knsrc" "Loading of providers from file: https://download.kde.org/ocs/providers.xml failed"
qml: message: emoticons.knsrc: Loading of providers from file: https://download.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/xcursor.knsrc" "Loading of providers from file: https://download.kde.org/ocs/providers.xml failed"
qml: message: xcursor.knsrc: Loading of providers from file: https://download.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/plasmoids.knsrc" "Loading of providers from file: https://download.kde.org/ocs/providers.xml failed"
qml: message: plasmoids.knsrc: Loading of providers from file: https://download.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/plasma-themes.knsrc" "Loading of providers from file: https://download.kde.org/ocs/providers.xml failed"
qml: message: plasma-themes.knsrc: Loading of providers from file: https://download.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/konsole.knsrc" "Loading of providers from file: https://download.kde.org/ocs/providers.xml failed"
qml: message: konsole.knsrc: Loading of providers from file: https://download.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/colorschemes.knsrc" "Loading of providers from file: https://download.kde.org/ocs/providers.xml failed"
qml: message: colorschemes.knsrc: Loading of providers from file: https://download.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/accountwizard.knsrc" "Loading of providers from file: https://download.kde.org/ocs/providers.xml failed"
qml: message: accountwizard.knsrc: Loading of providers from file: https://download.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/wallpaper.knsrc" "Loading of providers from file: https://download.kde.org/ocs/providers.xml failed"
qml: message: wallpaper.knsrc: Loading of providers from file: https://download.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/aurorae.knsrc" "Loading of providers from file: https://download.kde.org/ocs/providers.xml failed"
qml: message: aurorae.knsrc: Loading of providers from file: https://download.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/comic.knsrc" "Loading of providers from file: https://download.kde.org/ocs/providers.xml failed"
qml: message: comic.knsrc: Loading of providers from file: https://download.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/icons.knsrc" "Loading of providers from file: https://download.kde.org/ocs/providers.xml failed"
qml: message: icons.knsrc: Loading of providers from file: https://download.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/kwinscripts.knsrc" "Loading of providers from file: https://download.kde.org/ocs/providers.xml failed"
qml: message: kwinscripts.knsrc: Loading of providers from file: https://download.kde.org/ocs/providers.xml failed
org.kde.knewstuff.core: "SSL handshake failed"
kns error "/etc/xdg/kfontinst.knsrc" "Loading of providers from file: https://distribute.kde.org/khotnewstuff/fonts-providers.xml failed"
qml: message: kfontinst.knsrc: Loading of providers from file: https://distribute.kde.org/khotnewstuff/fonts-providers.xml failed
org.kde.knewstuff.core: "SSL handshake failed"
kns error "/etc/xdg/knotes_printing_theme.knsrc" "Loading of providers from file: https://autoconfig.kde.org/ocs/providers.xml failed"
qml: message: knotes_printing_theme.knsrc: Loading of providers from file: https://autoconfig.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/lookandfeel.knsrc" "Loading of providers from file: https://autoconfig.kde.org/ocs/providers.xml failed"
qml: message: lookandfeel.knsrc: Loading of providers from file: https://autoconfig.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/ksieve_script.knsrc" "Loading of providers from file: https://autoconfig.kde.org/ocs/providers.xml failed"
qml: message: ksieve_script.knsrc: Loading of providers from file: https://autoconfig.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/korganizer.knsrc" "Loading of providers from file: https://autoconfig.kde.org/ocs/providers.xml failed"
qml: message: korganizer.knsrc: Loading of providers from file: https://autoconfig.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/ksplash.knsrc" "Loading of providers from file: https://autoconfig.kde.org/ocs/providers.xml failed"
qml: message: ksplash.knsrc: Loading of providers from file: https://autoconfig.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/sddmtheme.knsrc" "Loading of providers from file: https://autoconfig.kde.org/ocs/providers.xml failed"
qml: message: sddmtheme.knsrc: Loading of providers from file: https://autoconfig.kde.org/ocs/providers.xml failed
org.kde.knewstuff.core: "SSL handshake failed"
kns error "/etc/xdg/discover_ktexteditor_codesnippets_core.knsrc" "Loading of providers from file: http://download.kde.org/ocs/providers.xml failed"
qml: message: discover_ktexteditor_codesnippets_core.knsrc: Loading of providers from file: http://download.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/messageviewer_header_themes.knsrc" "Loading of providers from file: http://download.kde.org/ocs/providers.xml failed"
qml: message: messageviewer_header_themes.knsrc: Loading of providers from file: http://download.kde.org/ocs/providers.xml failed
kns error "/etc/xdg/k3btheme.knsrc" "Loading of providers from file: http://download.kde.org/ocs/providers.xml failed"
qml: message: k3btheme.knsrc: Loading of providers from file: http://download.kde.org/ocs/providers.xml failed
PackageKit stopped running!
Comment 7 Aleix Pol 2018-11-07 01:57:03 UTC
Please make sure you don't have something broken on your installation.
I'm not sure there's much we can do from Discover if Qt cannot connect to https.
Comment 8 tom 2018-11-07 11:20:46 UTC
I did a qt update today, now there are no more error messages and I can see the fonts and k3b themes. Closing this issue.
Comment 9 Aleix Pol 2018-11-08 01:15:46 UTC
Actually it was fixed in store.kde.org.

Glad that it works for you now! :)
Comment 10 Christoph Feck 2018-11-08 01:58:53 UTC
A similar message is displayed for Tellico (presumably only when it is installed). Should that be reported to Tellico developers or to store maintainers?
Comment 11 Aleix Pol 2018-11-08 12:07:57 UTC
tellico maintainers if they're still active.

In general this message means somebody stopped caring for their KNS integration a while ago.