Skip to content

Conversation

@donoghuc
Copy link
Member

The latest psych 5.3 minor version has bumped snakeyaml-engine ruby/psych#762. This is causing issues in bundler. Constrain the psych gem to the 5.2 minor version while we are still on jruby 9.4.13.0.

The issue presents as:

Errno::ENOENT: No such file or directory - /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/gems/shared/gems/psych-5.3.1-java/deps.lst
  org/jruby/RubyIO.java:1279:in `sysopen'
          org/jruby/RubyIO.java:4275:in `read'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/jars/installer.rb:75:in `load_from_maven'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/jars/installer.rb:220:in `install_dependencies'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/jars/installer.rb:209:in `do_install'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/jars/installer.rb:154:in `vendor_jars'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/defaults/jruby.rb:110:in `block in <main>'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/installer.rb:367:in `block in run_post_install_hooks'
          org/jruby/RubyArray.java:2009:in `each'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/rubygems/installer.rb:366:in `run_post_install_hooks'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/bundler/rubygems_gem_installer.rb:48:in `install'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/bundler/source/rubygems.rb:205:in `install'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/bundler/installer/gem_installer.rb:55:in `install'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/bundler/installer/gem_installer.rb:17:in `install_from_spec'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/bundler/installer/parallel_installer.rb:133:in `do_install'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/bundler/installer/parallel_installer.rb:124:in `block in worker_pool'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/bundler/worker.rb:62:in `apply_func'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/bundler/worker.rb:57:in `block in process_queue'
          org/jruby/RubyKernel.java:1725:in `loop'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/bundler/worker.rb:54:in `process_queue'
          /Users/cas/elastic-repos/logstash/vendor/jruby/lib/ruby/stdlib/bundler/worker.rb:90:in `block in create_threads'

There has been a long standing string of issues around this:

The current issue seems to be that when psych depends on a different version of snakeyaml-engine that is shipped in jruby (Logstash is on 9.4.13.0 which vendors snakeyaml-engine 2.9).

The latest psych 5.3 minor version has bumped snakeyaml-engine
ruby/psych#762. This is causing issues in bundler.
Constrain the psych gem to the 5.2 minor version while we are still on jruby
9.4.13.0.
@github-actions
Copy link
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)
  • /run exhaustive tests : Run the exhaustive tests Buildkite pipeline.

@mergify
Copy link
Contributor

mergify bot commented Dec 17, 2025

This pull request does not have a backport label. Could you fix it @donoghuc? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit.
  • If no backport is necessary, please add the backport-skip label

@mashhurs mashhurs added the backport-9.3 Automated backport to the 9.3 branch label Dec 17, 2025
Copy link
Contributor

@mashhurs mashhurs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with 🟢 CI!

@elasticmachine
Copy link

💚 Build Succeeded

@donoghuc donoghuc merged commit a089904 into elastic:main Dec 17, 2025
15 checks passed
@mashhurs
Copy link
Contributor

@Mergifyio backport 9.3

@mergify
Copy link
Contributor

mergify bot commented Dec 17, 2025

backport 9.3

✅ Backports have been created

Details

mergify bot pushed a commit that referenced this pull request Dec 17, 2025
The latest psych 5.3 minor version has bumped snakeyaml-engine
ruby/psych#762. This is causing issues in bundler.
Constrain the psych gem to the 5.2 minor version while we are still on jruby
9.4.13.0.

(cherry picked from commit a089904)
mashhurs pushed a commit that referenced this pull request Dec 17, 2025
The latest psych 5.3 minor version has bumped snakeyaml-engine
ruby/psych#762. This is causing issues in bundler.
Constrain the psych gem to the 5.2 minor version while we are still on jruby
9.4.13.0.

(cherry picked from commit a089904)

Co-authored-by: Cas Donoghue <[email protected]>
donoghuc added a commit that referenced this pull request Dec 18, 2025
donoghuc added a commit that referenced this pull request Dec 18, 2025
donoghuc added a commit that referenced this pull request Dec 18, 2025
mashhurs pushed a commit that referenced this pull request Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-9.3 Automated backport to the 9.3 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants