3327, each with multiple images
Thanks for this feedback, much appreciated.
To confirm:
- The zip download failed
- The JSON only download worked after increasing server resource allocation
- The problem at the moment is importing the JSON into Ghost?
Iāve read the Ghost 3.0 announcement and also the news about the new version of the migration plugin. Iāve installed Ghost 3.0 on my VPS and itās working fine, and Iād like to export my WordPress blog posts to the Ghost one.
Iāve installed the plugin but it doesnāt work. After a few seconds the following message appears: āThe site is experiencing technical difficulties. Please check your site admin email inbox for instructions.ā
I guess this is due to my blog being quite large. Iāve got over 3,100 posts (itās been up since 2005) and I guess the script needs more time (or memory, or file size permissions) to finish its work. Could somebody help to find the exact problem and how to solve it?
Iāve tried to change some PHP parameters in my WordPressā VPS (I use EasyEngine there to automate some processes, but I donāt use EE on the Ghost VPS, thatās a different one). According to this support article Iāve changed this on the ācustom.iniā file:
max_input_vars = 1234
max_memory_limit = 1024M
max_execution_time = 2000
upload_max_filesize =100M
post_max_size =100M
After restarting nginx and PHP the plugin still doesnāt work. Same error, even when I try to download the .json file. It always shows the error after 30s of thinking. I guess there is some 30 seconds value somewhere that has to be edited but I donāt find where, according to the EasyEngine docs it should work. In fact the ghost migrator info shows 1GB memory limit and 2000s execution time, so the problem lies somewhere else.
My WordPress folder is 2.2 GB in size, and my VPS has 11 GB of space available.
30sec is not particularly long for a large import, sometimes it can take a few minutes. What error are you getting? If the request times out, as long as the upload has finished (that part shouldnāt time out with most server setups) then it will continue to be processed in the background.
hi @javipas - thank you for the feedback. Much appreciated.
Regarding generating the zip - I was able to zip just under 3GB in around 20 to 30 min on a shared hosting so 2000 seconds should be a good base amount but if you can, try to increase it some more, maybe try 60min / 3600 seconds.
The PHP max_execution_time does however seem to be reporting correctly so maybe thereās something else on the system causing a timeout. I recommend checking the NGINX proxy_read_timeout value.
Please let us know if that makes a difference.
Thanks for the suggestion. Iām afraid it doesnāt work. Iāve looked for timeout values and there was a ākeepalive_timeout 30;ā line on the nginx.conf file. I changed it to 3600 and also added the proxy_read_timeout value (there was none) without luck. (I always restart nginx and php to apply the changes, of course).
In fact the message I got previously appears at random times, always lower than 30s. Iāve used the chronometer in the smartphone and it was 24, 26, 23, 21 secondsā¦ No idea whatās happening here. I guess the EasyEngine config makes it a little bit difficult and obscure, I could try to setup a virtualmachine with a normal LEMP server (without Easy Engine), install there a backup of the WordPress blog and run the Ghost migrator plugin from there, but Iāll have to spend a little time with that and Iām not in a big hurry.
Thank you again for your suggestions, if someone has other ideas just let me know.
Try also with fastcgi timeouts.
Hi @javipas - thank you for the additional feedback.
Iāve just experienced a similar issue with a site hosted on WP Engine. The PHP memory limit and max execution time were both reporting high values but it would fail after ~60 seconds.
After some further investigation, I discovered that WP Engine kills any process running for ~60 seconds and thereās not much we can do about it so itās definitely possible that thereās something not-PHP related that is causing the process to fail/timeout.
Then, on a test site, I used a random content generator to generate 3,576 posts. It initially failed with the original site settings (96MB memory limit) but I incrementally increased the memory limit to 256MB and then it downloaded successfully. Something I noticed during this process was that PHP was reporting a memory limit that differed from the value actually applied to/configured on the site/domain (presumably a global server value) so thatās something to keep in mind.
That makes sense, I guess thereās something on EasyEngine installation that automates that kind of behaviour. Iāve asked there if someone can think of a solution
Letās see if that helps. Thanks for the quick replies ;)
Sure thing. Iām keen to know what the root cause of the timeout is.
I think that tweaking php and nginx configs is not the right way.
As Iāve mentioned in githubs issue, WP-CLI compatibility to export through command line will be much more effective and precise manner. The plugin author confirmed that WP-CLI support is on the go.
Hi @codemotion - Some people wonāt have SSH and CLI access to their WordPress installations so weād ideally like the GUI to work for as many people as possible.
I am however working on WP-CLI support and hope to have an initial version ready for release soon.
This worked for me timeout - NGINX: upstream timed out (110: Connection timed out) while reading response header from upstream - Stack Overflow
Hi support.
I try to export WordPress but Zip cannot working.
I export json file and Download about 14mb json file. When I import to Ghost, it not working.
My website have about 400 articles, 1.9GB Image.
Thank you!
Has the json file the correct format?
For me the export file from Wordpress hat one missing ā}ā at the end.
Hi all
Weāve recently updated our WordPress to Ghost migration guide. This uses the latest version of the WordPress Export to Ghost Plugin which exports posts, pages, tags, authors and images to a zip file you can upload directly to Ghost admin:
https://ghost.org/tutorials/wordpress-to-ghost/
If you see any issues then let us know, thanks!
The wordpress plugin simply doesnāt work for any decent sized Wordpress site (we have 4,000 posts). It just throws an error. Downloading the JSON file, and trying to upload it causes an error on the ghost side of things. Need to have better tools to move over a wordpress site to ghost. Anybody have any luck converting the XML export from wordpress to Ghost format for import?
Hey @osseodds, have you tried exporting just the json file rather than everything? Images can be downloaded from your WordPress server instead
Hey, what we ended up doing was fixing the wordpress plugin, by just adding a $posts_args array value in the plugin to control the number of posts that are exported at one time (line 302 in the plugin). For example, we added an argument āposts_per_pageā => 50. This worked b/c now we only export 50 posts at a time.
However, we canāt actually import anything on the Ghost application. We keep getting the following error on the ghost side:
āFailed to load resource: ghost/api/v3/admin/db/:1 the server responded with a status of 504 ()ā
FYI, we are importing everything via the admin. The error above is what is shown in the console. The actual error in the admin is just that the import has failed and check the console for errors. We only have 5 posts in the import file.
Do you have a memory limit on your WordPress site? Could be why youāre having to reduce the amount of posts being exported.
It might be worth running your json file from the export through a JSON validator just in case thereās some malformed data in it. It shouldnāt be the case but itās good to eliminate this possibility before trying other solutions