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

envoy failing at runtime: Unable to convert YAML as JSON: github.com/ googleapis/kiosk/envoy/envoy.yaml #38

Open
joeblew99 opened this issue Sep 20, 2019 · 2 comments
Labels
type: cleanup An internal cleanup or hygiene concern.

Comments

@joeblew99
Copy link

The ./envoy/COMPILE-PROTOS.sh works and i get a proto.pb in the envoy directory.
But when i try to run it with the latest envoy it fails.
Not sure whats going on....


cd /Users/apple/workspace/go/src/github.com/googleapis/kiosk/envoy && envoy --config-yaml /Users/apple/
workspace/go/src/github.com/googleapis/kiosk/envoy/envoy.yaml
[2019-09-20 13:15:11.061][10664024][info][main] [external/envoy/source/server/server.cc:238] initializi
ng epoch 0 (hot restart version=disabled)
[2019-09-20 13:15:11.061][10664024][info][main] [external/envoy/source/server/server.cc:240] statically
 linked extensions:
[2019-09-20 13:15:11.061][10664024][info][main] [external/envoy/source/server/server.cc:242]   access_l
oggers: envoy.file_access_log,envoy.http_grpc_access_log
[2019-09-20 13:15:11.061][10664024][info][main] [external/envoy/source/server/server.cc:245]   filters.
http: envoy.buffer,envoy.cors,envoy.csrf,envoy.ext_authz,envoy.fault,envoy.filters.http.dynamic_forward
_proxy,envoy.filters.http.grpc_http1_reverse_bridge,envoy.filters.http.header_to_metadata,envoy.filters
.http.jwt_authn,envoy.filters.http.original_src,envoy.filters.http.rbac,envoy.filters.http.tap,envoy.gr
pc_http1_bridge,envoy.grpc_json_transcoder,envoy.grpc_web,envoy.gzip,envoy.health_check,envoy.http_dyna
mo_filter,envoy.ip_tagging,envoy.lua,envoy.rate_limit,envoy.router,envoy.squash
[2019-09-20 13:15:11.072][10664024][info][main] [external/envoy/source/server/server.cc:248]   filters.
listener: envoy.listener.original_dst,envoy.listener.original_src,envoy.listener.proxy_protocol,envoy.l
istener.tls_inspector
[2019-09-20 13:15:11.072][10664024][info][main] [external/envoy/source/server/server.cc:251]   filters.
network: envoy.client_ssl_auth,envoy.echo,envoy.ext_authz,envoy.filters.network.dubbo_proxy,envoy.filte
rs.network.mysql_proxy,envoy.filters.network.rbac,envoy.filters.network.sni_cluster,envoy.filters.netwo
rk.thrift_proxy,envoy.filters.network.zookeeper_proxy,envoy.http_connection_manager,envoy.mongo_proxy,e
nvoy.ratelimit,envoy.redis_proxy,envoy.tcp_proxy
[2019-09-20 13:15:11.072][10664024][info][main] [external/envoy/source/server/server.cc:253]   stat_sin
ks: envoy.dog_statsd,envoy.metrics_service,envoy.stat_sinks.hystrix,envoy.statsd
[2019-09-20 13:15:11.072][10664024][info][main] [external/envoy/source/server/server.cc:255]   tracers:
 envoy.dynamic.ot,envoy.lightstep,envoy.tracers.datadog,envoy.tracers.opencensus,envoy.zipkin
[2019-09-20 13:15:11.072][10664024][info][main] [external/envoy/source/server/server.cc:258]   transpor
t_sockets.downstream: envoy.transport_sockets.alts,envoy.transport_sockets.tap,raw_buffer,tls
[2019-09-20 13:15:11.072][10664024][info][main] [external/envoy/source/server/server.cc:261]   transpor
t_sockets.upstream: envoy.transport_sockets.alts,envoy.transport_sockets.tap,raw_buffer,tls
[2019-09-20 13:15:11.072][10664024][info][main] [external/envoy/source/server/server.cc:267] buffer imp
lementation: old (libevent)
[2019-09-20 13:15:11.072][10664024][critical][main] [external/envoy/source/server/server.cc:93] error i
nitializing configuration '': Unable to convert YAML as JSON: /Users/apple/workspace/go/src/github.com/
googleapis/kiosk/envoy/envoy.yaml
[2019-09-20 13:15:11.072][10664024][info][main] [external/envoy/source/server/server.cc:560] exiting
Unable to convert YAML as JSON: /Users/apple/workspace/go/src/github.com/googleapis/kiosk/envoy/envoy.y
aml
make: *** [envoy-run] Error 1

Reproduce by adding this to the root Makefile:


envoy-install:
	# Envoy install global
	# https://www.getenvoy.io/
	# windows ?
	# macos : https://www.getenvoy.io/platforms/envoy/macos/
	brew tap tetratelabs/getenvoy
	brew install envoy
	envoy --version

envoy-compile:
	chmod +x ./envoy/COMPILE-PROTOS.sh
	./envoy/COMPILE-PROTOS.sh

envoy-run: envoy-compile
	envoy --config-yaml ./envoy/envoy-yaml
@joeblew99 joeblew99 changed the title envoy failing envoy failing at runtime: Unable to convert YAML as JSON: github.com/ googleapis/kiosk/envoy/envoy.yaml Sep 20, 2019
@long1eu
Copy link

long1eu commented Apr 13, 2020

any solution for this?

@alkalinecoffee
Copy link

Looks like you're passing a file path into the config-yaml parameter, which expects inline yaml config and not a file path. Try --config-path instead. See envoy --help.

   --config-yaml <string>
     Inline YAML configuration, merges with the contents of --config-path

   -c <string>,  --config-path <string>
     Path to configuration file

@yoshi-automation yoshi-automation added 🚨 This issue needs some love. triage me I really want to be triaged. labels Feb 25, 2021
@JustinBeckwith JustinBeckwith added the type: cleanup An internal cleanup or hygiene concern. label Feb 25, 2021
@yoshi-automation yoshi-automation removed triage me I really want to be triaged. 🚨 This issue needs some love. labels Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
Development

No branches or pull requests

5 participants