Error initializing listener of type tcp: listen tcp 127.0.0.1:8200: bind: address already in use

This error appears in Linux. I’m using Arch. This error appears while trying to initialize the dev server: vault server -dev.

whats netstat -a | grep 8200 show?

wiki Arch says this tool (netstat) is deprecated. Instead, ss tool is suggested. I type ss -atn and I get:

Appears something is already running on port 8200

Yes. A process is running. I type:
lsof -i :8200
Do I need to kill that process? or Do I close that port and open it again?

You’ll need to run something like sudo netstat -tulpn but for arch and find what is using that port. Or change the vault port…

I run ss -lpunt and that port shows but with no process. I run the command again but this time as super user and the pid appears. I kill it and run again $vault server -dev and works!!! Thanks

please how did you kill the pid?

Hello,

I’ve written solution in the link. Please check it out to fix the issue.
https://en.ahmetonursolmaz.com.tr/error-initializing-listener-of-type-tcp-listen-tcp-127-0-0-18200-bind-address-already-in-use/

2 Likes