/var/tmp is too small for upgrade image on VyOS 1.4

Aloha,

Im currently on version

sh vers
Version: VyOS 1.4-rolling-202306020317
Release train: current

Built by: autobuild@vyos.net
Built on: Fri 02 Jun 2023 03:17 UTC
Build UUID: fdd8d4b3-7653-497b-9ee4-1fa1724bdbe9
Build commit ID: 2770af2c9e2145

Architecture: x86_64
Boot via: installed image
System type: KVM guest

Hardware vendor: Red Hat
Hardware model: KVM
Hardware S/N:
Hardware UUID: a2ccd31c-70de-4f98-8026-d5ee5e11e474

Copyright: VyOS maintainers and contributors
df -h
Filesystem Size Used Avail Use% Mounted on
udev 225M 0 225M 0% /dev
tmpfs 48M 1.8M 47M 4% /run
/dev/vda1 20G 7.8G 11G 42% /usr/lib/live/mount/persistence
/dev/loop0 362M 362M 0 100% /usr/lib/live/mount/rootfs/1.4-rolling-202306020317.squashfs
tmpfs 239M 0 239M 0% /usr/lib/live/mount/overlay
overlay 20G 7.8G 11G 42% /
tmpfs 239M 84K 239M 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 239M 4.0K 239M 1% /tmp
tmpfs 239M 232K 239M 1% /var/tmp
none 239M 0 239M 0% /etc/cni/net.d
none 239M 828K 239M 1% /opt/vyatta/config
tmpfs 48M 0 48M 0% /run/user/1002

When I try to upgrade to latest running I got this error message:
add system image https://github.com/vyos/vyos-rolling-nightly-builds/releases/download/1.5-rolling-202312010026/vyos-1.5-rolling-202312010026-amd64.iso
Trying to fetch ISO file from https://github.com/vyos/vyos-rolling-nightly-builds/releases/download/1.5-rolling-202312010026/vyos-1.5-rolling-202312010026-amd64.iso…
Downloading…
Redirecting to https://objects.githubusercontent.com/github-production-release-asset-2e65be/674742659/928ba0ba-1edb-405b-bccd-d877c60185fa?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231202%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231202T154819Z&X-Amz-Expires=300&X-Amz-Signature=4f750f8d943546d02427b798b1c1f4ddec5d54d14588f124eccbc3ceef6b7044&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=674742659&response-content-disposition=attachment%3B%20filename%3Dvyos-1.5-rolling-202312010026-amd64.iso&response-content-type=application%2Foctet-stream
The file is 426.000 MiB.
Failed to download https://github.com/vyos/vyos-rolling-nightly-builds/releases/download/1.5-rolling-202312010026/vyos-1.5-rolling-202312010026-amd64.iso.
OSError: Not enough disk space available in “/var/tmp/install-image.14788”.
Failed to download the ISO file.

Is there any way, to adjust the filesystem permamently, so I dont need to reinstall my router?
Sorry for dump question form an old network engineer…

Thanks
Marcel

Hi,

If I recall correctly there was a bug in one of the rolling releases which cause /var/tmp to be too small. A solution is to download the image and copy it to the router in your home dir, or use wget to download it directly. After that just install it using add system image /path/to/image

Greets,

Sander

Hey,
Yes.
Thanks for quick reply.
That’s a temporary workaround until next SW upgrade.
Is it possible to increase size permanently?
Cheers Marcel

In newer images the the tmp space is bigger. So you only have to do this workaround once.

Hi.
Which workaround you mean?

I used in the past curl to upgrade and on my
Current version:
VyOS 1.4-rolling-202306
I still have the issue with not enough space…

Thanks
Marcel

Hmmm, either the bug was fixed but affected devices need to be reinstalled or something else is going on.

You could try a bit of a hack-ish solution by adding mount -o remount,size=1G /var/tmp to /config/scripts/vyos-postconfig-bootup.script

It could als be your device has very little memory. What are you using?

Hey,
thanks for helping out!
My disk has 20GB and 500GB of RAM
But now I decided to create a new VM with 1GB RAM and 30GB disc size and I reinstall vyos.
So problem for me now solved.
Thanks a lot
Marcel

For 1.4 the recommended at least 2GB

1 Like

Yeah, the tmpfs is by default half of your RAM size.

Another workaround would be to create a custom directory on root like /opt or so and then manually download the iso to that dir using wget or curl and then execute the system update using the local iso file.

Dont place that iso in /config unless you want to to follow you to the updated image (content in /config is copied to the new persistence directory setup for the new installation).

2 Likes

Oh good to know!
Is it for 1.5 the same?
Recommended RAM: Minimum 2GB

Thanks a lot

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.