covid-policy-modelling / web-ui

Frontend for COVID modeling
MIT License
0 stars 2 forks source link

`script/db_create` fails #59

Closed sdwfrost closed 4 months ago

sdwfrost commented 4 months ago

When running the local setup script, script/db-create, there is a node error [ERROR] AssertionError [ERR_ASSERTION]: ifError got unwanted exception: connect ECONNREFUSED 172.18.0.2:3306.

% script/db-create
[+] Running 1/0
 ⠿ Container web-ui-db-1  Created                                                                                          0.0s
[+] Running 1/1
 ⠿ Container web-ui-db-1  Started                                                                                          0.1s
Ignoring invalid configuration option passed to Connection: driver. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection
[ERROR] AssertionError [ERR_ASSERTION]: ifError got unwanted exception: connect ECONNREFUSED 172.18.0.2:3306
    at /app/node_modules/db-migrate/lib/commands/db.js:17:12
    at /app/node_modules/db-migrate/lib/driver/index.js:95:9
    at /app/node_modules/db-migrate-mysql/index.js:518:14
    at Connection.<anonymous> (/app/node_modules/mysql2/lib/connection.js:775:13)
    at Object.onceWrapper (events.js:520:26)
    at Connection.emit (events.js:400:28)
    at Connection._notifyError (/app/node_modules/mysql2/lib/connection.js:236:12)
    at Connection._handleFatalError (/app/node_modules/mysql2/lib/connection.js:167:10)
    at Connection._handleNetworkError (/app/node_modules/mysql2/lib/connection.js:180:10)
    at Socket.emit (events.js:400:28)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16)