Not able to run envoy after build is successful.

Đang mở
#133 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
20/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
cpp
Lĩnh vực
build-system

Hướng nghiên cứu

Tái hiện bản build được báo cáo bằng git submodule update --init và bazel build //http-filter-example:envoy, sau đó chạy binary envoy được tạo ra với front-envoy.yaml. Bắt đầu bằng cách kiểm tra entry point của http-filter-example và lỗi linker macOS được báo cáo. Được xem là hoàn tất khi binary khởi động với cấu hình được cung cấp mà không có lỗi symbol dyld.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C++
Star
361
Fork
220
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của envoyproxy/envoy-filter-example

Tất cả issue của envoyproxy/envoy-filter-example

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.