Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
5103 Widoki

while trying to restore database i am getting this error:

" Request Entity Too Large 

 The data value transmitted exceeds the capacity limit"


OS: Windows 10

Odoo version: 17.0

backup file size: 655 MB

not using nginx or any other server.

the size is not Huge for Odoo which can show capacity limit.

please help.

regards


Awatar
Odrzuć
Autor

please help, what is the problem in restoring DB and is there any solution?

Autor

almost after one month... can i get any solution / guidance for this problem???

Najlepsza odpowiedź

Were you able to find a solution yet?

Awatar
Odrzuć
Najlepsza odpowiedź

Hi @all,

the issue is also discussed in a Github-Issue here: https://github.com/odoo/odoo/issues/144144 and there is also a blog post about that issue here: https://server-conf.blogspot.com/2023/12/odoo-17-large-database-restore-error.html

Long story short: The quickest way to import a large database on a development machine would be to change line 235 in odoo => http.py from 

DEFAULT_MAX_CONTENT_LENGTH = 128* 1024 * 1024  # 128MiB

to something like

DEFAULT_MAX_CONTENT_LENGTH = 500 * 1024 * 1024  # 500MiB

Cheers, Robert


Awatar
Odrzuć
Autor

thank you @Robert, i tried this but not working for me.

Najlepsza odpowiedź

Open your Odoo configuration file (odoo.conf). Add or Modify limit_request_body:


limit_time_cpu = 2400

limit_time_real = 3600

limit_memory_hard = 2684354560


Adjust the value according to your needs. 

Restart the Odoo service to apply the configuration changes.


Awatar
Odrzuć
Autor

thank you @yag_dev for reply, will try it and come back for feedback.

regards

Autor

@yag_dev did as instructed but not working, still same error...

Najlepsza odpowiedź

Same Problem ..
Please share with us the solution if you get it ..

Awatar
Odrzuć
Autor

not yet, if find any, will definitely share to the people need it.

Powiązane posty Odpowiedzi Widoki Czynność
4
maj 25
2621
2
maj 25
6024
1
mar 25
1737
4
mar 25
4617
1
lut 25
88