Bug 402491 - Unclear behavior when internet connection is interrupted during an update
Summary: Unclear behavior when internet connection is interrupted during an update
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: Updates (other bugs)
Version First Reported In: 5.14.4
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2018-12-23 09:27 UTC by Ovidiu-Florin BOGDAN
Modified: 2021-04-27 16:10 UTC (History)
2 users (show)

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


Attachments
Second Abort button (65.80 KB, image/png)
2021-04-12 20:30 UTC, Ovidiu-Florin BOGDAN
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ovidiu-Florin BOGDAN 2018-12-23 09:27:31 UTC
SUMMARY
If the internet connection drops during Updates install (or download), the updating process is stopped with no message.

STEPS TO REPRODUCE
1. Open Discover when updates are available
2. Wait for Discover to check for updates, after it already told you you have updates available
3. Click on install updates
4. Disconnect from the internet connection, but not the local network connection

OBSERVED RESULT
Update process stops and I am shown the Updates page as if I didn't click on install updates

EXPECTED RESULT
An error message that states what happened to appear, and after confirming that I read the error to be shown the Updates page.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 29 KDE
(available in About System)
KDE Plasma Version: 5.14.4
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.1
Comment 1 Aleix Pol 2019-01-09 17:56:01 UTC
Can you check what happens when you do this with pkcon separately?
Comment 2 Ovidiu-Florin BOGDAN 2019-01-16 07:51:53 UTC
I cannot interrupt the internet connection fast enough. `pkcon update` finishes in 2 seconds.
Comment 3 Christoph Feck 2019-01-25 07:28:34 UTC
Information was provided with comment #2; changing status for inspection.
Comment 4 Nate Graham 2021-04-07 16:46:01 UTC
Maybe you can try again with a larger update? They won't all take 2 seconds. :)
Comment 5 Ovidiu-Florin BOGDAN 2021-04-12 20:29:47 UTC
I haven't installed my updates for a few days to collect some for this test.

After I've started `pkcon update` it presented me with all the packages to be updated and as soon as I confirmed the cursor jumped up about 20 lines and started overwriting what was already on the screen. I was using Konsole maximised.


$ pkcon update
Se obțin actualizări        [=========================]         
Încheiat                     [=========================]         
Se pornește                  [=========================]         
Se testează modificările    [=========================]         
Încheiat                     [                         ] (0%)  
Următoarele pachete trebuiesc actualizate:
 authselect-1.2.3-1.fc33.x86_64 Configures authentication and identity sources from supported profiles
 ...
 perl-I18N-Langinfo-0.19-469.fc33.x86_64        Query locale information
 perl-IO-1.43-469.fc33.x86_64   Perl input/output modules
 perl-IPC-Open3-1.21-469.fc33[=========================]         g, writing, and error handling
Se actualizează pachete      [=========================]         nometric functions
Se interoghează              [=========================]         nctions by caching return values
Se descarcă pachete          [=========================]         
Încheiat                     [=========================]         n network resolver
Eroare fatală: Cannot download vscodium-1.55.1-x86_64.rpm: All mirrors were tried; Last error: Curl error (28): Timeout was reached for https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/rpms/vscodium-1.55.1-x86_64.rpm [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds]003.1


Since this bug was reported I've updated my system and I now have the following setup:
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 33 KDE
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2

Retrying in Discover to replicate the bug, I've noticed the following:

* When opening Discover after was already notified that there are updates does not immediately trigger a check for updates.
* After starting the updates install and disconnecting from the internet, was quickly presented with a banner at the bottom that there was a failure (could not copy the text from there
* After about the same amount of time I waited for `pkcon update` to fail Discover stopped the update process with a message stating that there was a problem with updating. The details were the same error message as pkcon
* Dismissing that error message
* Hovering from the app list to the "Renunță" (Cancel/Abort) button reveals another hidden button, that disappears immediately if I move my mouse again. It does not appear if I come from the sides. (see screenshot)
* Clicking the Abort button resets the view.

I would have expected the view to reset after I acknowledged the network error.
Comment 6 Ovidiu-Florin BOGDAN 2021-04-12 20:30:42 UTC
Created attachment 137545 [details]
Second Abort button

This button only is revealed if you come with the cursor from the bottom of the main button.
Comment 7 Ovidiu-Florin BOGDAN 2021-04-12 20:33:28 UTC
It seems this part was lost:

* Dismissing that error message shows the same "Install in progress" view. It does not reset back to the "These are the available updates to be installed" view I saw when I opened Discover.
Comment 8 Nate Graham 2021-04-12 20:51:44 UTC
Thanks for the update.
Comment 9 Bug Janitor Service 2021-04-27 04:33:38 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Ovidiu-Florin BOGDAN 2021-04-27 09:06:15 UTC
Considering that now there is a message when the updating fails, the initial scope of this ticket has been fixed. But the fact that after the failure we are not taken back to the "Choose what updates to install" view and we are still stuck in the "Installing updates" view, I consider this partially fixed.

Please let me know if you think otherwise.
Comment 11 Nate Graham 2021-04-27 16:10:36 UTC
Maybe we can mark this one as fixed and you can file a narrowly focused bug report for the remaining issue? I think that would help. Thanks!