setec
By:
setec

Cannot import WordPress json export to Ghost...

May 4, 2016 1k views
Ghost One-Click Install Apps Ubuntu

I just get a totally nonspecific error with no explanation. What am I doing wrong here?

Thanks.

Screen shot

2 comments
  • Hi @setec. Did you use the Ghost WordPress plugin to export to a JSON file? If so, how big is the file itself?

  • I'm having the same problem. Latest Ghost version, using a JSON import file that is roughly 3.5MB. I verified that the import works with smaller files. I've also checked whether my 3.5MB import file works with the hosted version of Ghost, which it does.

    When trying to import on my DO droplet, I get a nonspecific error message, in addition to that the server becomes totally unresponsive and I need to power it down via the admin interface to get it working again.

    I've also checked the conf-file in "sites-available", to make sure that the client_max_body_size isn't too small, but it's set to 10G, so that shouldn't be a problem.

    I'd be happy if anyone could shed some light on this.

1 Answer

In case this is still relevant to you, and since I had the same problem: It seems like some of the posts I tried to import contained data that tripped up Sqlite. So I switched my database to MySQL, using this tutorial: https://www.allaboutghost.com/migrating-ghost-installation-from-sqlite3-to-mysql/

Import still returned an error message after a while, but it turns out that all the posts were imported correctly this time.

Hope that helps!

Have another answer? Share your knowledge.