Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

08S01 Communication link failure #87

Open
mdv27 opened this issue Nov 28, 2024 · 1 comment
Open

08S01 Communication link failure #87

mdv27 opened this issue Nov 28, 2024 · 1 comment

Comments

@mdv27
Copy link

mdv27 commented Nov 28, 2024

Getting below exception on django model calls in deployed environment:

pyodbc.OperationalError: ('08S01', '[08S01] [Microsoft][ODBC Driver 18 for SQL Server]Communication link failure (0) (SQLExecDirectW)')

How to fix this? My application is containerized app running on AKS pod, having mssql as database.

@jdelic
Copy link
Owner

jdelic commented Nov 29, 2024

@mdv27
You don't exactly give a lot of information. I assume that your project does use django-dbconn-retry as you're asking here and that you use it to solve a similar problem for which it was built. I don't have a lot of experience with SQL Server, but a quick look at the code tells me that pyodbc.OperationalError is not in _operror_types. I suggest you add it to database_modules and test if that helps.

If that helps, I'd welcome a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants