Cyberdine
WWasp-lang
•Created by Cyberdine on 4/20/2023 in #🙋questions
pg-boss failed to start!
Hey guys,
I'm pretty new to Wasp (first day) and also have little experience with Node.js. All my web experience was with Python (Flask).
I installed Wasp and created a project based on SaaS, at first everything ran very well, I was able to configure the login through Google and everything worked perfectly. I went to restart the server and after that it keeps giving an error in pg-boss and it seems that it is not starting the node server.
I thought I had made some changes to the files but no. I even created another project from scratch and it kept having the same error. The strange thing is that I restarted Wasp several times and in one of the times it gave this error and now every time it starts it gives the same error.
I already restarted the db and even the computer. can anybody help me?
“
[Server] 🚀 "Google" auth initialized
[Server] Starting pg-boss...
[Server!] pg-boss failed to start!
[Server!] Error: connect ECONNREFUSED ::1:5432
[Server!] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) {
[Server!] errno: -61,
[Server!] code: 'ECONNREFUSED',
[Server!] syscall: 'connect',
[Server!] address: '::1',
[Server!] port: 5432
[Server!] }
[Server] Server listening on port 3001
[Server!] node:internal/process/promises:288
[Server!] triggerUncaughtException(err, true /* fromPromise */);
[Server!] ^
[Server!]
[Server!] [UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<PgBoss>".] {
[Server!] code: 'ERR_UNHANDLED_REJECTION'
[Server!] }
[Server!]
[Server!] Node.js v18.16.0
[Server] [nodemon] app crashed - waiting for file changes before starting...
“
75 replies