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.
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
Bernhard Wiedemann bwiedemann@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|Network |KDE Workspace (Plasma) Assignee|bnc-team-screening@forge.pr |kde-maintainers@suse.de |ovo.novell.com |
http://bugzilla.opensuse.org/show_bug.cgi?id=955233 http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c3
--- Comment #3 from Mike Iliopoulos madakis1988@gmail.com --- (In reply to Mike Iliopoulos from comment #2)
(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.
http://bugzilla.opensuse.org/show_bug.cgi?id=955233 http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c4
Benedikt Geißler benediktg@openaliasbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |benediktg@openaliasbox.org
--- Comment #4 from Benedikt Geißler benediktg@openaliasbox.org --- I also have this problem and a workaround is to execute "pkcon" with KRunner (I am using KDE Plasma 5 with Opensuse Leap, too).
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
Gerald Hofer hofer@sgi.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hofer@sgi.com
http://bugzilla.opensuse.org/show_bug.cgi?id=955233 http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c6
Matthias Klostermair matthias.klostermair@freenet.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |matthias.klostermair@freene | |t.de
--- Comment #6 from Matthias Klostermair matthias.klostermair@freenet.de --- Hallo.
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.
Thank you!
Greetings,
http://bugzilla.opensuse.org/show_bug.cgi?id=955233 http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c7
--- Comment #7 from Matthias Klostermair matthias.klostermair@freenet.de --- Omg! Sorry i searched for a bug i opened myselves and i did not watch properly. I did not want to post that Message in your thread. Please all apologies for this. I wrote the message into my bug now.
Again, Sorry for my fault!
http://bugzilla.opensuse.org/show_bug.cgi?id=955233 http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c8
Wolfgang Bauer wbauer@tmo.at changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wbauer@tmo.at
--- Comment #8 from Wolfgang Bauer wbauer@tmo.at --- (In reply to Matthias Klostermair from comment #6)
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.
http://bugzilla.opensuse.org/show_bug.cgi?id=955233 http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c9
Wolfgang Bauer wbauer@tmo.at changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CONFIRMED
--- Comment #9 from Wolfgang Bauer wbauer@tmo.at --- (In reply to Wolfgang Bauer from comment #8)
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.
http://bugzilla.opensuse.org/show_bug.cgi?id=955233 http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c10
--- Comment #10 from Wolfgang Bauer wbauer@tmo.at --- (In reply to Wolfgang Bauer from comment #9)
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).
http://bugzilla.opensuse.org/show_bug.cgi?id=955233 http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c11
--- Comment #11 from Matthias Klostermair matthias.klostermair@freenet.de --- Sorry if i intervent with that now:
Should not Networkmanager notify the plugin instead the plugin checking Networkmanager?
Greetings,
http://bugzilla.opensuse.org/show_bug.cgi?id=955233 http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c12
--- Comment #12 from Wolfgang Bauer wbauer@tmo.at --- (In reply to Matthias Klostermair from comment #11)
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.
http://bugzilla.opensuse.org/show_bug.cgi?id=955233 http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c13
--- Comment #13 from Matthias Klostermair matthias.klostermair@freenet.de --- My thought was on that dispatcher service within Networkmanager. Its inside Networkmanager and can notify services when new connections are established. It looks a little like sysvinit scripts.
Thats something like a central knob that can execute actions whenever you do something with Networkmanager.
Ok thats nothing about wicked and would probably be a big breakdown in the way all that works.
Why isnt there a central knob in linux wether it is online or offline. All do something different to try to find out if theres connection or not, as it seems.
sorry for OT (dont need to answer this).
Greetings,
http://bugzilla.opensuse.org/show_bug.cgi?id=955233 http://bugzilla.opensuse.org/show_bug.cgi?id=955233#c14
Wolfgang Bauer wbauer@tmo.at changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jshand2013@gmail.com
--- Comment #14 from Wolfgang Bauer wbauer@tmo.at --- *** Bug 1004399 has been marked as a duplicate of this bug. ***
http://bugzilla.opensuse.org/show_bug.cgi?id=955233
Chris Schaller kwizzz@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1188690