Your file has too many posts, try a file with less posts

I’m migrating my Wordpress sites to Ghost, they are large sites with more than 40 thousand articles, after exporting and importing the XML file into Ghost it returns this error: Your file has too many posts, try a file with less posts. Is there a way for me to increase this limit so that I can migrate the entire site at once?

Are you using Ghost(Pro)? Or self hosted, self hosted coule be timeouts on processing files or Ghost(Pro) would reach out to support.

I’m using Self Host, could you guide me on how to increase the limits?

Ive seen loads but like NGINX one was to increase the timeout there

Hi, is there any workaround for this? I have a 7MB file to import that seems to timeout.

The issue seems to have been on nginx, fixed using:
proxy_read_timeout 1200; on nginx.conf

I assume in the end you run out of time to process the json due to overall size, I assume if you look to extending those they should be able to run to completion but @Cathy_Sarisky probably can think of many more things.

(sometimes file has issues itself, so many variables in this)

How large is the file you are trying to parse and do you know the stack and can you provide them as more than likely its in the pieces and not “ghost” per se.

For a migration of that size, I’d use the command line migration tools

either using WP API

or WP XML

Once you have a Ghost JSON file, you might want to split it into smaller chunks for importing, and here’s a tool for that

2 Likes