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

Apisix port 9091 not listening #550

Closed
dani7lb opened this issue Apr 15, 2024 · 2 comments
Closed

Apisix port 9091 not listening #550

dani7lb opened this issue Apr 15, 2024 · 2 comments
Labels

Comments

@dani7lb
Copy link

dani7lb commented Apr 15, 2024

Hello everyone,

I have an Apisix (3.8.0-debian) instance running on Docker Desktop (4.28.0). When i try to connect it to Prometheus i noticed the default port (9091) is not listening. Making some tests i figured out only ports 9080, 9180 and 9443 are listening. When using cURL from WSL it returns: Empty response. When using cURL from other docker on same network it returns: connection refused.
There are no errors on logs or any error message. Does anyone know why?

Here is the docker deployment command:

APISIX_DEPLOYMENT_ETCD_HOST="[\"http://$etcd_ip:2379\"]"
docker run -d --name "apisix" --network=apisix \
    -p19080:9080 -p19180:9180 -p19443:9443 -p19091:9091 -p19092:9092 -p19100:9100 \
    -e APISIX_DEPLOYMENT_ETCD_HOST=${APISIX_DEPLOYMENT_ETCD_HOST} \
    apache/apisix:3.8.0-debian

Here is my config.yaml:

apisix:
  enable_control: true
  control:
    ip: "127.0.0.1"
    port: 9092
  router:
    http: "radixtree_uri_with_parameter"
deployment:
  role: traditional
  role_traditional:
    config_provider: etcd
  admin:
    admin_key_required: true
    admin_key:
      - name: root
        key: bB3XBu6shJRbkotW7ngVw6HQnseFafyTgdH==
        role: admin
      - name: dleandro
        key:QnseFafyTgdHm0Vy54Gv2OAyobwKwPDOk7==
        role: admin
    allow_admin:
      - 172.22.0.1
  plugin_attr:
    prometheus:
      export_uri: /apisix/prometheus/metrics
      export_addr:
        ip: 0.0.0.0
        port: 9091
      enable_export_server: true
  etcd:
    host:
      - "http://172.22.0.2:2379"
plugins:
  - ip-restriction                  # priority: 3000
  - ldap-auth                       # priority: 2540
  - jwt-auth                         # priority: 2510
  - proxy-rewrite                 # priority: 1008
  - server-info                     # priority: 990
  - public-api                      # priority: 501
  - prometheus                   # priority: 500
stream_plugins:
  - ip-restriction                  # priority: 3000
  - prometheus                   # priority: 500

If you need some other information ill be glad to post it.

Copy link

This issue has been marked as stale due to 30 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.

@github-actions github-actions bot added the stale label May 15, 2024
Copy link

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant