AttributeError: '_MDObject' object has no attribute 'crc32'

Bug #783327 reported by Roman Yepishev
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Confirmed
High
Ubuntu One Foundations+ team

Bug Description

Converted to bug from Ubuntu One support request #1466:

Ubuntu One client version 1.6.2

The computer never finishes the local rescan failing with the following message:
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/ubuntuone-client/ubuntuone/syncdaemon/local_rescan.py", line 343, in _scan_tree
    d.addCallbacks(self._scan_one_dir)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 286, in addCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 542, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/pymodules/python2.7/ubuntuone-client/ubuntuone/syncdaemon/local_rescan.py", line 699, in _scan_one_dir
    d = defer.execute(scan)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 104, in execute
    result = callable(*args, **kw)
  File "/usr/lib/pymodules/python2.7/ubuntuone-client/ubuntuone/syncdaemon/local_rescan.py", line 659, in scan
    share)
  File "/usr/lib/pymodules/python2.7/ubuntuone-client/ubuntuone/syncdaemon/local_rescan.py", line 497, in _compare
    self._resume_upload(fullname)
  File "/usr/lib/pymodules/python2.7/ubuntuone-client/ubuntuone/syncdaemon/local_rescan.py", line 362, in _resume_upload
    mdobj.local_hash, mdobj.crc32, mdobj.size,
exceptions.AttributeError: '_MDObject' object has no attribute 'crc32'

Revision history for this message
Roman Yepishev (rye) wrote :
Revision history for this message
Roman Yepishev (rye) wrote :
Revision history for this message
Roman Yepishev (rye) wrote :
Roman Yepishev (rye)
Changed in ubuntuone-client:
importance: Undecided → High
assignee: nobody → Ubuntu One Foundations+ team (ubuntuone-foundations+)
Revision history for this message
Roman Yepishev (rye) wrote :

Workaround:
1. Shut down ubuntuone-syncdaemon:
  u1sdtool --quit
2. Download fix-missing-tritcask-crc32.py:
  wget http://people.canonical.com/~roman.yepishev/us/fix-missing-tritcask-crc32.py
3. Run fix-missing-tritcask-crc32.py:
  python fix-missing-tritcask-crc32.py

After this the database will be updated and it should be possible to start ubuntuone-syncdaemon again:
u1sdtool --start

Revision history for this message
Keith Clark (keithclark) wrote : Re: [Bug 783327] Re: AttributeError: '_MDObject' object has no attribute 'crc32'

I have tried the intructions below. Now here is what I get:

keithclark@HP1211N:~/Desktop$ u1sdtool --status
State: ROOT_MISMATCH
    connection: With User With Network
    description: local and server roots are different
    is_connected: False
    is_error: True
    is_online: False
    queues: WORKING

On Wed, 2011-05-18 at 13:44 +0000, Roman Yepishev wrote:
> Workaround:
> 1. Shut down ubuntuone-syncdaemon:
> u1sdtool --quit
> 2. Download fix-missing-tritcask-crc32.py:
> wget http://people.canonical.com/~roman.yepishev/us/fix-missing-tritcask-crc32.py
> 3. Run fix-missing-tritcask-crc32.py:
> python fix-missing-tritcask-crc32.py
>
> After this the database will be updated and it should be possible to start ubuntuone-syncdaemon again:
> u1sdtool --start
>

Revision history for this message
mattman0 (matt-mjcj) wrote :

Had the same issue after update to Natty, these instruction worked and U1 updated straight away, Thanks

Rick McBride (rmcbride)
Changed in ubuntuone-client:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.