TykTechnologies / tyk

Tyk Open Source API Gateway written in Go, supporting REST, GraphQL, TCP and gRPC protocols
Other
9.74k stars 1.09k forks source link

failed to bind port 0.0.0.0:8080/tcp address already in use #6670

Open StonedApe911 opened 1 month ago

StonedApe911 commented 1 month ago

OS

Error

tyk-gateway-docker_tyk-redis_1 is up-to-date
Starting tyk-gateway-docker_tyk-gateway_1 ... 
Starting tyk-gateway-docker_tyk-gateway_1 ... error

ERROR: for tyk-gateway-docker_tyk-gateway_1  Cannot start service tyk-gateway: driver failed programming external connectivity on endpoint tyk-gateway-docker_tyk-gateway_1 (e6bed1a409f857f7f9f6580b0e7a6a6c8cb21d43d38f58eaa7b2359eef63c31f): failed to bind port 0.0.0.0:8080/tcp: Error starting userland proxy: listen tcp4 0.0.0.0:8080: bind: address already in use

ERROR: for tyk-gateway  Cannot start service tyk-gateway: driver failed programming external connectivity on endpoint tyk-gateway-docker_tyk-gateway_1 (e6bed1a409f857f7f9f6580b0e7a6a6c8cb21d43d38f58eaa7b2359eef63c31f): failed to bind port 0.0.0.0:8080/tcp: Error starting userland proxy: listen tcp4 0.0.0.0:8080: bind: address already in use

Reproduction steps Steps to reproduce the behavior:

  1. have an API running on port 8080
  2. try to install tyk gateway
zalbiraw commented 1 month ago

@StonedApe911 it seems like this is an issue on your end with something running on port 8080

before running the docker containers, can you run lsof -i :8080 and see if there is anything running on 8080? You can simply change the port and it should work