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

EADDRINUSE due to hard coded prometheus port conflict with blockchain api #230

Closed
badonyx opened this issue Jul 20, 2024 · 2 comments · Fixed by #231
Closed

EADDRINUSE due to hard coded prometheus port conflict with blockchain api #230

badonyx opened this issue Jul 20, 2024 · 2 comments · Fixed by #231

Comments

@badonyx
Copy link

badonyx commented Jul 20, 2024

{"level":"info","time":"2024-07-20T20:37:02.642Z","pid":94902,"hostname":"nixos","name":"api","msg":"Initializing API service..."}
{"level":"error","time":"2024-07-20T20:37:02.810Z","pid":94902,"hostname":"nixos","name":"api","err":{"type":"Error","message":"listen EADDRINUSE: address already in use 0.0.0.0:9153","stack":"Error: listen EADDRINUSE: address already in use 0.0.0.0:9153\n at Server.setupListenHandle [as _listen2] (node:net:1897:16)\n at listenInCluster (node:net:1945:12)\n at doListen (node:net:2109:7)\n at process.processTicksAndRejections (node:internal/process/task_queues:83:21)","code":"EADDRINUSE","errno":-98,"syscall":"listen","address":"0.0.0.0","port":9153},"msg":"App failed to start"}

Token metadata API and blockchain API are hard coded to use the same port 9153 for prometheus, so they cannot run on the same host.

await promServer.listen({ host: ENV.API_HOST, port: 9153 });

https://github.com/hirosystems/stacks-blockchain-api/blob/1d9d0a681458addaaf556c988e1b11975b9d0371/src/index.ts#L205

@github-project-automation github-project-automation bot moved this to 🆕 New in API Board Jul 20, 2024
@smcclellan smcclellan moved this from 🆕 New to 📋 Backlog in API Board Jul 22, 2024
@rafaelcr rafaelcr assigned tippenein and unassigned rafaelcr Jul 22, 2024
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in API Board Jul 29, 2024
@blockstack-devops
Copy link

🎉 This issue has been resolved in version 1.0.0-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@blockstack-devops
Copy link

🎉 This issue has been resolved in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

4 participants