v3.12.9 upgrade fails with update error 'Can't connect...'

Version
v3.12.9
Website URL
https://scrotlabs.org
PHP version
7.0.33
Database driver
MariaDB
Database version
10.1.37-MariaDB
Web browser
google chrome