Skip to content

Unable to parse IP #1819

Description

@leafayon

Support guidelines

I've found a bug and checked that ...

  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

Diun can't get a list of my Podman containers et are "unable to parse IP" (What IP address btw?)

Expected behaviour

Diun can detect what container I have

Actual behaviour

Diun can't get a list of my Podman containers et are "unable to parse IP" but start

Steps to reproduce

Don't really know

Diun version

v4.33.0

Docker info

host:
  arch: amd64
  buildahVersion: 1.43.1
  cgroupControllers:
  - cpuset
  - cpu
  - io
  - memory
  - hugetlb
  - pids
  - rdma
  - misc
  - dmem
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: Unknown
    path: /nix/store/dy8bcb7mgpbwkn2y3qr2xjc587j9gr6v-podman-helper-binary-wrapper/bin/conmon
    version: 'conmon version 2.2.1, commit: c8cc2c4db27531bd4e084ce7857f73cd21ee639d'
  cpuUtilization:
    idlePercent: 97.64
    systemPercent: 0.73
    userPercent: 1.63
  cpus: 4
  databaseBackend: sqlite
  distribution:
    codename: yarara
    distribution: nixos
    version: "26.05"
  eventLogger: journald
  freeLocks: 1995
  hostname: lexodar
  idMappings:
    gidmap: null
    uidmap: null
  kernel: 6.18.39
  linkmode: dynamic
  logDriver: journald
  memFree: 20617121792
  memTotal: 24633352192
  networkBackend: netavark
  networkBackendInfo:
    backend: netavark
    defaultNetwork: podman
    dns:
      package: Unknown
      path: /nix/store/jxz25pwfk9ax3g3dr6jzja74bby3zwih-podman-5.8.2/libexec/podman/aardvark-dns
      version: aardvark-dns 1.17.1
    package: Unknown
    path: /nix/store/jxz25pwfk9ax3g3dr6jzja74bby3zwih-podman-5.8.2/libexec/podman/netavark
    version: netavark 1.17.2
  ociRuntime:
    name: crun
    package: Unknown
    path: /nix/store/dy8bcb7mgpbwkn2y3qr2xjc587j9gr6v-podman-helper-binary-wrapper/bin/crun
    version: |-
      crun version 1.27.1
      commit: 3ec076b3b6714ec2f1a10533cf18d5605a6de637
      rundir: /run/crun
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +YAJL
  os: linux
  pasta:
    executable: /nix/store/jxz25pwfk9ax3g3dr6jzja74bby3zwih-podman-5.8.2/libexec/podman/pasta
    package: Unknown
    version: |
      pasta 2025_09_19.623dbf6
      Copyright Red Hat
      GNU General Public License, version 2 or later
        <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
  remoteSocket:
    exists: true
    path: /run/podman/podman.sock
  rootlessNetworkCmd: pasta
  security:
    apparmorEnabled: false
    capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
    rootless: false
    seccompEnabled: true
    seccompProfilePath: ""
    selinuxEnabled: false
  serviceIsRemote: false
  slirp4netns:
    executable: ""
    package: ""
    version: ""
  swapFree: 4294963200
  swapTotal: 4294963200
  uptime: 9h 13m 27.00s (Approximately 0.38 days)
  variant: ""
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries:
  search:
  - docker.io
  - quay.io
store:
  configFile: /etc/containers/storage.conf
  containerStore:
    number: 13
    paused: 0
    running: 12
    stopped: 1
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /var/lib/containers/storage
  graphRootAllocated: 490048548864
  graphRootUsed: 16822902784
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Supports shifting: "true"
    Supports volatile: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 20
  runRoot: /run/containers/storage
  transientStore: false
  volumePath: /var/lib/containers/storage/volumes
version:
  APIVersion: 5.8.2
  Built: 315532800
  BuiltTime: Tue Jan  1 01:00:00 1980
  GitCommit: ""
  GoVersion: go1.26.5
  Os: linux
  OsArch: linux/amd64
  Version: 5.8.2

Docker Compose config

Logs

uil. 28 18:48:56 lexodar diun[149018]: Tue, 28 Jul 2026 18:48:56 CEST INF github.com/crazy-max/diun/v4/internal/app/app.go:186 > Next run in 11 minutes (2026-07-28 19:00:08.736
695176 +0200 CEST)
juil. 28 18:48:56 lexodar diun[149018]: Tue, 28 Jul 2026 18:48:56 CEST INF github.com/crazy-max/diun/v4/internal/app/app.go:183 > Cron initialized with schedule 0 * * * *
juil. 28 18:48:56 lexodar diun[149018]: Tue, 28 Jul 2026 18:48:56 CEST INF github.com/crazy-max/diun/v4/internal/app/app.go:250 > Jobs completed added=0 failed=0 skipped=0 uncha
nged=0 updated=0
juil. 28 18:48:56 lexodar diun[149018]: Tue, 28 Jul 2026 18:48:56 CEST WRN github.com/crazy-max/diun/v4/internal/provider/docker/docker.go:37 > No image found
juil. 28 18:48:56 lexodar diun[149018]: Tue, 28 Jul 2026 18:48:56 CEST ERR github.com/crazy-max/diun/v4/internal/provider/docker/container.go:39 > Cannot list Docker containers
error="ParseAddr(\"<nil>\"): unable to parse IP" provider=docker
juil. 28 18:48:55 lexodar diun[149018]: Tue, 28 Jul 2026 18:48:55 CEST INF github.com/crazy-max/diun/v4/internal/grpc/client.go:79 > gRPC server listening addr=[::]:42286
juil. 28 18:48:55 lexodar diun[149018]: Tue, 28 Jul 2026 18:48:55 CEST INF github.com/crazy-max/diun/v4/internal/app/app.go:216 > Cron triggered
juil. 28 18:48:55 lexodar diun[149018]: Tue, 28 Jul 2026 18:48:55 CEST DBG github.com/crazy-max/diun/v4/internal/db/client.go:73 > Current database version: 2
juil. 28 18:48:55 lexodar diun[149018]: Tue, 28 Jul 2026 18:48:55 CEST DBG github.com/crazy-max/diun/v4/internal/db/client.go:52 > 160 entries found in manifest bucket
juil. 28 18:48:55 lexodar diun[149018]: Tue, 28 Jul 2026 18:48:55 CEST DBG github.com/crazy-max/diun/v4/internal/notif/client.go:101 > 1 notifier(s) created
juil. 28 18:48:55 lexodar diun[149018]: Tue, 28 Jul 2026 18:48:55 CEST DBG github.com/crazy-max/diun/v4/cmd/serve.go:47 > Configuration config={"db":{"path":"/data/diun.db"},"de
faults":{"maxTags":1,"notifyOn":["new","update"],"sortTags":"semver","watchRepo":false},"metrics":{"addr":":9090","enabled":false,"path":"/metrics"},"notif":{"gotify":{"endpoint
":"http://10.89.0.23","priority":1,"templateBody":"\"Docker tag {{ .Entry.Image }} which you subscribed to through {{ .Entry.Provider }} provider has been released.\"","template
Title":"\"{{ .Entry.Image }} released\"","timeout":10000000000,"tokenFile":"/secrets/GOTIFY_TOKEN"}},"providers":{"docker":{"tlsVerify":true,"watchByDefault":true,"watchStopped"
:false}},"watch":{"compareDigest":true,"firstCheckNotif":false,"jitter":30000000000,"runOnStartup":true,"schedule":"0 * * * *","workers":10}}
juil. 28 18:48:55 lexodar diun[149018]: Tue, 28 Jul 2026 18:48:55 CEST INF github.com/crazy-max/diun/v4/internal/config/config.go:57 > Configuration loaded from 16 environment v
ariable(s)
juil. 28 18:48:55 lexodar diun[149018]: Tue, 28 Jul 2026 18:48:55 CEST DBG github.com/crazy-max/diun/v4/internal/config/config.go:44 > No configuration file found
juil. 28 18:48:55 lexodar diun[149018]: Tue, 28 Jul 2026 18:48:55 CEST INF github.com/crazy-max/diun/v4/cmd/serve.go:41 > Starting Diun version=v4.33.0
juil. 28 18:48:55 lexodar podman-diun-start[148941]: a13e8c939f89c4b434ef7daa05bed8d546adf539b08d1574d8129cd50e55c7c3
juil. 28 18:48:55 lexodar systemd[1]: Started podman-diun.service.

Additional info

I use Podman with the NixOS module :

{
  virtualisation.oci-containers.containers.diun = {
    image = "crazymax/diun:4.33.0";

    environmentFiles = [
      "/mnt/stormwind/containers/envs/commun.env"
      "/mnt/stormwind/containers/envs/diun.env"
    ];

    extraOptions = [
    #  "--uidmap=0:1000:1"
    #  "--gidmap=0:100:1"
    #
      "--security-opt=label=type:container_runtime_t"
    ];
    cmd = ["serve"];

    hostname = "diun";
    networks = ["repiproxy:ip=10.89.0.24"];

    volumes = [
      "/run/podman/podman.sock:/var/run/docker.sock:ro"

      "/mnt/stormwind/containers/secrets/diun:/secrets:ro"

      "/mnt/stormwind/containers/volumes/diun-data:/data:U"
    ];
  };
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions