Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: can't restore backup - 413 Request Entity too large
#1
Hi all

On a Pi4 w/4 GiB RAM with a 32 GiB SDXC card and installed moodeaudio player, I wanted to reinstall on a bigger SD card amd transfer the config. I thought that the easiest way is to backup, then format the 128 GiB card using rpi-imager, then restore.

Backup works as expected and produces a .zip file with 77 MiB size. But then, I cannot restore using the Web GUI, I get a NGINX message "413 Request Entity Too Large".

Where could I temporarily relax this condition (increase Request Entity Size) to make my restore work as expected?

Or, pls give instructions about where I could put the backup file (e.g. using scp) and then restore from the command line.

Thank you and best regards

Marcel
Reply
#2
In the file /etc/php/8.2/fpm/php.ini

Try doubling these values:

Code:
upload_max_filesize = 75M
post_max_size = 75M
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(12-30-2024, 10:24 PM)Tim Curtis Wrote: In the file /etc/php/8.2/fpm/php.ini

Try doubling these values:

Code:
upload_max_filesize = 75M
post_max_size = 75M

Thank you for the tip. Unfortunately this alone did not help.
I changed both values, first to 150M then to 300M; then restarted the box:

Code:
root@player:/etc/php/8.2/fpm# grep -EHr _max_.*size *.ini
php.ini:post_max_size = 300M
php.ini:upload_max_filesize = 300M
...but still got the same error. The zip file is 79 MB.

But then, after some googling, I adapted /etc/nginx/nginx.conf as well:

Code:
client_max_body_size 300M;
...and then, it worked.
Thanks again and best regards
Marcel
Reply
#4
You could have taken two backups, with different things excluded, then reloaded from both, perhaps, as another workaround?

Why was the backup so large?

Reply
#5
(12-31-2024, 04:23 PM)philrandal Wrote: You could have taken two backups, with different things excluded, then reloaded from both, perhaps, as another workaround?

Why was the backup so large?

It's only 77M so prolly just some added radio stations and their covers.
A stock moode backup is around 64MB. 

No prob to simply bump those conf values in next release.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: