Giter VIP home page Giter VIP logo

Comments (7)

dvershinin avatar dvershinin commented on June 7, 2024

Hi,

Can you run cat /etc/ddns_provider.conf and post the output.

You seem to be using email+API key. Have you put email and key in respective fields?

from cloudflareddns.

gui-li avatar gui-li commented on June 7, 2024

Ouput:
[USER_Cloudflare]
modulepath=/bin/cloudflareddns-syno
queryurl=https://www.cloudflare.com/

Yes, I do place email and key in the right places.

from cloudflareddns.

gui-li avatar gui-li commented on June 7, 2024

When I tried to run cloudflareddns directly in CLI, I got the following error message:
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/CloudflareDDNS/lib/python2.7/site-packages/cloudflareddns/cloudflareddns.py", line 163, in updateRecord
res = update(hostname, ip, ttl)
File "/usr/local/CloudflareDDNS/lib/python2.7/site-packages/cloudflareddns/cloudflareddns.py", line 79, in update
cf = CloudFlare.CloudFlare()
File "/usr/local/CloudflareDDNS/lib/python2.7/site-packages/CloudFlare/cloudflare.py", line 864, in init
raise CloudFlareAPIError(0, 'profile/configuration read error')
CloudFlare.exceptions.CloudFlareAPIError: profile/configuration read error

My ~/.cloudflare/cloudflare.cfg:
[CloudFlare]
email = x
token = MyAPIToken

My ~/.bashrc:
export CF_API_EMAIL="x"
export CF_API_KEY=MyAPIToken

from cloudflareddns.

gui-li avatar gui-li commented on June 7, 2024

Ouput:
[USER_Cloudflare]
modulepath=/bin/cloudflareddns-syno
queryurl=https://www.cloudflare.com/

Yes, I do place email and key in the right places.

By the way, I have changed the way I install to virtualenv, so the contents now are:

[USER_Cloudflare]
modulepath=/usr/local/CloudflareDDNS/bin/cloudflareddns-syno
queryurl=https://www.cloudflare.com/

from cloudflareddns.

dvershinin avatar dvershinin commented on June 7, 2024

Do you actually put x? The x is ok to go to Synology GUI as long as you're using API token (not key).

See here on format of cloudflare.cfg. If using email+api key, then you should have an actual email + key.
And if using API token, then you will not have email field at all in your configs, just token.

Also having those things in bashrc is unneeded (unless you have other programs relying on those env vars).

from cloudflareddns.

gui-li avatar gui-li commented on June 7, 2024

Sure, I did tried either API token and global API option, but neither one of them works.
However, I have resorted to my Ubuntu server responsible for updating the DDNS.

from cloudflareddns.

dvershinin avatar dvershinin commented on June 7, 2024

Just looking at the Cloudflare package code, the CloudFlare.exceptions.CloudFlareAPIError: profile/configuration read error seems to be with failure to parse the .ini file in some way. So maybe there's a problem with its encoding/formatting... You may want to raise the extra issue with them if you are sure that your config file is correct.

from cloudflareddns.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.