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

Oathkeeper docker-compose.yml outdated env vars #1164

Open
4 of 5 tasks
cerealkill opened this issue May 14, 2024 · 1 comment
Open
4 of 5 tasks

Oathkeeper docker-compose.yml outdated env vars #1164

cerealkill opened this issue May 14, 2024 · 1 comment
Labels
bug Something is not working.

Comments

@cerealkill
Copy link

Preflight checklist

Ory Network Project

No response

Describe the bug

Oathkeeper default docker-compose.yml have outdated metric variables

Reproducing the bug

git clone [email protected]:ory/oathkeeper.git
cd oathkeeper
docker compose up

Relevant log output

oathkeeper                  | {"audience":"application","error":{"message":"missing port in address","stack_trace":"stack trace could not be recovered from error type *net.AddrError"},"level":"fatal","msg":"Unable to initialize Tracer for Oathkeeper.","service_name":"ORY Oathkeeper","service_version":"v0.40.7","time":"2024-05-14T09:19:08.243127416Z"}

Relevant configuration

services:
  oathkeeper:
    environment:
      - TRACING_PROVIDER=jaeger
      - TRACING_PROVIDER_JAEGER_SAMPLING_SERVER_URL=http://jaeger:5778/sampling
      - TRACING_PROVIDER_JAEGER_LOCAL_AGENT_ADDRESS=jaeger:6831
      - TRACING_PROVIDER_JAEGER_SAMPLING_TYPE=const
      - TRACING_PROVIDER_JAEGER_SAMPLING_VALUE=1

Version

0.40.7

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Docker Compose

Additional Context

Env vars changed, to fix just change to:

services:
  oathkeeper:
    environment:
      - TRACING_PROVIDER=jaeger
      - TRACING_PROVIDERS_JAEGER_SAMPLING_SERVER_URL: http://jaeger:5778/sampling
      - TRACING_PROVIDERS_JAEGER_LOCAL_AGENT_ADDRESS: jaeger:6831
@cerealkill cerealkill added the bug Something is not working. label May 14, 2024
@cerealkill cerealkill changed the title Oathkeeper docker-compose.yaml outdated env vars Oathkeeper docker-compose.yml outdated env vars May 14, 2024
@sufyan-squiibz
Copy link

sufyan-squiibz commented Nov 7, 2024

There's a typo in your config:

  - TRACING_PROVIDER_JAEGER_SAMPLING_SERVER_URL=http://jaeger:5778/sampling
  - TRACING_PROVIDER_JAEGER_LOCAL_AGENT_ADDRESS=jaeger:6831
  - TRACING_PROVIDER_JAEGER_SAMPLING_TYPE=const
  - TRACING_PROVIDER_JAEGER_SAMPLING_VALUE=1

Should be

  - TRACING_PROVIDERS_JAEGER_SAMPLING_SERVER_URL=http://jaeger:5778/sampling
  - TRACING_PROVIDERS_JAEGER_LOCAL_AGENT_ADDRESS=jaeger:6831
  - TRACING_PROVIDERS_JAEGER_SAMPLING_TYPE=const
  - TRACING_PROVIDERS_JAEGER_SAMPLING_VALUE=1

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

No branches or pull requests

2 participants