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

Error: listen EADDRINUSE: address already in use :::2000 #1

Open
alidabdul opened this issue Sep 22, 2021 · 0 comments
Open

Error: listen EADDRINUSE: address already in use :::2000 #1

alidabdul opened this issue Sep 22, 2021 · 0 comments

Comments

@alidabdul
Copy link

Running the script and always get this error
Error: listen EADDRINUSE: address already in use :::2000
I already kill all the node using this command: sudo killall -9 node
But the error still intact.

The port 2000 is written on the .env files

INFURA_KEY='infura key'

PORT=2000

PRIVATE_KEY='private key'

Here's the error log:

yarn run v1.22.5
$ nest start
[Nest] 27677  - 09/22/2021, 11:47:43 PM     LOG [NestFactory] Starting Nest application...
[Nest] 27677  - 09/22/2021, 11:47:43 PM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +42ms
[Nest] 27677  - 09/22/2021, 11:47:43 PM     LOG [InstanceLoader] BotModule dependencies initialized +1ms
[Nest] 27677  - 09/22/2021, 11:47:43 PM     LOG [InstanceLoader] ConfigHostModule dependencies initialized +0ms
[Nest] 27677  - 09/22/2021, 11:47:43 PM     LOG [InstanceLoader] AppModule dependencies initialized +1ms
[Nest] 27677  - 09/22/2021, 11:47:43 PM     LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
[Nest] 27677  - 09/22/2021, 11:47:43 PM     LOG [InstanceLoader] ConfigModule dependencies initialized +0ms
[Nest] 27677  - 09/22/2021, 11:47:43 PM     LOG [RoutesResolver] AppController {/}: +7ms
[Nest] 27677  - 09/22/2021, 11:47:43 PM     LOG [RouterExplorer] Mapped {/, GET} route +3ms
[Nest] 27677  - 09/22/2021, 11:47:43 PM     LOG [RoutesResolver] BotController {/}: +1ms
[Nest] 27677  - 09/22/2021, 11:47:43 PM     LOG [NestApplication] Nest application successfully started +6ms
[Nest] 27677  - 09/22/2021, 11:47:43 PM   ERROR [NestApplication] Error: listen EADDRINUSE: address already in use :::2000 +4ms
(node:27677) UnhandledPromiseRejectionWarning: Error: listen EADDRINUSE: address already in use :::2000
    at Server.setupListenHandle [as _listen2] (net.js:1310:16)
    at listenInCluster (net.js:1358:12)
    at Server.listen (net.js:1444:7)
    at ExpressAdapter.listen (/captain-bot-master/node_modules/@nestjs/platform-express/adapters/express-adapter.js:50:32)
    at /captain-bot-master/node_modules/@nestjs/core/nest-application.js:168:46
    at new Promise (<anonymous>)
    at NestApplication.listen (/captain-bot-master/node_modules/@nestjs/core/nest-application.js:157:16)
    at bootstrap (/captain-bot-master/src/main.ts:6:3)
(node:27677) 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)
(node:27677) [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.
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

1 participant