Crashing Logstash S3 output - NotImplementedError fstat error at startup in 5.2+ on Alpine

OS: Alpine 3.6
Logstash 5.2+
Plugin: logstash-output-s3
Java: OpenJDK-1.8.0.131-b11

Prior to Logstash 5.2, context.http_request.body (as seen in /usr/share/logstash/vendor/bundle/jruby/1.9/gems/aws-sdk-core-2.3.22/lib/aws-sdk-core/plugins/s3_expect_100_continue.rb) returned a STRINGIO object and .size, which is called on this object, works OK.

However, from 5.2 onwards context.http_request.body is a File and .size is throwing an error.

NotImplementedError: fstat unimplemented unsupported or native support failed to load
...
size at org/jruby/RubyFile.java:1148
call at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/aws-sdk-core-2.3.22/lib/aws-sdk-core/plugins/s3_expect_100_continue.rb:15

Only seems to error in Alpine as I've tried it in Ubuntu and all seems OK.

Are additional components required for the Alpine install in order to use 5.2 onwards?

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