总结来说,处理“invalid yaml: did not find expected '-' indicator”错误的关键是仔细检查YAML文件中的列表项,确保每个列表项前都有正确的'-'指示符。如果可能,使用YAML解析工具或库来辅助检查和修正错误。
K8s 报错“error converting YAML to JSON: yaml: line 8: did not find expected key” 今天在创建kubernetes dashboard的登录用户授权指定名称空间执行yaml文件报错 # kubectl apply -f dev-user.yaml serviceaccount/dev-user unchanged role.rbac.authorization.k8s.io/role-dev-user unchanged rolebinding.rbac....
36.697501131Z caller=klog.go:116component=k8s_client_runtime func=ErrorDepth msg="Sync \"monitoring/main\" failed: provision alertmanager configuration: base config from Secret could not be parsed: yaml: line 24: did not find expected '-' indicator"level=info ts=2024-03-28T08:30:57.181360295Z...
在学习持续集成开发时,镜像打包报错:yaml: line 18: did not find expected key 看了一下并不是什么key的问题,真正的原因是空格不对 tags: - latest dockerfile: Dockerfile 这是改错之前的,网上百度了一下,有人说是空格的问题,我就返回来看自己的,发现dockerfile多空了两个格,实际上dockerfile和tags是同一级...
2015-04-09 15:47:00.716 [error] <0.38.0>@ejabberd_config:get_plain_terms_file:211 Cannot load //etc/ejabberd/ejabberd.yml: Syntax error on line 114 at position 8: did not find expected key I really don't know what he is unable to find when the file is really there and was genera...
What is the expected behavior? No response What do you see instead? Error: YAML parse error on apisix/templates/control-plane/ingress.yaml: error converting YAML to JSON: yaml: line 23: did not find expected key Use --debug flag to render out invalid YAML ...
# foreman-rake console --trace rake aborted! Psych::SyntaxError: (<unknown>): did not find expected key while parsing a block mapping at line 37 column 2 /usr/share/ruby/psych.rb:456:in `parse' /usr/share/ruby/psych.rb:456:in `parse_stream' /usr/share/ruby/psych.rb:390:in `parse...
So, check that you don’t have any spaces in front of “–name:” at any point in your .yml file, as that could be one of the solutions for why the “Did not find expected ‘-‘ indicator while parsing a block collection” error was thrown. Import...
2023/05/05 06:59:44 command traefik error: yaml: line 38: did not find expected key Thanks claytonMay 5, 2023, 8:52am2 Could you double check if it is a copy paste issue in the forum or in your file? For traefik.yaml you have ...
Hammer commands fail with: Raw Warning: Couldn't load configuration file /root/.hammer/cli.modules.d/foreman.yml: (<unknown>): did not find expected key while parsing a block mapping at line 3 column 3. Environment Red Hat Satellite 6.x...