[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2243: TypeError: 'NoneType' object has no attribute '__getitem__' while opening backupdb

Tahoe-LAFS trac at tahoe-lafs.org
Fri Dec 19 02:52:32 UTC 2014


#2243: TypeError: 'NoneType' object has no attribute '__getitem__' while opening
backupdb
---------------------------------+-----------------------------------------
     Reporter:  daira            |      Owner:  daira
         Type:  defect           |     Status:  assigned
     Priority:  normal           |  Milestone:  undecided
    Component:  code-frontend-   |    Version:  1.10.0
  cli                            |   Keywords:  tahoe-backup backupdb error
   Resolution:                   |
Launchpad Bug:                   |
---------------------------------+-----------------------------------------

Comment (by zooko):

 This happened again, with AB:
 {{{
 Traceback (most recent call last):
   File "/usr/lib64/python2.7/site-packages/allmydata/scripts/runner.py",
 line 156, in run
     rc = runner(sys.argv[1:], install_node_control=install_node_control)
   File "/usr/lib64/python2.7/site-packages/allmydata/scripts/runner.py",
 line 141, in runner
     rc = cli.dispatch[command](so)
   File "/usr/lib64/python2.7/site-packages/allmydata/scripts/cli.py", line
 574, in backup
     rc = tahoe_backup.backup(options)
   File "/usr/lib64/python2.7/site-
 packages/allmydata/scripts/tahoe_backup.py", line 325, in backup
     return bu.run()
   File "/usr/lib64/python2.7/site-
 packages/allmydata/scripts/tahoe_backup.py", line 90, in run
     self.backupdb = backupdb.get_backupdb(bdbfile, stderr)
   File "/usr/lib64/python2.7/site-packages/allmydata/scripts/backupdb.py",
 line 84, in get_backupdb
     version = c.fetchone()[0]
 TypeError: 'NoneType' object has no attribute '__getitem__'
 }}}
 What should we do if the backupdb file is corrupted? Delete it and
 proceed? Or stop with a useful error message?

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2243#comment:7>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list