Closed Raintrees25 closed 2 years ago
Update: I was able to fix this issue by updating the MySQL - Server: parameter in config.yaml from 'localhost' to '127.0.0.1'
Any idea why?
Well, from the error message:
[ERROR] database: Initial database connection failed: Error: connect ECONNREFUSED ::1:3306
It's trying to connect to ::1
which is an IPv6 loopback address. I'd guess that your MySQL server was only configured to listen on 127.0.0.1
(IPv4 loopback), but when CyTube tried to connect to localhost
, it got resolved to ::1
, and so the connection failed.
Sadly this is one of the many pitfalls of IPv4+IPv6 dual stack systems.
Server Problem
Please confirm whether you've tried the following debugging steps:
npm run build-server
to regeneratelib/
fromsrc/
rm -rf node_modules && npm install
to get a fresh install of dependenciesDescription of the Problem
System Information
[ERROR] database: Initial database connection failed: Error: connect ECONNREFUSED ::1:3306 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)