electerious / Ackee

Self-hosted, Node.js based analytics tool for those who care about privacy.

Home Page:https://ackee.electerious.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to login to Ackee | Vercel Deployment

adityatelange opened this issue Β· comments

🐞 Describe the bug

Unable to login to Ackee. API responds with

An error occurred with your deployment

FUNCTION_INVOCATION_TIMEOUT

πŸ“š To Reproduce

  1. Install Ackee as suggested in docs.
  2. Deploy it to vercel.

Repo used to deploy to vercel https://github.com/adityatelange/Ackee-forked. Branch: master

πŸ’‘ Expected behavior

Ackee should login the user opening the dashboard

πŸ–ΌοΈ Screenshots

image

Screenshot from 2022-05-19 09-01-25

βš™οΈ Environment

  • Installation: [e.g. Docker/Docker-Compose/Netlify/Vercel/Manually]: Vercel
  • Ackee version: [e.g. v2.1.0]: v3.4.0

πŸ“‹ Additional context

Add any other context about the problem here.

ζˆ‘δΉŸζ˜―θΏ™ζ ·

FUNCTION_INVOCATION_TIMEOUT isn't unusual for Vercel and can happen when a serveless function hasn't been invoked for a while. It usually fixes itself after a few tries, but I still have no glue why and how to fix it.

FUNCTION_INVOCATION_TIMEOUT isn't unusual for Vercel and can happen when a serveless function hasn't been invoked for a while. It usually fixes itself after a few tries, but I still have no glue why and how to fix it.

I'm not sure but this was not happening with previous version https://github.com/adityatelange/Ackee-forked branch primary.
Lost alomost all of stats for 3 days but after reverting back to primary branch everything is fine.
This has been observed with 3.4.0.
Is it because of mongo db queries getting delayed? I'm not sure.
And verified with 3.4.1, the issue persists

After experimenting with locations of Vercel deployment, I have the following observations:
For Mongo DB Atlas region is Azure / California (west).
After selecting Serverless Function Region nearer to the mongo region in Vercel, I can somehow log in!