Comments (7)
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.
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.
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.
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.
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.
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.
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)
- TTL of inserted record is automatic
- Set Proxied to its current value or disabled by default HOT 1
- Error connecting the server HOT 1
- support ipv6 HOT 1
- Unexpected keyword argument 'cfEmail' HOT 1
- Permissions error when running "curl https://bootstrap.pypa.io/get-pip.py | python" on synology NAS HOT 3
- Email Address should not be set in cloudflare.cfg file if using an API token
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudflareddns.