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 on first run #104

Open
srgtm opened this issue Mar 31, 2022 · 2 comments
Open

Error on first run #104

srgtm opened this issue Mar 31, 2022 · 2 comments

Comments

@srgtm
Copy link

srgtm commented Mar 31, 2022

Whichever port I'm using I'm still getting this error((
Error log:
events.js:174
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE: address already in use :::9090
at Server.setupListenHandle [as _listen2] (net.js:1280:14)
at listenInCluster (net.js:1328:12)
at Server.listen (net.js:1415:7)
at Function.listen (/home/srgtm/Instagram/node_modules/express/lib/application.js:618:24)
at Object. (/home/srgtm/Instagram/app.js:66:5)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
Emitted 'error' event at:
at emitErrorNT (net.js:1307:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

@daarisameen
Copy link

Mention your port number in app.listen() function in app.js file.

@0xhenrique
Copy link

Don't know if you're still facing this problem. But:

You already have some service running in the port 9090

You have two options:

  • You kill what's running in port 9090:
    run sudo ss -lptn 'sport = :9090' to get the PID
    run kill -9 [PID number] without the brackets

  • The other option is to change the port in your app.js file if you want to keep the service that's already running on 9090.

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

3 participants