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

Trying to use Pushover notification results in error code #577

Closed
jauderho opened this issue Mar 15, 2022 · 1 comment
Closed

Trying to use Pushover notification results in error code #577

jauderho opened this issue Mar 15, 2022 · 1 comment

Comments

@jauderho
Copy link

jauderho commented Mar 15, 2022

Behaviour

Steps to reproduce this issue

  1. trying to use this compose file with pushover
services:
  diun:
    image: crazymax/diun:latest
    network_mode: "bridge"
    volumes:
      - "./data:/data"
      #- "./diun.yml:/diun.yml:ro"
      - "/var/run/docker.sock:/var/run/docker.sock"
    environment:
      - "TZ=America/Los_Angeles"
      - "LOG_LEVEL=info"
      - "LOG_JSON=false"
      - "DIUN_WATCH_WORKERS=20"
      - "DIUN_WATCH_SCHEDULE=0 */6 * * *"
      - "DIUN_PROVIDERS_DOCKER=true"
      - "DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT=true"
      - "DIUN_NOTIF_PUSHOVER_RECIPIENT=user"
      - "DIUN_NOTIF_PUSHOVER_TOKEN=password"
    restart: always
    dns_search: .
  1. do docker compose run diun notif test
  2. get following error

diun: error: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:42286: connect: connection refused"

Expected behaviour

Test notification should be sent

Actual behaviour

This error message

diun: error: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:42286: connect: connection refused"

Configuration

  • Diun version : v4.21.0
  • Platform (windows/linux) : linux
  • System info (type uname -a) : 5.13.0-35-generic #40-Ubuntu SMP Mon Mar 7 08:03:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Paste your configuration files here

  • docker-compose.yml
  • k8s deployment configuration
  • environment variables
  • diun config file
  • ...

Logs

# paste logs here (set log-level to debug and enable log-caller)
@crazy-max
Copy link
Owner

diun: error: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:42286: connect: connection refused"

Diun has to be started with serve cmd to be able to use the notif test command: https://crazymax.dev/diun/usage/command-line/#commands

See also https://crazymax.dev/diun/faq/#test-notifications

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