ubuntu-image crashes with 'No space left on device'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Image |
Invalid
|
Undecided
|
Łukasz Zemczak |
Bug Description
I'm following the guide at https:/
I want to build Ubuntu Core for a custom device, but first I figured I'd get it working with a known device - in this case, the RPi3.
By following the guide, I've downloaded the example pi3 model assertion, with this command:
curl -H "Accept: application/
Then, using this command I can start to build the image:
sudo ubuntu-image snap -c stable --image-size 4G pi3.model
(this is a little different to the command in the website, but that command also fails with the same error)
The output is:
Fetching core
Fetching pi2-kernel
Fetching pi3
COMMAND FAILED: sudo cp -dR --preserve=
cp: error writing '/tmp/tmpy8utfh
cp: error writing '/tmp/tmpy8utfh
cp: cannot create directory '/tmp/tmpy8utfh
cp: cannot create directory '/tmp/tmpy8utfh
Crash in state machine
Traceback (most recent call last):
File "/snap/
File "/snap/
step()
File "/snap/
File "/snap/
File "/snap/
File "/snap/
File "/snap/
subprocess.
If I run "df -h" during this process, very briefly I can find this:
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 0 7.8G 0% /dev
tmpfs 1.6G 9.7M 1.6G 1% /run
/dev/sda1 432G 259G 157G 63% /
tmpfs 7.8G 130M 7.7G 2% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
...
/dev/loop8 3.9M 52K 3.3M 2% /tmp/tmpvn70tzd
So it does seem like there really is not enough space in /dev/loop8 - but how am I supposed to fix this? I definitely do have enough actual free disk space.
I tried changing the gadget snap config under the "volumes" section to have size "256 M" instead of 128, but that didn't change anything.
Is there some step I'm missing from the guide? Or is this a bug?
Changed in ubuntu-image: | |
assignee: | nobody → Łukasz Zemczak (sil2100) |
Changed in ubuntu-image: | |
status: | Incomplete → Invalid |
I should mention too, I installed it as a classic snap:
name: ubuntu-image HkYsa8lNbv68uPa YX
summary: Create Ubuntu images
publisher: canonical
contact: <email address hidden>
description: |
Use this tool to create Ubuntu images.
snap-id: 4RW78vIax8JW5S8
commands:
- ubuntu-image
tracking: beta
installed: 1.3+snap1 (95) 35MB classic
refreshed: 2017-12-01 06:49:58 +1100 AEDT
channels:
stable: –
candidate: –
beta: 1.3+snap1 (95) 35MB classic
edge: 1.3+snap1 (98) 34MB classic