Giter Site home page Giter Site logo

saschpe / godaddy-dyndns Goto Github PK

View Code? Open in Web Editor NEW
80.0 15.0 30.0 140 KB

DynDNS-like public IP auto-updater script for GoDaddy

Home Page: https://saschpe.wordpress.com/2013/11/12/godaddy-dyndns-for-the-poor/

License: Apache License 2.0

Shell 24.75% Python 75.25%
python dyndns godaddy godaddy-dns

godaddy-dyndns's Issues

Not working since official API?

Hello there,

after upgrading to Ubuntu 16.04 the package wasn't working anymore. After some hours of digging around i found that godaddy now has an official API that can be used to completely manage accounts. This is likely the cause for it not working.

It may be a good idea to point people to the usage of that API instead or to change the library to use it.

Guide:
http://teanazar.com/2016/05/godaddy-ddns-updater/

Official:
https://developer.godaddy.com/

Specific documentation for the needed API:
https://developer.godaddy.com/doc#!/_v1_domains/list

General error

After I ran the shell script this came up
"godaddy-dyndns.sh: line 11: .venv/bin/activate: No such file or directory
Requirement already up-to-date: pif in /home/minecraft/.local/lib/python2.7/site-packages
Collecting pygodaddy from git+git://github.com/saschpe/pygodaddy.git#egg=pygodaddy
Cloning git://github.com/saschpe/pygodaddy.git to /tmp/pip-build-XfUW_c/pygodaddy
Collecting argparse (from pif)
Using cached argparse-1.4.0-py2.py3-none-any.whl
Requirement already up-to-date: requests>=1.2.3 in /home/minecraft/.local/lib/python2.7/site-packages (from pif)
Requirement already up-to-date: tldextract>=1.5.1 in /home/minecraft/.local/lib/python2.7/site-packages (from pygodaddy)
Requirement already up-to-date: idna in /home/minecraft/.local/lib/python2.7/site-packages (from tldextract>=1.5.1->pygodaddy)
Requirement already up-to-date: setuptools in /home/minecraft/.local/lib/python2.7/site-packages (from tldextract>=1.5.1->pygodaddy)
Requirement already up-to-date: requests-file>=1.4 in /home/minecraft/.local/lib/python2.7/site-packages (from tldextract>=1.5.1->pygodaddy)
Requirement already up-to-date: six in /home/minecraft/.local/lib/python2.7/site-packages (from requests-file>=1.4->tldextract>=1.5.1->pygodaddy)
Installing collected packages: pygodaddy, argparse
Found existing installation: pygodaddy 0.2.2
Uninstalling pygodaddy-0.2.2:
Exception:
Traceback (most recent call last):
File "/home/minecraft/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/minecraft/.local/lib/python2.7/site-packages/pip/commands/install.py", line 317, in run
prefix=options.prefix_path,
File "/home/minecraft/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 736, in install
requirement.uninstall(auto_confirm=True)
File "/home/minecraft/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 742, in uninstall
paths_to_remove.remove(auto_confirm)
File "/home/minecraft/.local/lib/python2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/home/minecraft/.local/lib/python2.7/site-packages/pip/utils/init.py", line 267, in renames
shutil.move(old, new)
File "/usr/lib/python2.7/shutil.py", line 300, in move
rmtree(src)
File "/usr/lib/python2.7/shutil.py", line 252, in rmtree
onerror(os.remove, fullname, sys.exc_info())
File "/usr/lib/python2.7/shutil.py", line 250, in rmtree
os.remove(fullname)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pygodaddy-0.2.2-py2.7.egg-info/installed-files.txt'
Traceback (most recent call last):
File "/home/minecraft/.local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 595, in urlopen
chunked=chunked)
File "/home/minecraft/.local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 352, in _make_request
self._validate_conn(conn)
File "/home/minecraft/.local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 831, in validate_conn
conn.connect()
File "/home/minecraft/.local/lib/python3.5/site-packages/requests/packages/urllib3/connection.py", line 289, in connect
ssl_version=resolved_ssl_version)
File "/home/minecraft/.local/lib/python3.5/site-packages/requests/packages/urllib3/util/ssl
.py", line 308, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.5/ssl.py", line 377, in wrap_socket
_context=self)
File "/usr/lib/python3.5/ssl.py", line 752, in init
self.do_handshake()
File "/usr/lib/python3.5/ssl.py", line 988, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib/python3.5/ssl.py", line 633, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/minecraft/.local/lib/python3.5/site-packages/requests/adapters.py", line 423, in send
timeout=timeout
File "/home/minecraft/.local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 621, in urlopen
raise SSLError(e)
requests.packages.urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "godaddy-dyndns.py", line 19, in
config.get('godaddy', 'password'))
File "/home/minecraft/.local/lib/python3.5/site-packages/pygodaddy/client.py", line 99, in login
r = self.session.get(self.default_url)
File "/home/minecraft/.local/lib/python3.5/site-packages/requests/sessions.py", line 488, in get
return self.request('GET', url, *_kwargs)
File "/home/minecraft/.local/lib/python3.5/site-packages/requests/sessions.py", line 475, in request
resp = self.send(prep, *_send_kwargs)
File "/home/minecraft/.local/lib/python3.5/site-packages/requests/sessions.py", line 596, in send
r = adapter.send(request, **kwargs)
File "/home/minecraft/.local/lib/python3.5/site-packages/requests/adapters.py", line 497, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)
godaddy-dyndns.sh: line 14: deactivate: command not found"

source/pip not found

Hi There,

I'd really appreciate a little help with this, I've copied all the files into a directory called godaddy-dyndns/ and put in my details to the .conf file but when I try to run the script it says "source not found" and "pip not found" - Please see below
Do you know what I'm doing wrong?

Many Thanks in advance!

greg@Cloud10:~/bin/godaddy-dyndns$ ~/bin/godaddy-dyndns/godaddy-dyndns.sh
/home/greg/bin/godaddy-dyndns/godaddy-dyndns.sh: 11: /home/greg/bin/godaddy-dyndns/godaddy-dyndns.sh: source: not found
/home/greg/bin/godaddy-dyndns/godaddy-dyndns.sh: 12: /home/greg/bin/godaddy-dyndns/godaddy-dyndns.sh: pip: not found
Traceback (most recent call last):
File "godaddy-dyndns.py", line 7, in
import pif
ImportError: No module named 'pif'
/home/greg/bin/godaddy-dyndns/godaddy-dyndns.sh: 14: /home/greg/bin/godaddy-dyndns/godaddy-dyndns.sh: deactivate: not found

Idea

Hi!

Thank you for taking your time to make that script. As you've mentioned before, there's been a fork of this repo which uses the new Godaddy API. As a suggestion, why you don't write a link to https://github.com/AndreasLoow/godaddy-dyndns in the README.md?

Client.py bug

In log :

2015-08-22 18:30:28,473 Starting new HTTPS connection (1): dns.godaddy.com
2015-08-22 18:30:28,885 Starting new HTTPS connection (1): idp.godaddy.com
2015-08-22 18:30:29,397 Starting new HTTPS connection (1): sso.godaddy.com
2015-08-22 18:30:29,803 Login routine broken, godaddy may have updated their login mechanism
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/pygodaddy/client.py", line 101, in login
viewstate = re.compile(r'id="__VIEWSTATE" value="([^"]+)"').search(r.text).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
2015-08-22 18:30:29,804 Login failed!

Script error

Hi, I was wondering if this script still works? I'm currently seeing the following error:

2016-04-23 18:54:11,391 Starting new HTTPS connection (1): dns.godaddy.com
2016-04-23 18:54:11,907 Starting new HTTPS connection (1): idp.godaddy.com
2016-04-23 18:54:13,327 Starting new HTTPS connection (1): sso.godaddy.com
2016-04-23 18:54:14,036 Login routine broken, godaddy may have updated their login mechanism
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/pygodaddy/client.py", line 101, in login
viewstate = re.compile(r'id="__VIEWSTATE" value="([^"]+)"').search(r.text).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
2016-04-23 18:54:14,037 Login failed!

Slackware Linux - Dependencies:
configparser (3.5.0b2)
pif (0.7.3)
pygodaddy (0.2.2)

Thanks in advance!

SSL Error

For a few months now the script has been failing due to a SSL certificate request issue. Included is the error log.

Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 578, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 351, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 814, in validate_conn
conn.connect()
File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connection.py", line 289, in connect
ssl_version=resolved_ssl_version)
File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/util/ssl
.py", line 308, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.4/ssl.py", line 365, in wrap_socket
_context=self)
File "/usr/lib/python3.4/ssl.py", line 601, in init
self.do_handshake()
File "/usr/lib/python3.4/ssl.py", line 828, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/requests/adapters.py", line 403, in send
timeout=timeout
File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 604, in urlopen
raise SSLError(e)
requests.packages.urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "godaddy-dyndns.py", line 19, in
config.get('godaddy', 'password'))
File "/usr/local/lib/python3.4/dist-packages/pygodaddy/client.py", line 99, in login
r = self.session.get(self.default_url)
File "/usr/local/lib/python3.4/dist-packages/requests/sessions.py", line 487, in get
return self.request('GET', url, *_kwargs)
File "/usr/local/lib/python3.4/dist-packages/requests/sessions.py", line 475, in request
resp = self.send(prep, *_send_kwargs)
File "/usr/local/lib/python3.4/dist-packages/requests/sessions.py", line 585, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/requests/adapters.py", line 477, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)
./godaddy-dyndns.sh: 14: ./godaddy-dyndns.sh: deactivate: not found

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.