mandatoryprogrammer / mandatoryprogrammer/xsshunter-express

docker-compose up xsshunterexpress throws error in windows 10

Open
#2 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
2.4k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

I run this command "docker-compose up xsshunterexpress" and following error results :

xsshunterexpress_1 | Starting server...
xsshunterexpress_1 | (node:28) [SEQUELIZE0002] DeprecationWarning: The logging-option should be either a function or false. Default: console.log
xsshunterexpress_1 | (node:28) UnhandledPromiseRejectionWarning: SequelizeHostNotFoundError: getaddrinfo ENOTFOUND postgresdb
xsshunterexpress_1 | at Client._connectionCallback (/app/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:175:24)
xsshunterexpress_1 | at Client._handleErrorWhileConnecting (/app/node_modules/pg/lib/client.js:305:19)
xsshunterexpress_1 | at Client._handleErrorEvent (/app/node_modules/pg/lib/client.js:315:19)
xsshunterexpress_1 | at Connection.emit (events.js:314:20)
xsshunterexpress_1 | at Socket.reportStreamError (/app/node_modules/pg/lib/connection.js:53:12)
xsshunterexpress_1 | at Socket.emit (events.js:314:20)
xsshunterexpress_1 | at emitErrorNT (internal/streams/destroy.js:92:8)
xsshunterexpress_1 | at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
xsshunterexpress_1 | at processTicksAndRejections (internal/process/task_queues.js:84:21)
xsshunterexpress_1 | (node:28) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
xsshunterexpress_1 | (node:28) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
xsshunter-express_xsshunterexpress_1 exited with code 0

What could be the reason for this?

Docker desktop: Version 2.0.0.3 (31259)
docker-compose.yaml is set to 3.3 (3.9 not compatible with this docker version)
node version: v12.18.2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing `docker-compose up xsshunterexpress` with the reported Docker Desktop and Compose versions, then inspect the Compose service names and the app's PostgreSQL connection settings. Trace why the `postgresdb` hostname cannot be resolved from the xsshunterexpress container. Done means the container resolves the database service and starts without the Sequelize connection error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker-compose, javascript, node.js, postgresql
Domain
backend, databases, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.