{"action":"opened","issue":{"url":"https://api.github.com/repos/chef/chef/issues/6866","repository_url":"https://api.github.com/repos/chef/chef","labels_url":"https://api.github.com/repos/chef/chef/issues/6866/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/6866/comments","events_url":"https://api.github.com/repos/chef/chef/issues/6866/events","html_url":"https://github.com/chef/chef/issues/6866","id":298234857,"number":6866,"title":"Failed to authenticate to the chef server (http 401)","user":{"login":"Skynot","id":36624563,"avatar_url":"https://avatars2.githubusercontent.com/u/36624563?v=4","gravatar_id":"","url":"https://api.github.com/users/Skynot","html_url":"https://github.com/Skynot","followers_url":"https://api.github.com/users/Skynot/followers","following_url":"https://api.github.com/users/Skynot/following{/other_user}","gists_url":"https://api.github.com/users/Skynot/gists{/gist_id}","starred_url":"https://api.github.com/users/Skynot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skynot/subscriptions","organizations_url":"https://api.github.com/users/Skynot/orgs","repos_url":"https://api.github.com/users/Skynot/repos","events_url":"https://api.github.com/users/Skynot/events{/privacy}","received_events_url":"https://api.github.com/users/Skynot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-19T11:00:00Z","updated_at":"2018-02-19T11:00:00Z","closed_at":null,"author_association":"NONE","body":"Description\r\nHi guys, I'm new in Chef and I'm French (sorry for my english). I installed a chef-server and a chef workstation. I try to run chef-client on a windows node, I got an error.\r\n\r\nChef Version\r\n16.3.4\r\n\r\nPlatform Version\r\nChef-server = CentOS7\r\nChef-workstation = CentOS7\r\nWindows Node = Windows Server 2012R2\r\n\r\nClient Output\r\n``\r\n[root@workstation .chef]# chef-client -N serveur-windowsStarting Chef Client, version 13.6.4\r\n\r\nChef encountered an error attempting to load the node data for \"serveur-windows\"\r\n\r\nAuthentication Error:\r\n---------------------\r\nFailed to authenticate to the chef server (http 401).\r\n\r\nServer Response:\r\n----------------\r\nInvalid signature for user or client 'serveur-windows'\r\n\r\nRelevant Config Settings:\r\n-------------------------\r\nchef_server_url   \"https://chef-server/organizations/testorg\"\r\nnode_name         \"serveur-windows\"\r\nclient_key        \"/etc/chef/client.pem\"\r\n\r\nIf these settings are correct, your client_key may be invalid, or\r\nyou may have a chef user with the same client name as this node.\r\n\r\nSystem Info:\r\n------------\r\nchef_version=13.6.4\r\nruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]\r\nprogram_name=chef-client worker: ppid=30912;start=11:31:16;\r\nexecutable=/opt/chefdk/bin/chef-client\r\n\r\n\r\nRunning handlers:\r\n[2018-02-19T11:31:21+01:00] ERROR: Running exception handlers\r\nRunning handlers complete\r\n[2018-02-19T11:31:21+01:00] ERROR: Exception handlers complete\r\nChef Client failed. 0 resources updated in 04 seconds\r\n[2018-02-19T11:31:21+01:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out\r\n[2018-02-19T11:31:21+01:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report\r\n[2018-02-19T11:31:21+01:00] ERROR: 401 \"Unauthorized\"\r\n[2018-02-19T11:31:21+01:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\r\n[root@workstation .chef]# chef-client -N serveur-windowsStarting Chef Client, version 13.6.4\r\n\r\nChef encountered an error attempting to load the node data for \"serveur-windows\"\r\n\r\nAuthentication Error:\r\n---------------------\r\nFailed to authenticate to the chef server (http 401).\r\n\r\nServer Response:\r\n----------------\r\nInvalid signature for user or client 'serveur-windows'\r\n\r\nRelevant Config Settings:\r\n-------------------------\r\nchef_server_url   \"https://chef-server/organizations/testorg\"\r\nnode_name         \"serveur-windows\"\r\nclient_key        \"/etc/chef/client.pem\"\r\n\r\nIf these settings are correct, your client_key may be invalid, or\r\nyou may have a chef user with the same client name as this node.\r\n\r\nSystem Info:\r\n------------\r\nchef_version=13.6.4\r\nruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]\r\nprogram_name=chef-client worker: ppid=31378;start=11:34:07;\r\nexecutable=/opt/chefdk/bin/chef-client\r\n\r\n\r\nRunning handlers:\r\n[2018-02-19T11:34:11+01:00] ERROR: Running exception handlers\r\nRunning handlers complete\r\n[2018-02-19T11:34:11+01:00] ERROR: Exception handlers complete\r\nChef Client failed. 0 resources updated in 04 seconds\r\n[2018-02-19T11:34:11+01:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out\r\n[2018-02-19T11:34:11+01:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report\r\n[2018-02-19T11:34:11+01:00] ERROR: 401 \"Unauthorized\"\r\n[2018-02-19T11:34:11+01:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\r\n[root@workstation .chef]# \r\n\r\nThanks for your help, be kind "}}
{"actor":{"display_login":"Skynot"}}