Sabrina Jordan
07/09/2025, 8:13 PMEdgar Ramírez (Arch.dev)
07/09/2025, 8:33 PMsqlalchemy_url_query:
driver: pyodbc
TrustServerCertificate: Yes
?Sabrina Jordan
07/09/2025, 8:41 PMEdgar Ramírez (Arch.dev)
07/09/2025, 8:45 PMBuzzCutNorman
07/09/2025, 8:52 PMSabrina Jordan
07/09/2025, 8:57 PMSabrina Jordan
07/09/2025, 8:57 PMSabrina Jordan
07/09/2025, 8:58 PMBuzzCutNorman
07/09/2025, 9:00 PMBuzzCutNorman
07/09/2025, 9:26 PMcommand:docker run <docker image name> cat /etc/odbcinst.ini
cat: /etc/odbcinst.ini: No such file or directoryThey found a work around with the following.
Resolved it -
• Installed MS repository
• Installed MS drivers
• Installed Sql server Tools
• openssl configurations set
Now able to connect to remote sql server from VM -> docker -> sql serverI am still looking so see if I can find more.
BuzzCutNorman
07/09/2025, 9:48 PMSabrina Jordan
07/09/2025, 11:46 PMSac
07/10/2025, 7:19 AMopenjdk-17-jre-headless
(required by the driver I was using)
• libpq-dev
• gcc
• python3-dev
• unixodbc-dev
The last one was necessary to get odbc.ini
and odbcinst.ini
under /etc
. I saw that your link already includes this step, so you probably have it covered.
After installing the packages, I needed to configure the two .ini
files, as they are empty by default. My approach was to keep preconfigured versions of these files in the repo and use COPY
to overwrite the ones in the image:
• odbcinst.ini
contains the driver configuration and its location.
• odbc.ini
stores the data source configuration (hostname, port, database, etc.).
• Both were required in my case.
It might also be worth checking if there are environment variables that control the paths to these .ini
files. I’m not sure how it works with the Microsoft driver, but in my case, ODBCINI
and ODBCINST
were set to point to the respective file paths. I can imagine that this could be a potential reason why the Python script works in your case, but the Meltano workflow fails. I'm not sure, but maybe you need some environment variables in your .env
file?
Here’s what my odbc.ini
looks like:
[ODBC Data Sources]
my_data_src=SQL-92 ODBC Driver for OpenEdge
[my_data_src]
Driver=/usr/dlc/odbc/lib/pgoe27.so
Database=my_db
HostName=my_host
PortNumber=my_port
And `odbcinst.ini`:
[ODBC Drivers]
SQL-92 ODBC Driver for OpenEdge=Installed
[SQL-92 ODBC Driver for OpenEdge]
Driver=/usr/dlc/odbc/lib/pgoe27.so
Hope this helps in some way, let me know!