On 02/24/2017 01:20 PM, Tom Ekberg wrote:
I'm running sqlalchemy and have a cron job that runs hourly.
Occasionally I get email 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 and was getting similar emails on
db2.

Any ideas on how to proceed?

Well this looks like a DNS problem. You can try asking up on psycopg2 list: http://initd.org/psycopg/development/





Tom

--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and
Verifiable Example. See http://stackoverflow.com/help/mcve for a full
description.
---
You received this message because you are subscribed to the Google
Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to sqlalchemy+unsubscr...@googlegroups.com
<mailto:sqlalchemy+unsubscr...@googlegroups.com>.
To post to this group, send email to sqlalchemy@googlegroups.com
<mailto:sqlalchemy@googlegroups.com>.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

--
SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to