{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef-dk/issues/1499","repository_url":"https://api.github.com/repos/chef/chef-dk","labels_url":"https://api.github.com/repos/chef/chef-dk/issues/1499/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef-dk/issues/1499/comments","events_url":"https://api.github.com/repos/chef/chef-dk/issues/1499/events","html_url":"https://github.com/chef/chef-dk/issues/1499","id":296389872,"node_id":"MDU6SXNzdWUyOTYzODk4NzI=","number":1499,"title":"Chef-dk won't show line number on which error occurred during failed convergence?","user":{"login":"ilovemysillybanana","id":9522399,"node_id":"MDQ6VXNlcjk1MjIzOTk=","avatar_url":"https://avatars1.githubusercontent.com/u/9522399?v=4","gravatar_id":"","url":"https://api.github.com/users/ilovemysillybanana","html_url":"https://github.com/ilovemysillybanana","followers_url":"https://api.github.com/users/ilovemysillybanana/followers","following_url":"https://api.github.com/users/ilovemysillybanana/following{/other_user}","gists_url":"https://api.github.com/users/ilovemysillybanana/gists{/gist_id}","starred_url":"https://api.github.com/users/ilovemysillybanana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilovemysillybanana/subscriptions","organizations_url":"https://api.github.com/users/ilovemysillybanana/orgs","repos_url":"https://api.github.com/users/ilovemysillybanana/repos","events_url":"https://api.github.com/users/ilovemysillybanana/events{/privacy}","received_events_url":"https://api.github.com/users/ilovemysillybanana/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-12T14:18:42Z","updated_at":"2018-06-30T22:36:16Z","closed_at":"2018-05-01T22:20:59Z","author_association":"CONTRIBUTOR","body":"# Description\r\n\r\nChef doesn't show lines on which errors occur on local work station. Errors show up in `C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/chef-stacktrace.out` on created VM. \r\n\r\n# ChefDK Version\r\n```\r\nC:\\Users\\jose.tobar\r\nλ chef --version\r\nChef Development Kit Version: 2.4.17\r\nchef-client version: 13.6.4\r\ndelivery version: master (73ebb72a6c42b3d2ff5370c476be800fee7e5427)\r\nberks version: 6.3.1\r\nkitchen version: 1.19.2\r\ninspec version: 1.45.13\r\n```\r\n\r\n# Platform Version\r\n\r\nWindows 2012 Enterprise x64\r\n\r\n# Replication Case\r\nConverge a cookbook, put an error in it. Such as creating a directory with a variable as the name that hasn't been declared yet.\r\n\r\n```\r\ndirectory node['attr']['dir'] do\r\n  action :create\r\nend \r\n```\r\n\r\n# Stacktrace\r\n\r\nThis is what I get on my terminal:\r\n\r\n```\r\nC:\\Users\\jose.tobar\\Desktop\\Workspace\\dc_jenkins (master -> origin)\r\nλ kitchen destroy && kitchen converge\r\n-----> Starting Kitchen (v1.19.2)\r\n-----> Destroying <winslave-windows2012r2>...\r\n       ==> default: Stopping the machine...\r\n       ==> default: Deleting the machine...\r\n       Vagrant instance <winslave-windows2012r2> destroyed.\r\n       Finished destroying <winslave-windows2012r2> (0m13.36s).\r\n-----> Kitchen is finished. (0m21.65s)\r\n-----> Starting Kitchen (v1.19.2)\r\n-----> Creating <winslave-windows2012r2>...\r\n       Bringing machine 'default' up with 'hyperv' provider...\r\n       ==> default: Verifying Hyper-V is enabled...\r\n       ==> default: Configured startup memory is 1024\r\n       ==> default: Importing a Hyper-V instance\r\n       Looking for switch with name: Internet Switch\r\n       Found switch: Internet Switch\r\n           default: Cloning virtual hard drive...\r\n           default: Creating and registering the VM...\r\n           default: Setting VM Integration Services\r\n           default: Successfully imported a VM with name: packer-hyperv-iso_1\r\n       ==> default: Starting the machine...\r\n       ==> default: Waiting for the machine to report its IP address...\r\n           default: Timeout: 240 seconds\r\n           default: IP: 10.1.5.129\r\n       ==> default: Waiting for machine to boot. This may take a few minutes...\r\n           default: WinRM address: 10.1.5.129:5985\r\n           default: WinRM username: vagrant\r\n           default: WinRM execution_time_limit: PT2H\r\n           default: WinRM transport: negotiate\r\n       ==> default: Machine booted and ready!\r\n       ==> default: Machine not provisioned because `--no-provision` is specified.\r\n       [WinRM] Established\r\n\r\n       Vagrant instance <winslave-windows2012r2> created.\r\n       Finished creating <winslave-windows2012r2> (2m49.43s).\r\n-----> Converging <winslave-windows2012r2>...\r\n       Preparing files for transfer\r\n       Preparing dna.json\r\n       Resolving cookbook dependencies with Berkshelf 6.3.1...\r\n       Removing non-cookbook files before transfer\r\n       Preparing validation.pem\r\n       Preparing client.rb\r\n-----> Installing Chef Omnibus (install only if missing)\r\n       Downloading package from https://packages.chef.io/files/stable/chef/13.7.16/windows/2016/chef-client-13.7.16-1-x64.msi\r\n       Download complete.\r\n       Successfully verified C:\\Users\\vagrant\\AppData\\Local\\Temp\\chef-client-13.7.16-1-x64.msi\r\n       Installing Chef Omnibus package C:\\Users\\vagrant\\AppData\\Local\\Temp\\chef-client-13.7.16-1-x64.msi\r\n       Installation complete\r\n       Transferring files to <winslave-windows2012r2>\r\n       Starting Chef Client, version 13.7.16\r\n       Creating a new client identity for winslave-windows2012r2 using the validator key.\r\n       resolving cookbooks for run list: [\"dc_jenkins::default\"]\r\n       Synchronizing Cookbooks:\r\n         - dc_jenkins (0.1.0)\r\n         - java (1.50.0)\r\n         - jenkins (5.0.6)\r\n         - apt (6.1.4)\r\n         - windows (3.4.4)\r\n         - homebrew (4.3.0)\r\n         - runit (4.0.4)\r\n         - compat_resource (12.19.1)\r\n         - dpkg_autostart (0.2.0)\r\n         - ohai (5.2.1)\r\n         - packagecloud (0.3.0)\r\n         - yum-epel (2.1.2)\r\n       Installing Cookbook Gems:\r\n       Compiling Cookbooks...\r\n\r\n       ================================================================================\r\n       Recipe Compile Error in C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/dc_jenkins/recipes/default.rb\r\n       ================================================================================\r\n\r\n       Chef::Exceptions::ValidationFailed\r\n       ----------------------------------\r\n       name is a required property\r\n\r\n       System Info:\r\n       ------------\r\n       chef_version=13.7.16\r\n       platform=windows\r\n       platform_version=6.3.9600\r\n       ruby=ruby 2.4.3p205 (2017-12-14 revision 61247) [x64-mingw32]\r\n       program_name=C:/opscode/chef/bin/chef-client\r\n       executable=C:/opscode/chef/bin/chef-client\r\n\r\n\r\n       Running handlers:\r\n       [2018-02-12T14:04:07+00:00] ERROR: Running exception handlers\r\n       [2018-02-12T14:04:07+00:00] ERROR: Running exception handlers\r\n       Running handlers complete\r\n       [2018-02-12T14:04:07+00:00] ERROR: Exception handlers complete\r\n       [2018-02-12T14:04:07+00:00] ERROR: Exception handlers complete\r\n       Chef Client failed. 0 resources updated in 16 seconds\r\n       [2018-02-12T14:04:07+00:00] FATAL: Stacktrace dumped to C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/chef-stacktrace.out\r\n       [2018-02-12T14:04:07+00:00] FATAL: Stacktrace dumped to C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/chef-stacktrace.out\r\n       [2018-02-12T14:04:07+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report\r\n       [2018-02-12T14:04:07+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report\r\n       [2018-02-12T14:04:07+00:00] FATAL: Chef::Exceptions::ValidationFailed: name is a required property\r\n       [2018-02-12T14:04:07+00:00] FATAL: Chef::Exceptions::ValidationFailed: name is a required property\r\n$$$$$$ chef-client.bat : C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/packagecloud/resources/repo.rb:10: warning: constant ::Fixnum is deprecated\r\n    + CategoryInfo          : NotSpecified: (C:/Users/vagran...m is deprecated:String) [], RemoteException\r\n    + FullyQualifiedErrorId : NativeCommandError\r\n\r\n>>>>>> ------Exception-------\r\n>>>>>> Class: Kitchen::ActionFailed\r\n>>>>>> Message: 1 actions failed.\r\n>>>>>>     Converge failed on instance <winslave-windows2012r2>.  Please see .kitchen/logs/winslave-windows2012r2.log for more details\r\n>>>>>> ----------------------\r\n>>>>>> Please see .kitchen/logs/kitchen.log for more details\r\n>>>>>> Also try running `kitchen diagnose --all` for configuration\r\n```\r\n\r\nBut after checking the file it mentions on the failed vm, `C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/chef-stacktrace.out` , it shows that the error happens on line 5 in one of my recipes. This occurs even when I use `--l debug` option when converging. \r\n"},"comment":{"url":"https://api.github.com/repos/chef/chef-dk/issues/comments/401570454","html_url":"https://github.com/chef/chef-dk/issues/1499#issuecomment-401570454","issue_url":"https://api.github.com/repos/chef/chef-dk/issues/1499","id":401570454,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTU3MDQ1NA==","user":{"login":"lock[bot]","id":33595554,"node_id":"MDM6Qm90MzM1OTU1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/in/6672?v=4","gravatar_id":"","url":"https://api.github.com/users/lock%5Bbot%5D","html_url":"https://github.com/apps/lock","followers_url":"https://api.github.com/users/lock%5Bbot%5D/followers","following_url":"https://api.github.com/users/lock%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/lock%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/lock%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lock%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/lock%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/lock%5Bbot%5D/repos","events_url":"https://api.github.com/users/lock%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/lock%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-06-30T22:36:16Z","updated_at":"2018-06-30T22:36:16Z","author_association":"NONE","body":"This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs."}}
{"actor":{"display_login":"lock"}}