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

Can't find /opt/mongodb/atlas-sql-odbc-driver/libmongosqltranslate.so #290

Open
jesumyip opened this issue Dec 18, 2024 · 0 comments
Open

Comments

@jesumyip
Copy link

jesumyip commented Dec 18, 2024

I'm using v1.4.2 of the MongoDB ODBC driver on Ubuntu 22.04.5 LTS in Docker for testing purposes.

After following the instructions at https://www.mongodb.com/docs/atlas/data-federation/query/sql/drivers/odbc/connect/, I run

iusql -v MongoDB_Atlas_SQL

I get a Segmentation fault (core dumped) error. When I look in the error log created, I see this:

2024-12-18 04:47:51 - INFO: SQLAllocHandle:: SQLReturn = SUCCESS
2024-12-18 04:47:51 - INFO: [Env_0x5593379b49f0] SQLSetEnvAttr:: SQLReturn = SUCCESS
2024-12-18 04:47:51 - INFO: [Env_0x5593379b49f0] SQLGetEnvAttr:: SQLReturn = SUCCESS
2024-12-18 04:47:51 - INFO: [Env_0x5593379b49f0] SQLAllocHandle:: SQLReturn = SUCCESS
2024-12-18 04:47:51 - INFO: [Env_0x5593379b49f0][Conn_0x5593379b7360] SQLDriverConnectW:: Connecting using MongoDB Atlas SQL ODBC Driver 01.04.0002 
2024-12-18 04:47:51 - WARN: Failed to load the mongosqltranslate library: /opt/mongodb/atlas-sql-odbc-driver/libmongosqltranslate.so: cannot open shared object file: No such file or directory
2024-12-18 04:47:51 - INFO: creating new Client

How can I get libmongosqltranslate.so? This file doesn't seem to be available in the downloaded ODBC driver from https://translators-connectors-releases.s3.amazonaws.com/mongosql-odbc-driver/ubuntu2204/1.4.2/release/mongoodbc.tar.gz.

The tar.gz file only contains

-rwxr-xr-x 1 1000 1000 351374552 Dec 12 14:38 libatsql.so

in addition to the LICENSE, README.md and a mongo-odbc-driver.augmented.sbom.json file.

Furthermore, why is the driver hard coded to look for that libmongosqltranslate.so in /opt/mongodb/atlas-sql-odbc-driver ? Can I not change this path?

Help?

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