Hello!
We’re trying to migrate a project to our client Taiga instance.
Both Taiga versions - ours and our client’s - are the same.
We exported the project from our instance and generated the json as expected; however, when we try to import it into the client’s instance, we get this error message:
[error] 58#58: *30850 client intended to send too large body: 91355133 bytes, client: 172.18.0.1, server: scrum.modal.org.br, request: “POST /api/v1/importer/load_dump HTTP/1.1”, host: “scrum.modal.org.br”, referrer: “Taiga”
Any tips as to what’s going on and how to solve the problem?
Hi @Bruno_Souza
This error usually happens because the file you are trying to upload to taiga is too large. It is not an error message thrown by taiga, the limitation comes from the web server (nginx, apache or whatever, It depends on your setup).
There are two options:
-
use the manage command if you have access to the server to import the project directly from the terminal:
./taiga-manage.sh load_dump <filename.json> <new_owner_email_address>
(or ./manage.py for installation from source code)
-
change your web server settings to allow sending requests with a large body**. If you are using docker setup and there is no web server in front of the taiga gateway, increase the number of client_max_body_size
at taiga-gateway/taiga.conf
file (from 100M
to 300M
or whatever)
I hope this can help
Best regards
Thanks, I’ll try it and give you some feedback if the problem persists.
Hi!
I tried your solution, having a problem importing my Taiga projects from the cloud to my self-hosted solution but whether via the browser or command line, it fails.
On the command line, the errors they give me are python errors :
Traceback (most recent call last):
File “/taiga-back/manage.py”, line 17, in
execute_from_command_line(sys.argv)
File “/opt/venv/lib/python3.11/site-packages/django/core/management/init.py”, line 419, in execute_from_command_line
utility.execute()
File “/opt/venv/lib/python3.11/site-packages/django/core/management/init.py”, line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/opt/venv/lib/python3.11/site-packages/django/core/management/base.py”, line 354, in run_from_argv
self.execute(*args, **cmd_options)
File “/opt/venv/lib/python3.11/site-packages/django/core/management/base.py”, line 398, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/taiga-back/taiga/export_import/management/commands/load_dump.py”, line 40, in handle
data = json.loads(open(dump_file_path, ‘r’).read())
^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: ‘theguardianlight-remboursement-ambassadeurs-45be781a-2b8b-481d-a95b-5b937438776d.json’
1 Like
I have the same error have you found a solution?
In my experience, the problem comes from the fact that you need to set your web server to accept the transfer of files of a certain size via the parameter: client_max_body_size
.
You need to add/modify this parameter on all the web servers and proxies between the Internet and your Taiga instance.
In my case, between my Taiga instance and the Internet, I have several web servers and proxies. I had to add/modify this parameter on all these servers.