Not able to connect to postgres in development mode #24

Closed
opened 2026-02-04 16:36:54 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @niraj1234567890 on GitHub (Aug 30, 2020).

When I am trying to login to planka after installing all the dependencies and starting both the servers[in development mode], I am not getting response from postgres database. Login page is not not getting response from the backend and thus it is just waiting..
After looking into the backend code and manually consoling (console.log()), I got to know that, code is getting stuck at where it is trying to connect to the database in get-user.js helper file.

So application is not getting response from the database at this code: User.findOne(criteria)
Is there something I am missing?? I have looked around but didn't get to the solution of this problem.

Originally created by @niraj1234567890 on GitHub (Aug 30, 2020). When I am trying to **login** to planka after installing all the dependencies and starting both the servers[in **development mode**], I am not getting response from **postgres database**. Login page is not not getting response from the backend and thus it is just waiting.. After looking into the backend code and manually consoling (console.log()), I got to know that, code is getting stuck at where it is trying to connect to the database in **get-user.js** helper file. So application is not getting response from the database at this code: **User.findOne(criteria)** Is there something I am missing?? I have looked around but didn't get to the solution of this problem.
Author
Owner

@meltyshev commented on GitHub (Aug 31, 2020):

Hi! Are you using Node v14?

@meltyshev commented on GitHub (Aug 31, 2020): Hi! Are you using Node v14?
Author
Owner

@niraj1234567890 commented on GitHub (Aug 31, 2020):

Yes, It is 14.8.0

@niraj1234567890 commented on GitHub (Aug 31, 2020): Yes, It is 14.8.0
Author
Owner

@meltyshev commented on GitHub (Aug 31, 2020):

https://github.com/balderdashy/sails/issues/6981, sails-postgresql adapter still doesn't work with the new Node. I will use a workaround mentioned in the comments there. Will be fixed in the next commit.

@meltyshev commented on GitHub (Aug 31, 2020): https://github.com/balderdashy/sails/issues/6981, sails-postgresql adapter still doesn't work with the new Node. I will use a workaround mentioned in the comments there. Will be fixed in the next commit.
Author
Owner

@niraj1234567890 commented on GitHub (Aug 31, 2020):

Thanks @meltyshev . I went crazy over this issue. It's working fine with lower versions of Node.

@niraj1234567890 commented on GitHub (Aug 31, 2020): Thanks @meltyshev . I went crazy over this issue. It's working fine with lower versions of Node.
Author
Owner

@meltyshev commented on GitHub (Aug 31, 2020):

Now you can pull the last version, it will be working with a new Node too 💪

@meltyshev commented on GitHub (Aug 31, 2020): Now you can pull the last version, it will be working with a new Node too 💪
Author
Owner

@niraj1234567890 commented on GitHub (Aug 31, 2020):

Great👌👌

@niraj1234567890 commented on GitHub (Aug 31, 2020): Great👌👌
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#24