https://meltano.com/ logo
#announcements
Title
# announcements
s

stale-traffic-81973

03/17/2021, 12:21 PM
Hi, I’m trying to use meltano with tap-mongodb and I’m not able to connect. Tried the `meltano ui`but always gives “invalid Extractor Connection - tap-mongodb” and using
meltano elt tap-mongodb target-postgres
gives:
Copy code
ELT could not be completed: Cannot start extractor: Catalog discovery failed: command ['/Users/kimus/Develop/eattasty/meltano/mongo2pg/mongo2pg/.meltano/extractors/tap-mongodb/venv/bin/tap-mongodb', '--config', '/Users/kimus/Develop/eattasty/meltano/mongo2pg/mongo2pg/.meltano/run/elt/mongo2pg/599470ac-e8f0-4274-b7b1-cb97ed7d0aad/tap.config.json', '--discover'] returned 1: CRITICAL Authentication failed.
Not sure what I’m doing wrong. The connection settings works fine in mongo client.
Copy code
> meltano config tap-mongodb
{
  "host": "localhost",
  "port": 27017,
  "user": "test",
  "password": "test,
  "database": "test",
  "ssl": "false",
  "verify_mode": "true",
  "include_schemas_in_destination_stream_name": true
}
1
s

salmon-salesclerk-77709

03/17/2021, 2:15 PM
Have you tried using differing variants of localhost? Maybe
<http://localhost>
or
127.0.0.1
? Looking at https://github.com/singer-io/tap-mongodb/blob/master/tap_mongodb/__init__.py#L361 it doesn’t seem like it’s doing anything to actually validate it’s a URL.
Try running with
meltano --log-level=debug
to see if there’s more detailed info too
s

stale-traffic-81973

03/17/2021, 2:45 PM
@salmon-salesclerk-77709 log level debug doesn’t add much more information. I’ve open the auth.py and found out that it’s trying to connect by
MONGODB-CR
mechanism. Not sure why and how to set this.
guessing thiscould be also a problem:
Copy code
"authSource": config['database'],
s

salmon-salesclerk-77709

03/17/2021, 2:57 PM
Oh interesting. I’m not sure what that does.
s

stale-traffic-81973

03/17/2021, 2:58 PM
authSource is the database to ‘check’ the authentication
I was putting the name of the database that I wanted to extract the data from
although, the auth mechanism is preventing the login also. grr. Only me using this plugin? 🙂
ok, was the database that was wrong… great!
thanks
🙌 1
s

salmon-salesclerk-77709

03/17/2021, 3:13 PM
whew glad you sorted it! Happy to be a rubber duck for folks on here 😄
s

stale-traffic-81973

03/17/2021, 3:14 PM
I’ve passed the auth problem… now I need to pass other steps, but I’m glad this one is behind 😄