Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foreman 'export' doesn't work with Ruby 3.2 #1085

Closed
cbeer opened this issue Aug 16, 2023 · 4 comments · Fixed by #1206
Closed

Foreman 'export' doesn't work with Ruby 3.2 #1085

cbeer opened this issue Aug 16, 2023 · 4 comments · Fixed by #1206
Labels
bug Something isn't working

Comments

@cbeer
Copy link
Member

cbeer commented Aug 16, 2023

00:00 deploy:update_systemd_scripts
      01 script/export_procfiles_to_systemd_prod.sh
      01 /usr/local/rvm/gems/ruby-3.2.2/gems/foreman-0.87.2/lib/foreman/export/base.rb:86:in `rescue in chown': undefined method `exists?' for File:Class (NoMe…
      01
      01     error("Could not chown #{dir} to #{user}") unless File.writable?(dir) || ! File.exists?(dir)
      01                                                                                    ^^^^^^^^
      01 Did you mean?  exist?
      01 	from /usr/local/rvm/gems/ruby-3.2.2/gems/foreman-0.87.2/lib/foreman/export/base.rb:83:in `chown'
      01 	from /usr/local/rvm/gems/ruby-3.2.2/gems/foreman-0.87.2/lib/foreman/export/base.rb:49:in `export'
      01 	from /usr/local/rvm/gems/ruby-3.2.2/gems/foreman-0.87.2/lib/foreman/export/systemd.rb:7:in `export'
      01 	from /usr/local/rvm/gems/ruby-3.2.2/gems/foreman-0.87.2/lib/foreman/cli.rb:62:in `export'
      01 	from /usr/local/rvm/gems/ruby-3.2.2/gems/foreman-0.87.2/lib/foreman/vendor/thor/lib/thor/command.rb:27:in `run'

@cbeer cbeer added the bug Something isn't working label Aug 16, 2023
@jcoyne
Copy link
Contributor

jcoyne commented Aug 16, 2023

Upstream is ddollar/foreman#794 Fix is in ddollar/foreman#788

@thatbudakguy
Copy link
Member

It's been a year since the last commit to foreman. Seem to be many folks suggesting abandoning it in the issues. Some alternatives to foreman are mentioned in a comment.

@jcoyne
Copy link
Contributor

jcoyne commented Aug 17, 2023

@thatbudakguy none of those alternatives support the export command, which is the one area here where we are having trouble.

@jcoyne jcoyne changed the title Foreman doesn't work with Ruby 3.2 Foreman 'export' doesn't work with Ruby 3.2 Aug 17, 2023
@thatbudakguy
Copy link
Member

Maybe the best solution: write our own script that does the equivalent of foreman export.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants