semaj4712 Posted April 24, 2023 Share Posted April 24, 2023 Just thought I would add some context here for those looking at this thread. I came here to see example configs and the above examples seem to imply that the Zone ID is the url IE: `google.com` when in fact it is not, which is probably the reason @mjeshurun was getting the error they were getting. The Zone ID is simply the ID cloudflare uses to identify a domain. This will direct you to where you need to go to get the Zone ID if you do not already know where to find it. https://developers.cloudflare.com/fundamentals/get-started/basic-tasks/find-account-and-zone-ids/ 1 1 Quote Link to comment
mjeshurun Posted April 24, 2023 Share Posted April 24, 2023 1 hour ago, semaj4712 said: Just thought I would add some context here for those looking at this thread. I came here to see example configs and the above examples seem to imply that the Zone ID is the url IE: `google.com` when in fact it is not, which is probably the reason @mjeshurun was getting the error they were getting. The Zone ID is simply the ID cloudflare uses to identify a domain. This will direct you to where you need to go to get the Zone ID if you do not already know where to find it. https://developers.cloudflare.com/fundamentals/get-started/basic-tasks/find-account-and-zone-ids/ Thank you very much, @semaj4712! You were correct. 🙏🙏 As I'm trying to switch from a different cloudflare ip updater, I mistakenly assumed the zone_id meant the domains URL. Your tip helped me find the actual zone_id's. However, I'm now seeing these error messages for the sub1 "www" of both domains I'm trying to set up in the config.json file. ➕ Adding new record {'type': 'A', 'name': 'www.***********.com', 'content': '**.***.***.***', 'proxied': True, 'ttl': 300} 😡 Error sending 'POST' request to 'https://api.cloudflare.com/client/v4/zones/*****************************/dns_records': {"result":null,"success":false,"errors":[{"code":81054,"message":"A CNAME record with that host already exists. For more details, refer to \u003chttps://developers.cloudflare.com/dns/manage-dns-records/troubleshooting/records-with-same-name/\u003e."}],"messages":[]} Any ideas how to solve this? Quote Link to comment
Kilrah Posted April 24, 2023 Author Share Posted April 24, 2023 (edited) I've always had some of those as well, doesn't seem to cause a problem. Seems the cloudflare API sometimes times out while the container tries to get the existing records so it then tries to add some that are already there. Edited April 24, 2023 by Kilrah 1 Quote Link to comment
mjeshurun Posted April 24, 2023 Share Posted April 24, 2023 9 minutes ago, Kilrah said: I've always had some of those as well, doesn't seem to cause a problem. Seems the cloudflare API sometimes times out while the container tries to get the existing records so it then tries to add some that are already there. I'm not entirely sure the cloudflare API is the problem. If I run oznu/cloudflare-ddns app I don't get any error messages regarding the "www" subdomain. And onzu's app also depends on the cloudflare API. Quote Link to comment
Kilrah Posted April 24, 2023 Author Share Posted April 24, 2023 (edited) I always see either timeouts, HTML from an error page, handshake failures, internal server errors, retries exceeded etc on the lines before when it happens. It's not that frequent (hasn't been one since last container start a day ago) but happens somewhat regularly. Edited April 24, 2023 by Kilrah 1 Quote Link to comment
mjeshurun Posted April 27, 2023 Share Posted April 27, 2023 Thanks, everyone, for all your help 🙏🙏 I think I finally got Cloudflare-DDNS-config to work with no error messages. I'll keep checking the logs for the next few days, but so far it appears to be working well Quote Link to comment
Ikeasofa Posted January 30 Share Posted January 30 I followed the guide on github but I get the "Bad Parameter" Error when trying to start the container. Anyone having the same problem somehow? I should have set it up correctly. My steps were: install the container run the commands from the info page adjust the json according to my data I first thought because I had a wildcard subdomain so I removed it. No luck unfortunately. Quote Link to comment
Kilrah Posted January 31 Author Share Posted January 31 So you downloaded a sample json file, edited it and linked to it correctly in the template? Bad Parameter is usually that there's an error in the Docker command itself, the container isn't even starting yet Quote Link to comment
yoleska Posted February 10 Share Posted February 10 On 11/1/2022 at 2:24 AM, Kilrah said: I'm another troubled user. I'm not sure if there's a syntax error in the description or it's just me. But copying those two lines into terminal gives an error: mkdir /mnt/user/appdata/cloudflare-ddns-config wget -qO /mnt/user/appdata/cloudflare-ddns-config/config.json https://github.com/timothymiller/cloudflare-ddns/raw/master/config-example.json /mnt/user/appdata/cloudflare-ddns-config/config.json: Is a directory I'm assuming that the config-example.json file sits inside like: /mnt/user/appdata/cloudflare-ddns-config/config.json/config.json Or is the config.json directory supposed to be a file within the same named directory? I've tried both ways and keep getting an error " Error reading config.json" in the docker log. My config.json file looks like this (linter checked): { "cloudflare": [ { "authentication": { "api_token": "redacted" }, "zone_id": "redacted, yes the long-ass zone file descriptor", "subdomains": [ { "name": "test1", "proxied": false }, { "name": "test2", "proxied": false } ] } ], "a": true, "aaaa": true, "purgeUnknownRecords": false, "ttl": 300 } Quote Link to comment
evan326 Posted February 10 Share Posted February 10 Thanks for this. I finally got it setup after some trouble. Maybe updating the wording on the instructions? The example shows api keys and tokens. The config wants the api key in the api token position. This confused me for a while. I was putting in the name of the token and couldn't figure out why it wasn't working. After pounding my head on the wall of a while I figured that out. Thanks again, now I don't need to run multiple instances of the other one. 🙂 Quote Link to comment
Kilrah Posted February 10 Author Share Posted February 10 5 hours ago, yoleska said: Or is the config.json directory supposed to be a file within the same named directory? There should not be a directory, the file is /mnt/user/appdata/cloudflare-ddns-config/config.json. But if you started the container once without first putting the file in place there Docker will have made a directory. Stop, remove the directory, put the file there, start. Quote Link to comment
NewDisplayName Posted February 10 Share Posted February 10 I dont have that problem, but i cant understand why you not automatic do the neccessary changes...? Quote Link to comment
NewDisplayName Posted February 10 Share Posted February 10 (edited) But i see now i already suggestet that a year ago, also told him the config errors he made and its still there... so he just likes to "fix" the same problems over and over again - i guess. Edited February 10 by NewDisplayName Quote Link to comment
Kilrah Posted February 10 Author Share Posted February 10 (edited) No idea what you're talking about... I'm not the author of either the container, samples or documentation. Edited February 10 by Kilrah Quote Link to comment
NewDisplayName Posted February 10 Share Posted February 10 (edited) 2 hours ago, Kilrah said: No idea what you're talking about... I'm not the author of either the container, samples or documentation. Are you the author for this thread tho? You have uncomplete instructions in your first post which makes it harder for ppl to get it startet. Edited February 10 by NewDisplayName Quote Link to comment
yoleska Posted February 10 Share Posted February 10 Ok, I see one problem. When the container is installed, it adds a trailing forward-slash to the config path in the container settings: After removing that trailing slash at the end, and placing the config file in the path as mentioned by @Kilrah now it works..yay! 1 Quote Link to comment
Kilrah Posted February 10 Author Share Posted February 10 (edited) 2 hours ago, yoleska said: When the container is installed, it adds a trailing forward-slash to the config path in the container settings: That would be something you did, the template sets this by default as per container docs: Edited February 10 by Kilrah Quote Link to comment
yoleska Posted February 11 Share Posted February 11 Oh, I suppose that's possible. I was changing a bunch of things trying to get it to work right. Very well. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.