Hello all! I am running a Meltano pipeline into R...
# troubleshooting
g
Hello all! I am running a Meltano pipeline into Redshift and it has been running for days now, however, a couple days ago it stopped loading data in. No errors have risen, but it seems as though it's been stalled for some time now. This pipeline was run through the Meltano UI. Is there a way to stop this pipeline manually and rerun it, or does anyone have any solutions for how I can resolve this issue? It shows on the Meltano UI has "Running..." and the logs show no sign of error.
d
If you go into the system database, and manually change the
state
of the running job from
RUNNING
to
FAIL
, does that help?
g
I will try that. Thanks for the information
It seemed to stop the pipeline, but when I run the pipeline again it does not pick up from its saved state. I will try manually updating the state now from the last saved
hm, doesn't seem to be working
@douwe_maan, do you know how I can still continue the pipeline? Seems as though it keeps starting from the initial start_date now, rather than the state that was saved
d
Can you run
meltano elt … --job_id=<the right job_id> --dump=state
to see what state is used?
It should still find state in the system DB, unless you deleted
job
records
g
I only ran an update query to change the state from Running... to FAIL
Could not find state file for this pipeline
Any suggestion? It also adjusted the UI to show that its never run rather than the time since it terminated
@douwe_maan
d
Can you show me the
job
rows in the system DB?
g
Copy code
1051|klaviyo--x|FAIL|2021-07-10 18:51:18.168493||{"singer_state": {"bookmarks": {"subscribe_list": {"since": "2021-02-07T20:10:41Z"}}}}|1|removed|ui|2021-07-11 15:40:29.753572
1250|klaviyo--x|FAIL|2021-07-21 22:27:27.656360||{"singer_state": {"bookmarks": {"subscribe_list": {"since": "2021-02-07T20:10:41Z"}}}}|0|removed|ui|2021-07-21 22:37:11.005708
1251|klaviyo--x|FAIL|2021-07-21 22:28:36.025408||{}|0|removed|ui|2021-07-21 22:37:10.757977
There originally was only 1 row, now there are 3. The second row has a state because that's when I tried manually adding in the state.
I assume a new row for the job_id is created on each run though, so I assume that is unrelated (number of rows going up)
@douwe_maan, do you think I should just reset the pipeline and table? Or is there a way to resolve this state issue?
d
Sorry for the delay, was in a call
Can you remove the last row you marked as
FAIL
?
You’ll want the new run to pick up the state of the last run that actually had some state:
Copy code
1250|klaviyo--x|FAIL|2021-07-21 22:27:27.656360||{"singer_state": {"bookmarks": {"subscribe_list": {"since": "2021-02-07T20:10:41Z"}}}}|0|removed|ui|2021-07-21 22:37:11.005708