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

Error panic: sync: WaitGroup is reused before previous Wait has returned #104

Open
fabioaraujopt opened this issue Nov 2, 2023 · 1 comment

Comments

@fabioaraujopt
Copy link

We have cloudflare-exporter running with several restarts due to this error:

/app/main.go:129 +0x278

main.fetchMetrics()
usr/local/go/src/sync/waitgroup.go:141 +0xb8
sync.(*WaitGroup).Wait(0x400010c070)
goroutine 2972 [running]:
panic: sync: WaitGroup is reused before previous Wait has returned

Any thoughs on that?

Thank you

@mizpablito
Copy link

I also get this error:

cloudflare-exporter  | time="2024-08-07 10:05:52" level=info msg="Beginning to serve metrics on :8080/metrics"
cloudflare-exporter  | panic: sync: WaitGroup is reused before previous Wait has returned
cloudflare-exporter  | 
cloudflare-exporter  | goroutine 486 [running]:
cloudflare-exporter  | sync.(*WaitGroup).Wait(0xc0004ce008?)
cloudflare-exporter  |  /usr/local/go/src/sync/waitgroup.go:118 +0x74
cloudflare-exporter  | main.fetchMetrics()
cloudflare-exporter  |  /app/main.go:133 +0x57d
cloudflare-exporter  | created by main.runExpoter.func1 in goroutine 54
cloudflare-exporter  |  /app/main.go:171 +0x1a
cloudflare-exporter  | time="2024-08-07 10:14:55" level=info msg="Beginning to serve metrics on :8080/metrics"

docker-compose.yml :

networks:
  web:
    external: true
services:
  cloudflare-exporter:
    image: ghcr.io/lablabs/cloudflare_exporter
    container_name: cloudflare-exporter
    ports:
      - "8484:8080"
    networks:
      - web
    environment:
      - CF_API_TOKEN=XXXXXXX
      - FREE_TIER=true
    restart: unless-stopped

The token was generated successfully.

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

2 participants