I am currently running HA 0.85.0b0 inside a docker container on a raspberry pi 3.
Today I tried to update it using the following command :
sudo docker pull homeassistant/raspberrypi3-homeassistant:latest
After a couple of minutes, I always see the process being stopped with an error on extracting one ‘package’ :
latest: Pulling from homeassistant/raspberrypi3-homeassistant
905674ea9d94: Already exists
d91fe322e169: Already exists
4583de306f0b: Already exists
3c1445e33fed: Already exists
9c6fb5db463f: Already exists
3cf42a2393d6: Already exists
5a5aed61ad4b: Already exists
9e8ecb568364: Already exists
829d1bd86887: Already exists
78470924dcf6: Already exists
d3887b6628cb: Already exists
61ce5ee1cd15: Already exists
bdae6dd69d1b: Already exists
a998d7c2c890: Already exists
18a051161498: Already exists
304256d1e1c0: Already exists
c84e2217dcc8: Already exists
76ddf70a8b12: Already exists
b29d7de1ce35: Already exists
c3eb07b5e161: Extracting [==================================================>] 159.3MB/159.3MB
53cdbda467c6: Download complete
05d83cf37be5: Download complete
33471cc1a86a: Download complete
f5d1f931d4d7: Download complete
f5b6bc90b637: Download complete
failed to register layer: Error processing tar file(exit status 1): open /usr/local/lib/python3.6/site-packages/youtube_dl/extractor/pycache/flipagram.cpython-36.pyc: no space left on device
On other occasion, I have seen these messages :
failed to register layer: Error processing tar file(exit status 1): open /usr/local/lib/python3.6/site-packages/xlsxwriter/pycache/styles.cpython-36.pyc: no space left on device
could not get decompression stream: fork/exec /usr/bin/unpigz: cannot allocate memory
Has anyone ever seen these types of error while updating a docker container ?
When you update you will need to delete the old docker images or you’ll just end up with a full SD card. You can see by the ‘… already exists’ messages you have a lot of them.
Thanks for the replies.
I forgot to mention that the SD card is not full :
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 9.0G 5.0G 65% /
devtmpfs 466M 0 466M 0% /dev
tmpfs 470M 0 470M 0% /dev/shm
tmpfs 470M 13M 458M 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 470M 0 470M 0% /sys/fs/cgroup
/dev/mmcblk0p1 42M 23M 20M 54% /boot
I assumed I could pull the latest image while keeping HA running with the old image and then just do a restart when the new image is ready. Is that not possible ? Do I really have to delete the current image ?
I cleaned old docker images with “docker system prune -a”.
After that, the docker pull command worked fine and I now have 0.86.4 running on my Raspberry Pi.
I am gain seeing the same kind of error while trying to update my docker HA image to 0.88. The difference is that this time the error is consistent and always about decompression stream and unpigz :