linuxserver / docker-ddclient

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

ddclient no ip found but works via command line #11

Closed paulmorabito closed 6 years ago

paulmorabito commented 6 years ago

Hi,

I'm running Ubuntu 18.04 and ddclient within a docker container. I've configured my ddclient.conf however, when running from the daemon I get the following error:

ddclient | 2018-08-08T08:56:21.253119508Z WARNING: file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''

However, if I run:

ddclient -file=/config/ddclient.conf -daemon=0 -debug -verbose -noquiet

from within the container then the IP is found and updated.

My docker compose yml for the container is:

ddclient: image: "linuxserver/ddclient" container_name: "ddclient" volumes:

Any ideas on how to correct this?

tobbenb commented 6 years ago

So you have specified a static IP that provides you Wan ip? You should have use=web in the config file. If you have set this, you might want to try and delete the file it complains about.

Why did you take out the Pid and gid numbers? It's usuful for us to troubleshoot.

paulmorabito commented 6 years ago

Hi,

UID is 1000 and GID is 996. I can verify this is being set correctly within the container because when the container starts up I can see the uid and gid displayed in the logs.

I can confirm I have enabled "use web=yes". I also had:

use=if, if=enp2s0

Which I disabled and deleted the file in the original error. The inotify on the file triggered an update and I got:

ddclient | 2018-08-08T23:59:54.355070989Z /config/ddclient.conf MODIFY

ddclient | 2018-08-08T23:59:54.380211119Z ddclient has been restarted

ddclient | 2018-08-08T23:59:54.389695760Z WARNING: file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''

ddclient | 2018-08-08T23:59:54.389770479Z Setting up watches.

ddclient | 2018-08-08T23:59:54.389798802Z Watches established.

ddclient | 2018-08-08T23:59:55.093183655Z WARNING: skipping update of xxxx.net from to 61.78.85.210.

ddclient | 2018-08-08T23:59:55.093237994Z WARNING: last updated

but last attempt on Thu Aug 9 08:55:11 2018 failed. ddclient | 2018-08-08T23:59:55.093252395Z WARNING: Wait at least 5 minutes between update attempts. ddclient | 2018-08-09T00:09:56.367877457Z WARNING: file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = '' So the same problem persists. On Thu, 9 Aug 2018 at 02:20 saarg wrote: > So you have specified a static IP that provides you Wan ip? > You should have use=web in the config file. > If you have set this, you might want to try and delete the file it > complains about. > > Why did you take out the Pid and gid numbers? It's usuful for us to > troubleshoot. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > , > or mute the thread > > . >
tobbenb commented 6 years ago

Do you have use=web or use web=yes? It should be use=web. Did you try to delete the ddclient.cache file as I suggested?

nightah commented 6 years ago

@paulmorabito which provider are you updating? It's not Cloudflare is it?

paulmorabito commented 6 years ago

yes, it's cloudfare.

i have web=yes, sorry that was a typo. And yes, I tried to delete the file in question and the error reoccurs.

On Thu, Aug 9, 2018, 20:34 Amir Zarrinkafsh notifications@github.com wrote:

@paulmorabito https://github.com/paulmorabito which provider are you updating? It's not Cloudflare is it?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/linuxserver/docker-ddclient/issues/11#issuecomment-411727605, or mute the thread https://github.com/notifications/unsubscribe-auth/AORr77Yv2LMHmCmonlVivngkhiXO34Xjks5uPB5fgaJpZM4VzjHP .

nightah commented 6 years ago

The issue you're experiencing is to do with the fact that the current client uses the old deprecated Cloudflare API as per #12.

paulmorabito commented 6 years ago

Ok I see. I'll wait for the new release then. Thanks.

On Thu, Aug 9, 2018, 22:47 Amir Zarrinkafsh notifications@github.com wrote:

The issue you're experiencing is to do with the fact that the current client uses the old deprecated Cloudflare API as per #12 https://github.com/linuxserver/docker-ddclient/issues/12.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/linuxserver/docker-ddclient/issues/11#issuecomment-411763164, or mute the thread https://github.com/notifications/unsubscribe-auth/AORr7ymWaZ4R3txLQOUWdcB90I5qeuBVks5uPD1rgaJpZM4VzjHP .