ARNING: file /etc/ddclient/ddclient.conf: Cannot open file '/etc/ddclient/ddclient.conf'. (Permission denied) stat() on closed filehandle FD at /usr/sbin/ddclient line 879. Use of uninitialized value in bitwise and (&) at /usr/sbin/ddclient line 880. readline() on closed filehandle FD at /usr/sbin/ddclient line 886. WARNING: file /etc/ddclient/ddclient.conf: Cannot open file '/etc/ddclient/ddclient.conf'. (Permission denied) stat() on closed filehandle FD at /usr/sbin/ddclient line 879. Use of uninitialized value in bitwise and (&) at /usr/sbin/ddclient line 880. readline() on closed filehandle FD at /usr/sbin/ddclient line 886. WARNING: unable to determine IP address Reproducible: Always Actual Results: service ddclient doesn't start, ddclient on it's own does.
*** Bug 212841 has been marked as a duplicate of this bug. ***
I ran into the same problem awhile back and fixed it by removing one line from the init file. See the attached patch for the change.
Created attachment 146734 [details] ddclient.initd.patch ddclient init patch
This seems to be due to the file /etc/ddclient/ddclient.conf not being owned by root:ddclient, since the initscript has ddclient drop root permissions and run as user ddclient. The conf file should then have group read permissions, as explained in the ddclient ebuild. Can you verify the ownership of /etc/ddclient/ddclient.conf and try the default initscript again? This is more secure than running ddclient as root.
Same Problem here. $ ls -l /etc/ddclient insgesamt 4 -rw-r----- 1 root ddclient 1247 7. Okt 10:55 ddclient.conf at "# /etc/init.d/ddclient start" I get exactly the same error like in the bug description.
"This seems to be due to the file /etc/ddclient/ddclient.conf not being owned by root:ddclient, since the initscript has ddclient drop root permissions and run as user ddclient. The conf file should then have group read permissions, as explained in the ddclient ebuild. Can you verify the ownership of /etc/ddclient/ddclient.conf and try the default initscript again? This is more secure than running ddclient as root." Torsten, test this, if you can. Best regards
I did: >> $ ls -l /etc/ddclient >> insgesamt 4 >> -rw-r----- 1 root ddclient 1247 7. Okt 10:55 ddclient.conf /etc/ddclient/ddclient.conf is owned by root:ddclient and has group read permissions. I never altered the initscript.
guess it's the other way round: ddclient:root, ie > ls -lh /etc/ddclient/ddclient.conf -rw-r----- 1 ddclient root 5.1K Jan 7 23:41 /etc/ddclient/ddclient.conf i had the same err and the made a chown ddclient on that conf file and then /etc/init.d/ddclient ran ok
12 Aug 2011; Aaron W. Swenson <titanofold@gentoo.org> +ddclient-3.8.1.ebuild, +files/ddclient.initd-r1, metadata.xml: Version bump. Fixes bugs 186271, 212840, 296598 and 373183