CentOS remote_file timeout - Postgresql


#1

Hi all,

Trying to deploy the postgresql cookbook on a local virtual machine through virtual box, running CentOS with bridged network adapter.

It tries to download the file 'https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG', however it get's a timeout. From the VM I'm able to resolve the DNS name and ping download.postgresql.org.

X.X.X.X Starting Chef Client, version 14.9.13

X.X.X.X resolving cookbooks for run list: ["postgresql"]
X.X.X.X Synchronizing Cookbooks:
X.X.X.X   - postgresql (7.1.3)
X.X.X.X Installing Cookbook Gems:
X.X.X.X Compiling Cookbooks...
X.X.X.X Converging 4 resources
X.X.X.X Recipe: postgresql::default
X.X.X.X   * postgresql_repository[install] action add

X.X.X.X     * remote_file[/etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-9.6] action create[2019-01-28T11:48:57+01:00] ERROR: Timeout connecting to https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG, retry 1/5

X.X.X.X [2019-01-28T11:54:02+01:00] ERROR: Timeout connecting to https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG, retry 2/5

X.X.X.X [2019-01-28T11:59:07+01:00] ERROR: Timeout connecting to https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG, retry 3/5

X.X.X.X [2019-01-28T12:04:12+01:00] ERROR: Timeout connecting to https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG, retry 4/5

X.X.X.X [2019-01-28T12:09:17+01:00] ERROR: Timeout connecting to https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG, retry 5/5

X.X.X.X [2019-01-28T12:14:22+01:00] WARN: remote_file[/etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-9.6] cannot be downloaded from https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG: Timeout connecting to https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG, giving up

Any ideas what may cause this? I'm not sure if this is because of some VM-networking misconfig, or if it is related to Chef.

Thanks!


#2

It could be your network. Have you tried the default NAT setup? What does your kitchen.yml look like?