Weather Indicator should clear up corrupted DB

Bug #769842 reported by igi
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Weather Indicator
Status tracked in 2.0
Fix Released
Vadim Rutkovsky
Won't Fix
Vadim Rutkovsky
indicator-weather (Ubuntu)
Fix Released

Bug Description

Binary package hint: indicator-weather

I installed indicator-weather today.
After starting it and choosing my settings, it hanged during confirmation; so I terminated the program.
I made some retries, with no success. Now the program does not start.

Traceback from terminal:
igor@igor-NattyTest:~$ indicator-weather
Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1725, in <module>
    wi = indicator_weather()
  File "/usr/bin/indicator-weather", line 800, in __init__
  File "/usr/bin/indicator-weather", line 77, in prepare_settings_store
    self.db.add_view("get_setting", self.settings_view, None, self.settings_design_doc)
  File "/usr/lib/pymodules/python2.7/desktopcouch/records/", line 430, in add_view
  File "/usr/lib/pymodules/python2.7/couchdb/", line 139, in sync
    type(self).sync_many(db, [self])
  File "/usr/lib/pymodules/python2.7/couchdb/", line 195, in sync_many
  File "/usr/lib/pymodules/python2.7/couchdb/", line 733, in update
    _, _, data = self.resource.post_json('_bulk_docs', body=content)
  File "/usr/lib/pymodules/python2.7/couchdb/", line 399, in post_json
    status, headers, data =*a, **k)
  File "/usr/lib/pymodules/python2.7/couchdb/", line 381, in post
  File "/usr/lib/pymodules/python2.7/couchdb/", line 419, in _request
  File "/usr/lib/pymodules/python2.7/desktopcouch/records/", line 238, in request
    data = couchdbjson.decode(data)
  File "/usr/lib/pymodules/python2.7/couchdb/", line 52, in decode
    return _decode(string)
  File "/usr/lib/pymodules/python2.7/couchdb/", line 111, in <lambda>
    _decode = lambda string, loads=simplejson.loads: loads(string)
  File "/usr/lib/python2.7/dist-packages/simplejson/", line 384, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/dist-packages/simplejson/", line 402, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
TypeError: expected string or buffer

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: indicator-weather 11.04.10+repack-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic
Uname: Linux 2.6.38-8-generic i686
Architecture: i386
Date: Sun Apr 24 13:31:47 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta i386 (20110413)
PackageArchitecture: all
SourcePackage: indicator-weather
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
igi (igor-cali) wrote :
Changed in indicator-weather (Ubuntu):
status: New → Confirmed
Revision history for this message
Vadim Rutkovsky (roignac) wrote :

Terminating the program during saving settings was a bad idea.
Here is a quick fix for this - you just need to clear up your settings. Go to ~/.local/share/desktop-couch/couchdb.html, select 'weatherindicator' DB and click 'Delete Database...'. Then restart the indicator and set it up

The bug should be left as confirmed, as the indicator should clean up settings, if they are somehow got corrupted

Changed in weather-indicator:
assignee: nobody → Vadim Rutkovsky (roignac)
importance: Undecided → Wishlist
milestone: none → foggy
status: New → Confirmed
summary: - Indicator-Weather does not start
+ Weather Indicator should clear up corrupted DB
Changed in indicator-weather (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package indicator-weather - 11.05.31-0ubuntu1

indicator-weather (11.05.31-0ubuntu1) oneiric; urgency=low

  * New upstream release.
   - Ported settings to dconf, which will solve a number of
     desktopcouch-related bugs
   - Fix for LP: #747733 "indicator-weather crashed with
     TypeError in next_page(): unknown type (null)"
   - Fix for LP: #756704 "Numbers (temperature etc.) do
     not use local number format"
   - Fix for LP: #770652 "sunrise and sunset info incorrect"
   - Fix for LP: #765464 "do not see indicator-weather on the panel"
   - Fix for LP: #769842 "Weather Indicator should clear up corrupted DB"
   - Fix for LP: #778941 "Weather Indicator can't be disabled"
   - Fix for LP: #796314 "ROUND_CEiLiNG error in Turkish locale"
   - Fix for LP: #780973 "indicator-weather crashed with Unauthorized in
     request(): ('unauthorized', 'Authentication required.')"
  * debian/control:
   - Adjust dependencies for desktop-couch to dconf transition.
   - Bump Standards-Version to 3.9.2.
   - Explictily depend on libgtk2.0-bin to ensure we have
     /usr/bin/gtk-update-icon-cache (LP: #808387).
  * Convert from python-support to dh_python2.
  * debian/rules:
   - Drop get-orig-source target, not needed.
   - Fix debian/postinst to check for symbolic links as well.
 -- Andrew Starr-Bochicchio <email address hidden> Tue, 12 Jul 2011 01:44:53 -0400

Changed in indicator-weather (Ubuntu):
status: Fix Committed → Fix Released
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.