google-auth-library-ruby icon indicating copy to clipboard operation
google-auth-library-ruby copied to clipboard

Getting - warning: cannot close fd before spawn with version googleauth-1.1.0

Open shalini-gupta-20 opened this issue 4 years ago • 1 comments

Hi,

I updated the logstash version to 7.16.2 and installed the below 2 plugins to use GCP pubsub:

bin/logstash-plugin install logstash-input-google_pubsub bin/logstash-plugin install logstash-output-google_pubsub

However, I keep getting these warnings: /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/googleauth-1.1.0/lib/googleauth/credentials_loader.rb:163: warning: cannot close fd before spawn

Here are the logstash details: [INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.16.2", "jruby.version"=>"jruby 9.2.20.1 (2.5.8) 2021-11-30 2a2962fbd1 OpenJDK 64-Bit Server VM 11.0.13+8 on 11.0.13+8 +indy +jit [linux-x86_64]"} │

logstash-output-google_pubsub (1.0.2-java) logstash-codec-json (~> 3.0) logstash-codec-plain (~> 3.0) logstash-core-plugin-api (>= 1.60, <= 2.99)

logstash-input-google_pubsub (1.2.1) logstash-codec-plain logstash-core-plugin-api (>= 1.60, <= 2.99) stud (>= 0.0.22)

Can you please help with the error message?

shalini-gupta-20 avatar Jan 11 '22 06:01 shalini-gupta-20

The googleauth gem doesn't officially support jruby. It may work for the most part, but it's not in our CI and there may be various issues.

dazuma avatar Feb 15 '22 01:02 dazuma