I wanted to start experimenting with some DevOps tools and wanted to try out some CI (Continuous Integration) frameworks/flows. Primary candidates for testing is Jenkins and TeamCity. I wanted to run a self hosted instance as I will focus on my private projects as a learning experience (also much for of a challenging adventure to set up the infrastructure yourself). Now I don't want to hog all the resources on my web-server, it's a pretty small VPS instance though very reasonable priced (at OVH) and I would like to keep it that way. It's already busy hosting multiple Laravel web projects, mysql, mongodb and a bunch of monitoring. Now I do have a Ubuntu server on my (somewhat messy) desk in my home office with plenty of horsepower. It's perfect for some CI application testing and more.
After adding my conf settings I tried to run ddclient in debug mode, just like the guide recommends.
FATAL:Error loading the Perl module JSON::Any needed for cloudflare update.Someone on stackoverflow had the same issue, and a user had a response that worked for me:
sudo cpan install JSON::Any
I had never heard of cpan... guess it's a package manager for perl.
The second issue:
WARNING: unable to determine IP address
Found someone with the same issue on this blog. I noticed they had a line in their config that I had missed:
myip.dnsomatic.com is a webpage that returns your public ip adress. like "whatsmyipaddress.com" etc only a very simplistic pure text version.
I figued it would be a good idea to make my own little service like this, over ssl/https instead and it seemed to work just fine.
Feel free to use it: https://danielmellum.com/myip, comes with absolutely no warranty :)
Finally I added ddclient as a service:
sudo update-rc.d ddclient enable sudo service ddclient start
[email protected]:~/$ sudo service ddclient status ● ddclient.service - LSB: Update dynamic domain name service entries Loaded: loaded (/etc/init.d/ddclient; bad; vendor preset: enabled) Active: active (running) since Sat 2017-08-05 01:13:43 EDT; 25s ago Docs: man:systemd-sysv-generator(8) Process: 17492 ExecStop=/etc/init.d/ddclient stop (code=exited, status=0/SUCCESS) Process: 17541 ExecStart=/etc/init.d/ddclient start (code=exited, status=0/SUCCESS) Tasks: 1 Memory: 15.4M CPU: 154ms CGroup: /system.slice/ddclient.service └─17550 ddclient - sleeping for 580 second Aug 05 01:13:43 UbuntuServer systemd: Starting LSB: Update dynamic domain name service entries... Aug 05 01:13:43 UbuntuServer systemd: Started LSB: Update dynamic domain name service entries.
Share this by url