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

run failed maybe caused by environment variable #165

Open
jaxsong opened this issue Oct 11, 2022 · 3 comments
Open

run failed maybe caused by environment variable #165

jaxsong opened this issue Oct 11, 2022 · 3 comments

Comments

@jaxsong
Copy link

jaxsong commented Oct 11, 2022

Is there some special environment variable caused run failed with reason

2022-10-11 09:09:28.632 | ERROR    | src.exporter:run:255 - celery-exporter exception '[Errno 2] No such file or directory: '/home/app/gauge_all_1.db'', retrying in 0 seconds.

here is my run config

apiVersion: apps/v1
kind: Deployment
metadata:
  name: celery-exporter
  annotations:
    reloader.stakater.com/auto: "true"
spec:
  replicas: 1
  selector:
    matchLabels:
      app: celery-exporter
  template:
    metadata:
      labels:
        app: celery-exporter
      annotations:
        prometheus.io/scrape: "true"
    spec:
      containers:
      - name: celery-exporter
        image: danihodovic/celery-exporter:latest
        imagePullPolicy: IfNotPresent
        ports:
          - containerPort: 9808
            name: metrics
            protocol: TCP
        args: ["--broker-url=redis://zeno-redis:6379/0"]
        envFrom:
          - configMapRef:
              name: my-config-map
        resources:
          requests:
            memory: 400Mi
          limits:
            memory: 800Mi

after I removed field envFrom , it worked

@danihodovic
Copy link
Owner

What's in my-config-map?

@pb-dod
Copy link
Contributor

pb-dod commented Apr 27, 2023

I ran into this too because I had PROMETHEUS_MULTIPROC_DIR set. You'll need to unset that env var or create the directory it's using.

@danihodovic
Copy link
Owner

Can you reproduce this in v0.10.12?

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

No branches or pull requests

3 participants