envoyproxy / envoy

Cloud-native high-performance edge/middle/service proxy
https://www.envoyproxy.io
Apache License 2.0
24.85k stars 4.78k forks source link

Envoy deployment unsuccessful Error : value length must be at least " '\x01' " bytes #6380

Closed adhanoti closed 5 years ago

adhanoti commented 5 years ago

I am running envoy using docker-compose and getting below error :

front-envoy_1 | [2019-03-26 07:43:06.652][000007][critical][main] [source/server/server.cc:86] error initializing configuration '/etc/front-envoy.yaml': Proto constraint validation failed (HttpConnectionManagerValidationError.StatPrefix: ["value length must be at least " '\x01' " bytes"]):

Detailed logs are below :-

[root@kd-server-master front-proxy]# docker-compose logs Attaching to front-proxy_front-envoy_1 front-envoy_1 | [2019-03-26 07:43:06.647][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) front-envoy_1 | [2019-03-26 07:43:06.647][000007][info][main] [source/server/server.cc:208] statically linked extensions: front-envoy_1 | [2019-03-26 07:43:06.647][000007][info][main] [source/server/server.cc:210] access_loggers: envoy.file_access_log,envoy.http_grpc_access_log front-envoy_1 | [2019-03-26 07:43:06.647][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 front-envoy_1 | [2019-03-26 07:43:06.647][000007][info][main] [source/server/server.cc:216] filters.listener: envoy.listener.original_dst,envoy.listener.proxy_protocol,envoy.listener.tls_inspector front-envoy_1 | [2019-03-26 07:43:06.647][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 front-envoy_1 | [2019-03-26 07:43:06.647][000007][info][main] [source/server/server.cc:221] stat_sinks: envoy.dog_statsd,envoy.metrics_service,envoy.stat_sinks.hystrix,envoy.statsd front-envoy_1 | [2019-03-26 07:43:06.647][000007][info][main] [source/server/server.cc:223] tracers: envoy.dynamic.ot,envoy.lightstep,envoy.tracers.datadog,envoy.zipkin front-envoy_1 | [2019-03-26 07:43:06.647][000007][info][main] [source/server/server.cc:226] transport_sockets.downstream: envoy.transport_sockets.alts,envoy.transport_sockets.capture,raw_buffer,tls front-envoy_1 | [2019-03-26 07:43:06.647][000007][info][main] [source/server/server.cc:229] transport_sockets.upstream: envoy.transport_sockets.alts,envoy.transport_sockets.capture,raw_buffer,tls front-envoy_1 | [2019-03-26 07:43:06.650][000007][info][main] [source/server/server.cc:271] admin address: 0.0.0.0:8000 front-envoy_1 | [2019-03-26 07:43:06.651][000007][info][config] [source/server/configuration_impl.cc:50] loading 0 static secret(s) front-envoy_1 | [2019-03-26 07:43:06.651][000007][info][config] [source/server/configuration_impl.cc:56] loading 1 cluster(s) front-envoy_1 | [2019-03-26 07:43:06.652][000007][info][upstream] [source/common/upstream/cluster_manager_impl.cc:136] cm init: all clusters initialized front-envoy_1 | [2019-03-26 07:43:06.652][000007][info][config] [source/server/configuration_impl.cc:67] loading 1 listener(s) front-envoy_1 | [2019-03-26 07:43:06.652][000007][critical][main] [source/server/server.cc:86] error initializing configuration '/etc/front-envoy.yaml': Proto constraint validation failed (HttpConnectionManagerValidationError.StatPrefix: ["value length must be at least " '\x01' " bytes"]): front-envoy_1 | [2019-03-26 07:43:06.657][000007][info][main] [source/server/server.cc:507] exiting

The yaml file which i am using is :- static_resources: listeners:

docker-compose.yaml :- version: '2' services:

front-envoy: build: context: . dockerfile: Dockerfile-frontenvoy volumes:

Kindly let us know if we missed anything here.

adhanoti commented 5 years ago

Using release envoy-1.8.0

crisonyx commented 5 years ago

Seeing similar issues, If I go back to the last docker tag ("36f39c746eb7d03b762099b206403935b11972d8") it starts to work again for me.

mattklein123 commented 5 years ago

Please see https://github.com/envoyproxy/envoy/pull/6376 and related issues. You need to use a version of the repo/configs/images that match. We are working to make this more clear in the docs you are looking at.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.