"Uploaded snapshot is too large" When Restoring Snapshot

Seeing that HASSOS 5 is stable now, I endeavored to upgrade from a supervised install on Rasbpian to HASSOS 5 64-bit on my Raspberry Pi 4. However when I flash my SSD and try to upload my snapshot I get an HTTP status code 413: Request Entity Too Large with response Maximum request body size 1073741824 exceeded, actual body size 1073743456. So I guess HASSOS canā€™t take snapshots more than 1gb? Mine is 3.58gb. Bummer thereā€™s no warning about that when downloading a snapshot! Iā€™m going to try to work around this (perhaps complete HA setup, ssh the backup to the pi, then restore? Or maybe try to strip some things out of my snapshot?) and Iā€™ll update here with my progress.

I would suggest reporting this as a bug. Anyone who is using addons for long term data storage on their systemā€™s full backup is likely to be over a gig. Especially with the new ā€˜mediaā€™ folder.

Although, I just checked my weekly backup and theyā€™re significantly smaller, but I donā€™t use either feature I just talked about :slightly_smiling_face:

1 Like

Ok this wasnā€™t as bad as I thought it would be originally. The supervisor can handle large snapshots just fine, just not over HTTP. Hereā€™s what I did to work around:

  • Complete setup as normal
  • Install the Samba add on (and set a password in Configuration)
  • Connect to the backup share via Samba
  • Upload my snapshot
  • Go to the Supervisor -> Snapshots menu, snapshot should show up
  • Restore snapshot

I dug into the snapshot a bit and itā€™s definitely my MariaDB thatā€™s huge. For some reason my DB didnā€™t restore properly anyways with the snapshot restore ā€“ still investigating why that is.

1 Like

Eek my lovelace setup didnā€™t make it either :grimacing: (is that in the database?)

:sob: looks like itā€™s a known issue that MariaDB snapshots do not work

Yeah, but you should be able to upload it during onboarding - thatā€™s the point of the upload button.

Your lovelace setup isnā€™t stored in the database, itā€™s in the .storage directory. The issue with mariadb should only have affected your history.

1 Like

Yeah, but you should be able to upload it during onboarding - thatā€™s the point of the upload button.

100% agree.

Your lovelace setup isnā€™t stored in the database, itā€™s in the .storage directory.

Yeah, strangely, once I reset my MariaDB and blew away my backup, my Lovelace worked again :man_shrugging:

So my snapshot was too big because of my MariaDB database. And MariaDB snapshots donā€™t even work in the first place :joy:

1 Like

I also have 1.9Gb snapshot how can this be? Just database???

Just created a backup and tried to upload it back using the lovelace interface. I get the ā€œUploaded snapshot is too largeā€ error.
Backup is only +/-30MBā€¦

Copied over the backup using scp and all went fineā€¦ So the backup file itself is valid.

Used versions:

You can inspect the snapshot (using an archive manager) and see whatā€™s causing it to bloat. E.g. in my case itā€™s the database.

I am no longer on local network. I have access to HA via Duckdns and NGINX and I am trying to restore a 200MB backup. The error message ā€œUploaded backup is too largeā€ is quite frustrating. Any clue how to solve that? Samba can only be used in local network, right?