Authenticate Cloud Vision Client in Go

Google’s Cloud Platform documentation is top of the line. Even with the documentation though, it took me some time to figure out how to use the Cloud Vision API from a Go application running on a Compute Engine instance. All the right information is there, but it’s scattered. Below I’ve compiled this information into a few steps. Authenticating with the Cloud Vision API involves more setup than the Cloud Datastore, Cloud Pub/Sub and Cloud Storage....

May 28, 2017

Failed to get D-Bus connection

After setting up the systemd service for Caddy, I received the following error when trying to start the service: $ sudo systemctl start caddy.service Job for caddy.service failed. See 'systemctl status caddy.service' and 'journalctl -xn' for details. $ systemctl status caddy.service Failed to get D-Bus connection: No such file or directory The fix was pretty easy. It turns out that dbus was not installed on the system. I installed it and then the service worked perfectly:...

May 28, 2017