One more tip in case it helps, if you're running into errors when using a Debian Stretch container or using the grid, long-running processes might just need a restart to pick up the openssl/gnutls bug fixes that were upgraded earlier this month. See https://phabricator.wikimedia.org/T292263 for an example.
-- Legoktm