Bug 450141 - Discover fails to update a specific addon from KDE Store
Summary: Discover fails to update a specific addon from KDE Store
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: KNewStuff Backend (other bugs)
Version First Reported In: master
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-13 10:08 UTC by Patrick Silva
Modified: 2022-02-16 01:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot (58.60 KB, image/png)
2022-02-13 10:08 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2022-02-13 10:08:20 UTC
Created attachment 146660 [details]
screenshot

SUMMARY
There is a update for Force Blur addon on my system. When I try to install it, Discover shows the error message seen in the attached screenshot and the addon is not updated.
I see this output in Konsole after click on 'Update all' button:

kf.newstuff.core: Install  "Force Blur"  from:  "https://api.kde-look.org/ocs/v1/"
kf.newstuff.core: Just the one download link, so let's use that
kf.newstuff.core:  link for  "1294604"
kf.newstuff.core: If there's nothing to identify, and we've arrived here, then we know what the payload is
kf.newstuff.core: Downloading payload QUrl("https://dl3.pling.com/api/files/download/j/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IjE2NDQ3NDQ0NjMiLCJvIjoiMSIsInMiOiJlNjc2MTg3N2U1MTE3ZmE0ZDJlNTJiOGE5ZWZiMTY5ODdiNzZiZmQ5ODU3MGY0YWYzODZkNTFkMWE0ZTRmNTY2OGI5ZmI5ZDUzMTU4OGVmMDAyOWZlZTZkODU2Njk2MmJhNTM2YTVkZGIyMTJmMWIyODZmYjA4OTY1YWQ0NzI5MCIsInQiOjE2NDQ3NDg1MDAsInN0ZnAiOm51bGwsInN0aXAiOiIxNzkuMTUyLjk4LjE3In0.n_jv0SbwS6I4_g6mfSdADZ4xrZvBK5ucC3_1tSEEtEU/forceblur-0.6.1.kwinscript") to QUrl("file:///tmp/xkxvqv-forceblur-0.6.1.kwinscript")
kf.newstuff.core: File copy job is from (or to) a remote URL
kf.newstuff.core: virtual void KNSCore::DownloadJob::start()
kf.newstuff.core: KNSCore::HTTPWorker::HTTPWorker(const QUrl&, const QUrl&, KNSCore::HTTPWorker::JobType, QObject*)
kf.newstuff.core: Opened file "/tmp/xkxvqv-forceblur-0.6.1.kwinscript" for writing.
kf.newstuff.core: Writing 5918 bytes of data to "/tmp/xkxvqv-forceblur-0.6.1.kwinscript"
kf.newstuff.core: Wrote 5918 bytes. File is now size 5918
kf.newstuff.core: void KNSCore::HTTPWorker::handleFinished() QUrl("https://dl3.pling.com/api/files/download/j/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IjE2NDQ3NDQ0NjMiLCJvIjoiMSIsInMiOiJlNjc2MTg3N2U1MTE3ZmE0ZDJlNTJiOGE5ZWZiMTY5ODdiNzZiZmQ5ODU3MGY0YWYzODZkNTFkMWE0ZTRmNTY2OGI5ZmI5ZDUzMTU4OGVmMDAyOWZlZTZkODU2Njk2MmJhNTM2YTVkZGIyMTJmMWIyODZmYjA4OTY1YWQ0NzI5MCIsInQiOjE2NDQ3NDg1MDAsInN0ZnAiOm51bGwsInN0aXAiOiIxNzkuMTUyLjk4LjE3In0.n_jv0SbwS6I4_g6mfSdADZ4xrZvBK5ucC3_1tSEEtEU/forceblur-0.6.1.kwinscript")
kf.newstuff.core: Data for "https://dl3.pling.com/api/files/download/j/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IjE2NDQ3NDQ0NjMiLCJvIjoiMSIsInMiOiJlNjc2MTg3N2U1MTE3ZmE0ZDJlNTJiOGE5ZWZiMTY5ODdiNzZiZmQ5ODU3MGY0YWYzODZkNTFkMWE0ZTRmNTY2OGI5ZmI5ZDUzMTU4OGVmMDAyOWZlZTZkODU2Njk2MmJhNTM2YTVkZGIyMTJmMWIyODZmYjA4OTY1YWQ0NzI5MCIsInQiOjE2NDQ3NDg1MDAsInN0ZnAiOm51bGwsInN0aXAiOiIxNzkuMTUyLjk4LjE3In0.n_jv0SbwS6I4_g6mfSdADZ4xrZvBK5ucC3_1tSEEtEU/forceblur-0.6.1.kwinscript" was fetched "(cached)"
kf.newstuff.core: Install:  "Force Blur"  from  "/tmp/xkxvqv-forceblur-0.6.1.kwinscript"
kf.newstuff.core: installdir:  "/tmp"
kf.newstuff.core: Using KPackage for installation
kf.newstuff.core: Package metadata is valid
kf.newstuff.core: Service type discovered as "KWin/Script"
kf.newstuff.core: About to attempt to install "forceblur" into "/home/stalker/.local/share/kwin/scripts/"
kf.newstuff.core: Attempting to perform an installation operation of type 2 on the package "/tmp/xkxvqv-forceblur-0.6.1.kwinscript" of type "KWin/Script" in the package root "/home/stalker/.local/share/kwin/scripts/"
kf.newstuff.core: Service type understood
kf.newstuff.core: Installer successfully created and has a valid structure
kf.newstuff.core: Created job, now let's wait for it to do its thing...
KNS error in "Window Manager Scripts" : KNSCore::InstallationError "Installation of /tmp/xkxvqv-forceblur-0.6.1.kwinscript failed: The new package has a different type from the old version already installed." QVariant(Invalid)
kns error "/usr/share/knsrcfiles/kwinscripts.knsrc" "Installation of /tmp/xkxvqv-forceblur-0.6.1.kwinscript failed: The new package has a different type from the old version already installed."
qml: message: kwinscripts.knsrc: Installation of /tmp/xkxvqv-forceblur-0.6.1.kwinscript failed: The new package has a different type from the old version already installed.
kf.newstuff.core: Install job finished with error state 108 and description 108
qrc:/qml/UpdatesPage.qml:9:1: QML UpdatesPage: Binding loop detected for property "implicitHeight"
kf.newstuff.core: Write registry
kf.newstuff.core: Loading KNS2 registry of files for the component:  "kwinscripts"

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 1 Nate Graham 2022-02-16 01:09:10 UTC
KNS error in "Window Manager Scripts" : KNSCore::InstallationError "Installation of /tmp/xkxvqv-forceblur-0.6.1.kwinscript failed: The new package has a different type from the old version already installed." QVariant(Invalid)
kns error "/usr/share/knsrcfiles/kwinscripts.knsrc" "Installation of /tmp/xkxvqv-forceblur-0.6.1.kwinscript failed: The new package has a different type from the old version already installed."
qml: message: kwinscripts.knsrc: Installation of /tmp/xkxvqv-forceblur-0.6.1.kwinscript failed: The new package has a different type from the old version already installed.

Seems like this is a real error. I guess you'll need to contact the script author.

If everything looks good on their end, then this is a KNS bug.