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

Issue with chown on Ruby 2.5.0 #74

Open
tgagor opened this issue Nov 6, 2018 · 2 comments
Open

Issue with chown on Ruby 2.5.0 #74

tgagor opened this issue Nov 6, 2018 · 2 comments

Comments

@tgagor
Copy link

tgagor commented Nov 6, 2018

Hi,

I have issue after upgrading from Alpine 3.7 (Ruby 2.4.x) to 3.8 (Ruby 2.5.0) as base for our containers.

/usr/lib/ruby/2.5.0/fileutils.rb:1019:in `fu_get_uid': uninitialized constant FileUtils::Etc (NameError)
	from /usr/lib/ruby/2.5.0/fileutils.rb:967:in `chown'
	from /usr/lib/ruby/gems/2.5.0/gems/tiller-1.4.1/bin/tiller:277:in `block in <module:Tiller>'
	from /usr/lib/ruby/gems/2.5.0/gems/tiller-1.4.1/bin/tiller:175:in `each'
	from /usr/lib/ruby/gems/2.5.0/gems/tiller-1.4.1/bin/tiller:175:in `<module:Tiller>'
	from /usr/lib/ruby/gems/2.5.0/gems/tiller-1.4.1/bin/tiller:35:in `<top (required)>'
	from /usr/bin/tiller:23:in `load'
	from /usr/bin/tiller:23:in `<main>'`

In environment file it's plain simple:

  target: /opt/service/config/application.properties
  user: root
  group: root
  perms: 0644
  config:
    some_variables: 1

File /opt/service/config/application.properties exists - by default it have different owner but I tried to change ownership to root and it didn't help.

I resolved issue by removing user, group parameters. It will work for me this time but it's not a definitive/acceptable solution. I tried to debug it but I was not able to find anything.

@markround
Copy link
Owner

Hmmm. I just added Ruby 2.5 to my Travis automated test builds and I seem to have some other errors with that version of Ruby as well. I'll dig into that and add this issue to some tests. Can't guarantee when I'll have a fix, but thanks for letting me know!

@EugenMayer
Copy link

Be aware that e.g. ruby2.5 has also issues with diplomat: WeAreFarmGeek/diplomat#171 so there could be quiet some work to have "tiller 2.5 ready"

I also know of other broken libraries. Seems like 2.5 has a "harsher" upgrade path to offer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants