[gutsy] MSN waiting for network connection... but does not connect

Bug #97591 reported by Nicolò Chieffo
34
Affects Status Importance Assigned to Milestone
Gaim
Won't Fix
Undecided
Unassigned
Pidgin
Fix Released
Unknown
pidgin (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

pidgin 1:2.2.1-1ubuntu3

when the network is off pidgin shows a warning, near the status:
"waiting for network connection"
if I stay offline enough time (I think the time to disconnect for ping timeout) when I replug the cable the warning disappears, but gaim will not try to reconnect. It thinks that it is connected.
If I try to send message I get this error:

(23:01:52) Il messaggio potrebbe non essere stato inviato a causa di un timeout:
which means
(23:01:52) the message could not been sent because of a timeout error:

Nicolò Chieffo (yelo3)
Changed in gaim:
status: Unconfirmed → Confirmed
Revision history for this message
Somebody (sauroninvincible) wrote :

I'm also facing the same problem. I cannot connect when GAIM starts up on boot, as it thinks that it already is connected, with the same warning of "waiting for network connection". I have to disable and reenable my account before i can log in.

Revision history for this message
Mark Doliner (thekingant) wrote :

FYI this is a problem when interfacing with NetworkManager. I'm not sure where the bug lies... but Gaim is talking to NetworkManager and for some reason thinks that you're not connected to the Internet.

Revision history for this message
Gadren (gadren) wrote :

I found that the similar problem I was having came from Network Manager thinking I wasn't connected -- see, my wifi was set to "roaming," and when i specified the network i usually use, networkmanager didn't think i wasn't connected anymore, and pidgin works now.

Changed in gaim:
status: Unknown → Confirmed
Revision history for this message
daws (dawsdesign) wrote :

I have the same problem with pidgin on gusty. I am on a wired network.

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

I think that this problem is very annoying and can be fixed with a forced disconnection when network is not available.
Unfortunately I'm not really sure where I can find the function.
maybe it is in network.c and it is called
nm_callback_func(libnm_glib_ctx* ctx, gpointer user_data)

if I manage to understand how to force disconnection I might attach a patch

description: updated
Revision history for this message
Nicolò Chieffo (yelo3) wrote :

I made it! here's the patch to force the disconnection after network manager looses a connection.
it was really simple, you can look it yourself.
now when a cable is unplugged/a wireless signal is lost/a connection goes down, pidgin forces the disconnection of all accounts, and when network-manager regains a new connection, then pidgin automatically reconnects.

Changed in pidgin:
status: Confirmed → In Progress
Revision history for this message
Nicolò Chieffo (yelo3) wrote :

back to confirmed, since only a developer can put a status

Changed in pidgin:
status: In Progress → Confirmed
Changed in gaim:
status: Confirmed → New
Revision history for this message
Rinaldus (pitersv) wrote :

Nicolò Chieffo, how to use your script?

Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 97591] Re: [gutsy] MSN waiting for network connection... but does not connect

it's a patch that you can apply to the pidgin source

Revision history for this message
Rinaldus (pitersv) wrote :

What I need to do to apply it to source? Just to copy it or to launch this script?

Revision history for this message
J.G. (j.gorski) wrote :
Revision history for this message
Nicolò Chieffo (yelo3) wrote :

it's not a very simple thing to do...

you have to download the pidgin source with the command:
apt-get source pidgin
you have to install everything to build pidgin with the command:
sudo apt-get build-dep pidgin
you have to go to pigdin source directory and apply the patch:
cd pidgin****
patch -p0 < /path/to/patch.diff
you have to edit the changelog of pidgin, to add some minor revision
numbers to the pidgin version:
gedit debian/changelog
and then build the package:
dpkg-buildpackage -rfakeroot

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

no it is not related to it.

On 10/21/07, Igor Malner <email address hidden> wrote:
> This bug is related to https://bugs.launchpad.net/ubuntu/+source
> /network-manager/+bug/105234
>
> --
> [gutsy] MSN waiting for network connection... but does not connect
> https://bugs.launchpad.net/bugs/97591
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Changed in gaim:
status: New → Unknown
Changed in gaim:
status: Unknown → New
Revision history for this message
Display Name (user340562791542-deactivatedaccount) wrote :

My problem is: when I start Pidgin on Feisty, it keeps 'waiting for connection' when actually I'm really connected to internet. I think I've removed Network Manager or so, I can't see its icon on tray, but if I'm sure it didn't see my dialed, unsupported-winmodem connection. Pidgin's team say NM sucks.

Revision history for this message
Diegstroyer (diegstroyer) wrote :

Same problem on Hardy Beta with Pidgin, the same thing with Mercury Messenger.

Revision history for this message
rott (pablo-iliopetra) wrote :

You can keep your Network Manager as is, just do the following:

1)determine your IP using ifconfig (ifconfig lists all active and inactive connections - so you choose the IP your active internet connection has)

2) go to pidgin->tools->preferences->network
uncheck the "Autodetect IP address" field and set the IP you just noted down in the Public IP.

That solved the problem for me (however, if you get a different IP address everytime you connect to the internet, u r still in a mess)

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

This seems to be fixed in pidgin 2.4.2

Richard Laager (rlaager)
Changed in gaim:
status: New → Won't Fix
Changed in pidgin:
importance: Undecided → Unknown
status: New → Unknown
Richard Laager (rlaager)
Changed in pidgin:
status: Confirmed → Fix Committed
Changed in pidgin:
status: Unknown → Fix Released
Revision history for this message
Greg A (etulfetulf) wrote :

This has been fixed upstream and the changes incorporated into Ubuntu some time ago.

Changed in pidgin:
status: Fix Committed → Fix Released
Revision history for this message
Greg A (etulfetulf) wrote :

Sorry, that last comment was intended for a different bug. However it would appear that this has been fixed in the pidgin version inside Intrepid (8.10) anyway.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.