Closed DegenComedian closed 1 year ago
Looks like an issue with the ENCRYPTION_KEY env variable. It needs to be 32 characters, and I just realized I forgot to put it in the doc!
Yes, I set the ENCRYPTION_KEY but not 32 chars long :). Now that I set it, I get the following error when trying to create an account web frontend:
secretOrPrivateKey must have a value
log:
error: secretOrPrivateKey must have a value {"data":{"email":"comedian@example.com","password":"ohmygod"},"error":{"message":"secretOrPrivateKey must have a value","stack":"Error: secretOrPrivateKey must have a value\n at Object.module.exports [as sign] (/app/node_modules/jsonwebtoken/sign.js:107:20)\n at encode (/app/lib/crypto.js:39:20)\n at User.get (/app/models/user.js:128:17)\n at User.get (/app/node_modules/sequelize/lib/model.js:2108:41)\n at User.get (/app/node_modules/sequelize/lib/model.js:2130:33)\n at User.toJSON (/app/node_modules/sequelize/lib/model.js:2618:29)\n at stringifyFnReplacer (/app/node_modules/safe-stable-stringify/index.js:234:21)\n at stringifyFnReplacer (/app/node_modules/safe-stable-stringify/index.js:314:23)\n at stringify (/app/node_modules/safe-stable-stringify/index.js:659:18)\n at Format.transform (/app/node_modules/logform/json.js:28:19)\n at DerivedLogger._transform (/app/node_modules/winston/lib/winston/logger.js:313:29)\n at DerivedLogger.Transform._read (/app/node_modules/readable-stream/lib/_stream_transform.js:177:10)\n at DerivedLogger.Transform._write (/app/node_modules/readable-stream/lib/_stream_transform.js:164:83)\n at doWrite (/app/node_modules/readable-stream/lib/_stream_writable.js:409:139)\n at writeOrBuffer (/app/node_modules/readable-stream/lib/_stream_writable.js:398:5)\n at DerivedLogger.Writable.write (/app/node_modules/readable-stream/lib/_stream_writable.js:307:11)"},"location":"get.api.users"}
And ENCRYPTION_JWT_SECRET needs to be 64 chars long, sorry it's early here ahah should have put that in my previous message
works now!
Hi developers,
When I run the latest docker version of ethernal self-hosted and try to create a new account on the website startpage, I see the error message in the front-end
In the web container log files I see the following log event for it
I tried different password length and characters, but they all lead to the same problem.
Thank you very much Comedian