Daniel Luo
08/29/2024, 1:25 AM2024-08-29 00:17:41,119 | INFO | target-snowflake | Target 'target-snowflake' is listening for input from tap.
2024-08-29 00:17:41,120 | INFO | target-snowflake | Initializing 'target-snowflake' target sink...
2024-08-29 00:17:41,120 | INFO | target-snowflake.dim-AssetGroup | Initializing target sink for stream 'dbo-Test'...
2024-08-29 00:17:41,130 | INFO | snowflake.connector.connection | Snowflake Connector for Python Version: 3.12.1, Python Version: 3.12.5, Platform: Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.35
2024-08-29 00:17:41,130 | INFO | snowflake.connector.connection | Connecting to GLOBAL Snowflake domain
2024-08-29 00:17:41,130 | INFO | snowflake.connector.connection | This connection is in OCSP Fail Open Mode. TLS Certificates would be checked for validity and revocation status. Any other Certificate Revocation related exceptions or OCSP Responder failures would be disregarded in favor of connectivity.
It seems to just hang there indefinitely. Strange thing is that it works perfectly fine on Windows, as well as our app server, which is also running on Ubuntu. I've tried clearing out any Windows paths from PATH in WSL Ubuntu, clearing all non-relevant paths from the PATH variable, doing a fresh clone of the repo, reinstalling ubuntu, clearing PATH/env again on the new install. Can't seem to figure out what changed. Even the code from same version as before when it was working is just stuck at this same spot. Next step is trying to debug this, but haven't got that working yet.visch
08/29/2024, 1:26 PMvisch
08/29/2024, 1:27 PMDaniel Luo
08/29/2024, 1:34 PMcat output.json | meltano --log-level=debug invoke target-snowflake
Daniel Luo
08/29/2024, 1:34 PMvisch
08/29/2024, 1:41 PMvisch
08/29/2024, 1:41 PMDaniel Luo
08/29/2024, 1:45 PMvisch
08/29/2024, 1:47 PMDaniel Luo
08/29/2024, 1:52 PMvisch
08/29/2024, 1:53 PM{
"name": "Python Debugger: Attach using Process Id",
"type": "debugpy",
"request": "attach",
"processId": "${command:pickProcess}"
}
Needed gdb so I ran sudo apt install gdb
but then I was getting a seg fault, but didn't dive more 🤷Daniel Luo
08/29/2024, 1:54 PMvisch
08/29/2024, 1:56 PMEdgar Ramírez (Arch.dev)
08/29/2024, 2:47 PMEven the code from same version as before when it was working is just stuck at this same spot. Next step is trying to debug this, but haven't got that working yet.That's really weird. I'd try adding
snowflake-connector-python==3.12.0
to the pip_url and see if that fixes it, cause that'd be a recent thing that changed and we don't pin that dependency.Daniel Luo
08/29/2024, 2:59 PM- name: target-snowflake
variant: meltanolabs
pip_url: meltanolabs-target-snowflake
visch
08/29/2024, 3:14 PM- name: target-snowflake
variant: meltanolabs
pip_url: meltanolabs-target-snowflake snowflake-connector-python==3.12.0
Daniel Luo
08/29/2024, 3:18 PMEdgar Ramírez (Arch.dev)
08/29/2024, 3:19 PMmeltanolabs-target-snowflake
too?
pip_url: meltanolabs-target-snowflake==0.9.1 snowflake-connector-python==3.12.0
Daniel Luo
08/29/2024, 3:21 PMEdgar Ramírez (Arch.dev)
08/29/2024, 3:23 PM.meltano/loaders/target-snowflake/venv/bin/pip list
.Edgar Ramírez (Arch.dev)
08/29/2024, 3:23 PMUV_EXCLUDE_NEWER=<some date when things were working> meltano install --clean
to get all the dependencies as they were at a point in time.Daniel Luo
08/29/2024, 3:24 PMUsage: target-snowflake [OPTIONS]
Execute the Singer target.
Options:
--version Display the package version.
but all it shows is target-snowflake v[could not be detected],
Edgar Ramírez (Arch.dev)
08/29/2024, 3:25 PMDaniel Luo
08/29/2024, 3:27 PMDaniel Luo
08/29/2024, 5:47 PMret = self.fetch(...)
. It looks like all this does is call a rest API, so I copied the url, headers, and data into postman on Windows, and of course, it works. I then translated it into curl and ran it in wsl and it gets stuck. Then I ssh'ed into a random linux box and it works there too. So it's something with the connection, but not sure where yet. I think it's probably safe to say that since curl doesn't work, then issue is not with meltano. Still very strange thoughvisch
08/29/2024, 6:20 PMvisch
08/29/2024, 6:20 PMEdgar Ramírez (Arch.dev)
08/29/2024, 6:48 PMvisch
08/29/2024, 7:01 PMvisch
08/29/2024, 7:03 PMvisch
08/29/2024, 7:04 PMvisch
08/29/2024, 7:05 PMDaniel Luo
08/29/2024, 7:07 PMDaniel Luo
08/29/2024, 7:08 PMDaniel Luo
08/29/2024, 7:23 PMlogging.basicConfig(level=logging.DEBUG)
in main, and I don't see any messages in the console. Added a log message in main to test, and it does show up.Daniel Luo
08/29/2024, 7:24 PMDaniel Luo
08/29/2024, 7:45 PM2024-08-29 19:43:46,046 | INFO | snowflake.connector.connection | Snowflake Connector for Python Version: 3.12.1, Python Version: 3.12.5, Platform: Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.35
2024-08-29 19:43:46,048 | INFO | snowflake.connector.connection | Connecting to GLOBAL Snowflake domain
2024-08-29 19:43:46,048 | INFO | snowflake.connector.connection | This connection is in OCSP Fail Open Mode. TLS Certificates would be checked for validity and revocation status. Any other Certificate Revocation related exceptions or OCSP Responder failures would be disregarded in favor of connectivity.
2024-08-29 19:43:48,169 | DEBUG | snowflake.connector.network | Session status for SessionPool '<http://OMITTED.snowflakecomputing.com|OMITTED.snowflakecomputing.com>', SessionPool 1/1 active sessions
2024-08-29 19:43:48,170 | DEBUG | snowflake.connector.network | remaining request timeout: N/A ms, retry cnt: 1
2024-08-29 19:43:48,172 | DEBUG | snowflake.connector.network | Request guid: b35b14f9-3ca1-154a-bcf3-47ef4a1c6068
2024-08-29 19:43:48,172 | DEBUG | snowflake.connector.network | socket timeout: 60
^C2024-08-29 19:43:55,632 | DEBUG | snowflake.connector.network | Session status for SessionPool '<http://OMITTED.snowflakecomputing.com|OMITTED.snowflakecomputing.com>', SessionPool 0/1 active sessions
Edgar Ramírez (Arch.dev)
08/29/2024, 7:57 PMDaniel Luo
08/29/2024, 7:58 PMDaniel Luo
08/29/2024, 8:08 PMDaniel Luo
08/30/2024, 1:01 AMEdgar Ramírez (Arch.dev)
08/30/2024, 1:08 AMvisch
08/30/2024, 12:13 PMDaniel Luo
08/30/2024, 1:02 PM