Getting 500 error after importing my old posts


#1

Hi Team,
I had installed ghost from google one-click deploy and the version of Ghost 1.21.4 and Ghost CLI (1.4.2) after that I had done ghost-google-cloud-storage W.R.T this URL https://www.npmjs.com/package/ghost-google-cloud-storage after that I had imported our old posts from bitnami
ghost and the version of Ghost 1.22.1 and Ghost CLI (1.6.0)

Getting 500 error after importing my old posts
Error log:
[2018-04-25 13:34:26] ERROR “GET /” 500 60022ms

NAME: InternalServerError
MESSAGE: [default.hbs] name.replace is not a function

level: normal

InternalServerError: [default.hbs] name.replace is not a function
at new GhostError (/var/www/ghost/versions/1.22.1/core/server/lib/common/errors.js:9:26)
at prepareError (/var/www/ghost/versions/1.22.1/core/server/web/middleware/error-handler.js:39:19)
at Layer.handle_error (/var/www/ghost/versions/1.22.1/node_modules/express/lib/router/layer.js:71:5)
at trim_prefix (/var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:315:13)
at /var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:335:12)
at next (/var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:275:10)
at Layer.handle_error (/var/www/ghost/versions/1.22.1/node_modules/express/lib/router/layer.js:67:12)
at trim_prefix (/var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:315:13)
at /var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:335:12)
at next (/var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:275:10)
at /var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:635:15
at next (/var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:260:14)
at Layer.handle_error (/var/www/ghost/versions/1.22.1/node_modules/express/lib/router/layer.js:67:12)
at trim_prefix (/var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:315:13)
at /var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:335:12)
at next (/var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:275:10)
at /var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:635:15
at Immediate.next (/var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:260:14)
at Immediate. (/var/www/ghost/versions/1.22.1/node_modules/express/lib/router/index.js:635:15)


Lost Images after deploy
#2
  1. Did you share the whole stack trace? Because i can’t see where the error has started. This could be anything.

  2. Are you using a custom theme?


#3

1.)
Stack Information:
OS: Debian, v9.4
Node Version: v6.14.1
Ghost-CLI Version: 1.6.0
Environment: production

2.)We are using default theme only


#4

For (1): I meant the error stack. Did you share the whole error stack?

If yes, I would suggest to you to add a console.log in Ghost’s error handler, because i don’t have time to simulate your setup. Plus, storage adapters is a beta feature - errors are expected.

I need detailed information where the error is coming from.


#5

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