daniel_antwi
01/15/2023, 2:18 AMversion: 1
default_environment: dev
project_id: 617bd1be-526a-4e47-82c5-c8fcf5e30d55
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-postgres
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-postgres.git>
config:
sqlalchemy_url: <postgresql://postgres>:******@localhost/data
select:
- dbo-device.*
- list.*
- name: tap-mssql
variant: airbyte
pip_url: git+<https://github.com/MeltanoLabs/tap-airbyte-wrapper.git>
config:
docker_mounts: [{"source": "/home/dwhadmin/meltano-projects/dockermount/","target": "/local/", "type": "bind"}]
airbyte_spec:
image: ' airbyte/source-mssql'
tag: latest
airbyte_config:
host: localhost
port: 1433
database: data
username: user
loaders:
- name: target-jsonl
variant: andyh1203
pip_url: target-jsonl
I get the following error when I run meltano config tap-mssql test
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.
Plugin configuration is invalid
Catalog discovery failed: command ['/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/bin/tap-airbyte', '--config', '/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/run/tap-mssql/tap.ef7efdd1-e7aa-4105-a7f4-35972b56de11.config.json', '--discover'] returned 1 with stderr:
Traceback (most recent call last):
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/bin/tap-airbyte", line 8, in <module>
sys.exit(TapAirbyte.cli())
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/lib/python3.8/site-packages/singer_sdk/helpers/_classproperty.py", line 12, in __get__
return super().__get__(objtype)
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/lib/python3.8/site-packages/tap_airbyte/tap.py", line 218, in cli
config: tuple[str, ...] = (),
TypeError: 'type' object is not subscriptable
alexander_butler
01/15/2023, 9:18 AMvisch
01/15/2023, 4:31 PMalexander_butler
01/15/2023, 6:29 PMvisch
01/15/2023, 6:30 PMalexander_butler
01/15/2023, 6:31 PMvisch
01/15/2023, 6:31 PMalexander_butler
01/15/2023, 6:31 PMalexander_butler
01/15/2023, 6:35 PMmeltano install tap-mssql --clean
and try againdaniel_antwi
01/15/2023, 6:38 PMdaniel_antwi
01/15/2023, 6:49 PMPlugin configuration is invalid
Catalog discovery failed: command ['/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/bin/tap-airbyte', '--config', '/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/run/tap-mssql/tap.1713d164-2e2e-444b-84bf-ea23f451865e.config.json', '--discover'] returned 1 with stderr:
Traceback (most recent call last):
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/bin/tap-airbyte", line 8, in <module>
sys.exit(TapAirbyte.cli())
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/lib/python3.8/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/lib/python3.8/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/lib/python3.8/site-packages/tap_airbyte/tap.py", line 269, in cli
tap: TapAirbyte = cls( # type: ignore
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/lib/python3.8/site-packages/tap_airbyte/tap.py", line 311, in __init__
super().__init__(*args, **kwargs)
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/lib/python3.8/site-packages/singer_sdk/tap_base.py", line 97, in __init__
self.mapper.register_raw_streams_from_catalog(self.catalog)
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/lib/python3.8/site-packages/singer_sdk/tap_base.py", line 159, in catalog
self._catalog = self.input_catalog or self._singer_catalog
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/lib/python3.8/site-packages/singer_sdk/tap_base.py", line 251, in _singer_catalog
for stream in self.streams.values()
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/lib/python3.8/site-packages/singer_sdk/tap_base.py", line 122, in streams
for stream in self.load_streams():
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/lib/python3.8/site-packages/singer_sdk/tap_base.py", line 283, in load_streams
for stream in self.discover_streams():
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/lib/python3.8/site-packages/tap_airbyte/tap.py", line 681, in discover_streams
for stream in self.airbyte_catalog["streams"]:
File "/home/dwhadmin/meltano-projects/my-pg-proj/.meltano/extractors/tap-mssql/venv/lib/python3.8/site-packages/tap_airbyte/tap.py", line 574, in airbyte_catalog
raise AirbyteException(
tap_airbyte.tap.AirbyteException: Discover failed with return code 125: docker: invalid reference format.
See 'docker run --help'.
alexander_butler
01/15/2023, 7:01 PM[{"source": "/home/dwhadmin/meltano-projects/dockermount/","target": "/local/", "type": "bind"}]
That would translate to this:
--mount source=/home/dwhadmin/meltano-projects/dockermount/,target=/local/,type=bind
which looks valid.
Does this work?
docker run --mount source=/home/dwhadmin/meltano-projects/dockermount/,target=/local/,type=bind hello-world
daniel_antwi
01/15/2023, 7:02 PM/my-pg-proj$ docker run --mount source=/home/dwhadmin/meltano-projects/dockermount/,target=/local/,type=bind hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
<https://hub.docker.com/>
For more examples and ideas, visit:
<https://docs.docker.com/get-started/>
alexander_butler
01/15/2023, 7:04 PMimage: ' airbyte/source-mssql'
your image in airbyte spec has a space in it?alexander_butler
01/15/2023, 7:05 PMalexander_butler
01/15/2023, 7:06 PMstrip()
on it as a conveniencedaniel_antwi
01/15/2023, 7:06 PMNeed help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.
'ascii' codec can't decode byte 0xe2 in position 16438: ordinal not in range(128)
alexander_butler
01/15/2023, 7:07 PMdaniel_antwi
01/15/2023, 7:08 PMalexander_butler
01/15/2023, 7:17 PMmeltano install tap-mssql --clean
I think the bytes splitlines method in the stdlib was using ascii instead of utf8alexander_butler
01/15/2023, 7:18 PMalexander_butler
01/15/2023, 7:21 PMhost: localhost
inside of a docker container with no forwarded ports is unlikely to work to my knowledge
So in the same vein as docker_mounts
, we should have docker_ports
available to our users. thinkspinalexander_butler
01/15/2023, 7:21 PMalexander_butler
01/15/2023, 7:22 PMdocker_ports
feature rq if you hold for another minutedaniel_antwi
01/15/2023, 7:22 PMalexander_butler
01/15/2023, 7:24 PMdaniel_antwi
01/15/2023, 7:25 PMalexander_butler
01/15/2023, 7:25 PMmeltano --log-level=debug invoke tap-mssql --discover
any more elucidating?
(dont copy paste logs because this command will dump env vars too)daniel_antwi
01/15/2023, 7:30 PMdaniel_antwi
01/15/2023, 7:31 PMalexander_butler
01/15/2023, 7:34 PMmeltano config
subcommand side 🤔
Either way let me push up the port mapping update for you as I am still not 100% sure docker will be able to talk to your mssql instance. Let me know if you discover otherwise 🙂alexander_butler
01/15/2023, 7:35 PMmeltano invoke tap-mssql --test
So should be a valid indicator of config workingdaniel_antwi
01/15/2023, 7:37 PMalexander_butler
01/15/2023, 7:38 PM{
"type": "CONNECTION_STATUS",
"connectionStatus": {
"status": "SUCCEEDED"
}
}
Nice. I am still tempted to push to port mapping update as I foresee it being a need but do let us know if you get some data to replicate to jsonl as you have italexander_butler
01/15/2023, 7:38 PMdaniel_antwi
01/15/2023, 7:39 PM2023-01-15T19:36:18.630195Z [info ] Environment 'dev' is active
2023-01-15 19:36:22,485 {'level': 'INFO', 'message': 'starting source: class io.airbyte.integrations.source.mssql.MssqlSource'}
2023-01-15 19:36:22,485 {'level': 'INFO', 'message': 'integration args: {check=null, config=/tmp/config.json}'}
2023-01-15 19:36:22,485 {'level': 'INFO', 'message': 'Running integration: io.airbyte.integrations.base.ssh.SshWrappedSource'}
2023-01-15 19:36:22,485 {'level': 'INFO', 'message': 'Command: CHECK'}
2023-01-15 19:36:22,485 {'level': 'INFO', 'message': "Integration config: IntegrationConfig{command=CHECK, configPath='/tmp/config.json', catalogPath='null', statePath='null'}"}
2023-01-15 19:36:22,485 {'level': 'WARN', 'message': 'Unknown keyword order - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword'}
2023-01-15 19:36:22,485 {'level': 'WARN', 'message': 'Unknown keyword airbyte_secret - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword'}
2023-01-15 19:36:22,485 {'level': 'INFO', 'message': 'Starting connection with method: NO_TUNNEL'}
2023-01-15 19:36:22,485 {'level': 'INFO', 'message': 'HikariPool-1 - Starting...'}
2023-01-15 19:36:22,485 {'level': 'INFO', 'message': 'HikariPool-1 - Start completed.'}
2023-01-15 19:36:22,485 {'level': 'INFO', 'message': 'Attempting to get metadata from the database to see if we can connect.'}
2023-01-15 19:36:22,485 {'level': 'INFO', 'message': 'HikariPool-1 - Shutdown initiated...'}
2023-01-15 19:36:22,485 {'level': 'INFO', 'message': 'HikariPool-1 - Shutdown completed.'}
2023-01-15 19:36:22,485 Configuration has been verified via the Airbyte check command.
daniel_antwi
01/15/2023, 7:40 PMdaniel_antwi
01/15/2023, 7:41 PMalexander_butler
01/15/2023, 7:48 PMalexander_butler
01/15/2023, 7:49 PMalexander_butler
01/15/2023, 7:51 PMtag: 0.4.17
alexander_butler
01/15/2023, 7:54 PMairbyte_config
explicitly:
"replication_method": {
"method": "STANDARD"
}
Either, ordaniel_antwi
01/15/2023, 7:59 PMNeed help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.
Plugin configuration is invalid
... 13 more
And this is for meltano invoke tap-mssql test
2023-01-15 19:58:32,055 Could not parse message: 2023-01-15 19:58:31 INFO i.a.i.s.m.MssqlSource(main):464 - starting source: class io.airbyte.integrations.source.mssql.MssqlSource
2023-01-15 19:58:32,055 Could not parse message: 2023-01-15 19:58:31 INFO i.a.i.b.IntegrationCliParser(parseOptions):118 - integration args: {check=null, config=/tmp/config.json}
2023-01-15 19:58:32,055 Could not parse message: 2023-01-15 19:58:31 INFO i.a.i.b.IntegrationRunner(runInternal):104 - Running integration: io.airbyte.integrations.base.ssh.SshWrappedSource
2023-01-15 19:58:32,055 Could not parse message: 2023-01-15 19:58:31 INFO i.a.i.b.IntegrationRunner(runInternal):105 - Command: CHECK
2023-01-15 19:58:32,055 Could not parse message: 2023-01-15 19:58:31 INFO i.a.i.b.IntegrationRunner(runInternal):106 - Integration config: IntegrationConfig{command=CHECK, configPath='/tmp/config.json', catalogPath='null', statePath='null'}
2023-01-15 19:58:32,055 Could not parse message: 2023-01-15 19:58:31 WARN c.n.s.JsonMetaSchema(newValidator):338 - Unknown keyword order - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword
2023-01-15 19:58:32,056 Could not parse message: 2023-01-15 19:58:31 WARN c.n.s.JsonMetaSchema(newValidator):338 - Unknown keyword examples - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword
2023-01-15 19:58:32,056 Could not parse message: 2023-01-15 19:58:31 WARN c.n.s.JsonMetaSchema(newValidator):338 - Unknown keyword airbyte_secret - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword
2023-01-15 19:58:32,056 Could not parse message: 2023-01-15 19:58:31 WARN c.n.s.JsonMetaSchema(newValidator):338 - Unknown keyword multiline - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword
2023-01-15 19:58:32,056 Could not parse message: 2023-01-15 19:58:31 INFO i.a.i.b.s.SshTunnel(getInstance):172 - Starting connection with method: NO_TUNNEL
2023-01-15 19:58:32,056 Could not parse message: 2023-01-15 19:58:31 INFO c.z.h.HikariDataSource(<init>):80 - HikariPool-1 - Starting...
2023-01-15 19:58:32,056 Could not parse message: 2023-01-15 19:58:31 INFO c.z.h.HikariDataSource(<init>):82 - HikariPool-1 - Start completed.
2023-01-15 19:58:32,056 Could not parse message: 2023-01-15 19:58:31 INFO i.a.i.s.j.AbstractJdbcSource(lambda$getCheckOperations$1):140 - Attempting to get metadata from the database to see if we can connect.
2023-01-15 19:58:32,056 Could not parse message: 2023-01-15 19:58:31 INFO c.z.h.HikariDataSource(close):350 - HikariPool-1 - Shutdown initiated...
2023-01-15 19:58:32,056 Could not parse message: 2023-01-15 19:58:31 INFO c.z.h.HikariDataSource(close):352 - HikariPool-1 - Shutdown completed.
alexander_butler
01/15/2023, 8:02 PM"replication_method": {
"method": "STANDARD"
}
to your airbyte configalexander_butler
01/15/2023, 8:05 PMlatest
as you had itdaniel_antwi
01/15/2023, 8:08 PMairbyte_config:
host: localhost
port: 1433
database: database
username: user
replication_method:
method: "STANDARD"
alexander_butler
01/15/2023, 8:09 PMdaniel_antwi
01/15/2023, 8:09 PM2023-01-15T20:09:10.138798Z [info ] Environment 'dev' is active
2023-01-15 20:09:14,025 {'level': 'INFO', 'message': 'starting source: class io.airbyte.integrations.source.mssql.MssqlSource'}
2023-01-15 20:09:14,025 {'level': 'INFO', 'message': 'integration args: {check=null, config=/tmp/config.json}'}
2023-01-15 20:09:14,025 {'level': 'INFO', 'message': 'Running integration: io.airbyte.integrations.base.ssh.SshWrappedSource'}
2023-01-15 20:09:14,025 {'level': 'INFO', 'message': 'Command: CHECK'}
2023-01-15 20:09:14,025 {'level': 'INFO', 'message': "Integration config: IntegrationConfig{command=CHECK, configPath='/tmp/config.json', catalogPath='null', statePath='null'}"}
2023-01-15 20:09:14,025 {'level': 'WARN', 'message': 'Unknown keyword order - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword'}
2023-01-15 20:09:14,025 {'level': 'WARN', 'message': 'Unknown keyword airbyte_secret - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword'}
2023-01-15 20:09:14,025 {'level': 'INFO', 'message': 'Starting connection with method: NO_TUNNEL'}
2023-01-15 20:09:14,025 {'level': 'INFO', 'message': 'HikariPool-1 - Starting...'}
2023-01-15 20:09:14,026 {'level': 'INFO', 'message': 'HikariPool-1 - Start completed.'}
2023-01-15 20:09:14,026 {'level': 'INFO', 'message': 'Attempting to get metadata from the database to see if we can connect.'}
2023-01-15 20:09:14,026 {'level': 'INFO', 'message': 'HikariPool-1 - Shutdown initiated...'}
2023-01-15 20:09:14,026 {'level': 'INFO', 'message': 'HikariPool-1 - Shutdown completed.'}
2023-01-15 20:09:14,026 Configuration has been verified via the Airbyte check command.
alexander_butler
01/15/2023, 8:15 PMalexander_butler
01/15/2023, 8:15 PMmeltano run tap-mssql target-jsonl
Is probably the best test at this point just so I am not leading you astraydaniel_antwi
01/15/2023, 8:46 PMconsumer=False name=tap-mssql producer=True stdio=stderr string_id=tap-mssql
2023-01-15T20:44:43.736826Z [info ] raise AirbyteException( cmd_type=elb consumer=False name=tap-mssql producer=True stdio=stderr string_id=tap-mssql
2023-01-15T20:44:43.736944Z [info ] tap_airbyte.tap.AirbyteException: Airbyte process terminated early: cmd_type=elb consumer=False name=tap-mssql producer=True stdio=stderr string_id=tap-mssql
2023-01-15T20:44:43.737060Z [info ] AirbyteException: java.lang.RuntimeException: com.microsoft.sqlserver.jdbc.SQLServerException: Parameters were not supplied for the function 'dbo.fn_SC_Reports_GetStrsFromStringDelimitedBy'. cmd_type=elb consumer=False name=tap-mssql producer=True stdio=stderr string_id=tap-mssql
2023-01-15T20:44:43.737173Z [info ] at io.airbyte.db.jdbc.StreamingJdbcDatabase.unsafeQuery(StreamingJdbcDatabase.java:79) cmd_type=elb consumer=False name=tap-mssql producer=True stdio=stderr string_id=tap-mssql
alexander_butler
01/15/2023, 8:59 PMfn_SC_Reports_GetStrsFromStringDelimitedBy
is this a function in your database?daniel_antwi
01/15/2023, 9:36 PMdaniel_antwi
01/15/2023, 9:36 PM