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

_tds.OperationalError with locally built FreeTDS #70

Closed
kafran opened this issue Apr 27, 2020 · 4 comments
Closed

_tds.OperationalError with locally built FreeTDS #70

kafran opened this issue Apr 27, 2020 · 4 comments

Comments

@kafran
Copy link

kafran commented Apr 27, 2020

@joshuahlang can you help me?

I'm trying to locally build FreeTDS on a Docker container but I'm getting _tds.OperationalError: Adaptive Server connection failed when trying with ctds. tsql give me this:

root@a5a8e27c1c10:/# tsql -C
Compile-time settings (established with the "configure" script)
                            Version: freetds v1.1.33
             freetds.conf directory: /usr/etc
     MS db-lib source compatibility: no
        Sybase binary compatibility: no
                      Thread safety: yes
                      iconv library: no
                        TDS version: auto
                              iODBC: no
                           unixodbc: no
              SSPI "trusted" logins: no
                           Kerberos: no
                            OpenSSL: yes
                             GnuTLS: no
                               MARS: yes

I thought it could be something with iconv, so I disabled it.

root@a5a8e27c1c10:/# tsql -H 10.209.42.30 -p 1433 -U "user" -v
Password: 
locale is "C.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
Error 20017 (severity 9):
	Unexpected EOF from the server
Error 20002 (severity 9):
	Adaptive Server connection failed
Error 20002 (severity 9):
	Adaptive Server connection failed
There was a problem connecting to the server

Do you know what it could be? I think it is missing some library. If I install the system's package freetds-dev it works, but since its Debian its an old one.

@kafran
Copy link
Author

kafran commented Apr 27, 2020

Never mind, I found the error. I should have specified the protocol version 7.0. I don't know why with system's FreeTDS I don't need to do this.

@kafran kafran closed this as completed Apr 27, 2020
@kafran
Copy link
Author

kafran commented Apr 28, 2020

I really don't know what is going on. With Conda's FreeTDS it works on 7.4; But if I compile FreeTDS it only works with TDS 7.0.

@kafran kafran reopened this Apr 28, 2020
@kafran
Copy link
Author

kafran commented Apr 28, 2020

Still trying to comprehend the problem. This workaround works for me: FreeTDS/freetds#299

@kafran
Copy link
Author

kafran commented Apr 28, 2020

This seem to be related to openssl version FreeTDS/freetds#336. I'm compiling with GnuTLS as a workaround.

@kafran kafran closed this as completed May 1, 2020
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

1 participant