Hi all, I am failing to invoke taps inside the me...
# troubleshooting
e
Hi all, I am failing to invoke taps inside the meltano docker image added from
meltano add
.
Copy code
1meltano invoke tap-postgres
22022-06-01T15:35:23.845030Z [info     ] Environment 'dev' is active
3Catalog discovery failed: command ['/project/.meltano/extractors/tap-postgres/venv/bin/tap-postgres', '--config', '/project/.meltano/run/tap-postgres/tap.4f77b592-481e-4ef4-850c-a8e224d95e31.config.json', '--discover'] returned 1
4meltano invoke tap-postgres
52022-06-01T15:35:41.556768Z [info     ] Environment 'dev' is active
6Catalog discovery failed: command ['/project/.meltano/extractors/tap-postgres/venv/bin/tap-postgres', '--config', '/project/.meltano/run/tap-postgres/tap.f65c6b61-11df-4637-8cf0-4239a9abce4a.config.json', '--discover'] returned 1
However, when using the
meltano/meltano
docker image with my current directory mounted works fine.
Copy code
1 docker run -v $(pwd):/project -w /project meltano/meltano invoke tap-postgres
a
Likely you are missing env vars. Maybe the difference is in the
.env
and whether or not that is in the image vs mounted
e
I am building the image and then including the .env file so not sure:
Copy code
docker build --tag my-meltano .
docker run --env-file .env my-meltano invoke tap-postgres
This fails with catalog discovery failed.
a
Go inside the container. Try
docker run --env-file .env --rm -it --entrypoint /bin/bash my-meltano
and inspect your env vars with
printenv
+ inspect the output of
meltano config tap-postgres
e
I figured out the problem. In my
.env
file I had to remove the quotes around my variables. Thanks for your help 🙂