Bug 374279 - Since AppStream 0.10.5, plasma-discover indicates that AppStream is not correctly setup
Summary: Since AppStream 0.10.5, plasma-discover indicates that AppStream is not corre...
Status: RESOLVED UPSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-29 10:01 UTC by Raymond Wooninck
Modified: 2018-08-31 15:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raymond Wooninck 2016-12-29 10:01:55 UTC
At startup of plasma-discover the below log is shown. In there I believe this might be important errors:
- Could not open the AppStream metadata pool
- ProviderManager::authenticate: No authentication credentials provided, aborting. "http://api.kdelook.org/v1/content/categories"

I am not sure if the AppStream metadata pool is related to the update to AppStream 0.10.5. It also shows a message in plasma-discover itself to ensure that AppStream is setup correctly. Previously with 0.10.3 this message wasn't shown. The upgrade was done as that plasma-desktop now requires at least 0.10.4

With regards to the api.kdelook.org, it seems as if the link is wrong. Trying to access the link it gives me a login box, but my opendesktop credentials does not work there. Changing the link to "https://api.kde-look.org/ocs/v1/content/categories", gives me an xml file of the available categories. 

Full log when starting plasma-discover:

tittiatcoke@HQVMT44011:~% plasma-discover
invalid kns backend! "/etc/xdg/ksysguard.knsrc" because: "Config group not found! Check your KNS3 installation."
invalid kns backend! "/etc/xdg/servicemenu.knsrc" because: "Config group not found! Check your KNS3 installation."
Could not open the AppStream metadata pool
Discarding invalid backend "ksysguard.knsrc"
Discarding invalid backend "servicemenu.knsrc"
org.kde.knewstuff.core: Redirected to  "https://autoconfig.kde.org/ocs/providers.xml" ...
org.kde.knewstuff.core: Redirected to  "https://autoconfig.kde.org/ocs/providers.xml" ...
org.kde.knewstuff.core: Redirected to  "https://autoconfig.kde.org/ocs/providers.xml" ...
org.kde.knewstuff.core: Redirected to  "https://autoconfig.kde.org/ocs/providers.xml" ...
org.kde.knewstuff.core: Redirected to  "https://autoconfig.kde.org/ocs/providers.xml" ...
org.kde.knewstuff.core: Redirected to  "https://autoconfig.kde.org/ocs/providers.xml" ...
org.kde.knewstuff.core: Redirected to  "https://autoconfig.kde.org/ocs/providers.xml" ...
org.kde.knewstuff.core: Redirected to  "https://autoconfig.kde.org/ocs/providers.xml" ...
org.kde.knewstuff.core: Redirected to  "https://autoconfig.kde.org/ocs/providers.xml" ...
org.kde.knewstuff.core: Redirected to  "https://autoconfig.kde.org/ocs/providers.xml" ...
org.kde.knewstuff.core: Redirected to  "https://autoconfig.kde.org/ocs/providers.xml" ...
org.kde.knewstuff.core: Redirected to  "https://autoconfig.kde.org/ocs/providers.xml" ...
org.kde.knewstuff.core: Redirected to  "https://autoconfig.kde.org/ocs/providers.xml" ...
org.kde.knewstuff.core: Redirected to  "https://autoconfig.kde.org/ocs/providers.xml" ...
ProviderManager::authenticate: No authentication credentials provided, aborting. "http://api.kdelook.org/v1/content/categories"
org.kde.knewstuff: engine error "Network error. (5)"
kns error KNSBackend(0x1c23a10, name = "/etc/xdg/k3btheme.knsrc") "Network error. (5)"
ProviderManager::authenticate: No authentication credentials provided, aborting. "http://api.kdelook.org/v1/content/categories"
ProviderManager::authenticate: No authentication credentials provided, aborting. "http://api.kdelook.org/v1/content/categories"
ProviderManager::authenticate: No authentication credentials provided, aborting. "http://api.kdelook.org/v1/content/categories"
ProviderManager::authenticate: No authentication credentials provided, aborting. "http://api.kdelook.org/v1/content/categories"
ProviderManager::authenticate: No authentication credentials provided, aborting. "http://api.kdelook.org/v1/content/categories"
ProviderManager::authenticate: No authentication credentials provided, aborting. "http://api.kdelook.org/v1/content/categories"
org.kde.knewstuff.core: Redirected to  "https://games.kde.org/...somthing.../providers.xml" ...
org.kde.knewstuff.core: "Error transferring https://games.kde.org/...somthing.../providers.xml - server replied: Not Found"
org.kde.knewstuff: engine error "Loading of providers from file: http://games.kde.org/...somthing.../providers.xml#This must change of course failed"
kns error KNSBackend(0x1bea8f0, name = "/etc/xdg/kmines.knsrc") "Loading of providers from file: http://games.kde.org/...somthing.../providers.xml#This must change of course failed"
org.kde.knewstuff.core: Could not find category "KAddressbook Theme"
org.kde.knewstuff: engine error "All categories are missing"
kns error KNSBackend(0x1262a50, name = "/etc/xdg/kaddressbook_themes.knsrc") "All categories are missing"
org.kde.knewstuff.core: Could not find category "Akonadi Email Providers"
org.kde.knewstuff: engine error "All categories are missing"
kns error KNSBackend(0x128e420, name = "/etc/xdg/accountwizard.knsrc") "All categories are missing"
org.kde.knewstuff.core: Could not find category "Xfce Icon Theme"
org.kde.knewstuff: engine error "All categories are missing"
kns error KNSBackend(0x1c06a80, name = "/etc/xdg/cgcicon.knsrc") "All categories are missing"
Comment 1 Rik Mills 2016-12-29 12:34:30 UTC
In..

Kubuntu Zesty with appstream 0.10.5 and kubuntu CI (KCI) unstable packages

&

Neon dev unstable edition with appstream 0.10.3

I also now see the "Could not open the AppStream metadata pool" message, and a corresponding pop up message on starting Discover
Comment 2 Aleix Pol 2016-12-30 14:36:08 UTC
I've just fixed the KNS issues, although it will take some time until these land on your OS, you'll need some patience there.

The errors are unrelated to the Appstream issue, which I can't reproduce, so leaving it there.
Comment 3 Aleix Pol 2016-12-30 15:03:45 UTC
I can reproduce in Neon, I cannot reproduce in ArchLinux.
Comment 4 Aleix Pol 2016-12-30 15:04:52 UTC
Reported upstream: https://github.com/ximion/appstream/issues/97
Comment 5 Stefan Brüns 2018-08-31 15:23:01 UTC
Git commit 74a38143e2130aa9d80a8161b5a5fecd2c0fac64 by Stefan Brüns.
Committed on 31/08/2018 at 15:22.
Pushed by bruns into branch 'master'.

[AppStream Runner] Pass on error message from the library

Summary:
AppStreamQt since 0.10.6 allows to pass on error messages in case some
errors occured when loading the AppStream data.

Reviewers: #plasma, apol, ngraham

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D14804

M  +1    -1    CMakeLists.txt
M  +3    -2    runners/appstream/appstreamrunner.cpp

https://commits.kde.org/plasma-workspace/74a38143e2130aa9d80a8161b5a5fecd2c0fac64