gwibber crashed with ValueError in items_in_section()

Bug #544753 reported by spanella on 2010-03-23
160
This bug affects 31 people
Affects Status Importance Assigned to Milestone
Gwibber
Undecided
Unassigned
gwibber (Ubuntu)
Medium
Unassigned

Bug Description

Binary package hint: gwibber

Gwibber would not open when being launched from terminal

extra bug details will be attached

ProblemType: Crash
Architecture: i386
Date: Mon Mar 22 19:30:39 2010
DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/bin/gwibber
InterpreterPath: /usr/bin/python2.6
Package: gwibber 2.29.92.1-0ubuntu1
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/gwibber
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.32-16.25-generic
PythonArgs: ['/usr/bin/gwibber']
SourcePackage: gwibber
Title: gwibber crashed with ValueError in items_in_section()
Uname: Linux 2.6.32-16-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

spanella (spanella) wrote :
tags: removed: need-duplicate-check
Kamus (kamus) on 2010-04-06
visibility: private → public
Kamus (kamus) on 2010-04-06
Changed in gwibber (Ubuntu):
importance: Undecided → Medium
Kamus (kamus) wrote :

@spanella, Please could you run under latest version of gwibber: gwibber --debug > gwibber-debug.log and attach output to your report (following your steps to reproduce this issue), Thanks!

Changed in gwibber (Ubuntu):
status: New → Incomplete
RColombo (rcolombo) wrote :

** (gwibber:8617): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
Traceback (most recent call last):
  File "/usr/bin/gwibber", line 50, in <module>
    from gwibber import client
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 3, in <module>
    import gtk, gobject, gwui, util, resources, actions, json, gconf
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 2, in <module>
    import os, json, urlparse, resources, util
  File "/usr/lib/python2.6/dist-packages/gwibber/util.py", line 2, in <module>
    from microblog.util.couch import RecordMonitor
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/util/couch.py", line 10, in <module>
    OAUTH_DATA = desktopcouch.local_files.get_oauth_tokens()
  File "/usr/lib/python2.6/dist-packages/desktopcouch/local_files.py", line 323, in get_oauth_tokens
    oauth_token_secrets = cf.items_in_section("oauth_token_secrets")[0]
  File "/usr/lib/python2.6/dist-packages/desktopcouch/local_files.py", line 189, in items_in_section
    raise ValueError("Section %r not present." % (section_name,))
ValueError: Section 'oauth_token_secrets' not present.

@Kamus, Not getting any output into the file with that command. But this is
what comes up in the terminal:

_____:~$ gwibber --debug > gwibber-debug.log

** (gwibber:2379): WARNING **: Trying to register gtype 'WnckWindowState' as
enum when in fact it is of type 'GFlags'

** (gwibber:2379): WARNING **: Trying to register gtype 'WnckWindowActions'
as enum when in fact it is of type 'GFlags'

** (gwibber:2379): WARNING **: Trying to register gtype
'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
Traceback (most recent call last):
  File "/usr/bin/gwibber", line 50, in <module>
    from gwibber import client
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 3, in
<module>
    import gtk, gobject, gwui, util, resources, actions, json, gconf
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 2, in
<module>
    import os, json, urlparse, resources, util
  File "/usr/lib/python2.6/dist-packages/gwibber/util.py", line 2, in
<module>
    from microblog.util.couch import RecordMonitor
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/util/couch.py",
line 10, in <module>
    OAUTH_DATA = desktopcouch.local_files.get_oauth_tokens()
  File "/usr/lib/python2.6/dist-packages/desktopcouch/local_files.py", line
323, in get_oauth_tokens
    oauth_token_secrets = cf.items_in_section("oauth_token_secrets")[0]
  File "/usr/lib/python2.6/dist-packages/desktopcouch/local_files.py", line
189, in items_in_section
    raise ValueError("Section %r not present." % (section_name,))
ValueError: Section 'oauth_token_secrets' not present.

----
Was gonna try a fresh install when the final comes out and recheck. I also
erased everything having to do with gwibber from my /home that i could find.
I had installed one of the initial versions quite awhile ago

On Tue, Apr 13, 2010 at 2:30 PM, Kamus <email address hidden> wrote:

> @spanella, Please could you run under latest version of gwibber: gwibber
> --debug > gwibber-debug.log and attach output to your report (following
> your steps to reproduce this issue), Thanks!
>
> ** Changed in: gwibber (Ubuntu)
> Status: New => Incomplete
>
> --
> gwibber crashed with ValueError in items_in_section()
> https://bugs.launchpad.net/bugs/544753
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Omer Akram (om26er) wrote :

Confirmed from a recent duplicate

Changed in gwibber (Ubuntu):
status: Incomplete → Confirmed
Changed in gwibber (Ubuntu):
status: Confirmed → Triaged
importance: Medium → High
Jeremy Visser (jeremy-visser) wrote :

Is there an update on this?

I’ve upgraded from Karmic, and I previously used Gwibber on Karmic. Now on upgrade to Lucid I’m getting the above error.

I’ve tried “gconftool-2 --recursive-unset /apps/gwibber”, deleting .cache/gwibber, deleting .local/share/desktop-couch/{,.}gwibber* to no avail.

If I create a new user account, Gwibber works in the new account, but I am certainly not going to delete my home folder just to fix Gwibber.

Ubuntu 10.04 is going to release today. I have installed a fresh copy of
ubuntu lucid release candidate and gwibber works fine in fresh
installation. My advice is that You should do the fresh installation
with of lucid.
If you don't have separate home partition, please let me know, I will
help you erasing it without losing data.

  On Thu, 2010-04-29 at 03:13 +0000, Jeremy Visser wrote:
> Is there an update on this?
>
> I’ve upgraded from Karmic, and I previously used Gwibber on Karmic. Now
> on upgrade to Lucid I’m getting the above error.
>
> I’ve tried “gconftool-2 --recursive-unset /apps/gwibber”, deleting
> .cache/gwibber, deleting .local/share/desktop-couch/{,.}gwibber* to no
> avail.
>
> If I create a new user account, Gwibber works in the new account, but I
> am certainly not going to delete my home folder just to fix Gwibber.
>

Jeremy Visser (jeremy-visser) wrote :

I’ve found that running “rm -r .local/share/desktop-couch” will ‘fix’ it, though that’s a sub-optimal solution. Now I can no longer reproduce the bug, so unfortunately I can’t investigate further.

Could somebody browse their CouchDB database and find out what to delete that will fix this without blowing away entire desktop-couch setups?

Kamus (kamus) wrote :

@Jeremy, actually you can browse all content of you db with "xdg-open ~/.local/share/desktop-couch/couchdb.html" or openning directly with your favorite web browser.

Jeremy Visser (jeremy-visser) wrote :

Yeah, that’s what I was referring to by “browse their CouchDB database”. Unfortunately I only discovered that interface *after* I wiped my DB, thus I can’t debug further myself (but somebody else could certainly do so).

JonathanSchultz (nilveritas) wrote :

I have been trying to workaround this bug as a user, and the following are my posts from the Ubuntu Forums, I was asked to post my findings to Launchpad, hopefully this is the appropriate place to do so. If not, I will be happy to clean up any mess.

From http://ubuntuforums.org/showthread.php?p=9248847#post9248847 I am TyroneSlothrop in the thread.

Essentially, I did the following:

I issued the command: killall beam
I then removed the couchdb initialization file: rm ~/.config/desktop-couch/desktop-couchdb.ini
I then issued the following command: dbus-send --session --dest=org.desktopcouch.CouchDB --print-reply --type=method_call / org.desktopcouch.CouchDB.getPort
I then issued the command: xdg-open file:///home/USERNAME/.local/share/desktop-couch/couchdb.html

I was then presented with the Couch DB debugger, Futon. I was able to run the oauth, replication, security_validation, and conflicts under the Test Suite option.

After that, I could once again re-sync with Ubuntu One, I had entries for Desktop Couch in keyring. I was not able to start Gwibber, but when I tried I got a new message about a client not being present, not the original error message. I then was able to run Broadcast Preferences in Administration, and ticked the 'Start service at login', ran some updates, restarted, and gwibber is now running for me.

Not sure if what I did got it fixed, or if there was a fix in the updates, but hopefully this helps others with this issue.

Thinking about it now, I think that the format of the keyring entries got jiggered in the upgrade, but that is an amateurs speculation, your mileage may vary, as they say.

Cheers.

Tom Dison (fretinator) wrote :

I too have this issue, and it renders UbuntuOne and Gwibber inoperable. This is a clean install of 10.04 with all updates applied as of May 6th, 2010. So far the hacks for this look pretty ugly, so I will wait for a patch. Here is my output to 'gwibber-account' at the command line:

gwibber-accounts

** (gwibber-accounts:8035): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'

** (gwibber-accounts:8035): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'

** (gwibber-accounts:8035): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
Traceback (most recent call last):
  File "/usr/bin/gwibber-accounts", line 61, in <module>
    from gwibber import accounts
  File "/usr/lib/python2.6/dist-packages/gwibber/accounts.py", line 42, in <module>
    import gwibber.lib
  File "/usr/lib/python2.6/dist-packages/gwibber/lib/__init__.py", line 2, in <module>
    from gwibber import util
  File "/usr/lib/python2.6/dist-packages/gwibber/util.py", line 2, in <module>
    from microblog.util.couch import RecordMonitor
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/util/couch.py", line 10, in <module>
    OAUTH_DATA = desktopcouch.local_files.get_oauth_tokens()
  File "/usr/lib/python2.6/dist-packages/desktopcouch/local_files.py", line 323, in get_oauth_tokens
    oauth_token_secrets = cf.items_in_section("oauth_token_secrets")[0]
  File "/usr/lib/python2.6/dist-packages/desktopcouch/local_files.py", line 189, in items_in_section
    raise ValueError("Section %r not present." % (section_name,))
ValueError: Section 'oauth_token_secrets' not present.

innervision (dguaraglia) wrote :

As of today I'm getting the same problem. Gwibber was working perfectly OK earlier, I didn't update or anything. I didn't even restart the computer. I guess it's a CouchDB corruption problem of some kind.

What is the preferred workaround? Could I just delete the gwibber_preferences DB and try running Gwibber and adding everything again?

Omer Akram (om26er) on 2010-07-05
Changed in gwibber (Ubuntu):
importance: High → Medium
Omer Akram (om26er) wrote :

'does not start' is High ;)

Changed in gwibber (Ubuntu):
importance: Medium → High
Changed in gwibber:
status: New → Confirmed

thank you for your concern
جزاك الله خير

nametaken (gus-webb) wrote :

I also have this error. I was able to workaround simply by removing the ~/.config/desktop-couch/desktop-couch.ini file (I actually moved it to same.old in case I needed it later).

I had just installed a fresh install of 10.04 amd64 version. The old ini only had the [admins] section, the new one has a lot more sections, and different hash values in the [admins] section.

This was my error data from terminal

** (gwibber:1807): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'

** (gwibber:1807): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'

** (gwibber:1807): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
Traceback (most recent call last):
  File "/usr/bin/gwibber", line 50, in <module>
    from gwibber import client
  File "/usr/lib/python2.6/dist-packages/gwibber/client.py", line 3, in <module>
    import gtk, gobject, gwui, util, resources, actions, json, gconf
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 2, in <module>
    import os, json, urlparse, resources, util
  File "/usr/lib/python2.6/dist-packages/gwibber/util.py", line 2, in <module>
    from microblog.util.couch import RecordMonitor
  File "/usr/lib/python2.6/dist-packages/gwibber/microblog/util/couch.py", line 10, in <module>
    OAUTH_DATA = desktopcouch.local_files.get_oauth_tokens()
  File "/usr/lib/python2.6/dist-packages/desktopcouch/local_files.py", line 323, in get_oauth_tokens
    oauth_token_secrets = cf.items_in_section("oauth_token_secrets")[0]
  File "/usr/lib/python2.6/dist-packages/desktopcouch/local_files.py", line 189, in items_in_section
    raise ValueError("Section %r not present." % (section_name,))
ValueError: Section 'oauth_token_secrets' not present.

Luke Ashe-Browne (lukeab) wrote :

I also have this issue, i did a fresh install of Lucid keeping my /home/ from Karmic, everything else seems ok(including my Ubuntu One directory is sync'd), just gwibber doesn't work with the exact same oauth_token_secrets error.

Will there be any further movement on this ticket other than just wipe your gwibber preferences db?

Omer Akram (om26er) wrote :

Have anyone been able to reproduce the issue with gwibber 2.32.2?

Changed in gwibber (Ubuntu):
importance: High → Medium
Kamus (kamus) wrote :

Folks, any news about this issue?

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

Other bug subscribers