update-manager -d crashed when updating from 11.04 to 11.10 - line 69, in apt_btrfs_snapshot.py", line 69, in btrfs_subvolume_snapshot source, dest]) - OSError: [Errno 2] No such file or directory

Bug #801696 reported by Stefan Beller
38
This bug affects 4 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Critical
Michael Vogt
Oneiric
Fix Released
Critical
Michael Vogt

Bug Description

See attachment for console output of problem.

I am not sure if this is update-manager or aport problem.
Due to that bug no cleanup was performed; my /etc/apt/sources.list still has the
11.10 (oneiric) packages listed.

sb@sb:~$ sudo update-manager -d
[sudo] password for sb:
extracting 'oneiric.tar.gz'
authenticate 'oneiric.tar.gz' against 'oneiric.tar.gz.gpg'
apport start/running
Traceback (most recent call last):
  File "/tmp/update-manager-jcYcdh/oneiric", line 7, in <module>
    sys.exit(main())
  File "/tmp/update-manager-jcYcdh/DistUpgradeMain.py", line 202, in main
    if app.run():
  File "/tmp/update-manager-jcYcdh/DistUpgradeController.py", line 1642, in run
    return self.fullUpgrade()
  File "/tmp/update-manager-jcYcdh/DistUpgradeController.py", line 1612, in fullUpgrade
    if not self.doDistUpgrade():
  File "/tmp/update-manager-jcYcdh/DistUpgradeController.py", line 1006, in doDistUpgrade
    self._maybe_create_apt_btrfs_snapshot()
  File "/tmp/update-manager-jcYcdh/DistUpgradeController.py", line 990, in _maybe_create_apt_btrfs_snapshot
    res = apt_btrfs.create_btrfs_root_snapshot(prefix)
  File "/tmp/update-manager-jcYcdh/apt_btrfs_snapshot.py", line 122, in create_btrfs_root_snapshot
    os.path.join(mp, self.SNAP_PREFIX+additional_prefix+snap_id))
  File "/tmp/update-manager-jcYcdh/apt_btrfs_snapshot.py", line 69, in btrfs_subvolume_snapshot
    source, dest])
  File "/usr/lib/python2.7/subprocess.py", line 486, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1213, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: update-manager 1:0.150.2
ProcVersionSignature: Ubuntu 2.6.38-10.44-generic 2.6.38.7
Uname: Linux 2.6.38-10-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri Jun 24 20:31:42 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110330)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: update-manager
UpgradeStatus: Upgraded to natty on 2011-06-24 (0 days ago)

Revision history for this message
Stefan Beller (stefanbeller) wrote :
tags: added: oneiric
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

I'm unable to reproduce it locally. Could you please attach an archive of the directory /var/log/dist-upgrade to this report.
That might be the same error seen with the auto upgrade tests http://people.canonical.com/~mvo/automatic-upgrade-testing/current/

Thanks in advance.

Changed in update-manager (Ubuntu):
importance: Undecided → High
status: New → Incomplete
summary: - update-manager -d crashed when updating from 11.04 to 11.10
+ update-manager -d crashed when updating from 11.04 to 11.10 - line 69,
+ in apt_btrfs_snapshot.py", line 69, in btrfs_subvolume_snapshot source,
+ dest]) - OSError: [Errno 2] No such file or directory
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Is it a btrfs install of Natty ?

---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

description: updated
Revision history for this message
Stefan Beller (stefanbeller) wrote : Re: [Bug 801696] Re: update-manager -d crashed when updating from 11.04 to 11.10 - line 69, in apt_btrfs_snapshot.py", line 69, in btrfs_subvolume_snapshot source, dest]) - OSError: [Errno 2] No such file or directory
Download full text (5.9 KiB)

No it was just a try to get 11.10 to be alpha tester there...

And btrfs was not installed and is not installed now.

2011/6/24 Jean-Baptiste Lallement <email address hidden>:
> Is it a btrfs install of Natty ?
>
> ---
> Ubuntu Bug Squad volunteer triager
> http://wiki.ubuntu.com/BugSquad
>
> ** Description changed:
>
>  See attachment for console output of problem.
>
>  I am not sure if this is update-manager or aport problem.
> - Due to that bug no cleanup was performed; my /etc/apt/sources.list still has the
> + Due to that bug no cleanup was performed; my /etc/apt/sources.list still has the
>  11.10 (oneiric) packages listed.
> +
> + sb@sb:~$ sudo update-manager -d
> + [sudo] password for sb:
> + extracting 'oneiric.tar.gz'
> + authenticate 'oneiric.tar.gz' against 'oneiric.tar.gz.gpg'
> + apport start/running
> + Traceback (most recent call last):
> +   File "/tmp/update-manager-jcYcdh/oneiric", line 7, in <module>
> +     sys.exit(main())
> +   File "/tmp/update-manager-jcYcdh/DistUpgradeMain.py", line 202, in main
> +     if app.run():
> +   File "/tmp/update-manager-jcYcdh/DistUpgradeController.py", line 1642, in run
> +     return self.fullUpgrade()
> +   File "/tmp/update-manager-jcYcdh/DistUpgradeController.py", line 1612, in fullUpgrade
> +     if not self.doDistUpgrade():
> +   File "/tmp/update-manager-jcYcdh/DistUpgradeController.py", line 1006, in doDistUpgrade
> +     self._maybe_create_apt_btrfs_snapshot()
> +   File "/tmp/update-manager-jcYcdh/DistUpgradeController.py", line 990, in _maybe_create_apt_btrfs_snapshot
> +     res = apt_btrfs.create_btrfs_root_snapshot(prefix)
> +   File "/tmp/update-manager-jcYcdh/apt_btrfs_snapshot.py", line 122, in create_btrfs_root_snapshot
> +     os.path.join(mp, self.SNAP_PREFIX+additional_prefix+snap_id))
> +   File "/tmp/update-manager-jcYcdh/apt_btrfs_snapshot.py", line 69, in btrfs_subvolume_snapshot
> +     source, dest])
> +   File "/usr/lib/python2.7/subprocess.py", line 486, in call
> +     return Popen(*popenargs, **kwargs).wait()
> +   File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
> +     errread, errwrite)
> +   File "/usr/lib/python2.7/subprocess.py", line 1213, in _execute_child
> +     raise child_exception
> + OSError: [Errno 2] No such file or directory
>
>  ProblemType: Bug
>  DistroRelease: Ubuntu 11.04
>  Package: update-manager 1:0.150.2
>  ProcVersionSignature: Ubuntu 2.6.38-10.44-generic 2.6.38.7
>  Uname: Linux 2.6.38-10-generic x86_64
>  NonfreeKernelModules: nvidia
>  Architecture: amd64
>  Date: Fri Jun 24 20:31:42 2011
>  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110330)
>  PackageArchitecture: all
>  ProcEnviron:
> -  LANGUAGE=en_US:en
> -  PATH=(custom, user)
> -  LANG=en_US.UTF-8
> -  SHELL=/bin/bash
> +  LANGUAGE=en_US:en
> +  PATH=(custom, user)
> +  LANG=en_US.UTF-8
> +  SHELL=/bin/bash
>  SourcePackage: update-manager
>  UpgradeStatus: Upgraded to natty on 2011-06-24 (0 days ago)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/801696
>
> Title:
>  update-manager -d crashed when updating from 11.04 to 11.10 - line 69,
>  in apt_btrfs_...

Read more...

Revision history for this message
Stefan Beller (stefanbeller) wrote :

In the attachment there is the zipped /var/log/dist-upgrades/*

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for the logs.

Michael, I can't reproduce, could you have a look at it ?

Changed in update-manager (Ubuntu Oneiric):
assignee: nobody → Michael Vogt (mvo)
status: Incomplete → Confirmed
Revision history for this message
LIU Aifu (laf163-gmail) wrote :

I have the same problem.

$sudo update-manager -c -d
extracting 'oneiric.tar.gz'
authenticate 'oneiric.tar.gz' against 'oneiric.tar.gz.gpg'
apport start/running
Traceback (most recent call last):
  File "/tmp/update-manager-9PPri4/oneiric", line 7, in <module>
    sys.exit(main())
  File "/tmp/update-manager-9PPri4/DistUpgradeMain.py", line 202, in main
    if app.run():
  File "/tmp/update-manager-9PPri4/DistUpgradeController.py", line 1642, in run
    return self.fullUpgrade()
  File "/tmp/update-manager-9PPri4/DistUpgradeController.py", line 1612, in fullUpgrade
    if not self.doDistUpgrade():
  File "/tmp/update-manager-9PPri4/DistUpgradeController.py", line 1006, in doDistUpgrade
    self._maybe_create_apt_btrfs_snapshot()
  File "/tmp/update-manager-9PPri4/DistUpgradeController.py", line 990, in _maybe_create_apt_btrfs_snapshot
    res = apt_btrfs.create_btrfs_root_snapshot(prefix)
  File "/tmp/update-manager-9PPri4/apt_btrfs_snapshot.py", line 122, in create_btrfs_root_snapshot
    os.path.join(mp, self.SNAP_PREFIX+additional_prefix+snap_id))
  File "/tmp/update-manager-9PPri4/apt_btrfs_snapshot.py", line 69, in btrfs_subvolume_snapshot
    source, dest])
  File "/usr/lib/python2.7/subprocess.py", line 486, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1213, in _execute_child
    raise child_exception
OSError: [Errno 2] 没有那个文件或目录

Revision history for this message
Tristan Hill (stan) wrote :

Maybe this has been spotted, but it looks like

        if not apt_btrfs.snapshots_supported:
            logging.debug("btrfs snapshots not supported")
            return

should be

        if not apt_btrfs.snapshots_supported():
            logging.debug("btrfs snapshots not supported")
            return

i.e. missing ()

Revision history for this message
Dimitri John Ledkov (ex-credativ) (dle-credativ) wrote :

Same here. And I agree with Tristan. Can't test it easily though, cause the file is redownloaded each time...

ps. see ya in the office tristan ;-)

Changed in update-manager (Ubuntu Oneiric):
importance: High → Critical
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Fixed in:

update-manager (1:0.151.7) oneiric; urgency=low

  * fix apt-btfs-snapshot releated crash

Changed in update-manager (Ubuntu Oneiric):
status: Confirmed → Fix Released
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.