Weather Indicator should clear up corrupted DB

Bug #769842 reported by igi on 2011-04-24
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Weather Indicator
Status tracked in 2.0
2.0
Wishlist
Vadim Rutkovsky
3.0
Wishlist
Vadim Rutkovsky
indicator-weather (Ubuntu)
Undecided
Unassigned

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__
    self.settings.prepare_settings_store()
  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/database.py", line 430, in add_view
    view.sync(self.db)
  File "/usr/lib/pymodules/python2.7/couchdb/design.py", line 139, in sync
    type(self).sync_many(db, [self])
  File "/usr/lib/pymodules/python2.7/couchdb/design.py", line 195, in sync_many
    db.update(docs)
  File "/usr/lib/pymodules/python2.7/couchdb/client.py", line 733, in update
    _, _, data = self.resource.post_json('_bulk_docs', body=content)
  File "/usr/lib/pymodules/python2.7/couchdb/http.py", line 399, in post_json
    status, headers, data = self.post(*a, **k)
  File "/usr/lib/pymodules/python2.7/couchdb/http.py", line 381, in post
    **params)
  File "/usr/lib/pymodules/python2.7/couchdb/http.py", line 419, in _request
    credentials=self.credentials)
  File "/usr/lib/pymodules/python2.7/desktopcouch/records/http.py", line 238, in request
    data = couchdbjson.decode(data)
  File "/usr/lib/pymodules/python2.7/couchdb/json.py", line 52, in decode
    return _decode(string)
  File "/usr/lib/pymodules/python2.7/couchdb/json.py", line 111, in <lambda>
    _decode = lambda string, loads=simplejson.loads: loads(string)
  File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 384, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", 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 2.6.38.2
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
ProcEnviron:
 LANGUAGE=it_IT:en
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
SourcePackage: indicator-weather
UpgradeStatus: No upgrade log present (probably fresh install)

igi (igor-cali) wrote :
Changed in indicator-weather (Ubuntu):
status: New → Confirmed
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
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  Edit
Everyone can see this information.

Other bug subscribers