[tahoe-dev] Bug in 'backup' command

Andrej Falout andrej at falout.org
Mon Feb 16 10:38:03 UTC 2009


Hello,

while running "tahoe backup":

Traceback (most recent call last):
  File "/usr/src/tahoe/allmydata-tahoe-1.2.0-r3558/support/bin/tahoe",
line 8, in <module>
    load_entry_point('allmydata-tahoe==1.2.0-r3558',
'console_scripts', 'tahoe')()
  File "/usr/src/tahoe/allmydata-tahoe-1.2.0-r3558/src/allmydata/scripts/runner.py",
line 91, in run
    rc = runner(sys.argv[1:])
  File "/usr/src/tahoe/allmydata-tahoe-1.2.0-r3558/src/allmydata/scripts/runner.py",
line 78, in runner
    rc = cli.dispatch[command](so)
  File "/usr/src/tahoe/allmydata-tahoe-1.2.0-r3558/src/allmydata/scripts/cli.py",
line 359, in backup
    rc = tahoe_backup.backup(options)
  File "/usr/src/tahoe/allmydata-tahoe-1.2.0-r3558/src/allmydata/scripts/tahoe_backup.py",
line 348, in backup
    return bu.run()
  File "/usr/src/tahoe/allmydata-tahoe-1.2.0-r3558/src/allmydata/scripts/tahoe_backup.py",
line 193, in run
    new_backup_dircap = self.process(options.from_dir, latest_backup_dircap)
  File "/usr/src/tahoe/allmydata-tahoe-1.2.0-r3558/src/allmydata/scripts/tahoe_backup.py",
line 240, in process
    newchilddircap = self.process(childpath, oldchildcap)
  File "/usr/src/tahoe/allmydata-tahoe-1.2.0-r3558/src/allmydata/scripts/tahoe_backup.py",
line 240, in process
    newchilddircap = self.process(childpath, oldchildcap)
  File "/usr/src/tahoe/allmydata-tahoe-1.2.0-r3558/src/allmydata/scripts/tahoe_backup.py",
line 243, in process
    newfilecap, metadata = self.upload(childpath)
  File "/usr/src/tahoe/allmydata-tahoe-1.2.0-r3558/src/allmydata/scripts/tahoe_backup.py",
line 322, in upload
    must_upload, bdb_results = self.check_backupdb(childpath)
  File "/usr/src/tahoe/allmydata-tahoe-1.2.0-r3558/src/allmydata/scripts/tahoe_backup.py",
line 268, in check_backupdb
    r = self.backupdb.check_file(childpath, use_timestamps)
  File "/usr/src/tahoe/allmydata-tahoe-1.2.0-r3558/src/allmydata/scripts/backupdb.py",
line 168, in check_file
    (path,))
sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless
you use a text_factory that can interpret 8-bit bytestrings (like
text_factory = str). It is highly recommended that you instead just
switch your application to Unicode strings.
Command exited with non-zero status 1

I can provide the file that triggers this error, if required.

-- 
Andrej Falout



More information about the tahoe-dev mailing list