Bug 394961 - Download (curl) error direkt after KDE Session start, because Network not ready
Summary: Download (curl) error direkt after KDE Session start, because Network not ready
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: PK Updates widget (show other bugs)
Version: 6.2.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Jan Grulich
URL:
Keywords:
: 395101 445010 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-06-02 16:04 UTC by Steffen
Modified: 2025-01-16 17:29 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen 2018-06-02 16:04:07 UTC
OpenSuse Leap 15.0
plasma5-pk-updates 0.3.1

After login KDE i will get a error messages: "Download (curl) error for 'http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Leap_15.0/repodata/repomd.xml': Error code: Connection failed Error message: Could not resolve host: download.opensuse.org" because the Networkmanager is not finish to connect to the wlan network.

After some try and error I have modify the main.qml File from the plasmoid, to give the Networkmanager more time to finish the connection, and now the error is gone. 

--- main.qml.orginal    2018-05-12 18:46:05.000000000 +0200
+++ main.qml    2018-06-02 17:23:28.368694070 +0200
@@ -59,6 +59,20 @@
         }
     }
 
+    Timer {                         //wait on start, to give Networkmanager time to make the wlan connection
+        id: waitonstart
+        repeat: false
+        triggeredOnStart: false
+        interval: 1000*60*2 // 2 Minuten
+        onTriggered: {
+        if(!needsForcedUpdate() && batteryAllowed && networkAllowed) {
+            PkUpdates.checkUpdates(false);
+        }
+        timer.start()
+        }
+    }
+    
+    
     Binding {
         target: plasmoid
         property: "status"
@@ -95,9 +109,6 @@
     }
 
     Component.onCompleted: {
-        if(!needsForcedUpdate() && batteryAllowed) {
-            PkUpdates.checkUpdates(false);
-        }
-        timer.start()
+        waitonstart.start()
     }
 }

 I hope it help to make KDE better :-)
Comment 1 Christoph Feck 2018-06-21 12:08:38 UTC
*** Bug 395101 has been marked as a duplicate of this bug. ***
Comment 2 ch-dev 2018-08-13 16:28:06 UTC
(In reply to Steffen from comment #0)
> OpenSuse Leap 15.0
> plasma5-pk-updates 0.3.1
> 
> After login KDE i will get a error messages: "Download (curl) error for
> 'http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Leap_15.0/
> repodata/repomd.xml': Error code: Connection failed Error message: Could not
> resolve host: download.opensuse.org" because the Networkmanager is not
> finish to connect to the wlan network.
> 
> After some try and error I have modify the main.qml File from the plasmoid,
> to give the Networkmanager more time to finish the connection, and now the
> error is gone. 
> 
> --- main.qml.orginal    2018-05-12 18:46:05.000000000 +0200
> +++ main.qml    2018-06-02 17:23:28.368694070 +0200
> @@ -59,6 +59,20 @@
>          }
>      }
>  
> +    Timer {                         //wait on start, to give Networkmanager
> time to make the wlan connection
> +        id: waitonstart
> +        repeat: false
> +        triggeredOnStart: false
> +        interval: 1000*60*2 // 2 Minuten
> +        onTriggered: {
> +        if(!needsForcedUpdate() && batteryAllowed && networkAllowed) {
> +            PkUpdates.checkUpdates(false);
> +        }
> +        timer.start()
> +        }
> +    }
> +    
> +    
>      Binding {
>          target: plasmoid
>          property: "status"
> @@ -95,9 +109,6 @@
>      }
>  
>      Component.onCompleted: {
> -        if(!needsForcedUpdate() && batteryAllowed) {
> -            PkUpdates.checkUpdates(false);
> -        }
> -        timer.start()
> +        waitonstart.start()
>      }
>  }
> 
>  I hope it help to make KDE better :-)

I had the same issue on Leap 15.0. Thanks for sharing the workaround...this was really bugging me and my KDE is definetely better now :-)
Comment 3 Harald Sitter 2019-02-15 16:30:28 UTC Comment hidden (spam)
Comment 4 Harald Sitter 2019-02-15 16:31:23 UTC
Wrong bug, ignore my previous comment (:
Comment 5 TraceyC 2025-01-16 17:29:57 UTC
*** Bug 445010 has been marked as a duplicate of this bug. ***