# Issue with importing content

**URL:** <https://forum.ghost.org/t/issue-with-importing-content/45887>\
**Category:** Self-hosting\
**Created:** [March 20, 2024, 6:28pm UTC](https://forum.ghost.org/t/issue-with-importing-content/45887 "2024-03-20T18:28:32Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![NotARobot](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@NotARobot](https://forum.ghost.org/u/NotARobot)\
**Post date:** [March 20, 2024, 6:28pm UTC](https://forum.ghost.org/t/issue-with-importing-content/45887/1 "2024-03-20T18:28:32Z")

</div>

Hello,

I have an issue with importing content in my new instance. I followed the Ubuntu installation guide and everything works fine.

When I want to import my .Json file with the webui or ghost-cli nothing happens. Even weirder ghost cli says import is successful but nothing shows up in management interface.

I checked the logs but didn’t find anything relevant.

Thanks for the help !

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [March 20, 2024, 8:32pm UTC](https://forum.ghost.org/t/issue-with-importing-content/45887/2 "2024-03-20T20:32:15Z")

</div>

Importing is asynchronous through the admin panel. Did you get an email that it finished?

How did you generate the json? Might it be empty?

---

<div class="post-metadata">

**Author:** ![NotARobot](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@NotARobot](https://forum.ghost.org/u/NotARobot)\
**Post date:** [March 21, 2024, 4:47am UTC](https://forum.ghost.org/t/issue-with-importing-content/45887/3 "2024-03-21T04:47:29Z")

</div>

I never get the email that it finishes. The Json is full and has been generated through the standard export button from the admin interface.

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [March 21, 2024, 9:37am UTC](https://forum.ghost.org/t/issue-with-importing-content/45887/4 "2024-03-21T09:37:41Z")

</div>

What’s the file size of the json?

---

<div class="post-metadata">

**Author:** ![NotARobot](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@NotARobot](https://forum.ghost.org/u/NotARobot)\
**Post date:** [March 21, 2024, 9:49am UTC](https://forum.ghost.org/t/issue-with-importing-content/45887/5 "2024-03-21T09:49:54Z")

</div>

7M and the max size for file uploads is 50M on the server

---

<div class="post-metadata">

**Author:** ![deepvyas](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/deepvyas/32/19473_2.png) [@deepvyas](https://forum.ghost.org/u/deepvyas)\
**Post date:** [March 21, 2024, 10:54am UTC](https://forum.ghost.org/t/issue-with-importing-content/45887/6 "2024-03-21T10:54:05Z")

</div>

Increase size of PHP.ini

---

<div class="post-metadata">

**Author:** ![NotARobot](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@NotARobot](https://forum.ghost.org/u/NotARobot)\
**Post date:** [March 21, 2024, 11:00am UTC](https://forum.ghost.org/t/issue-with-importing-content/45887/7 "2024-03-21T11:00:03Z")

</div>

The file uploads fine, I even have the popup that says that my content is importing

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [March 21, 2024, 11:15am UTC](https://forum.ghost.org/t/issue-with-importing-content/45887/8 "2024-03-21T11:15:25Z")

</div>

I have had the same happen with a few customers and was unable to properly track it down to one conclusive source.

One issue was that the export that was being imported came from Substack and had some missing fields, another had to do with a storage adapter. The logs in both cases were just an unspecific “database error”.

So, I am curious whether it might be related to any of these things? Where is the import coming from and are you using anything other than the “plain” installation of Ghost?

---

<div class="post-metadata">

**Author:** ![NotARobot](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@NotARobot](https://forum.ghost.org/u/NotARobot)\
**Post date:** [March 21, 2024, 11:31am UTC](https://forum.ghost.org/t/issue-with-importing-content/45887/9 "2024-03-21T11:31:06Z")

</div>

The json comes from another ghost installation so nothing weird I think

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [March 21, 2024, 11:38am UTC](https://forum.ghost.org/t/issue-with-importing-content/45887/10 "2024-03-21T11:38:13Z")

</div>

Hm, what’s the version on the other Ghost site the import is from?  
(might be a long shot, but something like that would be the only other thing I could think of at the moment)

---

<div class="post-metadata">

**Author:** ![NotARobot](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@NotARobot](https://forum.ghost.org/u/NotARobot)\
**Post date:** [March 21, 2024, 11:52am UTC](https://forum.ghost.org/t/issue-with-importing-content/45887/11 "2024-03-21T11:52:31Z")

</div>

Same version: 5.83.4 if I’m correct

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [March 21, 2024, 12:06pm UTC](https://forum.ghost.org/t/issue-with-importing-content/45887/12 "2024-03-21T12:06:01Z")

</div>

Might be a different one, since 5.80.5 was just released today, but if they are on the same, then my theory goes down the drain either way 😃

And yeah, I am out of ideas then. Sorry for not being more helpful in this.

One other thing you could try: run Ghost with `--verbose` – that might give you better logs to debug this.

---

<div class="post-metadata">

**Author:** ![RyanF](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ryanf/32/17448_2.png) [@RyanF](https://forum.ghost.org/u/RyanF)\
**Post date:** [March 21, 2024, 3:36pm UTC](https://forum.ghost.org/t/issue-with-importing-content/45887/13 "2024-03-21T15:36:34Z")

</div>

A step I’d take in debugging this would be to try importing a few posts from the JSON file and see if that works.

If so, you could then try splitting the JSON file up into smaller chunks to see if that improves your success rate. We have a tool to assist with this: [GitHub - TryGhost/gctools: Command line utilities for working with Ghost content](https://github.com/TryGhost/gctools?tab=readme-ov-file#json-split)
