I will chime in, and answer the questions (even though they’ve been answered above)..
I am migrating a docker-based HA instance (2026.05.01) from one machine to another. To do that, I did a manual backup on MachineA and downloaded it to then restore on MachineB.
I copied my docker compose over to MachineB and spun it up (so MachineB is now at 2026.08.01). I got the HomeAssistant setup screen about creating your smart home, or offering to restore from a backup. Hey, great, I have a backup I just made 3 minutes ago, let’s upload that… Then I get a message about uploads over 16 megabytes are not allowed. The restore process did not start, there were no error codes (again, because the restore process did not start)
The target machine has 30 gigabytes of disk space free. My tar file is 67 megabytes.
However, since 67 megabytes is more than the 16 megabyte upload size HomeAssistant comes configured with, per gfwilliams above, I grabbed server.py from my docker contianer, made the change to max_client_size to set it to 128 megabyte max, copied that back into the container, restarted the container, and I was then able to upload my backup tar file successfully. No other changes were made, etc; just changing 16 megabyte max upload size to 128 megabyte max upload size.
This is not a browser issue; it won’t matter if you use Chrome, IE, Edge, Firefox, Brave, Vivladi, Netscape, links, curl, wget, etc.. This is a “Home Assistant comes with a not-sane configuration for restoring backups via web upload, because backups of any reasonable system will be more than the maximum uploadable file size of 16 megabytes”… Why that 16 megabyte limit exists, I don’t know, maybe to stop some other issue? But, it blocks any sort of reasonable sized backup file from being used via HomeAssistant’s own built-in functions during setup of a new instance.
It’s not an issue with available disk space, processing power, ram, etc on the HomeAssistant instance. It’s a plain “HomeAssistant will not allow a file to be uploaded over 16 megabytes, and that given size is too small for even modest backup tar files, thus HomeAssistant’s ability to restore from backup during a first-launch is broken with even modest backup tar files”
I’ll be charitable and say “Maybe it’s different if you use HAOS…”
To sum up:
- Migrating docker-based HA from MachineA (2026.05.01) to MachineB (2026.08.01)
- MachineA’s entire home assistant data directory is 256 megabytes in size.. home-assistant_v2.db is 128 megabytes in size.
- Did a manual backup on MachineA using HomeAssistant’s manual backup feature, downloaded the tar file (which was about 67 megabytes), tried to use the “Restore From Backup” on MachineB during the first run “Let’s set everything up” screen
- For reference, my automatic backups are of a similar size, in the 65-70 megabyte range… I just wanted an up-to-the-minute backup
- When trying to upload the tar file to MachineB, it told me the file was over 16 megabytes, so I could not upload it.
- MachineB has 30 gigabytes of space free, one / partition, etc… IE, this is not a partition issue, especially given below…
- I did the fix up-thread from gfwilliams, changing MAX_CLIENT_SIZE in server.py from 16 megabytes to 128 megabytes, restarted the container, and was able to successfully upload my tar file
- the restore went off smoothly
- if you really care, I’m using Brave. As noted, though, this is not a browser limitation/issue. This is a “HomeAssistant does not have sane defaults for typical scenarios” issue.