ubuntu-emulator create fails for devel-proposed: Failed to unmount temp dir where system image was created
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | systemd (Ubuntu) |
High
|
Unassigned | ||
Bug Description
In current vivid at least, I can't build an emulator for devel-proposed any more:
$ sudo ubuntu-emulator create --channel=
Creating "dprop" from ubuntu-
Downloading...
2.24 MB / 2.24 MB [======
349.67 MB / 349.67 MB [======
Setting up...
Setting up a default password for phablet to: '0000'
Failed to unmount temp dir where system image was created
I don't actually have any leftover mounts, just this directory in /tmp/:
drwx------ 23 root martin 600 Feb 19 07:37 ubuntu-
Creating an emulator from the "devel" channel still works. (But I guess not for long any more, once devel-proposed gets promoted).
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: ubuntu-emulator 0.16-0ubuntu1
ProcVersionSign
Uname: Linux 3.18.0-13-generic x86_64
ApportVersion: 2.16.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Feb 19 07:44:55 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-11-20 (90 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20141119)
SourcePackage: goget-ubuntu-touch
UpgradeStatus: No upgrade log present (probably fresh install)
| Martin Pitt (pitti) wrote : | #1 |
| Launchpad Janitor (janitor) wrote : | #2 |
| Changed in goget-ubuntu-touch (Ubuntu): | |
| status: | New → Confirmed |
| Timo Jyrinki (timo-jyrinki) wrote : | #3 |
For me, the creation failed with:
---
351.43 MB / 351.43 MB [======
Setting up...
Setting up a default password for phablet to: '0000'
open /tmp/ubuntu-
---
And I had only empty /tmp/ubuntu-
The emulator is "created", but running it gives:
open /home/timo/
| Changed in goget-ubuntu-touch (Ubuntu): | |
| importance: | Undecided → High |
| Changed in goget-ubuntu-touch (Ubuntu): | |
| importance: | High → Critical |
| Ricardo Salveti (rsalveti) wrote : | #4 |
This actually smells something with systemd, as I just noticed that the original issue is that the mount point gets unmounted right after it gets mounted by ubuntu-emulator.
rsalveti@
Creating "test_x86" from ubuntu-
Downloading...
Setting up...
Mount: calling: mount /home/rsalveti/
And from syslog:
Mar 16 19:17:06 evasys systemd[2918]: Unit tmp-ubuntu\
Mar 16 19:17:06 evasys systemd[1]: Unit tmp-ubuntu\
Mar 16 19:17:06 evasys systemd[1]: Unmounting /tmp/ubuntu-
Mar 16 19:17:06 evasys systemd[2918]: Unmounting /tmp/ubuntu-
Mar 16 19:17:06 evasys kernel: [55815.378380] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
Mar 16 19:17:06 evasys systemd[1]: Requested transaction contradicts existing jobs: Resource deadlock avoided
Mar 16 19:17:06 evasys umount[27719]: umount: /tmp/ubuntu-
Mar 16 19:17:06 evasys systemd[2918]: tmp-ubuntu\
Mar 16 19:17:06 evasys systemd[2918]: Unmounted /tmp/ubuntu-
Mar 16 19:17:06 evasys systemd[2918]: Unit tmp-ubuntu\
Mar 16 19:17:06 evasys systemd[1]: Unmounted /tmp/ubuntu-
Same happens when I try to manually mount the system image. And which is interesting because mount actually works fine, not giving any error, but then systemd just unmount it right away.
| Ricardo Salveti (rsalveti) wrote : | #5 |
Same issue also described at https:/
It is indeed a different behavior with systemd, where it tries to control the calls to 'mount'.
| Ricardo Salveti (rsalveti) wrote : | #6 |
A small workaround that allows creating the emulator image again (as systemd will ignore the mount point if you mount a tmpfs at the same spot first).
$ bzr diff
=== modified file 'diskimage/
--- diskimage/image.go 2015-01-21 23:22:53 +0000
+++ diskimage/image.go 2015-03-16 23:28:01 +0000
@@ -107,6 +107,9 @@
}
}()
+ if out, err := exec.Command(
+ return fmt.Errorf("unable to mount temp dir to create system image: %s", out)
+ }
if out, err := exec.Command(
return fmt.Errorf("unable to mount temp dir to create system image: %s", out)
}
@@ -126,6 +129,9 @@
if err := exec.Command(
return errors.New("Failed to unmount temp dir where system image was created")
}
+ if err := exec.Command(
+ return errors.New("Failed to unmount temp dir where system image was created")
+ }
return nil
}
| Changed in goget-ubuntu-touch (Ubuntu): | |
| importance: | Critical → High |
| Martin Pitt (pitti) wrote : Re: [Bug 1423459] Re: ubuntu-emulator create fails for devel-proposed: Failed to unmount temp dir where system image was created | #7 |
Hey Ricardo,
the "unmounted due to inactive unit" was fixed upstream recently. I can backport these after my holidays.
--
Diese Nachricht wurde von meinem Android-
| dinamic (dinamic6661) wrote : | #8 |
same here on Ubuntu 15.04 http://
| dinamic (dinamic6661) wrote : | #9 |
Creating "test" from devel-proposed revision 145
Downloading...
...
Setting up...
Setting up a default password for phablet to: '0000'
Failed to unmount temp dir where system image was created
| Ricardo Salveti (rsalveti) wrote : | #10 |
Fixed with systemd 219-4ubuntu10
| affects: | goget-ubuntu-touch (Ubuntu) → systemd (Ubuntu) |
| Changed in systemd (Ubuntu): | |
| status: | Confirmed → Fix Released |


Status changed to 'Confirmed' because the bug affects multiple users.