Error upload images

Hi,

I just migrated from version 0.11.x 1.x and 2.X, everything worked without problems.

But when I’m writing a new entry and uploading a photo, it sends me an error that can not access it.

Viewing the log I found this error, I do not know what permissions should go in the path ./content/images, so I can write in it.

ERROR [2018-11-20 23:28:41] “POST /ghost/api/v2/admin/uploads/” 500 319ms
Nov 21 01:28:41 host.mx node[10736]:
Nov 21 01:28:41 host.mx node[10736]: NAME: InternalServerError
Nov 21 01:28:41 host.mx node[10736]: CODE: EACCES
Nov 21 01:28:41 host.mx node[10736]: MESSAGE: EACCES: permission denied, open ‘/var/www/ghost/content/images/2018/11/Captura-de-pantalla-2018-11-20-a-la-s–5.21.11-p.m…png’
Nov 21 01:28:41 host.mx node[10736]: level:normal
Nov 21 01:28:41 host.mx node[10736]: empty
Nov 21 01:28:41 host.mx node[10736]: empty
Nov 21 01:28:41 host.mx node[10736]: ERROR DETAILS:
Nov 21 01:28:41 host.mx node[10736]: empty
Nov 21 01:28:41 host.mx node[10736]: InternalServerError: EACCES: permission denied, open ‘/var/www/ghost/content/images/2018/11/Captura-de-pantalla-2018-11-20-a-la-s–5.21.11-p.m…png’
Nov 21 01:28:41 host.mx node[10736]: at new GhostError (/var/www/ghost/versions/2.6.1/core/server/lib/common/errors.js:10:26)
Nov 21 01:28:41 host.mx node[10736]: at _private.prepareError (/var/www/ghost/versions/2.6.1/core/server/web/shared/middlewares/error-handler.js:42:19)
Nov 21 01:28:41 host.mx node[10736]: at Layer.handle_error (/var/www/ghost/versions/2.6.1/node_modules/express/lib/router/layer.js:71:5)
Nov 21 01:28:41 host.mx node[10736]: at trim_prefix (/var/www/ghost/versions/2.6.1/node_modules/express/lib/router/index.js:315:13)
Nov 21 01:28:41 host.mx node[10736]: at /var/www/ghost/versions/2.6.1/node_modules/express/lib/router/index.js:284:7
Nov 21 01:28:41 host.mx node[10736]: at Function.process_params (/var/www/ghost/versions/2.6.1/node_modules/express/lib/router/index.js:335:12)
Nov 21 01:28:41 host.mx node[10736]: at next (/var/www/ghost/versions/2.6.1/node_modules/express/lib/router/index.js:275:10)
Nov 21 01:28:41 host.mx node[10736]: at Layer.handle_error (/var/www/ghost/versions/2.6.1/node_modules/express/lib/router/layer.js:67:12)
Nov 21 01:28:41 host.mx node[10736]: at trim_prefix (/var/www/ghost/versions/2.6.1/node_modules/express/lib/router/index.js:315:13)
Nov 21 01:28:41 host.mx node[10736]: at /var/www/ghost/versions/2.6.1/node_modules/express/lib/router/index.js:284:7
Nov 21 01:28:41 host.mx node[10736]: at Function.process_params (/var/www/ghost/versions/2.6.1/node_modules/express/lib/router/index.js:335:12)
Nov 21 01:28:41 host.mx node[10736]: at next (/var/www/ghost/versions/2.6.1/node_modules/express/lib/router/index.js:275:10)
Nov 21 01:28:41 host.mx node[10736]: at /var/www/ghost/versions/2.6.1/node_modules/express/lib/router/index.js:635:15
Nov 21 01:28:41 host.mx node[10736]: at next (/var/www/ghost/versions/2.6.1/node_modules/express/lib/router/index.js:260:14)
Nov 21 01:28:41 host.mx node[10736]: at next (/var/www/ghost/versions/2.6.1/node_modules/express/lib/router/route.js:127:14)
Nov 21 01:28:41 host.mx node[10736]: at apiImpl.then.catch (/var/www/ghost/versions/2.6.1/core/server/api/shared/http.js:59:17)
Nov 21 01:28:41 host.mx node[10736]: Error: EACCES: permission denied, open ‘/var/www/ghost/content/images/2018/11/Captura-de-pantalla-2018-11-20-a-la-s–5.21.11-p.m…png’

It sounds like your directory permissions are messed up! Can you run ghost doctor to hopefully fix the issue?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.