You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.
The default docker-compose.yml file creates a db container for the database. Currently it isn't possible to change the container- / hostname of this db container.
If I change the name from db to foo everywhere (in the docker-compose.yml and the .env file), the syncing-server-js doesn't start and loops the following error log:
[Error] PoolCluster : Error: getaddrinfo ENOTFOUND db
[Error] PoolCluster : Error: getaddrinfo ENOTFOUND db
[Error] PoolCluster : Error: getaddrinfo ENOTFOUND db
[Error] PoolCluster : Error: getaddrinfo ENOTFOUND db
[Error] PoolCluster : Error: getaddrinfo ENOTFOUND db
[Error] PoolCluster : Error: getaddrinfo ENOTFOUND db
[Error] PoolCluster : Error: getaddrinfo ENOTFOUND db
[Error] PoolCluster : Error: getaddrinfo ENOTFOUND db
[Error] PoolCluster : Error: getaddrinfo ENOTFOUND db
[Error] PoolCluster : Error: getaddrinfo ENOTFOUND db
/var/www/node_modules/mysql2/lib/pool_cluster.js:36
return cb(new Error('Pool does Not exists.'));
^
Error: Pool does Not exists.
at PoolNamespace.getConnection (/var/www/node_modules/mysql2/lib/pool_cluster.js:36:17)
at /var/www/node_modules/mysql2/lib/pool_cluster.js:43:21
at /var/www/node_modules/mysql2/lib/pool_cluster.js:210:18
at /var/www/node_modules/mysql2/lib/pool.js:60:18
at PoolConnection.<anonymous> (/var/www/node_modules/mysql2/lib/connection.js:739:13)
at Object.onceWrapper (node:events:485:26)
at PoolConnection.emit (node:events:390:22)
at PoolConnection.EventEmitter.emit (node:domain:470:12)
at PoolConnection._notifyError (/var/www/node_modules/mysql2/lib/connection.js:225:12)
at PoolConnection._handleFatalError (/var/www/node_modules/mysql2/lib/connection.js:156:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered:
did you try to kill the existing containers and rebuild them? Maybe docker-compose kill && docker-compose build will help before starting the container again. Judging by the logs seems like the container has the old value still.
Thanks a lot for your quick feedback, @karolsojko .
After some debugging, I found another place where I missed replacing the value of the container. Aftward I was able to successfully change the name.
Nevertheless, it would be great to see a piece of meaningful information in the logs like "Couldn't find or connect to the database DB-NAME" instead of a looping exception.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The default
docker-compose.yml
file creates adb
container for the database. Currently it isn't possible to change the container- / hostname of thisdb
container.If I change the name from
db
tofoo
everywhere (in thedocker-compose.yml
and the.env
file), thesyncing-server-js
doesn't start and loops the following error log:The text was updated successfully, but these errors were encountered: