Any help would be greatly appreciated. I have this...
# troubleshooting
f
Any help would be greatly appreciated. I have this configuration in the screenshot and
meltano config tap-mysql --discover > database-name-catalog.json
populates the JSON file without issues but when I run
meltano invoke tap-mysql
or
meltano config tap-mysql test
I get
Copy code
Plugin configuration is invalid
No RECORD message received
And when I do
meltano select tap-mysql --list --all
everything is excluded
r
Maybe your
select
criteria is incorrect?
f
If it is, I haven't been able to figure out how. It is the the tap_stream_id from the catalog and an * Running
meltano select tap-mysql --list -all
shows the same table name with the database name as a prefix and every column as excluded. I even tried the table_name from the catalog.json instead of the tap_stream_id and still nothing. No matter what I have tried, everything is excluded and nothing works.
I even tried
*.*
and everything still shows excluded
a
Try the select without the quotes?
f
😞 Tried that
r
It might be that you're trying to use
select
while overriding the
catalog
file - I assume nothing is selected in
database-name-catalog.json
? Try removing that and it should start respecting your
select
criteria.
1
🤯 1
f
So if selected by default is false, the select in the
meltano.yml
is ignored. It now shows as selected. I don't have time test thoroughly but I suspect you have saved the day.
💪 1
😞
meltano config tap-mysql test
still says
No RECORD received
r
I think it's more like if provide your own catalog file, you are taking control of catalog generation away from Meltano, and so you don't get the benefits of having the
schema
,
select
and
metadata
rules applied from your
meltano.yml
. https://docs.meltano.com/concepts/plugins/#catalog-extra
What does your
meltano.yml
look like now? Do you still get no records if you omit all
select
rules?
f
If I remove the catalog, I get `Stream ``summary`` was not found in the catalog`.
summary
being the one table I'm trying to transport
I can remove the select and have the same results now that I have set
selected-by-default
to
true
but removing the catalog.json doesn't work
If I set the log level to debug... I get these errors 😳
r
Do you see anything of note running
meltano invoke tap-mysql
now?
config test
tries to be smart when forming the
Plugin configuration is invalid
message, but it's sort of dependent on the tap. Generally, I would debug deeper issues like this with
invoke
and inspect the output.
f
invoke
doesn't show anything of note as far as I can tell
r
Do you see the
summary
stream and properties in
meltano select tap-mysql --list --all
?
f
If I include the catalog and the select properties, yes. summary shows as selected
The table appeared there anyway, but it listed as excluded until I made the change you recommended in the catalog.json
r
Sure, and if you remove your
catalog
override and keep just the
select
? Do you get the same behaviour for
select
and
invoke
commands?
f
HOLY SMOKES... invoke shows rows and rows of data
test fails, invoke seems to work
r
So, to confirm - you are no longer overriding
catalog
and still get the
Plugin configuration is invalid
error from
config test
, but you are seeing
RECORD
messages out from
invoke
now?
f
yes
r
Alright, sounds like
config test
isn't respecting the
select
criteria for some reason. Do you have a sec to open an issue with some info? https://github.com/meltano/meltano/issues/new?assignees=meltano%2Fengineering&labels=kind%2FBug%2Cvaluestream%2FMeltano&projects=&template=bug.yml&title=bug%3A+%3Ctitle%3E Otherwise, I can try to piece one together from this thread later (I don't have a reproducible example though).
f
I don't right this second, but would be happy to in a few hours
r
Yeah, no rush at all. Thanks 😄
f
thank you; you are my hero
😂 1
r
Haha, you're welcome! Glad we got there in the end.
config test
seems to be respecting
select
for tap-auth0... 🤔 (configuring
select
through env var for clarity)
👍 1
f
I wonder if it is unrelated to
select
and is something between
test
and
tap-mysql
then. Like an expected configuration that isn't clear or that I didn't include
r
I'm pretty sure
config test
and
invoke
run through the same code path internally to invoke the plugin... Are you running on Windows?
f
Mac but running in the meltano docker container
Created issue from what I thought was relevant after all of the troubleshooting you helped with https://github.com/meltano/meltano/issues/8521
🙌 1
👀 1
r
Cheers, I'll follow along 😁
f
thanks again for the help
np 1