[Bug 955233] New: Software Updates applet shows "Network is offline"
http://bugzilla.opensuse.org/show_bug.cgi?id=955233 Bug ID: 955233 Summary: Software Updates applet shows "Network is offline" Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.1 Hardware: x86-64 OS: openSUSE 42.1 Status: NEW Severity: Normal Priority: P5 - None Component: Network Assignee: bnc-team-screening@forge.provo.novell.com Reporter: madakis1988@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- The applet occasionally shows that the "Network is offline" even though there's an active connection to the internet. There's no other connection enabled. This results in inability to check for updates. It usually goes back to normal after a reboot. YaST -> Online Update works fine every time. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
Bernhard Wiedemann
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c3
--- Comment #3 from Mike Iliopoulos
(In reply to Chenzi Cao from comment #1)
Hi Mike, are you using KDE or Gnome?
I'm using KDE Plasma 5.
Update: The applet always goes back to normal after a logout. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c4
Benedikt Geißler
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
Gerald Hofer
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c6
Matthias Klostermair
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c7
--- Comment #7 from Matthias Klostermair
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c8
Wolfgang Bauer
I just stumbled accross changelog for plasma 5.5.4 (here): https://www.kde.org/announcements/plasma-5.5.3-5.5.4-changelog.php
Could it be they have this fixed in that release?: https://bugs.kde.org/show_bug.cgi?id=358028
Maybe this is related? I will try to test that 5.5.4 release when it arrives in KF5 repos. Sounds indeed like this mentioned issue.
I backported that fix to the Leap 42.1 package. Would be nice if somebody that is affected and running Leap could test it, it's available here: http://download.opensuse.org/repositories/home:/wolfi323:/branches:/OBS_Main... (only plasma-nm5 itself needs to be updated) Tumbleweed users, please report back whether 5.5.4 fixes it for you. For now, you can get it from KDE:Frameworks5, again it should work to just install plasma-nm5 from there in case you don't want to fully switch to that repo. But it will appear in the TW main repo too at some time in the next weeks. Please note that this could only help with NetworkManager of course. Nobody here specified whether they used NetworkManager or Wicked. For the record, I cannot reproduce the problem here. Neither on 13.2 nor on Leap 42.1, neither with Wicked nor with NetworkManager. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c9
Wolfgang Bauer
For the record, I cannot reproduce the problem here. Neither on 13.2 nor on Leap 42.1, neither with Wicked nor with NetworkManager.
Well, I actually was able to reproduce the problem now, by disabling automatic connection in NetworkManager and connecting manually after login. Of course in this case, the network is indeed "offline" when the update applet is "started" (together with the desktop). The applet takes this state from packagekitd. When the network is activated, packagekitd is supposed to notice that and tell the applet that the state has changed. BUT: in openSUSE, packagekitd shuts itself down after 15 deconds of idleness, to not block YaST/zypper forever. As it is not running, it of course cannot notice the network becoming online, and cannot notify the applet. Running pkcon manually explicitly starts packagekitd, which then notifies the applet that the system is online. So all in all this is again related to Bug#899755... Not sure what we can do to fix that though. If the applet would poll packagekitd (i.e. restart it) regularly all the time, people will complain as well I suppose, and it would somehow defeat the purpose of packagekitd shutting itself down. Maybe it would be enough if it would show the "Check for updates" button even in case it is offline? Users would at least be able to "turn it on" again. Or maybe we should just disable that check for being online/offline in the applet. Personally I'd go with the second approach I think (that's also Appers behavior if I am not mistaken). Displaying "Network offline" by the updater isn't probably very interesting for the user anyway. If there are no updates to be installed, there are no updates to be installed, period. Opinions are welcome of course. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c10
--- Comment #10 from Wolfgang Bauer
Or maybe we should just disable that check for being online/offline in the applet.
PS, changing line #102 in /usr/share/plasma/plasmoids/org.kde.plasma.pkupdates/contents/ui/main.qml from return PkUpdates.isNetworkMobile ? checkOnMobile : PkUpdates.isNetworkOnline to return PkUpdates.isNetworkMobile ? checkOnMobile : true works quite well on a quick test. (people that want to try it can just make the change locally on their system, those are just text files) The applet even does display "Network Offline" if it checks for updates and there's no network connection. One disadvantage: it will popup an error message immediately on login, so we should probably also delay the first check for updates (as Apper did). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c11
--- Comment #11 from Matthias Klostermair
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c12
--- Comment #12 from Wolfgang Bauer
Sorry if i intervent with that now:
Should not Networkmanager notify the plugin instead the plugin checking Networkmanager?
??? What "plugin" are you talking about here? The update applet gets notified by PackageKit. That's unrelated to NetworkManager, except that PackageKit maybe asks NetworkManager about the online state if NM is used. I don't know. But how/why should NetworkManager by itself notify all other applications about the network state, even if those applications are not even running? Again, the problem (as I see it) here is that packagekitd is not even running and therefore cannot see the network state and notify the applet that it changed. And the applet is just a simple frontend to PackageKit (packagekitd). It doesn't interact with NetworkManager at all. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c13
--- Comment #13 from Matthias Klostermair
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c14
Wolfgang Bauer
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
Chris Schaller
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com