Bug 911605 - Evolution misunderstands network status
Summary: Evolution misunderstands network status
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: evolution
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthew Barnes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 918775 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-15 12:58 UTC by Mikkel Lauritsen
Modified: 2013-08-14 17:12 UTC (History)
6 users (show)

Fixed In Version: NetworkManager-0.9.8.2-8.git20130709.fc19.x86_64
Clone Of:
Environment:
Last Closed: 2013-08-14 17:12:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mikkel Lauritsen 2013-02-15 12:58:30 UTC
I am using Evolution EWS against an Exchange server which is only available through a PPTP VPN connection.

When Evolution is started with the VPN connection active sending and receiving mail works fine, but the online/offline button is disabled and the Work Offline item in the File menu is dimmed.

If the VPN connection is then disabled Evolution doesn't notice that it's actually offline - on the contrary the online/offline button and Work Offline menu items become available.

Re-enabling the VPN connection causes Evolution to go into offline mode and display a message saying "Evolution is currently offline due to a network outage."

The net result is that Evolution only thinks it's online when the Exchange server is unavailable and vice versa. Restarting Evolution causes it to go back to the initial state where sending and receiving works.

Versions:
evolution-3.6.3-2.fc18.x86_64
evolution-ews-3.6.3-1.fc18.x86_64

Comment 1 Milan Crha 2013-02-18 09:57:18 UTC
Thanks for a bug report. Evolution uses GNetworkMonitor for this functionality, it used to use direct NetworkManager interface, but than was switched to this, thus either there is some boolean reverse in Evolution (which is unlikely, I use evolution in a similar environment as you), or some glib or glib-networking functionality changed. Could you provide versions of these packages, please?

Comment 2 Mikkel Lauritsen 2013-02-18 13:18:15 UTC
Sure -

glib-networking-2.34.2-1.fc18.x86_64
glib2-2.34.2-2.fc18.x86_64

If there's anything else I can do to help on this one please let me know.

Comment 3 Milan Crha 2013-02-19 14:11:02 UTC
I updated my glib to the same version as that yours (I had 2.34.2-1), but it works as expected, changes in my vpn (I'm using vpnc command directly) didn't cause evolution to switch to offline. I would guess this is something about NetworkManager then.

Jirko, do you have any idea, please?

Comment 4 Sergio Basto 2013-03-12 03:32:06 UTC
yeah , F18 missed evolution-NetworkManager like we have in F17, and this cause lots of troubles

Comment 5 Milan Crha 2013-03-19 14:05:41 UTC
*** Bug 918775 has been marked as a duplicate of this bug. ***

Comment 6 klement.sekera 2013-04-12 12:59:30 UTC
I am hitting the same issue.

In my case, I am running a shell script which monitors the vpn connection and since it breaks frequently and randomly, restarts it when necessary. Sometimes when vpnc dies, it leaves the network in a messed up state so my script works around this by restarting network manager to get a clean state, this is its workflow:

1.) check if vpn is reachable (by pinging a known internal server)
2.) if yes then just sleep
3.) if not then check if google is reachable
4.) if yes, just start vpnc
5.) if not, then:
                        nmcli nm enable false
                        sleep 1
                        nmcli nm enable true


I don't know exactly when, but evolution ends up in a state where it thinks its oflline and won't allow going online. 

fun fact is that firefox doesnt think its online.

Comment 7 Sergio Basto 2013-04-12 16:25:52 UTC
(In reply to comment #9 of  bug 911605 )
> The evolution-NetworkManager is not needed anymore,
> evolution uses GLib's GNetworkMonitor, which checks for online/offline in a
> way it does (I do not know the internals for it, it just works for me here -
> if I unplug my network cable evolution notices it (same as NetworkManager),
> and turns itself into offline mode, and, vice versa, when I plug the cable
> back, evolution turns itself into online mode, as soon as the connection is
> established).
> 
> *** This bug has been marked as a duplicate of bug 911605 ***

well GLib's GNetworkMonitor, seems that works very badly , with many regressions when evolution-NetworkManager worked  great , 
well Gnome people seems that doesn't like things that just work ...

Comment 8 Milan Crha 2013-04-15 09:12:54 UTC
(In reply to comment #7)
> well GLib's GNetworkMonitor, seems that works very badly , with many
> regressions when evolution-NetworkManager worked  great , 
> well Gnome people seems that doesn't like things that just work ...

Right, I'm also unhappy of regressions, but I guess once the network manager "plugin" (or how they call it) in GLib's GNetworkMonitor will be fixed, all its users will benefit.

Comment 9 Sergio Basto 2013-05-08 20:25:40 UTC
I found some bugs which can explain this problems , 

I use evolution on kde windows manager , 
when I start evolution sometime does not ask for password of key ring and hangs .
when password change on server , also does not interact correctly to prompt a new password , as it does in gnome windows manager. 
and more 
gsettings-data-convert crash with this message Settings schema 'org.gnome.evolution' does not contain a key named 'last-upgraded-version' 
bug #887246
and #886881 the state is :  "evolution-rss-0.3.92-2.fc18.x86_64 
(...) but from what I see I guess the reason is
that the %pre and %preun sections still touch GConf schemas file, while the
sources got ported to GSettings, thus this .schemas file is gone. "

Comment 10 Milan Crha 2013-05-09 07:09:30 UTC
(In reply to comment #9)
> 
> I use evolution on kde windows manager , 
> when I start evolution sometime does not ask for password of key ring and
> hangs .
> when password change on server , also does not interact correctly to prompt
> a new password , as it does in gnome windows manager. 

That's bug #953641

> and more 
> gsettings-data-convert crash with this message Settings schema
> 'org.gnome.evolution' does not contain a key named 'last-upgraded-version' 
> bug #887246
> and #886881 the state is :  "evolution-rss-0.3.92-2.fc18.x86_64 
> (...)

right, it's bug #887246 and bug #886881

> but from what I see I guess the reason is
> that the %pre and %preun sections still touch GConf schemas file, while the
> sources got ported to GSettings, thus this .schemas file is gone. "

No separate bug for the .spec file changes yet, but I do not think it is anyhow related to this "misunderstands network status" bug. Maybe you meant to write your comment into other bug report?

Comment 11 Sergio Basto 2013-05-10 01:52:08 UTC
(In reply to comment #10)
> but I do not think it is
> anyhow related to this "misunderstands network status" bug. Maybe you meant
> to write your comment into other bug report?

No, when I wrote my bug "network problems make evolution hangs". It what it seems, because evolution writes in status bar: resolving, receiving and hangs. But problems now seems is not the network but the others bugs ...
So maybe regressions are not in misunderstand the network status, that why I wrote here .

Comment 12 Mikkel Lauritsen 2013-07-15 12:09:07 UTC
Still a problem in F19

Comment 13 Mikkel Lauritsen 2013-07-15 12:12:37 UTC
Still a problem in F19.

Comment 14 Milan Crha 2013-07-15 16:45:54 UTC
Please see [1], this might be caused by other parts than by evolution in f19.

[1] https://bugzilla.gnome.org/show_bug.cgi?id=700414#c13

Comment 15 Mikkel Lauritsen 2013-08-14 13:51:49 UTC
After applying the latest updates in F19 the problem seems to have disappeared - I can enable and disable the VPN connection without Evolution entering the offline state.

Currently installed components are

evolution-3.8.4-2.fc19.x86_64
NetworkManager-0.9.8.2-8.git20130709.fc19.x86_64

Comment 16 Milan Crha 2013-08-14 17:12:36 UTC
Great, thanks. I'm closing this then.


Note You need to log in before you can comment on or make changes to this bug.