electerious / Ackee

Self-hosted, Node.js based analytics tool for those who care about privacy.
https://ackee.electerious.com
MIT License
4.2k stars 351 forks source link

Unable to login Ackee deployed to Netlify #289

Closed OPerel closed 2 years ago

OPerel commented 2 years ago

🐞 Describe the bug

I got everything working locally, and I deployed successfully to Netlify. But when trying to login using the credentials defined in the env variables I get the following error:

Response not successful: Received status code 502

📚 To Reproduce I just deployed to Netlify using the button in the docs...

💡 Expected behavior

I should be able to login and see my dashboard.

🖼️ Screenshots Ackee login screen: image

This is what I'm seeing in the Chrome dev tools: image

And this is what I'm seeing in the Netlify functions olg: image

⚙️ Environment

📋 Additional context

Please let me know if I can provide any more info on this issue

Thanks 🙏

carvalholeo commented 2 years ago

Hello, how are you?

At MongoDB Atlas, did you set up your user to be access from all internet (on sidebar, at Network configurations) and your user to have permission to read and write any database?

I did the same problem, because I've configured ackee database user to be an administrator, so they can't be able to write anything. Solved when I gave that permissions.

OPerel commented 2 years ago

Thanks @carvalholeo My DB user was configured as admin. I thought admin should have read and write privileges.... Any way it's working now! 🙏

carvalholeo commented 2 years ago

YESSS, I thought it too in my case.

I'm happy that you fix your problem. Happy coding and happy data!

BasJan81 commented 2 years ago

I've used the Deploy to Netlify button and receive the same 502 error.

Could someone please explain how to find the correct ACKEE_MONGODB URL info?

I created a database, user and password but I can't find the database URL.

electerious commented 2 years ago

I created a database, user and password but I can't find the database URL.

That depends on the platform you use. The URL usually looks like this: https://docs.mongodb.com/manual/reference/connection-string/