Comments (3)
Is there any application using port 9000? It's work both configuration in my computer
from envoy_external_authorization.
@UmutComlekci Here is a recent repro with result from lsof
Error from recent run of compose w/envoy config having 0.0.0.1
envoy_1 | [2020-04-18 14:51:29.243][1][critical][main] [source/server/server.cc:93] error initializing configuration '/etc/envoy/envoy.yaml': cannot bind '0.0.0.1:9000': Cannot assign requested address
envoy_1 | [2020-04-18 14:51:29.243][1][info][main] [source/server/server.cc:560] exiting
Immediately after that error I issued the lsof
command below
sudo lsof -i -P -n | grep LISTEN
[sudo] password for alfreds:
systemd-r 680 systemd-resolve 13u IPv4 33851 0t0 TCP 127.0.0.53:53 (LISTEN)
cupsd 715 root 6u IPv6 33759 0t0 TCP [::1]:631 (LISTEN)
cupsd 715 root 7u IPv4 33760 0t0 TCP 127.0.0.1:631 (LISTEN)
container 810 root 8u IPv4 41095 0t0 TCP 127.0.0.1:39811 (LISTEN)
java 2581 alfreds 50u IPv4 46032 0t0 TCP 127.0.0.1:6942 (LISTEN)
java 2581 alfreds 378u IPv4 50961 0t0 TCP 127.0.0.1:63342 (LISTEN)
docker-pr 4884 root 4u IPv6 73252 0t0 TCP *:4000 (LISTEN)
docker-pr 4932 root 4u IPv6 75956 0t0 TCP *:8123 (LISTEN)
I don't see anything else on 9000. Now maybe you meant 9000 inside the docker compose network? If so I'm not sure how to check that.
Just to confirm my previous workaround, I changed the address for envoy conf from 0.0.0.1 to 0.0.0.0
access_log_path: /dev/null
address:
socket_address:
address: 0.0.0.0
port_value: 9000
and success
envoy_1 | [2020-04-18 14:58:31.303][1][info][main] [source/server/server.cc:322] admin address: 0.0.0.0:9000
envoy_1 | [2020-04-18 14:58:31.304][1][info][main] [source/server/server.cc:432] runtime: layers:
I can curl with your example curl
updated lsof after using 0.0.0.0 for envoy.
sudo lsof -i -P -n | grep LISTEN
systemd-r 680 systemd-resolve 13u IPv4 33851 0t0 TCP 127.0.0.53:53 (LISTEN)
cupsd 715 root 6u IPv6 33759 0t0 TCP [::1]:631 (LISTEN)
cupsd 715 root 7u IPv4 33760 0t0 TCP 127.0.0.1:631 (LISTEN)
container 810 root 8u IPv4 41095 0t0 TCP 127.0.0.1:39811 (LISTEN)
java 2581 alfreds 50u IPv4 46032 0t0 TCP 127.0.0.1:6942 (LISTEN)
java 2581 alfreds 378u IPv4 50961 0t0 TCP 127.0.0.1:63342 (LISTEN)
docker-pr 5600 root 4u IPv6 81689 0t0 TCP *:8080 (LISTEN)
docker-pr 5617 root 4u IPv6 84019 0t0 TCP *:8001 (LISTEN)
docker-pr 5646 root 4u IPv6 81778 0t0 TCP *:8123 (LISTEN)
docker-pr 5692 root 4u IPv6 84482 0t0 TCP *:4000 (LISTEN)
curl command
curl -vv -w "\n" http://localhost:8080/
* Trying ::1:8080...
* TCP_NODELAY set
* Connected to localhost (::1) port 8080 (#0)
> GET / HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.65.3
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 401 Unauthorized
< content-length: 46
< content-type: text/plain
< x-custom-header-from-lua: bar
< date: Sat, 18 Apr 2020 15:00:02 GMT
< server: envoy
<
* Connection #0 to host localhost left intact
Authorization Header malformed or not provided
from envoy_external_authorization.
I couldn't understand the cause of the error but I think, I fix it. Thank you very much
from envoy_external_authorization.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from envoy_external_authorization.