curl: (58) unable to set private key file: ‘server.key’ type PEM
This took me far too long to work out. I kept getting the following error whilst trying to sign a cURL request: curl: (58) unable to set private key file: 'server.key' type PEM Google kept sending me...
View Articlecurl: (35) error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca
Another fun SSL issue today. We managed to get request signing working with a self signed certificate (see this post) but once we bought a real certificate from Gandi things stopped working. Gandi...
View ArticleThe class ‘APCIterator’ could not be found
This one catches me out every time, so documenting here for posterity. Firstly, make sure apc or apcu (PHP 5.5+) is installed by running php -m | grep apc. If you do have it installed but you’re still...
View ArticleBuild CentOS 5 generic RPM on CentOS 6
I’ve been trying to build a generic RPM (PHP code only, nothing linked) that installs on CentOS 5 and CentOS 6. We used to do this on CentOS 5, but when we moved our build box to CentOS6 we started to...
View ArticlePHPStorm (IntelliJ) and Xmonad
Another quick one as I’m sure I’ll need to do this on another machine. When launching PHPStorm, I was presented with a grey box that did nothing. I realised that it was probably related to the fact...
View Articlegpg: can’t connect to the agent: IPC connect call failed
This was a fun one to solve. I keep my GPG keys on a vFat USB drive as I don’t want to keep a copy on every machine that I use. Previously, I used Ubuntu and it worked fine as GPG used gnome-keyring to...
View ArticleCreating a new user in MariaDB
I’ve never used MariaDB before, but today I needed a MySQL database for the first time since installing Arch Linux and figured that I’d stick with the system defaults. The installation went fine (sudo...
View Articlegpg: connecting dirmngr failed: IPC connect call failed
When trying to run --recv-key I was running into issues where dirmngr didn’t exist. As it turns out, it’s the same issue I was having where gpg-agent couldn’t start/ Given the following error message:...
View ArticleUse Openstack img in Virtualbox
I needed to add some packages to our base Openstack image install recently. The easiest way to do this is to export the img file from Openstack and run it in Virtualbox. Everything I could find told me...
View ArticleVagrant: No usable default provider could be found for your system
I tried to run Vagrant this morning and was greeted by the following error: No usable default provider could be found for your system. Vagrant relies on interactions with 3rd party systems, known as...
View ArticleYouCompleteMe on Arch Linux
After upgrading YouCompleteMe recently, it stopped working. My first thought was that the libraries needed rebuilding: python install.py --gocode-completer --clang-completer The rebuild finished...
View ArticleGoCD: Modification check failed for material
After adding submodules to a project, GoCD started complaining that it could not check for modifications whenever we tried to schedule a build for that pipeline. Checking go-server.log on the server,...
View ArticleOSX Wifi Can’t Connect
TL;DR: If you can’t connect to wifi make sure you don’t have too many USB devices drawing power. This was a really strange one. My Mac Mini couldn’t connect to wifi and there seemed to be no reason...
View ArticleUsing vagrant-hostmanager with centos/7
I’ve been trying to use vagrant-hostmanager on a project that requires the machines to have public IP addresses. To make this work with vagrant-hostmanager I needed to write a custom resolver and add...
View ArticleError while loading shared libraries: libbz2.so.1.0: cannot open shared...
Whilst trying to build using electron-builder on CentOS 7, I ran into the following error message: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file To fix it, you’ll...
View Article