Pipeline error "pipeline-id" :exception=>#<Psych::DisallowedClass: Tried to load unspecified class: Time

Hello folks,

I have a logstash pipeline that is using a jdbc input and is configured with a schedule (0/1 * * * *) and after change its schedule to any other schedule the following error starts to happen:

[2023-06-23T11:24:52,886][ERROR][logstash.javapipeline ][lxxxxxxxx] Pipeline error {:pipeline_id=>"lxxxxx", :exception=>#<Psych::DisallowedClass: Tried to load unspecified class: Time>

Even if I change it back to the original schedule (0/1 * * * *) it still not work and shows the same error.

I did a few tests regarding the logstash/data files and I noticed that if I remove the following file and restart the logstash process the pipeline starts to work again.

logstash/data/plugins/inputs/jdbc/logstash_jdbc_last_run

I was not able to reproduce this same behavior using a elasticsearch input. Here, changing the schedule works as expected.

My env:

Logstash version: 8.8.1
Install method: YUM

Could this be a bug?

Yes, see this thread. A fix has already been submitted. The exception occurs when the input tries to parse the YAML that is persisted in logstash_jdbc_last_run. No YAML, no exception.

1 Like

Got it.

In this meantime I did a downgrade to 8.7.1 version as a workaround and its working fine.

Thanks!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.