decrypto-org / blockchain-course

An interactive course on blockchain science and engineering
MIT License
14 stars 11 forks source link

Can't login #22

Closed OrfeasLitos closed 5 years ago

OrfeasLitos commented 5 years ago

Upon clicking login, the page hangs and I get the following in the thing that's running in api:

UnhandledPromiseRejectionWarning: SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:5432
    at connection.connect.err (/blabla/repositories/blockchain-course/db/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:116:24)
    at Connection.connectingErrorHandler (/blabla/repositories/blockchain-course/db/node_modules/pg/lib/client.js:123:14)
    at Connection.emit (events.js:197:13)
    at Socket.reportStreamError (/blabla/repositories/blockchain-course/db/node_modules/pg/lib/connection.js:71:10)
    at Socket.emit (events.js:197:13)
    at emitErrorNT (internal/streams/destroy.js:82:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
    at processTicksAndRejections (internal/process/next_tick.js:76:17)
dionyziz commented 5 years ago

Can you netcat -vvv to 127.0.0.1:5432?

On Wed, Feb 6, 2019, 00:58 Orfeas Stefanos Thyfronitis Litos < notifications@github.com wrote:

Upon clicking login, the page hangs and I get the following in the thing that's running in api:

UnhandledPromiseRejectionWarning: SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:5432 at connection.connect.err (/blabla/repositories/blockchain-course/db/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:116:24) at Connection.connectingErrorHandler (/blabla/repositories/blockchain-course/db/node_modules/pg/lib/client.js:123:14) at Connection.emit (events.js:197:13) at Socket.reportStreamError (/blabla/repositories/blockchain-course/db/node_modules/pg/lib/connection.js:71:10) at Socket.emit (events.js:197:13) at emitErrorNT (internal/streams/destroy.js:82:8) at emitErrorAndCloseNT (internal/streams/destroy.js:50:3) at processTicksAndRejections (internal/process/next_tick.js:76:17)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/decrypto-org/blockchain-course/issues/22, or mute the thread https://github.com/notifications/unsubscribe-auth/AAhPPCqoMuLtwz5-UpWCHq0l0hd5Ty6Cks5vKgykgaJpZM4akPaA .

cnasikas commented 5 years ago

That error indicates that you can connect to postgres. Are you sure that postgres is started and listens to port 5432 ?

cnasikas commented 5 years ago

Would you mind sharing your DB_URI env variable (without sensitive information)

OrfeasLitos commented 5 years ago

Most probably I forgot to open the DB, my bad. But the error should have been more helpful, see #23.