Lexicion DNS provider authentication failure for GANDI
For those who use lexicon for dns manipulation
I'm trying to use lexicon dns api with gandi as dns provider, and have authentication error.
In fact I'm trying to generate letsencrypt certificate on a non publicly accessible vagrant box, using an ansible playbook, for my domain hosted by gandi.
In the list of providers here in the documentation page, I don't see gandi name.
Is that why it fails? An I saw AWS Route53 in the potential providers list, does it mean AWS is supported by lexicon or no?
Here is the error I get when executing my playbook :
fatal: [172.16.2.15]: FAILED! => {"changed": true, "cmd": "/srv/dehydrated/dehydrated --cron --hook /srv/dehydrated/dehydrated.default.sh --challenge dns-01 --accept-terms", "delta": "0:00:05.839602", "end": "2018-12-28 15:34:52.558788", "msg": "non-zero return code", "rc": 1, "start": "2018-12-28 15:34:46.719186", "stderr": "#n# !! WARNING !! No main config file found, using default config!n#nTraceback (most recent call last):n File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 286, in authenticaten payload = self._api.domain.info(self._api_key, self._domain)n File "/usr/lib/python3.6/xmlrpc/client.py", line 1112, in __call__n return self.__send(self.__name, args)n File "/usr/lib/python3.6/xmlrpc/client.py", line 1452, in __requestn verbose=self.__verbosen File "/usr/lib/python3.6/xmlrpc/client.py", line 1154, in requestn return self.single_request(host, handler, request_body, verbose)n File "/usr/lib/python3.6/xmlrpc/client.py", line 1170, in single_requestn return self.parse_response(resp)n File "/usr/lib/python3.6/xmlrpc/client.py", line 1342, in parse_responsen return u.close()n File "/usr/lib/python3.6/xmlrpc/client.py", line 656, in closen raise Fault(**self._stack[0])nxmlrpc.client.Fault: <Fault 510150: 'Error on object : OBJECT_ACCOUNT (CAUSE_NORIGHT) [Invalid API key]'>nnDuring handling of the above exception, another exception occurred:nnTraceback (most recent call last):n File "/usr/local/bin/lexicon", line 11, in <module>n sys.exit(main())n File "/usr/local/lib/python3.6/dist-packages/lexicon/cli.py", line 102, in mainn results = client.execute()n File "/usr/local/lib/python3.6/dist-packages/lexicon/client.py", line 64, in executen self.provider.authenticate()n File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 81, in authenticaten domain_id = self.rpc_helper.authenticate()n File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 290, in authenticaten raise Exception("Failed to authenticate: '{0}'".format(err))nException: Failed to authenticate: '<Fault 510150: 'Error on object : OBJECT_ACCOUNT (CAUSE_NORIGHT) [Invalid API key]'>'", "stderr_lines": ["#", "# !! WARNING !! No main config file found, using default config!", "#", "Traceback (most recent call last):", " File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 286, in authenticate", " payload = self._api.domain.info(self._api_key, self._domain)", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1112, in __call__", " return self.__send(self.__name, args)", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1452, in __request", " verbose=self.__verbose", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1154, in request", " return self.single_request(host, handler, request_body, verbose)", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1170, in single_request", " return self.parse_response(resp)", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1342, in parse_response", " return u.close()", " File "/usr/lib/python3.6/xmlrpc/client.py", line 656, in close", " raise Fault(**self._stack[0])", "xmlrpc.client.Fault: <Fault 510150: 'Error on object : OBJECT_ACCOUNT (CAUSE_NORIGHT) [Invalid API key]'>", "", "During handling of the above exception, another exception occurred:", "", "Traceback (most recent call last):", " File "/usr/local/bin/lexicon", line 11, in <module>", " sys.exit(main())", " File "/usr/local/lib/python3.6/dist-packages/lexicon/cli.py", line 102, in main", " results = client.execute()", " File "/usr/local/lib/python3.6/dist-packages/lexicon/client.py", line 64, in execute", " self.provider.authenticate()", " File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 81, in authenticate", " domain_id = self.rpc_helper.authenticate()", " File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 290, in authenticate", " raise Exception("Failed to authenticate: '{0}'".format(err))", "Exception: Failed to authenticate: '<Fault 510150: 'Error on object : OBJECT_ACCOUNT (CAUSE_NORIGHT) [Invalid API key]'>'"], "stdout": "+ Generating account key...n+ Registering account key with ACME server...n + Creating chain cache directory /srv/dehydrated/chainsnProcessing gitlab.lescdn.comn + Creating new directory /srv/dehydrated/certs/gitlab.lescdn.com ...n + Signing domains...n + Generating private key...n + Generating signing request...n + Requesting new certificate order from CA...n + Received 1 authorizations URLs from the CAn + Handling authorization for gitlab.lescdn.comn + 1 pending challenge(s)n + Deploying challenge tokens...ndeploy_challenge called: gitlab.lescdn.com, 1ifWXObduKNTkKbqkpXEtBpie_p1p1xL2ivugVS9Z3c, 2TgAYwV1RyI-gy6cXAtav36NI7LElHLjoKhcv0ugsag", "stdout_lines": ["+ Generating account key...", "+ Registering account key with ACME server...", " + Creating chain cache directory /srv/dehydrated/chains", "Processing gitlab.lescdn.com", " + Creating new directory /srv/dehydrated/certs/gitlab.lescdn.com ...", " + Signing domains...", " + Generating private key...", " + Generating signing request...", " + Requesting new certificate order from CA...", " + Received 1 authorizations URLs from the CA", " + Handling authorization for gitlab.lescdn.com", " + 1 pending challenge(s)", " + Deploying challenge tokens...", "deploy_challenge called: gitlab.lescdn.com, 1ifWXObduKNTkKbqkpXEtBpie_p1p1xL2ivugVS9Z3c, 2TgAYwV1RyI-gy6cXAtav36NI7LElHLjoKhcv0ugsag"]}
I can see the file /usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py is executed and fails at line 286, so for my the gandi provider is supported but not listed in the lexicon page, so I'm confusing about the ansible task fails.
api dns ansible lexicon
add a comment |
For those who use lexicon for dns manipulation
I'm trying to use lexicon dns api with gandi as dns provider, and have authentication error.
In fact I'm trying to generate letsencrypt certificate on a non publicly accessible vagrant box, using an ansible playbook, for my domain hosted by gandi.
In the list of providers here in the documentation page, I don't see gandi name.
Is that why it fails? An I saw AWS Route53 in the potential providers list, does it mean AWS is supported by lexicon or no?
Here is the error I get when executing my playbook :
fatal: [172.16.2.15]: FAILED! => {"changed": true, "cmd": "/srv/dehydrated/dehydrated --cron --hook /srv/dehydrated/dehydrated.default.sh --challenge dns-01 --accept-terms", "delta": "0:00:05.839602", "end": "2018-12-28 15:34:52.558788", "msg": "non-zero return code", "rc": 1, "start": "2018-12-28 15:34:46.719186", "stderr": "#n# !! WARNING !! No main config file found, using default config!n#nTraceback (most recent call last):n File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 286, in authenticaten payload = self._api.domain.info(self._api_key, self._domain)n File "/usr/lib/python3.6/xmlrpc/client.py", line 1112, in __call__n return self.__send(self.__name, args)n File "/usr/lib/python3.6/xmlrpc/client.py", line 1452, in __requestn verbose=self.__verbosen File "/usr/lib/python3.6/xmlrpc/client.py", line 1154, in requestn return self.single_request(host, handler, request_body, verbose)n File "/usr/lib/python3.6/xmlrpc/client.py", line 1170, in single_requestn return self.parse_response(resp)n File "/usr/lib/python3.6/xmlrpc/client.py", line 1342, in parse_responsen return u.close()n File "/usr/lib/python3.6/xmlrpc/client.py", line 656, in closen raise Fault(**self._stack[0])nxmlrpc.client.Fault: <Fault 510150: 'Error on object : OBJECT_ACCOUNT (CAUSE_NORIGHT) [Invalid API key]'>nnDuring handling of the above exception, another exception occurred:nnTraceback (most recent call last):n File "/usr/local/bin/lexicon", line 11, in <module>n sys.exit(main())n File "/usr/local/lib/python3.6/dist-packages/lexicon/cli.py", line 102, in mainn results = client.execute()n File "/usr/local/lib/python3.6/dist-packages/lexicon/client.py", line 64, in executen self.provider.authenticate()n File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 81, in authenticaten domain_id = self.rpc_helper.authenticate()n File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 290, in authenticaten raise Exception("Failed to authenticate: '{0}'".format(err))nException: Failed to authenticate: '<Fault 510150: 'Error on object : OBJECT_ACCOUNT (CAUSE_NORIGHT) [Invalid API key]'>'", "stderr_lines": ["#", "# !! WARNING !! No main config file found, using default config!", "#", "Traceback (most recent call last):", " File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 286, in authenticate", " payload = self._api.domain.info(self._api_key, self._domain)", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1112, in __call__", " return self.__send(self.__name, args)", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1452, in __request", " verbose=self.__verbose", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1154, in request", " return self.single_request(host, handler, request_body, verbose)", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1170, in single_request", " return self.parse_response(resp)", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1342, in parse_response", " return u.close()", " File "/usr/lib/python3.6/xmlrpc/client.py", line 656, in close", " raise Fault(**self._stack[0])", "xmlrpc.client.Fault: <Fault 510150: 'Error on object : OBJECT_ACCOUNT (CAUSE_NORIGHT) [Invalid API key]'>", "", "During handling of the above exception, another exception occurred:", "", "Traceback (most recent call last):", " File "/usr/local/bin/lexicon", line 11, in <module>", " sys.exit(main())", " File "/usr/local/lib/python3.6/dist-packages/lexicon/cli.py", line 102, in main", " results = client.execute()", " File "/usr/local/lib/python3.6/dist-packages/lexicon/client.py", line 64, in execute", " self.provider.authenticate()", " File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 81, in authenticate", " domain_id = self.rpc_helper.authenticate()", " File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 290, in authenticate", " raise Exception("Failed to authenticate: '{0}'".format(err))", "Exception: Failed to authenticate: '<Fault 510150: 'Error on object : OBJECT_ACCOUNT (CAUSE_NORIGHT) [Invalid API key]'>'"], "stdout": "+ Generating account key...n+ Registering account key with ACME server...n + Creating chain cache directory /srv/dehydrated/chainsnProcessing gitlab.lescdn.comn + Creating new directory /srv/dehydrated/certs/gitlab.lescdn.com ...n + Signing domains...n + Generating private key...n + Generating signing request...n + Requesting new certificate order from CA...n + Received 1 authorizations URLs from the CAn + Handling authorization for gitlab.lescdn.comn + 1 pending challenge(s)n + Deploying challenge tokens...ndeploy_challenge called: gitlab.lescdn.com, 1ifWXObduKNTkKbqkpXEtBpie_p1p1xL2ivugVS9Z3c, 2TgAYwV1RyI-gy6cXAtav36NI7LElHLjoKhcv0ugsag", "stdout_lines": ["+ Generating account key...", "+ Registering account key with ACME server...", " + Creating chain cache directory /srv/dehydrated/chains", "Processing gitlab.lescdn.com", " + Creating new directory /srv/dehydrated/certs/gitlab.lescdn.com ...", " + Signing domains...", " + Generating private key...", " + Generating signing request...", " + Requesting new certificate order from CA...", " + Received 1 authorizations URLs from the CA", " + Handling authorization for gitlab.lescdn.com", " + 1 pending challenge(s)", " + Deploying challenge tokens...", "deploy_challenge called: gitlab.lescdn.com, 1ifWXObduKNTkKbqkpXEtBpie_p1p1xL2ivugVS9Z3c, 2TgAYwV1RyI-gy6cXAtav36NI7LElHLjoKhcv0ugsag"]}
I can see the file /usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py is executed and fails at line 286, so for my the gandi provider is supported but not listed in the lexicon page, so I'm confusing about the ansible task fails.
api dns ansible lexicon
I can see here github.com/AnalogJ/lexicon that GANDI is supported, so I think the error is elsewhere... I'm checking
– nixmind
Dec 28 '18 at 16:21
add a comment |
For those who use lexicon for dns manipulation
I'm trying to use lexicon dns api with gandi as dns provider, and have authentication error.
In fact I'm trying to generate letsencrypt certificate on a non publicly accessible vagrant box, using an ansible playbook, for my domain hosted by gandi.
In the list of providers here in the documentation page, I don't see gandi name.
Is that why it fails? An I saw AWS Route53 in the potential providers list, does it mean AWS is supported by lexicon or no?
Here is the error I get when executing my playbook :
fatal: [172.16.2.15]: FAILED! => {"changed": true, "cmd": "/srv/dehydrated/dehydrated --cron --hook /srv/dehydrated/dehydrated.default.sh --challenge dns-01 --accept-terms", "delta": "0:00:05.839602", "end": "2018-12-28 15:34:52.558788", "msg": "non-zero return code", "rc": 1, "start": "2018-12-28 15:34:46.719186", "stderr": "#n# !! WARNING !! No main config file found, using default config!n#nTraceback (most recent call last):n File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 286, in authenticaten payload = self._api.domain.info(self._api_key, self._domain)n File "/usr/lib/python3.6/xmlrpc/client.py", line 1112, in __call__n return self.__send(self.__name, args)n File "/usr/lib/python3.6/xmlrpc/client.py", line 1452, in __requestn verbose=self.__verbosen File "/usr/lib/python3.6/xmlrpc/client.py", line 1154, in requestn return self.single_request(host, handler, request_body, verbose)n File "/usr/lib/python3.6/xmlrpc/client.py", line 1170, in single_requestn return self.parse_response(resp)n File "/usr/lib/python3.6/xmlrpc/client.py", line 1342, in parse_responsen return u.close()n File "/usr/lib/python3.6/xmlrpc/client.py", line 656, in closen raise Fault(**self._stack[0])nxmlrpc.client.Fault: <Fault 510150: 'Error on object : OBJECT_ACCOUNT (CAUSE_NORIGHT) [Invalid API key]'>nnDuring handling of the above exception, another exception occurred:nnTraceback (most recent call last):n File "/usr/local/bin/lexicon", line 11, in <module>n sys.exit(main())n File "/usr/local/lib/python3.6/dist-packages/lexicon/cli.py", line 102, in mainn results = client.execute()n File "/usr/local/lib/python3.6/dist-packages/lexicon/client.py", line 64, in executen self.provider.authenticate()n File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 81, in authenticaten domain_id = self.rpc_helper.authenticate()n File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 290, in authenticaten raise Exception("Failed to authenticate: '{0}'".format(err))nException: Failed to authenticate: '<Fault 510150: 'Error on object : OBJECT_ACCOUNT (CAUSE_NORIGHT) [Invalid API key]'>'", "stderr_lines": ["#", "# !! WARNING !! No main config file found, using default config!", "#", "Traceback (most recent call last):", " File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 286, in authenticate", " payload = self._api.domain.info(self._api_key, self._domain)", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1112, in __call__", " return self.__send(self.__name, args)", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1452, in __request", " verbose=self.__verbose", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1154, in request", " return self.single_request(host, handler, request_body, verbose)", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1170, in single_request", " return self.parse_response(resp)", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1342, in parse_response", " return u.close()", " File "/usr/lib/python3.6/xmlrpc/client.py", line 656, in close", " raise Fault(**self._stack[0])", "xmlrpc.client.Fault: <Fault 510150: 'Error on object : OBJECT_ACCOUNT (CAUSE_NORIGHT) [Invalid API key]'>", "", "During handling of the above exception, another exception occurred:", "", "Traceback (most recent call last):", " File "/usr/local/bin/lexicon", line 11, in <module>", " sys.exit(main())", " File "/usr/local/lib/python3.6/dist-packages/lexicon/cli.py", line 102, in main", " results = client.execute()", " File "/usr/local/lib/python3.6/dist-packages/lexicon/client.py", line 64, in execute", " self.provider.authenticate()", " File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 81, in authenticate", " domain_id = self.rpc_helper.authenticate()", " File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 290, in authenticate", " raise Exception("Failed to authenticate: '{0}'".format(err))", "Exception: Failed to authenticate: '<Fault 510150: 'Error on object : OBJECT_ACCOUNT (CAUSE_NORIGHT) [Invalid API key]'>'"], "stdout": "+ Generating account key...n+ Registering account key with ACME server...n + Creating chain cache directory /srv/dehydrated/chainsnProcessing gitlab.lescdn.comn + Creating new directory /srv/dehydrated/certs/gitlab.lescdn.com ...n + Signing domains...n + Generating private key...n + Generating signing request...n + Requesting new certificate order from CA...n + Received 1 authorizations URLs from the CAn + Handling authorization for gitlab.lescdn.comn + 1 pending challenge(s)n + Deploying challenge tokens...ndeploy_challenge called: gitlab.lescdn.com, 1ifWXObduKNTkKbqkpXEtBpie_p1p1xL2ivugVS9Z3c, 2TgAYwV1RyI-gy6cXAtav36NI7LElHLjoKhcv0ugsag", "stdout_lines": ["+ Generating account key...", "+ Registering account key with ACME server...", " + Creating chain cache directory /srv/dehydrated/chains", "Processing gitlab.lescdn.com", " + Creating new directory /srv/dehydrated/certs/gitlab.lescdn.com ...", " + Signing domains...", " + Generating private key...", " + Generating signing request...", " + Requesting new certificate order from CA...", " + Received 1 authorizations URLs from the CA", " + Handling authorization for gitlab.lescdn.com", " + 1 pending challenge(s)", " + Deploying challenge tokens...", "deploy_challenge called: gitlab.lescdn.com, 1ifWXObduKNTkKbqkpXEtBpie_p1p1xL2ivugVS9Z3c, 2TgAYwV1RyI-gy6cXAtav36NI7LElHLjoKhcv0ugsag"]}
I can see the file /usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py is executed and fails at line 286, so for my the gandi provider is supported but not listed in the lexicon page, so I'm confusing about the ansible task fails.
api dns ansible lexicon
For those who use lexicon for dns manipulation
I'm trying to use lexicon dns api with gandi as dns provider, and have authentication error.
In fact I'm trying to generate letsencrypt certificate on a non publicly accessible vagrant box, using an ansible playbook, for my domain hosted by gandi.
In the list of providers here in the documentation page, I don't see gandi name.
Is that why it fails? An I saw AWS Route53 in the potential providers list, does it mean AWS is supported by lexicon or no?
Here is the error I get when executing my playbook :
fatal: [172.16.2.15]: FAILED! => {"changed": true, "cmd": "/srv/dehydrated/dehydrated --cron --hook /srv/dehydrated/dehydrated.default.sh --challenge dns-01 --accept-terms", "delta": "0:00:05.839602", "end": "2018-12-28 15:34:52.558788", "msg": "non-zero return code", "rc": 1, "start": "2018-12-28 15:34:46.719186", "stderr": "#n# !! WARNING !! No main config file found, using default config!n#nTraceback (most recent call last):n File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 286, in authenticaten payload = self._api.domain.info(self._api_key, self._domain)n File "/usr/lib/python3.6/xmlrpc/client.py", line 1112, in __call__n return self.__send(self.__name, args)n File "/usr/lib/python3.6/xmlrpc/client.py", line 1452, in __requestn verbose=self.__verbosen File "/usr/lib/python3.6/xmlrpc/client.py", line 1154, in requestn return self.single_request(host, handler, request_body, verbose)n File "/usr/lib/python3.6/xmlrpc/client.py", line 1170, in single_requestn return self.parse_response(resp)n File "/usr/lib/python3.6/xmlrpc/client.py", line 1342, in parse_responsen return u.close()n File "/usr/lib/python3.6/xmlrpc/client.py", line 656, in closen raise Fault(**self._stack[0])nxmlrpc.client.Fault: <Fault 510150: 'Error on object : OBJECT_ACCOUNT (CAUSE_NORIGHT) [Invalid API key]'>nnDuring handling of the above exception, another exception occurred:nnTraceback (most recent call last):n File "/usr/local/bin/lexicon", line 11, in <module>n sys.exit(main())n File "/usr/local/lib/python3.6/dist-packages/lexicon/cli.py", line 102, in mainn results = client.execute()n File "/usr/local/lib/python3.6/dist-packages/lexicon/client.py", line 64, in executen self.provider.authenticate()n File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 81, in authenticaten domain_id = self.rpc_helper.authenticate()n File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 290, in authenticaten raise Exception("Failed to authenticate: '{0}'".format(err))nException: Failed to authenticate: '<Fault 510150: 'Error on object : OBJECT_ACCOUNT (CAUSE_NORIGHT) [Invalid API key]'>'", "stderr_lines": ["#", "# !! WARNING !! No main config file found, using default config!", "#", "Traceback (most recent call last):", " File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 286, in authenticate", " payload = self._api.domain.info(self._api_key, self._domain)", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1112, in __call__", " return self.__send(self.__name, args)", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1452, in __request", " verbose=self.__verbose", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1154, in request", " return self.single_request(host, handler, request_body, verbose)", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1170, in single_request", " return self.parse_response(resp)", " File "/usr/lib/python3.6/xmlrpc/client.py", line 1342, in parse_response", " return u.close()", " File "/usr/lib/python3.6/xmlrpc/client.py", line 656, in close", " raise Fault(**self._stack[0])", "xmlrpc.client.Fault: <Fault 510150: 'Error on object : OBJECT_ACCOUNT (CAUSE_NORIGHT) [Invalid API key]'>", "", "During handling of the above exception, another exception occurred:", "", "Traceback (most recent call last):", " File "/usr/local/bin/lexicon", line 11, in <module>", " sys.exit(main())", " File "/usr/local/lib/python3.6/dist-packages/lexicon/cli.py", line 102, in main", " results = client.execute()", " File "/usr/local/lib/python3.6/dist-packages/lexicon/client.py", line 64, in execute", " self.provider.authenticate()", " File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 81, in authenticate", " domain_id = self.rpc_helper.authenticate()", " File "/usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py", line 290, in authenticate", " raise Exception("Failed to authenticate: '{0}'".format(err))", "Exception: Failed to authenticate: '<Fault 510150: 'Error on object : OBJECT_ACCOUNT (CAUSE_NORIGHT) [Invalid API key]'>'"], "stdout": "+ Generating account key...n+ Registering account key with ACME server...n + Creating chain cache directory /srv/dehydrated/chainsnProcessing gitlab.lescdn.comn + Creating new directory /srv/dehydrated/certs/gitlab.lescdn.com ...n + Signing domains...n + Generating private key...n + Generating signing request...n + Requesting new certificate order from CA...n + Received 1 authorizations URLs from the CAn + Handling authorization for gitlab.lescdn.comn + 1 pending challenge(s)n + Deploying challenge tokens...ndeploy_challenge called: gitlab.lescdn.com, 1ifWXObduKNTkKbqkpXEtBpie_p1p1xL2ivugVS9Z3c, 2TgAYwV1RyI-gy6cXAtav36NI7LElHLjoKhcv0ugsag", "stdout_lines": ["+ Generating account key...", "+ Registering account key with ACME server...", " + Creating chain cache directory /srv/dehydrated/chains", "Processing gitlab.lescdn.com", " + Creating new directory /srv/dehydrated/certs/gitlab.lescdn.com ...", " + Signing domains...", " + Generating private key...", " + Generating signing request...", " + Requesting new certificate order from CA...", " + Received 1 authorizations URLs from the CA", " + Handling authorization for gitlab.lescdn.com", " + 1 pending challenge(s)", " + Deploying challenge tokens...", "deploy_challenge called: gitlab.lescdn.com, 1ifWXObduKNTkKbqkpXEtBpie_p1p1xL2ivugVS9Z3c, 2TgAYwV1RyI-gy6cXAtav36NI7LElHLjoKhcv0ugsag"]}
I can see the file /usr/local/lib/python3.6/dist-packages/lexicon/providers/gandi.py is executed and fails at line 286, so for my the gandi provider is supported but not listed in the lexicon page, so I'm confusing about the ansible task fails.
api dns ansible lexicon
api dns ansible lexicon
asked Dec 28 '18 at 16:11
nixmindnixmind
338422
338422
I can see here github.com/AnalogJ/lexicon that GANDI is supported, so I think the error is elsewhere... I'm checking
– nixmind
Dec 28 '18 at 16:21
add a comment |
I can see here github.com/AnalogJ/lexicon that GANDI is supported, so I think the error is elsewhere... I'm checking
– nixmind
Dec 28 '18 at 16:21
I can see here github.com/AnalogJ/lexicon that GANDI is supported, so I think the error is elsewhere... I'm checking
– nixmind
Dec 28 '18 at 16:21
I can see here github.com/AnalogJ/lexicon that GANDI is supported, so I think the error is elsewhere... I'm checking
– nixmind
Dec 28 '18 at 16:21
add a comment |
1 Answer
1
active
oldest
votes
I found the issue.
It was specific to the gandi provider lexicon module, which use rpc protocol by default.
As I'm using the gandi liveDNS API, I should you the rest protocol.
To solve the issue, I use a LEXICON_GANDI_API_PROTOCOL dynamic environment variable set from my ansible playbook to rest, and it works.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53961288%2flexicion-dns-provider-authentication-failure-for-gandi%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I found the issue.
It was specific to the gandi provider lexicon module, which use rpc protocol by default.
As I'm using the gandi liveDNS API, I should you the rest protocol.
To solve the issue, I use a LEXICON_GANDI_API_PROTOCOL dynamic environment variable set from my ansible playbook to rest, and it works.
add a comment |
I found the issue.
It was specific to the gandi provider lexicon module, which use rpc protocol by default.
As I'm using the gandi liveDNS API, I should you the rest protocol.
To solve the issue, I use a LEXICON_GANDI_API_PROTOCOL dynamic environment variable set from my ansible playbook to rest, and it works.
add a comment |
I found the issue.
It was specific to the gandi provider lexicon module, which use rpc protocol by default.
As I'm using the gandi liveDNS API, I should you the rest protocol.
To solve the issue, I use a LEXICON_GANDI_API_PROTOCOL dynamic environment variable set from my ansible playbook to rest, and it works.
I found the issue.
It was specific to the gandi provider lexicon module, which use rpc protocol by default.
As I'm using the gandi liveDNS API, I should you the rest protocol.
To solve the issue, I use a LEXICON_GANDI_API_PROTOCOL dynamic environment variable set from my ansible playbook to rest, and it works.
answered Dec 28 '18 at 22:07
nixmindnixmind
338422
338422
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53961288%2flexicion-dns-provider-authentication-failure-for-gandi%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I can see here github.com/AnalogJ/lexicon that GANDI is supported, so I think the error is elsewhere... I'm checking
– nixmind
Dec 28 '18 at 16:21