Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker deployment doesn't work #1255

Open
aminmarashi opened this issue Jun 14, 2022 · 1 comment
Open

Docker deployment doesn't work #1255

aminmarashi opened this issue Jun 14, 2022 · 1 comment

Comments

@aminmarashi
Copy link

I faced two main issues while trying to run this project locally using docker compose during a workshop. The two issues where:

  • goof would fail to start complaining about not being able to connect to mysql at localhost
  • I wasn't able to create a new todo, it would fail with the following error: TypeError: Busboy is not a constructor
    • I have modified the Dockerfile not to run npm update anymore.

I have opened this #1254 to fix both.

@mathiasconradt
Copy link

mathiasconradt commented Aug 24, 2022

Can confirm, same for me:

goof        | failed connecting and seeding users to the MySQL database
goof        | Error: connect ECONNREFUSED 127.0.0.1:3306
goof        |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1142:16)
goof        |     --------------------
goof        |     at Protocol._enqueue (/usr/src/goof/node_modules/mysql/lib/protocol/Protocol.js:144:48)
goof        |     at Protocol.handshake (/usr/src/goof/node_modules/mysql/lib/protocol/Protocol.js:51:23)
goof        |     at PoolConnection.connect (/usr/src/goof/node_modules/mysql/lib/Connection.js:116:18)
goof        |     at Pool.getConnection (/usr/src/goof/node_modules/mysql/lib/Pool.js:48:16)
goof        |     at /usr/src/goof/node_modules/typeorm/driver/mysql/MysqlDriver.js:903:18
goof        |     at new Promise (<anonymous>)
goof        |     at MysqlDriver.createPool (/usr/src/goof/node_modules/typeorm/driver/mysql/MysqlDriver.js:900:16)
goof        |     at MysqlDriver.<anonymous> (/usr/src/goof/node_modules/typeorm/driver/mysql/MysqlDriver.js:301:51)
goof        |     at step (/usr/src/goof/node_modules/tslib/tslib.js:144:27)
goof        |     at Object.next (/usr/src/goof/node_modules/tslib/tslib.js:125:57)
goof        |     at /usr/src/goof/node_modules/tslib/tslib.js:118:75
goof        |     at new Promise (<anonymous>)
goof        |     at __awaiter (/usr/src/goof/node_modules/tslib/tslib.js:114:16)
goof        |     at MysqlDriver.connect (/usr/src/goof/node_modules/typeorm/driver/mysql/MysqlDriver.js:286:38)
goof        |     at Connection.<anonymous> (/usr/src/goof/node_modules/typeorm/connection/Connection.js:112:58)
goof        |     at step (/usr/src/goof/node_modules/tslib/tslib.js:144:27) {
goof        |   errno: -111,
goof        |   code: 'ECONNREFUSED',
goof        |   syscall: 'connect',
goof        |   address: '127.0.0.1',
goof        |   port: 3306,
goof        |   fatal: true
goof        | }

Wondering why there is a dependency on Mysql in the first place if the project uses Mongo (only)? Or is there also a particular Mysql vuln do exploit?
Would be good to update the README.md in this regard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants