![]() |
[SOLVED] can't restore backup - 413 Request Entity too large - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [SOLVED] can't restore backup - 413 Request Entity too large (/showthread.php?tid=7250) |
can't restore backup - 413 Request Entity too large - abuelomg - 12-30-2024 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 RE: can't restore backup - 413 Request Entity too large - Tim Curtis - 12-30-2024 In the file /etc/php/8.2/fpm/php.ini Try doubling these values: Code: upload_max_filesize = 75M RE: can't restore backup - 413 Request Entity too large - abuelomg - 12-31-2024 (12-30-2024, 10:24 PM)Tim Curtis Wrote: In the file /etc/php/8.2/fpm/php.ini 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 But then, after some googling, I adapted /etc/nginx/nginx.conf as well: Code: client_max_body_size 300M; Thanks again and best regards Marcel RE: can't restore backup - 413 Request Entity too large - philrandal - 12-31-2024 You could have taken two backups, with different things excluded, then reloaded from both, perhaps, as another workaround? Why was the backup so large? RE: can't restore backup - 413 Request Entity too large - Tim Curtis - 12-31-2024 (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? 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. |