Search Postgresql Archives

Re: could not translate host name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/24/2017 01:37 PM, Tom Ekberg 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

As Steve said this is falling over before it ever gets to the Postgres server.


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.

The above has me confused. Earlier you mention db3.labmed.uw.edu which is a host name. You say the problem is only on one host and then mention it also happened on db2. So db2 as in db2.labmed.uw.edu which would imply more then one host is affected or db2 as a second instance of Postgres on db3.labmed.uw.edu?

Also what was the network people's 'no real answer'?

If there was no answer, what is the gist of the network setup between the machine that runs the cron jobs and the machine(s) that run the database servers?


Any ideas on how to proceed?

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@xxxxxx






--
Adrian Klaver
adrian.klaver@xxxxxxxxxxx


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux