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

Message "Config file: /etc/ofelia.ini not found" misleading #88

Open
Silex opened this issue Mar 18, 2025 · 0 comments
Open

Message "Config file: /etc/ofelia.ini not found" misleading #88

Silex opened this issue Mar 18, 2025 · 0 comments

Comments

@Silex
Copy link

Silex commented Mar 18, 2025

Hello,

This basic docker compose service:

  ofelia:
    <<: *default
    image: ghcr.io/netresearch/ofelia:latest
    command: daemon --config=/etc/ofelia.ini -f label=com.docker.compose.project=${COMPOSE_PROJECT_NAME}
    environment:
      TZ: ${TZ:-Europe/Zurich}
    volumes:
      - ./data/ofelia/config/ofelia.ini:/etc/ofelia.ini
      - ./data/ofelia/logs:/var/log/ofelia
      - /var/run/docker.sock:/var/run/docker.sock:ro

Display that:

philippe@stvs-pv-laptop-01:~/work/stvs/panoramas$ docker compose up ofelia
ofelia-1  | 2025-03-18T14:32:16.015+01:00  daemon.go:51 ▶ DEBUG  Config file: /etc/ofelia.ini not found
ofelia-1  | 2025-03-18T14:32:16.031+01:00  scheduler.go:52 ▶ NOTICE  New job registered "foo-bar" - "echo 123" - "*/10 * * * * *" - ID: 1

It says it cannot read /etc/ofelia.ini, yet it correctly loads the jobs defined in it...

The ofelia.ini is like this:

[global]
save-folder = /var/log/ofelia
save-only-on-error = false
no-overlap = true

[job-run "foo-bar"]
schedule = */10 * * * * *
command = echo 123
image = someimage

It says "not found" when it should say "no-overlap is not allowed in [global] context".

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

1 participant