hi, we are upgrading from 1.4.0 to latest (1.8.0) ...
# announcements
p
hi, we are upgrading from 1.4.0 to latest (1.8.0) and we are getting this error - we are self hosting:
Copy code
+ growthbook-ccdb99d44-kdcm5 › growthbook
growthbook-ccdb99d44-kdcm5 growthbook yarn run v1.22.19
growthbook-ccdb99d44-kdcm5 growthbook $ wsrun -p '*-end' -m start
growthbook-ccdb99d44-kdcm5 growthbook back-end
growthbook-ccdb99d44-kdcm5 growthbook  | $ node dist/server.js
growthbook-ccdb99d44-kdcm5 growthbook front-end
growthbook-ccdb99d44-kdcm5 growthbook  | $ next start
growthbook-ccdb99d44-p8tkb growthbook yarn run v1.22.19
growthbook-ccdb99d44-p8tkb growthbook $ wsrun -p '*-end' -m start
growthbook-ccdb99d44-kdcm5 growthbook  | ready - started server on 0.0.0.0:3000, url: <http://localhost:3000>
growthbook-ccdb99d44-kdcm5 growthbook back-end
growthbook-ccdb99d44-kdcm5 growthbook  | {"level":30,"time":1668616791387,"pid":58,"hostname":"growthbook-ccdb99d44-kdcm5","msg":"Back-end is running at <http://localhost:3100> in production mode. Press CTRL-C to stop"}
growthbook-ccdb99d44-kdcm5 growthbook  | /usr/local/src/app/packages/back-end/dist/services/auth/index.js:30
growthbook-ccdb99d44-kdcm5 growthbook  |             throw new Error("Id token does not contain email address");
growthbook-ccdb99d44-kdcm5 growthbook  |                   ^
growthbook-ccdb99d44-kdcm5 growthbook  | 
growthbook-ccdb99d44-kdcm5 growthbook  | Error: Id token does not contain email address
growthbook-ccdb99d44-kdcm5 growthbook  |     at /usr/local/src/app/packages/back-end/dist/services/auth/index.js:30:19
growthbook-ccdb99d44-kdcm5 growthbook  |     at Generator.next (<anonymous>)
growthbook-ccdb99d44-kdcm5 growthbook  |     at /usr/local/src/app/packages/back-end/dist/services/auth/index.js:8:71
growthbook-ccdb99d44-kdcm5 growthbook  |     at new Promise (<anonymous>)
growthbook-ccdb99d44-kdcm5 growthbook  |     at __awaiter (/usr/local/src/app/packages/back-end/dist/services/auth/index.js:4:12)
growthbook-ccdb99d44-kdcm5 growthbook  |     at getUserFromJWT (/usr/local/src/app/packages/back-end/dist/services/auth/index.js:28:12)
growthbook-ccdb99d44-kdcm5 growthbook  |     at /usr/local/src/app/packages/back-end/dist/services/auth/index.js:86:28
growthbook-ccdb99d44-kdcm5 growthbook  |     at Generator.next (<anonymous>)
growthbook-ccdb99d44-kdcm5 growthbook  |     at /usr/local/src/app/packages/back-end/dist/services/auth/index.js:8:71
growthbook-ccdb99d44-kdcm5 growthbook  |     at new Promise (<anonymous>)
growthbook-ccdb99d44-kdcm5 growthbook  |     at __awaiter (/usr/local/src/app/packages/back-end/dist/services/auth/index.js:4:12)
growthbook-ccdb99d44-kdcm5 growthbook  |     at processJWT (/usr/local/src/app/packages/back-end/dist/services/auth/index.js:49:12)
growthbook-ccdb99d44-kdcm5 growthbook  |     at Layer.handle [as handle_request] (/usr/local/src/app/node_modules/express/lib/router/layer.js:95:5)
growthbook-ccdb99d44-kdcm5 growthbook  |     at trim_prefix (/usr/local/src/app/node_modules/express/lib/router/index.js:328:13)
growthbook-ccdb99d44-kdcm5 growthbook  |     at /usr/local/src/app/node_modules/express/lib/router/index.js:286:9
growthbook-ccdb99d44-kdcm5 growthbook  |     at Function.process_params (/usr/local/src/app/node_modules/express/lib/router/index.js:346:12)
growthbook-ccdb99d44-kdcm5 growthbook  |     at next (/usr/local/src/app/node_modules/express/lib/router/index.js:280:10)
growthbook-ccdb99d44-kdcm5 growthbook  |     at /usr/local/src/app/node_modules/express-jwt/lib/index.js:131:7
growthbook-ccdb99d44-kdcm5 growthbook  |     at wrapper (/usr/local/src/app/node_modules/async/dist/async.js:271:20)
growthbook-ccdb99d44-kdcm5 growthbook  |     at next (/usr/local/src/app/node_modules/async/dist/async.js:5795:24)
growthbook-ccdb99d44-kdcm5 growthbook  |     at /usr/local/src/app/node_modules/async/dist/async.js:327:20
growthbook-ccdb99d44-kdcm5 growthbook  |     at /usr/local/src/app/node_modules/express-jwt/lib/index.js:119:13
growthbook-ccdb99d44-kdcm5 growthbook  | error Command failed with exit code 1.
growthbook-ccdb99d44-kdcm5 growthbook  | info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this comm
when upgrading do we need to run any db migrations, are there any guides about this, thanks!
f
That looks like an authentication error. You might need to clear your cookies and login again. It's strange that it looks like it's a fatal error and stopping the entire back-end from running. It should just be a runtime warning