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

[gdebug] Maintained? Unable to get it working #320

Open
DazWilkin opened this issue Aug 19, 2019 · 2 comments
Open

[gdebug] Maintained? Unable to get it working #320

DazWilkin opened this issue Aug 19, 2019 · 2 comments

Comments

@DazWilkin
Copy link

Is this PoC tool for ChannelZ maintained?
If not, is there an alternative client for ChannelZ?

I think I had used this tool previously and was able to get it to work. So, this is likely my error.

Trying again to use it today with a new solution, I'm unable to do so. I'm not seeing any servers, channels etc. logged to the UI:

image

image

There are no obvious errors logged (see end).

I'm uncertain how I may go about debugging the issue.

I have a working gRPC client and server (:50051).

The server includes:

service.RegisterChannelzServiceToServer(grpcServer)

go.mod includes:

google.golang.org/grpc v1.23.0

I munged around slightly with the docker-compose.yaml but think it remains correct. I exposed the Envoy admin port and it appears to be working correctly.

Logs:

envoy    | + '[' 5 -ne 5 ']'
envoy    | ++ mktemp --suffix=.yaml
envoy    | + TEMP=/tmp/tmp.Tj2sOorGEg.yaml
envoy    | + trap finish EXIT
envoy    | + readonly LOCAL_PORT=9900
envoy    | + LOCAL_PORT=9900
envoy    | + readonly GRPC_ADDR=127.0.0.1
envoy    | + GRPC_ADDR=127.0.0.1
envoy    | + readonly GRPC_PORT=50051
envoy    | + GRPC_PORT=50051
envoy    | + readonly ASSETS_ADDR=web
envoy    | + ASSETS_ADDR=web
envoy    | + readonly ASSETS_PORT=8080
envoy    | + ASSETS_PORT=8080
envoy    | + readonly GDEBUG_TOKEN_NAME=gdebug-xsrf-token
envoy    | + GDEBUG_TOKEN_NAME=gdebug-xsrf-token
envoy    | + cat
envoy    | + /usr/local/bin/envoy --v2-config-only -c /tmp/tmp.Tj2sOorGEg.yaml
envoy    | [2019-08-19 20:31:31.217][12][info][main] source/server/server.cc:183] initializing epoch 0 (hot restart version=10.200.16384.127.options=capacity=16384, num_slots=8209 hash=228984379728933363 size=2654312)
envoy    | [2019-08-19 20:31:31.217][12][info][main] source/server/server.cc:185] statically linked extensions:
envoy    | [2019-08-19 20:31:31.217][12][info][main] source/server/server.cc:187]   access_loggers: envoy.file_access_log,envoy.http_grpc_access_log
envoy    | [2019-08-19 20:31:31.217][12][info][main] source/server/server.cc:190]   filters.http: envoy.buffer,envoy.cors,envoy.ext_authz,envoy.fault,envoy.filters.http.header_to_metadata,envoy.filters.http.jwt_authn,envoy.filters.http.rbac,envoy.grpc_http1_bridge,envoy.grpc_json_transcoder,envoy.grpc_web,envoy.gzip,envoy.health_check,envoy.http_dynamo_filter,envoy.ip_tagging,envoy.lua,envoy.rate_limit,envoy.router,envoy.squash
envoy    | [2019-08-19 20:31:31.217][12][info][main] source/server/server.cc:193]   filters.listener: envoy.listener.original_dst,envoy.listener.proxy_protocol,envoy.listener.tls_inspector
envoy    | [2019-08-19 20:31:31.217][12][info][main] source/server/server.cc:196]   filters.network: envoy.client_ssl_auth,envoy.echo,envoy.ext_authz,envoy.filters.network.thrift_proxy,envoy.http_connection_manager,envoy.mongo_proxy,envoy.ratelimit,envoy.redis_proxy,envoy.tcp_proxy
envoy    | [2019-08-19 20:31:31.217][12][info][main] source/server/server.cc:198]   stat_sinks: envoy.dog_statsd,envoy.metrics_service,envoy.statsd
envoy    | [2019-08-19 20:31:31.217][12][info][main] source/server/server.cc:200]   tracers: envoy.dynamic.ot,envoy.lightstep,envoy.zipkin
envoy    | [2019-08-19 20:31:31.217][12][info][main] source/server/server.cc:203]   transport_sockets.downstream: envoy.transport_sockets.capture,raw_buffer,tls
envoy    | [2019-08-19 20:31:31.217][12][info][main] source/server/server.cc:206]   transport_sockets.upstream: envoy.transport_sockets.capture,raw_buffer,tls
envoy    | [2019-08-19 20:31:31.220][12][info][config] source/server/configuration_impl.cc:50] loading 0 static secret(s)
envoy    | [2019-08-19 20:31:31.221][12][info][config] source/server/configuration_impl.cc:60] loading 1 listener(s)
envoy    | [2019-08-19 20:31:31.223][12][info][lua] source/extensions/filters/http/lua/lua_filter.cc:423] envoy_on_response() function not found. Lua filter will not hook responses.
envoy    | [2019-08-19 20:31:31.223][12][info][config] source/server/configuration_impl.cc:94] loading tracing configuration
envoy    | [2019-08-19 20:31:31.223][12][info][config] source/server/configuration_impl.cc:116] loading stats sink configuration
envoy    | [2019-08-19 20:31:31.223][12][info][main] source/server/server.cc:398] starting main dispatch loop
envoy    | [2019-08-19 20:31:31.230][12][info][upstream] source/common/upstream/cluster_manager_impl.cc:132] cm init: all clusters initialized
envoy    | [2019-08-19 20:31:31.230][12][info][main] source/server/server.cc:378] all clusters initialized. initializing init manager
envoy    | [2019-08-19 20:31:31.230][12][info][config] source/server/listener_manager_impl.cc:781] all dependencies initialized. starting workers
web      | Starting static assets server on port 8080 . Note this is not the envoy port!
web      | You should not need to look at this port unless you know what you're doing.
envoy    | [2019-08-19T20:31:48.702Z] "GET /dist_channelz/channelz/servers HTTP/1.1" 304 - 0 0 3 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "c08cd22e-21f0-4e33-857e-e334184a1c6d" "localhost:9900" "172.23.0.3:8080"
web      | Got request /dist_channelz/channelz/servers
web      | Got request /dist_channelz/runtime.js
web      | Got request /dist_channelz/polyfills.js
web      | Got request /dist_channelz/styles.js
web      | Got request /dist_channelz/scripts.js
web      | Got request /dist_channelz/vendor.js
web      | Got request /dist_channelz/main.js
web      | Got request /favicon.ico
web      | Got request /dist_channelz/channelz/servers
web      | Got request /favicon.ico
envoy    | [2019-08-19T20:31:48.727Z] "GET /dist_channelz/runtime.js HTTP/1.1" 304 - 0 0 0 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "0a01d469-b676-49d0-9709-5c5b5019e03b" "localhost:9900" "172.23.0.3:8080"
envoy    | [2019-08-19T20:31:48.728Z] "GET /dist_channelz/polyfills.js HTTP/1.1" 304 - 0 0 0 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "a4de06cd-c950-493f-b8a2-4cc4ca48c68a" "localhost:9900" "172.23.0.3:8080"
envoy    | [2019-08-19T20:31:48.729Z] "GET /dist_channelz/styles.js HTTP/1.1" 304 - 0 0 0 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "39d6a2f0-e201-48e5-83da-ffef7cc038d4" "localhost:9900" "172.23.0.3:8080"
envoy    | [2019-08-19T20:31:48.730Z] "GET /dist_channelz/scripts.js HTTP/1.1" 304 - 0 0 0 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "ada191f6-c3bd-4196-8c6f-c475e943faa9" "localhost:9900" "172.23.0.3:8080"
envoy    | [2019-08-19T20:31:48.731Z] "GET /dist_channelz/vendor.js HTTP/1.1" 304 - 0 0 0 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "404b0fd3-8153-498f-a0e6-7117db158f7b" "localhost:9900" "172.23.0.3:8080"
envoy    | [2019-08-19T20:31:48.731Z] "GET /dist_channelz/main.js HTTP/1.1" 304 - 0 0 0 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "8079a788-efae-4698-aa50-ca6e2627df69" "localhost:9900" "172.23.0.3:8080"
envoy    | [2019-08-19T20:31:49.217Z] "POST /grpc.channelz.v1.Channelz/GetServers HTTP/1.1" 200 UF 5 0 0 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "7a84edba-b661-4567-a71f-44f631310502" "localhost:9900" "127.0.0.1:50051"
envoy    | [2019-08-19T20:31:49.216Z] "POST /grpc.channelz.v1.Channelz/GetServers HTTP/1.1" 200 UF 5 0 0 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "5a816286-ae94-489c-9763-197a7842130d" "localhost:9900" "127.0.0.1:50051"
envoy    | [2019-08-19T20:31:49.231Z] "GET /favicon.ico HTTP/1.1" 200 - 0 588 2 2 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "76585119-2468-41e4-9aab-44565d1200d0" "localhost:9900" "172.23.0.3:8080"
envoy    | [2019-08-19T20:31:51.551Z] "GET /dist_channelz/channelz/servers HTTP/1.1" 304 - 0 0 0 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "cd266d39-182c-431b-892c-8eb95ec5b98d" "localhost:9900" "172.23.0.3:8080"
envoy    | [2019-08-19T20:31:51.925Z] "POST /grpc.channelz.v1.Channelz/GetServers HTTP/1.1" 200 UF 5 0 0 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "de719056-83f3-454c-a87a-76daae2a827a" "localhost:9900" "127.0.0.1:50051"
envoy    | [2019-08-19T20:31:51.925Z] "POST /grpc.channelz.v1.Channelz/GetServers HTTP/1.1" 200 UF 5 0 0 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "7258f105-84ec-4a9b-877a-979e84e914d0" "localhost:9900" "127.0.0.1:50051"
envoy    | [2019-08-19T20:31:51.941Z] "GET /favicon.ico HTTP/1.1" 200 - 0 588 0 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "346aa016-06f6-4842-bcdc-9740211406f8" "localhost:9900" "172.23.0.3:8080"
web      | Got request /dist_channelz/channelz/servers
envoy    | [2019-08-19T20:32:02.482Z] "POST /grpc.channelz.v1.Channelz/GetTopChannels HTTP/1.1" 200 UF 5 0 0 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "ce839ee3-4718-45ac-9a40-403a79bdc0d6" "localhost:9900" "127.0.0.1:50051"
envoy    | [2019-08-19T20:32:02.482Z] "POST /grpc.channelz.v1.Channelz/GetTopChannels HTTP/1.1" 200 UF 5 0 0 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "b6e2bcf1-63d6-4a46-a101-83e3021bd165" "localhost:9900" "127.0.0.1:50051"
envoy    | [2019-08-19T20:32:04.048Z] "POST /grpc.channelz.v1.Channelz/GetServerSockets HTTP/1.1" 200 UF 5 0 0 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "bbb2616f-a128-4716-992d-04a6d2e1ef52" "localhost:9900" "127.0.0.1:50051"
envoy    | [2019-08-19T20:32:04.049Z] "POST /grpc.channelz.v1.Channelz/GetServerSockets HTTP/1.1" 200 UF 5 0 0 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "dd735949-e9cd-456f-81c0-9b7ba81949bd" "localhost:9900" "127.0.0.1:50051"
envoy    | [2019-08-19T20:32:05.150Z] "POST /grpc.channelz.v1.Channelz/GetServers HTTP/1.1" 200 UF 5 0 0 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "7080a59d-eae2-4630-8e89-91c84080946e" "localhost:9900" "127.0.0.1:50051"
envoy    | [2019-08-19T20:32:05.151Z] "POST /grpc.channelz.v1.Channelz/GetServers HTTP/1.1" 200 UF 5 0 0 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "f57e7a5d-aad4-471a-861a-f759fa111c26" "localhost:9900" "127.0.0.1:50051"
envoy    | [2019-08-19T20:32:08.358Z] "GET /dist_channelz/channelz/servers HTTP/1.1" 304 - 0 0 0 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "71d60795-47a3-429e-bcc8-0fbdbad897bb" "localhost:9900" "172.23.0.3:8080"
web      | Got request /favicon.ico
envoy    | [2019-08-19T20:32:08.830Z] "POST /grpc.channelz.v1.Channelz/GetServers HTTP/1.1" 200 UF 5 0 0 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "fb7eb08a-b896-42bb-8b98-3a4fc542426d" "localhost:9900" "127.0.0.1:50051"
envoy    | [2019-08-19T20:32:08.829Z] "POST /grpc.channelz.v1.Channelz/GetServers HTTP/1.1" 200 UF 5 0 0 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "d0a9e6ce-4e86-410c-9357-63aa09c14214" "localhost:9900" "127.0.0.1:50051"
envoy    | [2019-08-19T20:32:08.865Z] "GET /favicon.ico HTTP/1.1" 200 - 0 588 0 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36" "2874764c-3fe5-4ec7-939c-3d7277d31ac6" "localhost:9900" "172.23.0.3:8080"
@eddy-curv
Copy link

@DazWilkin same issue here

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
@DazWilkin @eddy-curv and others