Fix Cannot Determine User Id For Chef (Solved)

Home > Cannot Determine > Cannot Determine User Id For Chef

Cannot Determine User Id For Chef

Contents

Please see this blog post for more information, or go to the chef repository on Github to file an issue. *IMPORTANT UPDATE* Chef CHEF-1699 Getting group not working right after useradd Hide Permalink Paul Cortens added a comment - 01/Apr/11 6:41 AM - edited Here is a better work-around: ruby_block "reset group list" do action :nothing block do Etc.endgrent end end And Terms Privacy Security Status Help You can't perform that action at this time. We have issue #792 for that but the main problem is time, had none to properly clean the package up. his comment is here

I've packaged these up into a PR descended from Darrin Eden 's: https://github.com/opscode-cookbooks/chef-client/pull/94 Hide Permalink Joshua Timberman [Chef] added a comment - 03/May/13 1:34 AM Joseph Anthony Pasquale Holsten - In Show KC Braunschweig added a comment - 28/Jun/11 7:31 PM Note, this can come up in other cases also such as when an RPM creates a user/group. Also verified that this is already fixed on the file-provider refactoring work scheduled to go into chef 11.6 (barring an unforseen early security release of 11.6): Recipe: (chef-apply cookbook)::(chef-apply recipe) * Available languages are: javascript, sql, xhtml, actionscript, none, html, xml, javals -la /tmp/foo123 -rw-r--r-- 1 root root 0 Jun 2 19:44 /tmp/foo123 Issue Links duplicates CHEF-3949 File Provider Refactor relates to learn this here now

Chef::exceptions::useridnotfound

share|improve this answer answered Jan 21 '15 at 11:27 cassianoleal 2,1881017 Thank you, cassianoleal! –zuba Jan 21 '15 at 11:30 add a comment| Your Answer draft saved draft Show Jeremy Koerber added a comment - 11/Jan/13 12:29 AM We're also getting this issue with the community site tomcat cookbook. if resource.group.kind_of?(String) # NOTE: This will break if you try setting someones gid to root gid = `/usr/bin/ruby -e "require 'etc'; print Etc.getgrnam('#{resource.group}').gid"`.to_i raise ArgumentError, "group doens't exist" if gid ==

  • The simplified version of the story is Debian packaging policy has a requirement that daemons that listen on high ports (4000, 4040, as Chef 10 and earlier versions did) run under
  • You signed in with another tab or window.
  • Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 56 Star 1,600 Fork 167 devopsgroup-io/vagrant-digitalocean Code Issues 36 Pull requests 0 Projects
  • Hide Permalink Joseph Anthony Pasquale Holsten added a comment - 16/May/13 9:24 PM Joshua Timberman [Chef]: PR #88's chef_server_user attributes feel like they would complement PR #94's error handling.
  • To establish order in the GitLab-CE Issue Tracker, we must ensure that every issue is correctly labelled and triaged, to get the proper attention. This issue will be closed, as it meets
  • It is highly irritating to have these options if you can't use them.
  • It seems the chef_server?

Show Peter Fern added a comment - 06/May/13 10:46 AM - edited Why does chef-client behave differently on a chef server? Reload to refresh your session. Show Joshua Timberman [Chef] added a comment - 03/May/13 1:34 AM Joseph Anthony Pasquale Holsten - In reviewing tickets for COOK-2855 , I came across COOK-2731 , which uses attributes for if resource.group.kind_of?( String ) # NOTE: This will break if you try setting someones gid to root gid = `/usr/bin/ruby -e "require 'etc'; print Etc.getgrnam('#{resource.group}').gid" `.to_i raise ArgumentError, "group doens't exist"

I'm reopening and resetting this to fix provided. Chef Create User I'm reopening and resetting this to fix provided. reopen if issues persist. Hide Permalink Serdar Sutay added a comment - 21/Nov/13 1:07 AM This should be fixed by https://github.com/opscode/chef/commit/31c695b0dad707a172780bc80cb12a31de45a415 Show Serdar Sutay added a comment - 21/Nov/13 1:07 AM This should be fixed

Browse other questions tagged vagrant digital-ocean or ask your own question. This simple recipe reproduces the problem: Unable to find source-code formatter for language: ruby. On the other nodes that have an omnibus chef-client , they are running as root, and no user was created. Skip to content Ignore Learn more Please note that GitHub no longer supports old versions of Firefox.

Chef Create User

This variable server can be inlined for more clarity. https://gitlab.com/gitlab-org/omnibus-gitlab/issues/905 Please see this blog post for more information, or go to the chef repository on Github to file an issue. *IMPORTANT UPDATE* Chef Cookbooks COOK-2607 detect if node is a chef-server Chef::exceptions::useridnotfound Edit: As in: what would break if the chef-client cookbook always installed chef-client for root user? chrisduong commented Sep 11, 2015 Hi, I think this is because influxdb package has not been installed that's why its uid not available.

On the other nodes that have an omnibus chef-client, they are running as root, and no user was created. http://inviewsoftware.com/cannot-determine/cannot-determine-unprivileged-user-for.html Other tickets ( COOK-2464 , COOK-2466 ) used this approach as well. If you read the README for the DigitalOcean provider you'll see that one of the features is "setup a SSH public key for authentication" That key will be setup on whatever This variable server can be inlined for more clarity.

BarthV commented Jan 9, 2015 👍 Didn't find out a workaround for this, pls make a move :) gplessis commented Jan 12, 2015 FYI using chef-rewind is one possible temporary workaround Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 12 Star 41 Fork 66 bdangit/chef-influxdb Code Issues 1 Pull requests 0 Projects https://github.com/opscode-cookbooks/chef-client/blob/bf1dbbc749c92315784b17bac796ed858a256f5d/recipes/config.rb#L70-L85 https://github.com/opscode-cookbooks/chef-client/blob/bf1dbbc749c92315784b17bac796ed858a256f5d/libraries/helpers.rb#L60-L66 https://github.com/opscode-cookbooks/chef-client/blob/bf1dbbc749c92315784b17bac796ed858a256f5d/libraries/helpers.rb#L26-L28 dwradcliffe commented Sep 9, 2014 After looking at this further, I'm wondering why the client config should be under the server username at all. http://inviewsoftware.com/cannot-determine/cannot-determine-user-location.html You shouldn't assume that the user vagrant exists there.

This is clearly against Chef's notion of idempotence. Available languages are: javascript, sql, xhtml, actionscript, none, html, xml, javafile "tmpfile1" do path "/tmp/foo123" owner "foo123" group "foo123" mode 00644 end file "tmpfile2" do path "/tmp/foo123" owner "foo123" group "foo123" How can I prove its value?

Marin Jankovski @marin 2015-10-29 15:25:22 UTC Status changed to closed Please register or sign in to post a comment Assignee No assignee Select assigneeAssign to None Milestone None MilestoneAssign milestone None

Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Sign in GitLab.org / omnibus-gitlab Go to a project Toggle navigation Toggle navigation pinning Projects Groups Snippets Help Project Activity Repository Registry Graphs Issues 215 Merge Requests 33 Network Create a Meaning of double bracket "[[foo()]] type name;" syntax in c++? Converting the weight of a potato into a letter grade Is adding the ‘tbl’ prefix to table names really a problem?

I don't have a 'chef_server' user on my nodes and really would prefer not to need one ;) dwradcliffe commented Oct 23, 2014 I'd rather have a chef_server user than an Reload to refresh your session. ikurochkin commented Feb 25, 2015 I'm also having this problem. check over here Reload to refresh your session.

We recommend upgrading to the latest Safari, Google Chrome, or Firefox. ERROR: Chef::Exceptions::UserIDNotFound: directory[/ var /run/chef] (chef-client::service line 47) had an error: Chef::Exceptions::UserIDNotFound: cannot determine user id for 'chef', does the user exist on this system? Finally, we can make the code a little easier on the eyes by extracting root_user and root_group helpers. Do the right thing out of the box, but include knobs also.

Reload to refresh your session. This key is the same across all Vagrant installations, which has 2 basic corollaries: as the name implies, it's insecure (one of the reasons why Vagrant is seen as a dev The RPM itself creates the "couchdb" user and group. Thus we created the "chef" user, which would then own the /etc/chef directory so that the correct bits could be created and owned by that user, since the validation and webui

You signed in with another tab or window. chef_gem "chef-rewind" require 'chef/rewind' include_recipe 'chef-client::config' rewind :template => "#{node["chef_client"]["conf_dir"]}/client.rb" do owner 'root' group 'root' end caquino commented Jan 15, 2015 Same issue here. * cannot determine user id for 'chef_server', Some ideas? Best regards Jan /etc/gitlab>dpkg -l |grep gitlab ii gitlab-ce 8.1.2-ce.0 amd64 GitLab Community Edition and GitLab CI (including NGINX, Postgres, Redis) /etc/gitlab>grep -v "^#" gitlab.rb |grep -v -e "^$" external_url 'https://git.domain.local' nginx['redirect_http_to_https'] = Show Bryan McLellan [Chef] added a comment - 16/May/13 8:47 PM One issue with #89 is that it leaves the new user unsure of the consequences of that error, and hides

is duplicated by COOK-2464 Recipe fails if chef-server didn't create 'chef' user yet COOK-2731 chef-client fails due to nonexistent user:group chef:chef when running on a chef-server 11.0.6 node. Hide Permalink Seth Chisamore added a comment - 24/Apr/11 5:14 PM Until this is fixed in core chef I at leaset updated our users cookbook to 'do the right thing' on Example: Using the opscode chef server bootstrap process, the couchdb recipe installs couchdb via an RPM. Show Joshua Timberman [Chef] added a comment - 28/May/13 7:40 AM Joseph Anthony Pasquale Holsten - can you update #94 w/ the attributes from #88?

Is this some backwards compatibility issue? I narrowed it down to Etc.getgrnam not being able to find the user. Extracting this to a helper like chef_user_exists? Why put a warning sticker over the warning on this product?

Any Idea of a work around or when this will be fixed? asked 1 year ago viewed 339 times active 1 year ago Related 160Where does Vagrant download its .box files to?29How to debug “Vagrant cannot forward the specified ports on this VM” The noted workaround works here too but there's no users cookbook, I put it directly in the couchdb cookbook with the package resource notifying the ruby_block. Also verified that this is already fixed on the file-provider refactoring work scheduled to go into chef 11.6 (barring an unforseen early security release of 11.6): Recipe: (chef-apply cookbook)::(chef-apply recipe) *