While importing taiga project (json size ~ 101 MB ) , getting error intended to send too large body

429 views
Skip to first unread message

Amruta Vispute

unread,
Jun 23, 2015, 3:05:50 AM6/23/15
to tai...@googlegroups.com
 Hi ,

   Is there any limit given for file size for import project , can we increase it ?
   I am trying to import my old taiga project on new instance , project json file size ~ 1 GB.
   it is showing me error as below  :
    2015/06/23 12:19:55 [error] 1554#0: *2472 client intended to send too large body: 106256682 bytes, client: , server: _, request: "POST /api/v1/importer/load_dump HTTP/1.1", host: "", referrer: ""

Alejandro Alonso

unread,
Jun 23, 2015, 3:08:58 AM6/23/15
to Amruta Vispute, tai...@googlegroups.com
Hello Amruta,

The limit will the one set by your web server (1GB sounds like a huge limit), the setting should be reflected in your conf.json front config file.

If you need to import such a big file may be it's better you use the command line option. You can execute something like (from taiga-back):

python manage.py load_dump JSON_FILE PROJECT_OWNER_EMAIL

Regards,


--
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/53d3c165-8b37-4e0c-9373-af760328cb81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

  
Alejandro Alonso Fernández  
CIO & Co-founder

www.kaleidos.net/FC8EAC/

Amruta Vispute

unread,
Jun 23, 2015, 4:55:17 AM6/23/15
to tai...@googlegroups.com, ami.v...@gmail.com
Hi Alejandro,

   I tried importing dump using command line option.
  Project is imported but it gave one error as : RuntimeError: maximum recursion depth exceeded

 
Still project seems to be imported though, Will check for all objects are imported or not.
   Can we do partial update in existing project using this import functionality.

Thanks and Regards,
 Amruta

Alejandro Alonso

unread,
Jun 23, 2015, 5:12:16 AM6/23/15
to Amruta Vispute, tai...@googlegroups.com
Hello Amruta,

The recursion one it's a known bug we are currently working on right now -> https://github.com/taigaio/taiga-back/pull/361

The workaround is adding a setting to your local.py, something like:

sys.setrecursionlimit(HIGH_VALUE)

Where HIGH_VALUE can be something like 100000 (may be you can need a higher value if your project is huge)

When you try to import again please, use the --overwrite option:

python manage.py --overwrite load_dump JSON_FILE PROJECT_OWNER_EMAIL

Regards,
Reply all
Reply to author
Forward
0 new messages