linuxserver / docker-ddclient

GNU General Public License v3.0
139 stars 36 forks source link

[BUG] Updates fail - "Use of uninitialized value $h in hash element at /usr/bin/ddclient line 4316" #66

Closed petwri closed 1 year ago

petwri commented 1 year ago

Is there an existing issue for this?

Current Behavior

When running in a kubernetes-cluster, the initialization of a pod skip updates and attempts update of IPs every few seconds, and then periodically fails with

Setting up watches.
Watches established.
WARNING:  skipping update of foo.bar from <nothing> to xx.xx.xx.xx.
WARNING:  last updated <never> but last attempt on Fri Feb 24 17:08:45 2023 failed.
WARNING:  Wait at least 5 minutes between update attempts.
WARNING:  skipping update of foo.bar from <nothing> to xx.xx.xx.xx.
WARNING:  last updated <never> but last attempt on Fri Feb 24 17:08:48 2023 failed.
WARNING:  Wait at least 5 minutes between update attempts.

Those lines keep repeating, but after a certain time, another failure message is shown:

FAILED:   updating foo.bar: unexpected status (15)
Use of uninitialized value $h in hash element at /usr/bin/ddclient line 4316.
Use of uninitialized value $_[0] in sprintf at /usr/bin/ddclient line 2160.
WARNING:  updating : nochg: No update required; unnecessary attempts to change to the current address are considered abusive

Expected Behavior

Periodic updates of IP-address.

Steps To Reproduce

On Ubuntu 20.04.4 using microk8s v1.26.1. Fresh install of microk8s

sudo microk8s enable ingress
sudo microk8s enable dns
sudo apt-get install nfs-kernel-server
kubectl apply -f ddclient.yaml

Environment

CPU architecture

x86-64

Docker creation

ddclient.yaml file:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: ddclient
  namespace: default
  labels:
    app: ddclient
spec:
  selector:
    matchLabels:
      app: ddclient
  template:
    metadata:
      labels:
        app: ddclient
    spec:
      volumes:
      - name: ddclient-config
        nfs:
          server: 10.0.0.101
          path: /home/main/ddclient
      containers:
      - name: ddclient
        image: linuxserver/ddclient
        volumeMounts:
        - mountPath: "/config"
          name: ddclient-config


### Container logs
See above.
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

petwri commented 1 year ago

Seems like the updates are working though. Looks like all of this is an issue with ddclient not properly caching previous update attempts.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

drizuid commented 1 year ago

user also hitting this in discord but using a supported setup (docker on linux) https://discord.com/channels/354974912613449730/1105825805763887164

drizuid commented 1 year ago

https://github.com/ddclient/ddclient/issues/518 https://github.com/ddclient/ddclient/issues/386

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue is locked due to inactivity