# Import failed from WordPress

**URL:** <https://forum.ghost.org/t/import-failed-from-wordpress/23499>\
**Category:** Installation\
**Created:** [June 15, 2021, 2:23pm UTC](https://forum.ghost.org/t/import-failed-from-wordpress/23499 "2021-06-15T14:23:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrii](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andrii/32/11786_2.png) [@andrii](https://forum.ghost.org/u/andrii)\
**Post date:** [June 15, 2021, 2:23pm UTC](https://forum.ghost.org/t/import-failed-from-wordpress/23499/1 "2021-06-15T14:23:39Z")

</div>

I just installed ghost via Digital Ocean droplet.  
Trying to run an import from WP - file size 184Mb.  
Getting this error: Import failed: “Request is larger than the maximum file size the server allows.

Looked up in ghost forum, seems there are two solutions:

- either edit NGINX config file and increase the size limit. But, how to do it exactly? [Ghost Import fail: Import failed Request is larger than the maximum file size the server allows - #10 by andrii](https://forum.ghost.org/t/ghost-import-fail-import-failed-request-is-larger-than-the-maximum-file-size-the-server-allows/11839/10)  
OR
- upload WP posts via json file and then upload images to content/images library [Import failed: "Request is larger than the maximum file size the server allows" - #2 by DavidDarnes](https://forum.ghost.org/t/import-failed-request-is-larger-than-the-maximum-file-size-the-server-allows/15395/2) But, how to upload files to images folder?

---

<div class="post-metadata">

**Author:** ![andrii](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andrii/32/11786_2.png) [@andrii](https://forum.ghost.org/u/andrii)\
**Post date:** [June 15, 2021, 2:41pm UTC](https://forum.ghost.org/t/import-failed-from-wordpress/23499/2 "2021-06-15T14:41:51Z")

</div>

Update: trying with first option. Increased upload file size limit doing this:

sudo nano /etc/nginx/sites-enabled/\*

Then restart NGINX with **sudo systemctl restart nginx**

But, then after uploading file got this error:  
_Import failed_

_Import failed due to an unknown error. Check the Web Inspector console and network tabs for errors._

Errors in Console:

/ghost/api/canary/admin/db/:1 Failed to load resource: the server responded with a status of 504 ()  
vendor.min-44e4086bfbe65e804cec4c63bb8c11c8.js:2154 Uncaught Error: Request was rejected due to server error  
at e.\_createCorrectError (vendor.min-44e4086bfbe65e804cec4c63bb8c11c8.js:9268)  
at e.handleResponse (vendor.min-44e4086bfbe65e804cec4c63bb8c11c8.js:9259)  
at e.handleResponse (ghost.min-7c96de1cb04826b5cf0c3647fd2391ac.js:2431)  
at e.n [as handleResponse] (vendor.min-44e4086bfbe65e804cec4c63bb8c11c8.js:2369)  
at Object. (vendor.min-44e4086bfbe65e804cec4c63bb8c11c8.js:9248)  
at l (vendor.min-44e4086bfbe65e804cec4c63bb8c11c8.js:622)  
at Object.fireWith [as rejectWith] (vendor.min-44e4086bfbe65e804cec4c63bb8c11c8.js:623)  
at A (vendor.min-44e4086bfbe65e804cec4c63bb8c11c8.js:905)  
at XMLHttpRequest. (vendor.min-44e4086bfbe65e804cec4c63bb8c11c8.js:916)  
DevTools failed to load source map: Could not load content for [https://mrhack.io/ghost/assets/vendor.min-44e4086bfbe65e804cec4c63bb8c11c8.map:](https://mrhack.io/ghost/assets/vendor.min-44e4086bfbe65e804cec4c63bb8c11c8.map:) HTTP error: status code 404, net::ERR\_HTTP\_RESPONSE\_CODE\_FAILURE  
DevTools failed to load source map: Could not load content for [https://mrhack.io/ghost/assets/ghost.min-7c96de1cb04826b5cf0c3647fd2391ac.map:](https://mrhack.io/ghost/assets/ghost.min-7c96de1cb04826b5cf0c3647fd2391ac.map:) HTTP error: status code 404, net::ERR\_HTTP\_RESPONSE\_CODE\_FAILURE
