Logstash Oracle 19c - IO Error: Got minus one from a read call

Hi
can you please help what i am doing wrong.. this same config works fine with ver 12

input {

jdbc {

statement_filepath => "/usr/share/logstash/pipelines/sql/database_query.sql"
#important the driver library must be included in the appropriate path (via docker compose)
jdbc_validate_connection => true
jdbc_connection_string => "jdbc:oracle:thin:@database.something:2222/DBASE"
jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
jdbc_driver_library =>"/usr/share/logstash/logstash-core/lib/jars/ojdbc8.jar"
jdbc_user => "xxxxxxxxx"
jdbc_password => "xxxxxxxxx"
schedule => "* * * * *"
jdbc_page_size=> "1000"
    jdbc_paging_enabled => "true"
last_run_metadata_path => "/usr/share/logstash/data/database_query"

what i get is this error:

[2022-02-22T13:23:00,453][ERROR][logstash.inputs.jdbc ][xxx_jdbc][5bab07f84e16e29e6022f3ba3bd190c8ab35e6ea0e5127a123cbea4c5ce79c5e] Unable to connect to database. Tried 1 times {:message=>"Java::JavaSql::SQLRecoverableException: IO Error: Got minus one from a read call", :exception=>Sequel::DatabaseConnectionError, :cause=>java.sql.SQLRecoverableException: IO Error: Got minus one from a read call, :backtrace=>["oracle.jdbc.driver.T4CConnection.logon(oracle/jdbc/driver/T4CConnection.java:901)", "oracle.jdbc.driver.PhysicalConnection.connect(oracle/jdbc/driver/PhysicalConnection.java:813)", "oracle.jdbc.driver.T4CDriverExtension.getConnection(oracle/jdbc/driver/T4CDriverExtension.java:80)", "oracle.jdbc.driver.OracleDriver.connect(oracle/jdbc/driver/OracleDriver.java:816)", "oracle.jdbc.driver.OracleDriver.connect(oracle/jdbc/driver/OracleDriver.java:620)", "jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)", "jdk.internal.reflect.NativeMethodAccessorImpl.invoke(jdk/internal/reflect/NativeMethodAccessorImpl.java:62)", "jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(jdk/internal/reflect/DelegatingMethodAccessorImpl.java:43)", "java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:566)", "org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:426)", "org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:293)",

when i connect directly over some SQL client.. it works fine

Many thanks for help
Tomislav

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