Re: could not translate host name

From: Steve Atkins <steve(at)blighty(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: could not translate host name
Date: 2017-02-24 21:50:22
Message-ID: B83DE1C8-BA95-40A3-A9D4-7531EBCA8D86@blighty.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> On Feb 24, 2017, at 1:37 PM, Tom Ekberg <tekberg(at)uw(dot)edu> wrote:
>
> I'm running postgres 9.6.2 (also happened on 9.3.14) and have a cron job that runs hourly that runs a program that does mostly postgres SELECTs on a different host. Occasionally I get email (not hourly) from the cron daemon that contains a stack trace that ends with this:
>
> sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not translate host name "db3.labmed.uw.edu" to address: Name or service not known
>
> It has happened about 9 times so far this month. I have one of our network people look into this but there is no real answer. I could use the IP address but I'd rather not. This problem only happens on one host. I moved the data from db2 to db3. I was getting similar emails regarding db2 which runs the older postgres.
>
> Any ideas on how to proceed?

It looks like a DNS issue. That hostname authoritatively doesn't exist, according to any of UW's nameservers.

If it works sometimes then you have some sort of internal name resolution hack, and it's not reliable.

Cheers,
Steve

>
> Tom Ekberg
> Senior Computer Specialist, Lab Medicine
> University of Washington Medical Center
> 1959 NE Pacific St, MS 357110
> Seattle WA 98195
> work: (206) 598-8544
> email: tekberg(at)uw(dot)edu
>
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2017-02-24 22:40:27 Re: could not translate host name
Previous Message Tom Ekberg 2017-02-24 21:37:45 could not translate host name