Not able to run envoy after build is successful.

未关闭
#133 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
20/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
cpp
领域
build-system

调研方向

使用 git submodule update --init 和 bazel build //http-filter-example:envoy 重现报告的构建,然后使用 front-envoy.yaml 运行生成的 envoy 二进制文件。首先检查 http-filter-example 入口点和报告的 macOS 链接器错误。当二进制文件使用提供的配置启动且没有 dyld 符号错误时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

I am trying to run envoy with the custom http filter present in http-filter-example folder.
Repo : https://github.com/envoyproxy/envoy-filter-example/tree/master/http-filter-example
Steps followed.

  1. Cloned the repo
  2. build using
    git submodule update --init
    bazel build //http-filter-example:envoy

Build was successful. After build was successful, envoy binary was generated inside http-filter-example ---- bazel bin folder.
Now I am trying to run envoy file front-envoy.yaml using sample filter.

front-envoy.yaml

static_resources:
  listeners:
  - name: listener_0
    address:
      socket_address: { address: 0.0.0.0, port_value: 10000}
    filter_chains:
    - filters:
      - name: envoy.http_connection_manager
        config:
          use_remote_address: true
          stat_prefix: ingress_http
          codec_type: AUTO
          route_config:
            name: remote_api
            virtual_hosts:
            - name: api
              domains:
              - "*"
              routes:
              - match:
                  prefix: "/"
                route:
                  cluster: api
 
          http_filters:
            - name: sample
              typed_config:
                "@type": type.googleapis.com/sample.Decoder
                key: via
                val: sample-filter
            - name: envoy.router
              typed_config: {}           
  clusters:
  - name: api
    connect_timeout: 1s
    type: strict_dns
    lb_policy: round_robin
    hosts:
    - socket_address:
        address: localhost
        port_value: 8000
  - name: rate_limit_cluster
    type: strict_dns
    connect_timeout: 0.25s
    lb_policy: round_robin
    http2_protocol_options: {}
    hosts:
    - socket_address:
        address: localhost
        port_value: 8081

But while running ./envoy --config-path front-envoy.yaml command I am getting below error:
dyld: Symbol not found: _program_invocation_name
Referenced from: /private/var/tmp/_bazel_prince.kumar/77a930df3acbb1cb74b82e11b4381bd4/execroot/envoy_filter_example/bazel-out/darwin-fastbuild/bin/http-filter-example/./envoy
Expected in: flat namespace
in /private/var/tmp/_bazel_prince.kumar/77a930df3acbb1cb74b82e11b4381bd4/execroot/envoy_filter_example/bazel-out/darwin-fastbuild/bin/http-filter-example/./envoy

I tried installing Xcode10 and followed steps
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
Still getting same issue.

Mac OS :Mojave, 10.14.6
Xcode version : 10
Bazel version: bazel 3.4.1

主要语言
C++
星标
361
派生
220
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

envoyproxy/envoy-filter-example 的其他 Issue

查看 envoyproxy/envoy-filter-example 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。