Problem with "ghost import" does not work on browser and server terminal

I’m trying to import a file to Ghost but I get an error, follow the log below:

    Debug Information:
    OS: Ubuntu, v18.04.4 LTS
    Node Version: v12.18.0
    Ghost Version: 3.36.0
    Ghost-CLI Version: 1.15.0
    Environment: production
    Command: 'ghost import tobruxo.ghost.2020-10-27-23-41-20.json'
An error occurred.
Message: 'Response code 413 (Request Entity Too Large)'

Stack: HTTPError: Response code 413 (Request Entity Too Large)
    at EventEmitter.<anonymous> (/usr/lib/node_modules/ghost-cli/node_modules/got/source/as-promise.js:74:19)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
Path: /ghost/api/v3/admin/db/

I tried to import through the admin panel but it wasn’t going either, so I put the file on the server via FTP and ran the Ghost Import command but I got the error above. Has anyone ever experienced this?

How large is the file your importing, and are you self-hosting, hosted on Ghost Pro, or on another service?

If self-hosting, are you using nginx, caddy, or some other server in front of ghost?

1 Like

The file is about 280 mb and yes I’m self-hosting, I’m using ngix on the server, I’ve already increased the file size that can be sent to nginx but it still didn’t work