Ghost icon indicating copy to clipboard operation
Ghost copied to clipboard

Import of Ghost Content Failed

Open DrDinosaur opened this issue 2 years ago • 4 comments

Issue Summary

I am migrating a Ghost instance to a new server. I exported the old content successfully as a json file, but I get an error when attempting to import it into the new instance.

image

Steps to Reproduce

  1. Log into Ghost Admin, navigate to the Labs view, and click Export to download all content
  2. To begin the content migration, head to the Labs section of Ghost Admin and import the ghost.json backup which you exported earlier.

Ghost Version

Original server: Ghost-CLI version: 1.9.2 Ghost Version: 2.30.2 New server: Ghost-CLI version: 1.22.0 Ghost version: 5.10.1

Node.js Version

Old server: v8.10.0 New server: v16.17.0

How did you install Ghost?

Old: Ubuntu 18.04 New: Ubuntu 20.04

Database type

MySQL 8

Browser & OS version

No response

Relevant log / error output

Import failed
ValidationError: Validation (isEmpty) failed for unsplash ValidationError: Validation (isIn) failed for unsplash

{"key":"unsplash","group":"unsplash","type":"boolean","flags":null,"created_by":1,"created_at":"2017-08-27T02:22:32.000Z","updated_by":1,"updated_at":"2017-09-17T23:13:21.000Z"}

Code of Conduct

  • [X] I agree to be friendly and polite to people in this repository

DrDinosaur avatar Aug 22 '22 02:08 DrDinosaur

Are you able to share the export file, or at least the few lines related to unsplash settings? Without that, I'd be guessing at a reproduction case.

ErisDS avatar Aug 23 '22 13:08 ErisDS

Note from our bot: The needs info label has been added to this issue. Updating your original issue with more details is great, but won't notify us, so please make sure you leave a comment so that we can see when you've updated us.

github-actions[bot] avatar Aug 23 '22 13:08 github-actions[bot]

{"id":"59a22ce83b86f02460405846","key":"unsplash","value":"{\"errors\":{},\"hasValidated\":[]}","type":"blog","created_at":"2017-08-27T02:22:32.000Z","updated_at":"2017-09-17T23:13:21.000Z"}

I could share the entire export file privately, but this was the only line I found with unsplash.

DrDinosaur avatar Aug 25 '22 03:08 DrDinosaur

Do you have an update on this?

DrDinosaur avatar Sep 19 '22 03:09 DrDinosaur

Any updates here? I met the same error.

OIdiotLin avatar Nov 27 '22 14:11 OIdiotLin

Met this error too. But what happend to me is not "import failed" but I received an email which said "Import unsuccessful"

MattinaYang avatar Nov 30 '22 09:11 MattinaYang

Sorry - I was hoping to find time to push a small fix to the importer, but it's been a crazy end to the year.

The fix to get the import to work would be to remove the item from the settings array - so delete {"id":"59a22ce83b86f02460405846","key":"unsplash","value":"{\"errors\":{},\"hasValidated\":[]}","type":"blog","created_at":"2017-08-27T02:22:32.000Z","updated_at":"2017-09-17T23:13:21.000Z"} from your JSON file. That'll get the import to work .

@Sheepeer your issue is something entirely different.

ErisDS avatar Dec 17 '22 00:12 ErisDS

Our bot has automatically marked this issue as stale because there has not been any activity here in some time.

The issue will be closed soon if there are no further updates, however we ask that you do not post comments to keep the issue open if you are not actively working on a PR.

We keep the issue list minimal so we can keep focus on the most pressing issues. Closed issues can always be reopened if a new contributor is found. Thank you for understanding 🙂

github-actions[bot] avatar Apr 16 '23 00:04 github-actions[bot]