nigel_ainscoe
04/26/2022, 7:39 PMversion: 1
default_environment: dev
project_id: e5ad94c4-fc61-47ae-96b0-9ce655d945df
plugins:
extractors:
- name: tap-mongodb
variant: singer-io
pip_url: tap-mongodb
config:
host: localhost/admin
port: 27017
user: "data-reader"
database: myDatabase
password: "abc123"
environments:
- name: dev
When I try and run any Meltano commands against the tap, I just get time out errors.
E.g. If I run meltano invoke tap-mongodb --discover
I get:
raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: localhost/admin:27017: [Errno 11001] getaddrinfo failed
Also if I run meltano ui
I get the following error and the terminal hangs:
File "C:\Users\nigel\PycharmProjects\MeltanoPOC\venv\lib\site-packages\gunicorn\util.py", line 8, in <module>
import fcntl
I've spent half a day on this now and am beginning to wonder whether I have fundamentally misunderstood something or if it just doesn't work?ptd
04/26/2022, 7:50 PMlocalhost/admin:27017
part looks suspicious to me. Are you sure the host of localhost/admin
is correct? Having a forward slash inside a hostname doesn’t seem correct to me.
Are you able to connect to mongodb via a different method? If so, what does your config look like for that?BuzzCutNorman
04/26/2022, 8:14 PMmeltano ui
currently does not work on Windows. Here is a link to the issue about it https://gitlab.com/meltano/meltano/-/issues/3383nigel_ainscoe
04/26/2022, 8:14 PMnigel_ainscoe
04/26/2022, 8:17 PMCRITICAL Authentication failed.
error.visch
04/26/2022, 8:20 PMCRITICAL Authentication failed.
sounds better than pymongo.errors.ServerSelectionTimeoutError:
visch
04/26/2022, 8:20 PMnigel_ainscoe
04/26/2022, 8:22 PMvisch
04/26/2022, 8:23 PMnigel_ainscoe
04/26/2022, 8:23 PMnigel_ainscoe
04/26/2022, 8:24 PMnigel_ainscoe
04/26/2022, 8:31 PMvisch
04/26/2022, 8:32 PMnigel_ainscoe
04/26/2022, 8:33 PMmongo --host localhost -u data-reader -p abc123
from the command line connects fine.visch
04/26/2022, 8:35 PMnigel_ainscoe
04/26/2022, 8:42 PMmongo --host localhost --port 27017 --authenticationDatabase admin --username data-reader --password abc123
visch
04/26/2022, 8:43 PMdatabase: myDatabase
Doesn't match admin? 🤷nigel_ainscoe
04/26/2022, 8:46 PMnigel_ainscoe
04/26/2022, 8:49 PM{
"streams": [
{
"table_name": "myCollection",
"stream": "myCollection",
"metadata": [
{
"breadcrumb": [],
"metadata": {
"table-key-properties": [
"_id"
],
"database-name": "myDatabase",
"row-count": 1,
"is-view": false,
"valid-replication-keys": [
"_id"
]
}
}
],
Loads more good database stuff.....
"schema": {
"type": "object"
}
}
]
}
Thanks for the help 🙂nigel_ainscoe
04/26/2022, 8:52 PMName: database
• Environment variable: TAP_MONGODB_DATABASE
This is the database used for authentication, not the database used for extraction.
visch
04/26/2022, 8:53 PM