AttributeError: 'MetadataUpgrader' object has no attribute '_upgrade_metadata_6'

Bug #517505 reported by Natalia Bidart
272
This bug affects 44 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Invalid
Medium
Guillermo Gonzalez

Bug Description

Right click on applet at computer startup made syncdaemon crash

2010-02-05 08:52:31,327 - ubuntuone.SyncDaemon - ERROR - Unexpected error
Traceback (most recent call last):
  File "/usr/lib/ubuntuone-client/ubuntuone-syncdaemon", line 183, in <module>
    main(sys.argv)
  File "/usr/lib/ubuntuone-client/ubuntuone-syncdaemon", line 136, in main
    throttling_enabled=options.bandwidth_throttling_on)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/main.py", line 107, in __init__
    self.vm = volume_manager.VolumeManager(self)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/volume_manager.py", line 159, in __init__
    md_upgrader.upgrade_metadata()
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/volume_manager.py", line 778, in upgrade_metadata
    self.md_version)
AttributeError: 'MetadataUpgrader' object has no attribute '_upgrade_metadata_6'

DistroRelease: Ubuntu 9.10

WORKAROUND
1. Quit the Ubuntu One client. From the applet select Quit. Then open a Terminal (Applications > Accessories > Terminal) and run the following to quit the syncdaemon.

u1sdtool -q

2. Delete the old metadata. In a Terminal run.

rm -rf ~/.local/share/ubuntuone

3. Start Ubuntu One as you normally would Applications > Internet > Ubuntu One

Revision history for this message
Natalia Bidart (nataliabidart) wrote :
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Logs from SD.

Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Another thing to note is that log files are 1098 bytes sized... isn't that too little?

nessita@dali:~$ ls -l .cache/ubuntuone/log/
total 68
-rw-r--r-- 1 nessita nessita 19781 2010-02-05 08:51 oauth-login.log
-rw-r--r-- 1 nessita nessita 834 2010-02-05 08:52 syncdaemon-exceptions.log
-rw-r--r-- 1 nessita nessita 834 2010-02-05 00:46 syncdaemon-exceptions.log.2010-02-05_08-51-05
-rw-r--r-- 1 nessita nessita 834 2010-02-05 08:51 syncdaemon-exceptions.log.2010-02-05_08-51-13
-rw-r--r-- 1 nessita nessita 834 2010-02-05 08:51 syncdaemon-exceptions.log.2010-02-05_08-51-15
-rw-r--r-- 1 nessita nessita 834 2010-02-05 08:51 syncdaemon-exceptions.log.2010-02-05_08-51-16
-rw-r--r-- 1 nessita nessita 834 2010-02-05 08:51 syncdaemon-exceptions.log.2010-02-05_08-52-30
-rw-r--r-- 1 nessita nessita 834 2010-02-05 08:52 syncdaemon.log
-rw-r--r-- 1 nessita nessita 1098 2010-02-05 08:51 syncdaemon.log.2010-02-05_08-51-05
-rw-r--r-- 1 nessita nessita 1098 2010-02-05 08:51 syncdaemon.log.2010-02-05_08-51-13
-rw-r--r-- 1 nessita nessita 1098 2010-02-05 08:51 syncdaemon.log.2010-02-05_08-51-15
-rw-r--r-- 1 nessita nessita 1098 2010-02-05 08:51 syncdaemon.log.2010-02-05_08-51-16
-rw-r--r-- 1 nessita nessita 1098 2010-02-05 08:52 syncdaemon.log.2010-02-05_08-52-30

Changed in ubuntuone-client:
assignee: nobody → Guillermo Gonzalez (verterok)
importance: Undecided → Medium
Revision history for this message
Guillermo Gonzalez (verterok) wrote : Re: [Bug 517505] Re: Right click on applet at computer startup made syncdaemon crash

Hi Naty,

By any chance you used trunk and then started an old client? ;)

Regards,

--
Guillermo Gonzalez
<http://launchpad.net/~verterok>

On Fri, Feb 5, 2010 at 9:02 AM, Naty Bidart <email address hidden>wrote:

> Another thing to note is that log files are 1098 bytes sized... isn't
> that too little?
>
> nessita@dali:~$ ls -l .cache/ubuntuone/log/
> total 68
> -rw-r--r-- 1 nessita nessita 19781 2010-02-05 08:51 oauth-login.log
> -rw-r--r-- 1 nessita nessita 834 2010-02-05 08:52
> syncdaemon-exceptions.log
> -rw-r--r-- 1 nessita nessita 834 2010-02-05 00:46
> syncdaemon-exceptions.log.2010-02-05_08-51-05
> -rw-r--r-- 1 nessita nessita 834 2010-02-05 08:51
> syncdaemon-exceptions.log.2010-02-05_08-51-13
> -rw-r--r-- 1 nessita nessita 834 2010-02-05 08:51
> syncdaemon-exceptions.log.2010-02-05_08-51-15
> -rw-r--r-- 1 nessita nessita 834 2010-02-05 08:51
> syncdaemon-exceptions.log.2010-02-05_08-51-16
> -rw-r--r-- 1 nessita nessita 834 2010-02-05 08:51
> syncdaemon-exceptions.log.2010-02-05_08-52-30
> -rw-r--r-- 1 nessita nessita 834 2010-02-05 08:52 syncdaemon.log
> -rw-r--r-- 1 nessita nessita 1098 2010-02-05 08:51
> syncdaemon.log.2010-02-05_08-51-05
> -rw-r--r-- 1 nessita nessita 1098 2010-02-05 08:51
> syncdaemon.log.2010-02-05_08-51-13
> -rw-r--r-- 1 nessita nessita 1098 2010-02-05 08:51
> syncdaemon.log.2010-02-05_08-51-15
> -rw-r--r-- 1 nessita nessita 1098 2010-02-05 08:51
> syncdaemon.log.2010-02-05_08-51-16
> -rw-r--r-- 1 nessita nessita 1098 2010-02-05 08:52
> syncdaemon.log.2010-02-05_08-52-30
>
>
> ** Changed in: ubuntuone-client
> Assignee: (unassigned) => Guillermo Gonzalez (verterok)
>
> ** Changed in: ubuntuone-client
> Importance: Undecided => Medium
>
> --
> Right click on applet at computer startup made syncdaemon crash
> https://bugs.launchpad.net/bugs/517505
> You received this bug notification because you are a member of Ubuntu
> One hackers, which is subscribed to Ubuntu One Client.
>

Revision history for this message
Guillermo Gonzalez (verterok) wrote : Re: Right click on applet at computer startup made syncdaemon crash

I mean, if you started a client using trunk code, your metadata was migrated and now the system-wide client can't read it (look that's trying to read metadata v.6 which is the new metadata version)

Cheers,

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

I'm marking this as invalid, as we can't make old client understand new metadata :)

Changed in ubuntuone-client:
status: Confirmed → Invalid
summary: - Right click on applet at computer startup made syncdaemon crash
+ AttributeError: 'MetadataUpgrader' object has no attribute
+ '_upgrade_metadata_6'
description: updated
description: updated
Revision history for this message
Dave Gallenberger (switch10) wrote :

Thank you duanedesign!!

The fix worked for me.

To post a comment you must log in.