Skip to content

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

@jesumyip

Description

@jesumyip

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions