lukevella / rallly

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
https://rallly.co
GNU Affero General Public License v3.0
3.55k stars 338 forks source link

500 server error on clicking "get started" #331

Closed andrewzah closed 2 years ago

andrewzah commented 2 years ago

Describe the bug I get a 500 server error when trying to do anything.

To Reproduce

  1. go to homepage
  2. click "get started"

Expected behavior Not receive a 500 server error.

Additional context Rallly is being run in a docker container. This is the dockerfile.


rallly_1  | Error: iron-session: Bad usage. Minimum usage is const session = await getIronSession(req, res, { cookieName: "...", password: "...". Check the usage here: https://github.com/vvo/iron-session
rallly_1  |     at getIronSession (file:///usr/src/app/rallly/node_modules/iron-session/dist/index.mjs:19:11)
rallly_1  |     at nextGetServerSidePropsHandlerWrappedWithIronSession (/usr/src/app/rallly/.next/server/chunks/531.js:64:87)
rallly_1  |     at Object.renderToHTML (/usr/src/app/rallly/node_modules/next/dist/server/render.js:573:26)
rallly_1  |     at processTicksAndRejections (node:internal/process/task_queues:96:5)
rallly_1  |     at async doRender (/usr/src/app/rallly/node_modules/next/dist/server/base-server.js:912:38)
rallly_1  |     at async cacheEntry.responseCache.get.isManualRevalidate.isManualRevalidate (/usr/src/app/rallly/node_modules/next/dist/server/base-server.js:1017:28)
rallly_1  |     at async /usr/src/app/rallly/node_modules/next/dist/server/response-cache.js:69:36
lukevella commented 2 years ago

Hi, can you mention what commit you are running?

Please make sure you set SECRET_PASSWORD in your .env file and make sure it's at least 32 characters

andrewzah commented 2 years ago

Latest commit (10e4aaedfb5e1d8c0974ac6dbe4e1324c83f987a), and this is my environment currently:

environment:
  DATABASE_URL: <url>
  SECRET_PASSWORD: <secret generated from openssl rand -hex 512>
  SMTP_HOST: <host>
  SMTP_PORT: <port>
  SMTP_PWD: <token>
  SMTP_SECURE: "true"
  SMTP_USER: <user>
  SUPPORT_EMAIL: <email>
  TZ: America/New_York
andrewzah commented 2 years ago

Hmm, for whatever reason SECRET_PASSWORD was not set in the container, despite the docker-compose file. Restarting the container fixed it.

Looks like this issue is on my side, not Rallly. Sorry.