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

ddclient expects ddclient.conf to be present at /etc/ddclient/ddclient.conf #94

Closed
1 task done
Cameronwyatt opened this issue Dec 26, 2024 · 3 comments
Closed
1 task done

Comments

@Cameronwyatt
Copy link

Cameronwyatt commented Dec 26, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The current docs have you mount the ddclient.conf file in /config, but when ddclient runs it is expecting it to be present in /etc/ddclient/ddclient.conf

# ddclient --verbose
WARNING:  file /etc/ddclient/ddclient.conf: Cannot open file '/etc/ddclient/ddclient.conf'. (No such file or directory)
stat() on closed filehandle FD at /usr/bin/ddclient line 1578.
Use of uninitialized value $mode in bitwise and (&) at /usr/bin/ddclient line 1579.
-o on closed filehandle FD at /usr/bin/ddclient line 1584.
-w on closed filehandle FD at /usr/bin/ddclient line 1584.
Use of uninitialized value $mode in bitwise and (&) at /usr/bin/ddclient line 1587.
readline() on closed filehandle FD at /usr/bin/ddclient line 1594.
WARNING:  file /etc/ddclient/ddclient.conf: Cannot open file '/etc/ddclient/ddclient.conf'. (No such file or directory)
stat() on closed filehandle FD at /usr/bin/ddclient line 1578.
Use of uninitialized value $mode in bitwise and (&) at /usr/bin/ddclient line 1579.
-o on closed filehandle FD at /usr/bin/ddclient line 1584.
-w on closed filehandle FD at /usr/bin/ddclient line 1584.
Use of uninitialized value $mode in bitwise and (&) at /usr/bin/ddclient line 1587.
readline() on closed filehandle FD at /usr/bin/ddclient line 1594.

Expected Behavior

No response

Steps To Reproduce

I'm running a podman quadlet, but still followed the same volume mounting instructions from here, which recommend mounting the ddclient.conf file in /config:

    volumes:
      - /path/to/ddclient/config:/config

Recommend changing this to

    volumes:
      - /path/to/ddclient/config:/etc/ddclient

One thing to note, that ddclient.conf should only be read-able by the user, or ddclient complains:
-r-x------ 1 root root 8871 Dec 26 15:53 ddclient.conf

Environment

OS: CentOS Stream 10
How: Podman quadlet, but using the config options mapped from the docker-compose example

CPU architecture

x86-64

Docker creation

[Unit]
Description=ddclient
After=network-online.target

[Container]
Image=lscr.io/linuxserver/ddclient:latest
ContainerName=ddclient
AutoUpdate=registry

Volume=%h/volumes/ddclient:/etc/ddclient:Z

Environment="TZ=America/New_York"
Environment="PUID=1000"
Environment="PGID=1000"

Secret=cloudflare-dns-api,type=env,target=CLOUDFLARE_DNS_API

[Service]
Restart=always

[Install]
WantedBy=default.target

Container logs

podman logs ddclient
[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: v3.11.2-ls181
Build-date: 2024-12-23T17:49:09+00:00
───────────────────────────────────────

[custom-init] No custom files found, skipping...
Setting up watches.
Watches established.
[ls.io-init] done.
Copy link

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

@Roxedus
Copy link
Member

Roxedus commented Dec 26, 2024

It is not supported to run the command manually. The service looks in the correct place

@Cameronwyatt
Copy link
Author

Fair enough. I ran into this while doing a bunch of testing using the cloudflare protocol in ddclient. But just updated it back to /config for the volume and it worked fine. Thanks for the quick response, closing.

@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants