giplet hangs from time to time

Bug #307170 reported by Shirish Agarwal
10
Affects Status Importance Assigned to Milestone
giplet (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Binary package hint: giplet

giplet hangs from time to time. I have set the preferences to an hour interval and many a times it just doesn't update the IP (if an IP change has happened) and only shows ??:??:??:?? . Trying to change preferences hangs it. This is on Intrepid.

If its not being actively developed then perhaps it should be not used and some other applet which can do the same thing.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
Package: giplet 0.1.2-0ubuntu2
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_IN
SourcePackage: giplet
Uname: Linux 2.6.27-10-generic i686

Tags: apport-bug
Revision history for this message
Shirish Agarwal (shirishag75) wrote :
Revision history for this message
Adrien Cunin (adri2000) wrote :

I recently uploaded the latest upstream version to jaunty, could you try it please?

Changed in giplet:
assignee: nobody → adri2000
status: New → Incomplete
Revision history for this message
Salvatore Bonaccorso (carnil) wrote :

Hi Shirish Agarwal

I could not reproduce this behaviour with 0.1.7 and later. Do you have any particular setup? If you are still using giplet, could you please test the newest version uploaded by Adrien? If the bug could "sucessfull" reproduces it could be forwarded upstream.

Kind regards
Salvatore

Revision history for this message
Shirish Agarwal (shirishag75) wrote : Re: [Bug 307170] Re: giplet hangs from time to time

Hi guys,
   Could you backport the same to Intrepid. Then for sure I would be
able to test and tell you the same.

My setup is simple.

I link to my router through dhcp and the router has dns entries of my isp.

--
          Regards,
          Shirish Agarwal
  This email is licensed under http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

Revision history for this message
Adrien Cunin (adri2000) wrote :

The jaunty version should work on intrepid.

Revision history for this message
Salvatore Bonaccorso (carnil) wrote :

Hi Shirish

Where you able to reproduce the bug with the version in jaunty (package can be installed in intrepid).

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

Hi guys,
      I have put it up on jaunty and seems to work fine atm.

It seems to have triggered another bug though.

Will file the same in a moment.
--
          Regards,
          Shirish Agarwal
  This email is licensed under http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

Hi all,
 Have put it up as https://bugs.launchpad.net/ubuntu/+source/giplet/+bug/315234
--
          Regards,
          Shirish Agarwal
  This email is licensed under http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

Revision history for this message
Salvatore Bonaccorso (carnil) wrote :

This bugs seems that it can be also closed?

Revision history for this message
d4v1dv00 (davidvoo) wrote :

to reproduce this bug, now is the perfect time. since http://getmyip.org is down, try using other website such as http://whatismyip.org and you will see what it means. the version running now is 0.1.8

Revision history for this message
Salvatore Bonaccorso (carnil) wrote :

Hi

On Wed, Jan 21, 2009 at 02:52:24PM -0000, d4v1dv00 wrote:
> to reproduce this bug, now is the perfect time. since http://getmyip.org
> is down, try using other website such as http://whatismyip.org and you
> will see what it means. the version running now is 0.1.8

Thanks for your reply. I indeed was able to reproduce this hangig of
giplet one time, but was not able to get the same hangig result twice
during this time when getmyip.org is down.

My Interfaces line is "www.getmyip.org www.whatismyip.org", when
getmyip.org is down it tries to get the ip-information from
www.whatismyip.org.

Does this work for you?
Kind regards
Salvatore

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

Hi all,
 First of all, I am using 0.1.1 (as per changelog.gz) or
0.1.2-0ubuntu2 which was in gutsy.

Salvatore (if you or whoever is the maintainer) what I would request
or/and suggest is that put the version as a PPA if possible and get it
built for Intrepid.

Secondly, it gets deleted from the panel if the resource (in this case
getmyip.org is not up) . The only way to get it back working is to
remove .giplet/ and then add the panel again to gnome-panel.

Also moving from getmyip.org to whatismyip.org also makes it hanged.

There is actually also a need for a good error message in case the URL
is down (but that's another bug)

--
          Regards,
          Shirish Agarwal
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

Revision history for this message
Salvatore Bonaccorso (carnil) wrote :

Hi Shirish and all,

On Thu, Jan 22, 2009 at 09:16:29PM -0000, Shirish Agarwal wrote:
> Hi all,
> First of all, I am using 0.1.1 (as per changelog.gz) or
> 0.1.2-0ubuntu2 which was in gutsy.

Yepp, this version is really outdated in intrepid unfortunaltely :(.
0.1.2 version has still the configuration done by ~/.giplet directory,
after 0.1.6 it was switched to gconf.

> Salvatore (if you or whoever is the maintainer) what I would request
> or/and suggest is that put the version as a PPA if possible and get it
> built for Intrepid.

I'm only the maintainer of the Debian package, which get's synced into
Ubuntu. Since intrepid is released the version there will remain on
the gutsy version, that a bit a pity, so here are the packages for
intrepid in my PPA:

deb http://ppa.launchpad.net/carnil/ubuntu intrepid main
deb-src http://ppa.launchpad.net/carnil/ubuntu intrepid main

I uploaded version 0.1.8-2 there. Note: yesterday I prepared 0.2.0 the
newest upstream version for Debian, soon will also upload this version
to PPA.

> Secondly, it gets deleted from the panel if the resource (in this case
> getmyip.org is not up) . The only way to get it back working is to
> remove .giplet/ and then add the panel again to gnome-panel.

I assume, the problems will lower with the new version, hopefully. Can
you test it with the version from my PPA? Whit that, a line as
"www.getmyip.org whatismyip.org" should work, if getmyip.org is down
it should probe the second www.whatismyip.org.

> Also moving from getmyip.org to whatismyip.org also makes it hanged.
>
> There is actually also a need for a good error message in case the URL
> is down (but that's another bug)

The new version 0.2.0 implements a "tooltip" functionality, which
should show "No IP detected", if all given "interfaces" fails.

Would be great if you can test the 0.1.8 version, since 0.1.2 is
really old.

Kind regards
Salvatore

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

Hi Salvatore Bonaccorso,
        First of all thank you for trying to get this one right and
taking time to respond on the issue.

I added the PPA and installed it but don't get what I need it.

$ dpkg -l giplet
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-================-================-================================================
ii giplet 0.1.8-2.intrepid GNOME IP display applet

Now what I'm trying to do is not get the IP from the local interface
but from the websites ""www.getmyip.org whatismyip.org" but not getting it :(

I went to Preferences and in interfaces deleted eth0 and just let
""www.getmyip.org whatismyip.org" therein.

I am using dhcp. Perhaps a look at my ifconfig will tell you what I mean.

shirish@shirish-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:95:44:10:db
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
          Interrupt:18 Base address:0xc800

eth1 Link encap:Ethernet HWaddr 00:08:a1:92:56:33
          inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
          inet6 addr: fe80::208:a1ff:fe92:5633/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:6397106 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6991304 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4213783164 (4.2 GB) TX bytes:1534493981 (1.5 GB)
          Interrupt:22 Base address:0xcc00

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:6858 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6858 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1173932 (1.1 MB) TX bytes:1173932 (1.1 MB)

In this case having either eth0 or eth1 is of no use :(

So need the info. from the sites. If you want me to do something more
lemme know.

You could also try putting up 0.2.0 if you want and I can take a spin at it.

Also in this brief time I've been trying Giplet (less than an hour)
trying to do anything in preferences take a long long time for
Preferences to close.
--
          Regards,
          Shirish Agarwal
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

Revision history for this message
Salvatore Bonaccorso (carnil) wrote :

Hi Shirish Agarwal

On Sat, Jan 24, 2009 at 07:42:07PM -0000, Shirish Agarwal wrote:
> Now what I'm trying to do is not get the IP from the local interface
> but from the websites ""www.getmyip.org whatismyip.org" but not getting it :(
>
> I went to Preferences and in interfaces deleted eth0 and just let
> ""www.getmyip.org whatismyip.org" therein.
>
>
> I am using dhcp. Perhaps a look at my ifconfig will tell you what I mean.
> [ ... ] ifconfig output

Exactly also why I retrive the IP from external sites. First to avoid
some "external pitfall", could you check, what your result is, when
you open http://whatismyip.org in a browser? Does it shows correctly
your IP or some error message? If it shows an error message, please
check if your update-interval of giplet is set below 10 minutes
(whatismyip.org does not like it to have a to shorten refresh rate
from the same ip ...)

A possible error you would get, can be the following "Error: 4
requests received from your IP address in the last 60 seconds (current
max is 3 but automated agents should not query more often than once
every 10 minutes)"

So if this is not the cause I will forward your bugreport upstream
directly to Lyman Li (the developer of giplet).

> You could also try putting up 0.2.0 if you want and I can take a spin at
> it.

I just uploaded 0.2.0 to my PPA for intrepid so you can also test this
version.

Hope we could resolve your issue soon,
Kind regards
Salvatore

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

Reply in-line :-

On Sun, Jan 25, 2009 at 02:56, Salvatore Bonaccorso
<email address hidden> wrote:
> Hi Shirish Agarwal

Hi Salvatore Bonaccorso,
      You can call me shirish.

<snip>

> Exactly also why I retrive the IP from external sites. First to avoid
> some "external pitfall", could you check, what your result is, when
> you open http://whatismyip.org in a browser? Does it shows correctly
> your IP or some error message? If it shows an error message, please
> check if your update-interval of giplet is set below 10 minutes
> (whatismyip.org does not like it to have a to shorten refresh rate
> from the same ip ...)

It shows correctly my IP when I'm using whatismyip through the browser.

Giplet update-interval is set below 10 minutes.

> I just uploaded 0.2.0 to my PPA for intrepid so you can also test this
> version.

I am not getting the 0.2.0. I just did an update but don't see any upgrade.

$ apt-cache policy giplet
giplet:
  Installed: 0.1.8-2.intrepid~ppa.1
  Candidate: 0.1.8-2.intrepid~ppa.1
  Version table:
 *** 0.1.8-2.intrepid~ppa.1 0
        100 /var/lib/dpkg/status
     0.1.2-0ubuntu2 0
        500 http://archive.ubuntu.com intrepid/universe Packages

This is after aptitude update has been run :(

> Hope we could resolve your issue soon,
> Kind regards
> Salvatore
>
> --
> giplet hangs from time to time
> https://bugs.launchpad.net/bugs/307170

--
          Regards,
          Shirish Agarwal
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

Revision history for this message
Salvatore Bonaccorso (carnil) wrote :

Hi Shirish

On Sun, Jan 25, 2009 at 03:35:37AM -0000, Shirish Agarwal wrote:
> > Exactly also why I retrive the IP from external sites. First to avoid
> > some "external pitfall", could you check, what your result is, when
> > you open http://whatismyip.org in a browser? Does it shows correctly
> > your IP or some error message? If it shows an error message, please
> > check if your update-interval of giplet is set below 10 minutes
> > (whatismyip.org does not like it to have a to shorten refresh rate
> > from the same ip ...)
>
> It shows correctly my IP when I'm using whatismyip through the browser.
>
> Giplet update-interval is set below 10 minutes.

Ok, could you please set it to at least 10 minutes (at least now for
testing, to not refresh to fast, and then blocking, example,
whatismyip.org will block requests, if they are to frequent in 60s
interval)? Also after installing new version of giplet, please try to do:
 - Remove ~/.giplet if it still around (not needed but clean up)
 - Remove the applet from panel
 - Re-add it to panel

> > I just uploaded 0.2.0 to my PPA for intrepid so you can also test this
> > version.
>
> I am not getting the 0.2.0. I just did an update but don't see any
> upgrade.
>
> $ apt-cache policy giplet
> giplet:
> Installed: 0.1.8-2.intrepid~ppa.1
> Candidate: 0.1.8-2.intrepid~ppa.1
> Version table:
> *** 0.1.8-2.intrepid~ppa.1 0
> 100 /var/lib/dpkg/status
> 0.1.2-0ubuntu2 0
> 500 http://archive.ubuntu.com intrepid/universe Packages
>
> This is after aptitude update has been run :(

Sorry, that was clearly my fault! Should be there now.

If we are not successfull, with that version I will forward this issue
today or tomorrow directly to upstream author.

Kind regards
Salvatore

p.s.: sorry for the name confusion.

Revision history for this message
Salvatore Bonaccorso (carnil) wrote :
Revision history for this message
Shirish Agarwal (shirishag75) wrote :

Reply in-line :-

On Sun, Jan 25, 2009 at 13:23, Salvatore Bonaccorso
<email address hidden> wrote:
> Hi Shirish

Hi Salvatore Bonaccorso,

> On Sun, Jan 25, 2009 at 03:35:37AM -0000, Shirish Agarwal wrote:

>> Giplet update-interval is set below 10 minutes.

Sorry that should have been set at 10 minutes, not below, sorry for
the confusion.

> Ok, could you please set it to at least 10 minutes (at least now for
> testing, to not refresh to fast, and then blocking, example,
> whatismyip.org will block requests, if they are to frequent in 60s
> interval)? Also after installing new version of giplet, please try to do:
> - Remove ~/.giplet if it still around (not needed but clean up)
> - Remove the applet from panel
> - Re-add it to panel

Aha, ~/.giplet was still lying around.

<snip>

> Sorry, that was clearly my fault! Should be there now.
>
> If we are not successfull, with that version I will forward this issue
> today or tomorrow directly to upstream author.

Thank you, updating the index as we speak.

It seems to have not been published so far :(

> Kind regards
> Salvatore
>
> p.s.: sorry for the name confusion.

--
          Regards,
          Shirish Agarwal
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

Hi Salvatore Bonaccorso,
     I still ain't able to use it even though I'm using giplet 0.2.0 .

I did purge it and reinstalled again but still no go.

shirish@shirish-desktop:~$ dpkg -l giplet
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-================-================-================================================
ii giplet 0.2.0-1.intrepid GNOME IP display applet

--
          Regards,
          Shirish Agarwal
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

Hi Salvatore Bonaccorso,
 Found a way to have it working for me. In the interfaces, just put
whatismyip.org and it works. Delete everything else.

Of course, this is not something which would be apparent to the user.
--
          Regards,
          Shirish Agarwal
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

Hi Salvatore,
 The above workaround works but makes gnome-panel unstable.

I had to do a pkill gnome-panel and then got this error.

The panel encountered a problem while loading "OAFIID:GNOME_GipletApplet".

Do you want to delete the applet from your configuration?

--
          Regards,
          Shirish Agarwal
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

Revision history for this message
Salvatore Bonaccorso (carnil) wrote :

Hi Shirish

Only a short "status" note on your bugreport.

I tried to contact upstream author about the problem reported by you,
but I'm still awaiting for a reply from him. Will notice you as soon
we have some more on this issue.

Kind regards
Salvatore

Revision history for this message
lyman (lyman) wrote :

hi, Shirish

1, I've noticed that you used this string ""www.getmyip.org whatismyip.org". This could be a just a typo, and just in case, there's no need to use any quotation mark in the interface line.

2, It seems that the accessing from your pc to whatismyip.org (and getmyip.org, too) is laggy (giplet will update ip address when preference dialog is closing). Are you experiencing a long wait in accessing whatismyip.org from a web browser? If so, you could try to find a server closer to you as a temporary solution. Maybe a paste of "ping whatismyip.org" could help.

Currently, there's no timeout set in giplet when it tries to connect to a web page, which could be a hidden trouble. I'll see what I can do. I believe things will be better with next release :)

--
lyman

Revision history for this message
Salvatore Bonaccorso (carnil) wrote :

Hi Shirish

Are you still affected by this with the newest version now? (In karmic is 0.2.2-2)

Kind regards
Salvatore

Revision history for this message
fermo111 (fermo111) wrote :

The suggested sites 'http://getmyip.org' and 'http://whatismyip.org' do not seem to work. One web site that works is 'www.cmyip.com'.

Beware of a bug in v. 0.2.2: the server address cannot start with "http://"

Revision history for this message
Salvatore Bonaccorso (carnil) wrote :

Hi

On Sat, Jul 11, 2009 at 01:22:33PM -0000, fermo111 wrote:
> The suggested sites 'http://getmyip.org' and 'http://whatismyip.org' do
> not seem to work. One web site that works is 'www.cmyip.com'.

Another working page would be checkip.dyndns.org.

Any suggestions how to handle it? (maybe talking with lyman the
upstream author of giplet).

> Beware of a bug in v. 0.2.2: the server address cannot start with
> "http://"

I added a patch to the Package in Debian unstable. As soon it is in
the archive, a request for sync should be done.

Kind regards
Salvatore

Adrien Cunin (adri2000)
Changed in giplet (Ubuntu):
assignee: Adrien Cunin (adri2000) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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