-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
Title: front-end proxy example doesn't run because 'Proto constraint validation failed'
Description:
I'm new to Envoy and decided to start by following the tutorial here: https://www.learnenvoy.io/articles/on-your-laptop.html
Following the instructions, when I bring up the example proxy using docker-compose, the containers exit. The logs show the following:
2019-03-22 23:04:43.651][000007][info][main] [source/server/server.cc:206] initializing epoch 0 (hot restart version=10.200.16384.127.options=capacity=16384, num_slots=8209 hash=228984379728933363 size=2654312)
[2019-03-22 23:04:43.651][000007][info][main] [source/server/server.cc:208] statically linked extensions:
[2019-03-22 23:04:43.651][000007][info][main] [source/server/server.cc:210] access_loggers: envoy.file_access_log,envoy.http_grpc_access_log
[2019-03-22 23:04:43.651][000007][info][main] [source/server/server.cc:213] 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
[2019-03-22 23:04:43.651][000007][info][main] [source/server/server.cc:216] filters.listener: envoy.listener.original_dst,envoy.listener.proxy_protocol,envoy.listener.tls_inspector
[2019-03-22 23:04:43.651][000007][info][main] [source/server/server.cc:219] filters.network: envoy.client_ssl_auth,envoy.echo,envoy.ext_authz,envoy.filters.network.dubbo_proxy,envoy.filters.network.rbac,envoy.filters.network.sni_cluster,envoy.filters.network.thrift_proxy,envoy.http_connection_manager,envoy.mongo_proxy,envoy.ratelimit,envoy.redis_proxy,envoy.tcp_proxy
[2019-03-22 23:04:43.651][000007][info][main] [source/server/server.cc:221] stat_sinks: envoy.dog_statsd,envoy.metrics_service,envoy.stat_sinks.hystrix,envoy.statsd
[2019-03-22 23:04:43.651][000007][info][main] [source/server/server.cc:223] tracers: envoy.dynamic.ot,envoy.lightstep,envoy.tracers.datadog,envoy.zipkin
[2019-03-22 23:04:43.651][000007][info][main] [source/server/server.cc:226] transport_sockets.downstream: envoy.transport_sockets.alts,envoy.transport_sockets.capture,raw_buffer,tls
[2019-03-22 23:04:43.651][000007][info][main] [source/server/server.cc:229] transport_sockets.upstream: envoy.transport_sockets.alts,envoy.transport_sockets.capture,raw_buffer,tls
[2019-03-22 23:04:43.655][000007][info][main] [source/server/server.cc:271] admin address: 0.0.0.0:8081
[2019-03-22 23:04:43.656][000007][info][config] [source/server/configuration_impl.cc:50] loading 0 static secret(s)
[2019-03-22 23:04:43.656][000007][info][config] [source/server/configuration_impl.cc:56] loading 1 cluster(s)
[2019-03-22 23:04:43.657][000007][info][upstream] [source/common/upstream/cluster_manager_impl.cc:136] cm init: all clusters initialized
[2019-03-22 23:04:43.657][000007][info][config] [source/server/configuration_impl.cc:67] loading 1 listener(s)
[2019-03-22 23:04:43.657][000007][critical][main] [source/server/server.cc:86] error initializing configuration '/etc/service-envoy.yaml': Proto constraint validation failed (HttpConnectionManagerValidationError.StatPrefix: ["value length must be at least " '\x01' " bytes"]):
I'm building off master (1301f11). Looking at the service-envoy.yml, it does look like there's a stat_prefix defined.
stat_prefix: ingress_http
I'll continue on the tutorial and see if I can figure out what's wrong.