Skip to content

Instantly share code, notes, and snippets.

@mal
Last active May 16, 2018 12:32
Show Gist options
  • Save mal/dd155ccad07376157bed4e4206f8b12c to your computer and use it in GitHub Desktop.
Save mal/dd155ccad07376157bed4e4206f8b12c to your computer and use it in GitHub Desktop.
chef-7269
[2018-05-16T13:32:10+01:00] INFO: Started chef-zero at chefzero://localhost:1 with repository at /home/mal/code/mal/local
One version per cookbook
[2018-05-16T13:32:10+01:00] INFO: Started chef-zero at chefzero://localhost:1 with repository at /home/mal/code/mal/local
One version per cookbook
[2018-05-16T13:32:10+01:00] DEBUG: Running Ohai with the following configuration: {:logger=>Chef::Log}
[2018-05-16T13:32:10+01:00] DEBUG: Running Ohai with the following configuration: {:logger=>Chef::Log}
Starting Chef Client, version 14.1.1
[2018-05-16T13:32:10+01:00] INFO: *** Chef 14.1.1 ***
[2018-05-16T13:32:10+01:00] INFO: *** Chef 14.1.1 ***
[2018-05-16T13:32:10+01:00] INFO: Platform: x86_64-linux
[2018-05-16T13:32:10+01:00] INFO: Platform: x86_64-linux
[2018-05-16T13:32:10+01:00] INFO: Chef-client pid: 23749
[2018-05-16T13:32:10+01:00] INFO: Chef-client pid: 23749
[2018-05-16T13:32:10+01:00] DEBUG: Chef-client request_id: 324feeb7-605d-436c-b34e-9fcad894c5c5
[2018-05-16T13:32:10+01:00] DEBUG: Chef-client request_id: 324feeb7-605d-436c-b34e-9fcad894c5c5
[2018-05-16T13:32:10+01:00] DEBUG: Running Ohai with the following configuration: {:logger=>Chef::Log}
[2018-05-16T13:32:10+01:00] DEBUG: Running Ohai with the following configuration: {:logger=>Chef::Log}
[2018-05-16T13:32:10+01:00] INFO: The plugin path /etc/chef/ohai/plugins does not exist. Skipping...
[2018-05-16T13:32:10+01:00] INFO: The plugin path /etc/chef/ohai/plugins does not exist. Skipping...
[2018-05-16T13:32:11+01:00] DEBUG: Plugin Zpools: Could not shell_out "zpool list -H -o name,size,alloc,free,cap,dedup,health,version". Skipping plugin.
[2018-05-16T13:32:11+01:00] DEBUG: Plugin Zpools: Could not shell_out "zpool list -H -o name,size,alloc,free,cap,dedup,health,version". Skipping plugin.
[2018-05-16T13:32:12+01:00] DEBUG: GET /organizations/chef/nodes/paws
[2018-05-16T13:32:12+01:00] DEBUG: #<ChefZero::RestRequest:0x00000000025e83d0
@env=
{"SCRIPT_NAME"=>"",
"SERVER_NAME"=>"localhost",
"REQUEST_METHOD"=>"GET",
"PATH_INFO"=>"/nodes/paws",
"QUERY_STRING"=>nil,
"SERVER_PORT"=>1,
"HTTP_HOST"=>"localhost:1",
"HTTP_X_OPS_SERVER_API_VERSION"=>"1",
"rack.url_scheme"=>"chefzero",
"rack.input"=>#<StringIO:0x000000000260d4c8>},
@rest_base_prefix=["organizations", "chef"],
@rest_path=["organizations", "chef", "nodes", "paws"]>
[2018-05-16T13:32:12+01:00] DEBUG:
--- RESPONSE (200) ---
{
"name": "paws",
"json_class": "Chef::Node",
"chef_type": "node",
"chef_environment": "_default",
"override": {
},
"normal": {
"tags": [
]
},
"default": {
},
"automatic": {
},
"run_list": [
]
}
--- END RESPONSE ---
[2018-05-16T13:32:12+01:00] DEBUG: Extracting run list from JSON attributes provided on command line
[2018-05-16T13:32:12+01:00] DEBUG: Extracting run list from JSON attributes provided on command line
[2018-05-16T13:32:12+01:00] DEBUG: Applying attributes from json file
[2018-05-16T13:32:12+01:00] DEBUG: Applying attributes from json file
[2018-05-16T13:32:12+01:00] DEBUG: Platform is ubuntu version 18.04
[2018-05-16T13:32:12+01:00] DEBUG: Platform is ubuntu version 18.04
[2018-05-16T13:32:12+01:00] WARN: Run List override has been provided.
[2018-05-16T13:32:12+01:00] WARN: Run List override has been provided.
[2018-05-16T13:32:12+01:00] WARN: Original Run List: []
[2018-05-16T13:32:12+01:00] WARN: Original Run List: []
[2018-05-16T13:32:12+01:00] WARN: Overridden Run List: [recipe[testcase]]
[2018-05-16T13:32:12+01:00] WARN: Overridden Run List: [recipe[testcase]]
[2018-05-16T13:32:12+01:00] INFO: Run List is [recipe[testcase]]
[2018-05-16T13:32:12+01:00] INFO: Run List is [recipe[testcase]]
[2018-05-16T13:32:12+01:00] INFO: Run List expands to [testcase]
[2018-05-16T13:32:12+01:00] INFO: Run List expands to [testcase]
[2018-05-16T13:32:12+01:00] INFO: Starting Chef Run for paws
[2018-05-16T13:32:12+01:00] INFO: Starting Chef Run for paws
[2018-05-16T13:32:12+01:00] INFO: Running start handlers
[2018-05-16T13:32:12+01:00] INFO: Running start handlers
[2018-05-16T13:32:12+01:00] INFO: Start handlers complete.
[2018-05-16T13:32:12+01:00] INFO: Start handlers complete.
[2018-05-16T13:32:12+01:00] DEBUG: POST /organizations/chef/reports/nodes/paws/runs
--- POST BODY ---
{"action":"start","run_id":"324feeb7-605d-436c-b34e-9fcad894c5c5","start_time":"2018-05-16 13:32:12 +0100"}
--- END POST BODY ---
[2018-05-16T13:32:12+01:00] DEBUG: #<ChefZero::RestRequest:0x0000000003ab5240
@body=
"{\"action\":\"start\",\"run_id\":\"324feeb7-605d-436c-b34e-9fcad894c5c5\",\"start_time\":\"2018-05-16 13:32:12 +0100\"}",
@env=
{"SCRIPT_NAME"=>"",
"SERVER_NAME"=>"localhost",
"REQUEST_METHOD"=>"POST",
"PATH_INFO"=>"/reports/nodes/paws/runs",
"QUERY_STRING"=>nil,
"SERVER_PORT"=>1,
"HTTP_HOST"=>"localhost:1",
"HTTP_X_OPS_SERVER_API_VERSION"=>"1",
"rack.url_scheme"=>"chefzero",
"rack.input"=>#<StringIO:0x0000000003ab5290>},
@rest_base_prefix=["organizations", "chef"],
@rest_path=["organizations", "chef", "reports", "nodes", "paws", "runs"]>
[2018-05-16T13:32:12+01:00] DEBUG:
--- RESPONSE (404) ---
{
"error": [
"Object not found: "
]
}
--- END RESPONSE ---
resolving cookbooks for run list: ["testcase"]
[2018-05-16T13:32:12+01:00] DEBUG: POST /organizations/chef/environments/_default/cookbook_versions
--- POST BODY ---
{"run_list":["testcase"]}
--- END POST BODY ---
[2018-05-16T13:32:12+01:00] DEBUG: #<ChefZero::RestRequest:0x0000000003a91fc0
@body="{\"run_list\":[\"testcase\"]}",
@env=
{"SCRIPT_NAME"=>"",
"SERVER_NAME"=>"localhost",
"REQUEST_METHOD"=>"POST",
"PATH_INFO"=>"/environments/_default/cookbook_versions",
"QUERY_STRING"=>nil,
"SERVER_PORT"=>1,
"HTTP_HOST"=>"localhost:1",
"HTTP_X_OPS_SERVER_API_VERSION"=>"2",
"rack.url_scheme"=>"chefzero",
"rack.input"=>#<StringIO:0x0000000003a92010>},
@rest_base_prefix=["organizations", "chef"],
@rest_path=
["organizations", "chef", "environments", "_default", "cookbook_versions"]>
[2018-05-16T13:32:12+01:00] DEBUG:
--- RESPONSE (200) ---
{
"testcase": {
"all_files": [
{
"name": "metadata.rb",
"path": "metadata.rb",
"checksum": "79315b458f2491b9866023d7b1d578f0",
"specificity": "default",
"url": "chefzero://localhost:1/file_store/repo/cookbooks/testcase/metadata.rb"
},
{
"name": "recipes/default.rb",
"path": "recipes/default.rb",
"checksum": "db722a1f37d7ed1df65d328c274d9dd9",
"specificity": "default",
"url": "chefzero://localhost:1/file_store/repo/cookbooks/testcase/recipes/default.rb"
}
],
"metadata": {
"name": "testcase",
"description": "",
"maintainer": "Mal Graty",
"maintainer_email": "[email protected]",
"license": "All rights reserved",
"platforms": {
},
"dependencies": {
},
"providing": {
"testcase": ">= 0.0.0"
},
"recipes": {
"testcase": ""
},
"version": "1.0.0",
"source_url": "",
"issues_url": "",
"privacy": false,
"chef_versions": [
],
"ohai_versions": [
],
"gems": [
]
},
"version": "1.0.0",
"name": "testcase-1.0.0",
"cookbook_name": "testcase",
"frozen?": false,
"chef_type": "cookbook_version",
"json_class": "Chef::CookbookVersion"
}
}
--- END RESPONSE ---
[2018-05-16T13:32:12+01:00] INFO: Loading cookbooks [[email protected]]
[2018-05-16T13:32:12+01:00] INFO: Loading cookbooks [[email protected]]
[2018-05-16T13:32:12+01:00] INFO: Skipping removal of obsoleted cookbooks from the cache
[2018-05-16T13:32:12+01:00] INFO: Skipping removal of obsoleted cookbooks from the cache
Synchronizing Cookbooks:
- testcase (1.0.0)
Installing Cookbook Gems:
Compiling Cookbooks...
[2018-05-16T13:32:12+01:00] DEBUG: Cookbooks to compile: [:testcase]
[2018-05-16T13:32:12+01:00] DEBUG: Cookbooks to compile: [:testcase]
[2018-05-16T13:32:12+01:00] DEBUG: GET /organizations/chef/required_recipe
[2018-05-16T13:32:12+01:00] DEBUG: #<ChefZero::RestRequest:0x00000000035a0638
@env=
{"SCRIPT_NAME"=>"",
"SERVER_NAME"=>"localhost",
"REQUEST_METHOD"=>"GET",
"PATH_INFO"=>"/required_recipe",
"QUERY_STRING"=>nil,
"SERVER_PORT"=>1,
"HTTP_HOST"=>"localhost:1",
"HTTP_X_OPS_SERVER_API_VERSION"=>"1",
"rack.url_scheme"=>"chefzero",
"rack.input"=>#<StringIO:0x00000000035a0688>},
@rest_base_prefix=["organizations", "chef"],
@rest_path=["organizations", "chef", "required_recipe"]>
[2018-05-16T13:32:12+01:00] DEBUG:
--- RESPONSE (404) ---
{
"error": [
"Object not found: "
]
}
--- END RESPONSE ---
Converging 1 resources
[2018-05-16T13:32:12+01:00] DEBUG: Converging node paws
[2018-05-16T13:32:12+01:00] DEBUG: Converging node paws
Recipe: testcase::default
* systemd_unit[testcase.service] action create[2018-05-16T13:32:12+01:00] INFO: Processing systemd_unit[testcase.service] action create (testcase::default line 1)
[2018-05-16T13:32:12+01:00] INFO: Processing systemd_unit[testcase.service] action create (testcase::default line 1)
================================================================================
Error executing action `create` on resource 'systemd_unit[testcase.service]'
================================================================================
TypeError
---------
no implicit conversion of String into Integer
Resource Declaration:
---------------------
# In /home/mal/code/mal/local/local-mode-cache/cache/cookbooks/testcase/recipes/default.rb
1: systemd_unit 'testcase.service' do
2: content <<~EOF
3: [Unit]
4: EOF
5: user ENV['USER']
6: action :create
7: end
Compiled Resource:
------------------
# Declared in /home/mal/code/mal/local/local-mode-cache/cache/cookbooks/testcase/recipes/default.rb:1:in `from_file'
systemd_unit("testcase.service") do
action [:create]
default_guard_interpreter :default
declared_type :systemd_unit
cookbook_name "testcase"
recipe_name "default"
content "[Unit]\n"
user "mal"
unit_name "testcase.service"
end
System Info:
------------
chef_version=14.1.1
platform=ubuntu
platform_version=18.04
ruby=ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
program_name=/usr/bin/chef-solo
executable=/opt/chefdk/bin/chef-solo
[2018-05-16T13:32:12+01:00] INFO: Running queued delayed notifications before re-raising exception
[2018-05-16T13:32:12+01:00] INFO: Running queued delayed notifications before re-raising exception
Running handlers:
[2018-05-16T13:32:12+01:00] ERROR: Running exception handlers
[2018-05-16T13:32:12+01:00] ERROR: Running exception handlers
Running handlers complete
[2018-05-16T13:32:12+01:00] ERROR: Exception handlers complete
[2018-05-16T13:32:12+01:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 01 seconds
[2018-05-16T13:32:12+01:00] FATAL: Stacktrace dumped to /home/mal/code/mal/local/local-mode-cache/cache/chef-stacktrace.out
[2018-05-16T13:32:12+01:00] FATAL: Stacktrace dumped to /home/mal/code/mal/local/local-mode-cache/cache/chef-stacktrace.out
[2018-05-16T13:32:12+01:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2018-05-16T13:32:12+01:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2018-05-16T13:32:12+01:00] DEBUG: TypeError: systemd_unit[testcase.service] (testcase::default line 1) had an error: TypeError: no implicit conversion of String into Integer
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:248:in `getpwuid'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:248:in `systemctl_opts'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:230:in `systemctl_execute'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:190:in `enabled?'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:41:in `load_current_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider.rb:165:in `run_action'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource.rb:577:in `run_action'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:70:in `run_action'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:98:in `block (2 levels) in converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:98:in `each'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:98:in `block in converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:97:in `converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:717:in `block in converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:712:in `catch'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:712:in `converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:751:in `converge_and_save'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:283:in `run'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application.rb:303:in `run_with_graceful_exit_option'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application.rb:279:in `block in run_chef_client'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/local_mode.rb:44:in `with_server_connectivity'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application.rb:261:in `run_chef_client'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application/client.rb:441:in `run_application'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application.rb:66:in `run'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application/solo.rb:224:in `run'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/bin/chef-solo:25:in `<top (required)>'
/usr/bin/chef-solo:270:in `load'
/usr/bin/chef-solo:270:in `<main>'
>>>> Caused by TypeError: no implicit conversion of String into Integer
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:248:in `getpwuid'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:248:in `systemctl_opts'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:230:in `systemctl_execute'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:190:in `enabled?'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:41:in `load_current_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider.rb:165:in `run_action'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource.rb:577:in `run_action'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:70:in `run_action'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:98:in `block (2 levels) in converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:98:in `each'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:98:in `block in converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:97:in `converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:717:in `block in converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:712:in `catch'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:712:in `converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:751:in `converge_and_save'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:283:in `run'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application.rb:303:in `run_with_graceful_exit_option'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application.rb:279:in `block in run_chef_client'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/local_mode.rb:44:in `with_server_connectivity'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application.rb:261:in `run_chef_client'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application/client.rb:441:in `run_application'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application.rb:66:in `run'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application/solo.rb:224:in `run'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/bin/chef-solo:25:in `<top (required)>'
/usr/bin/chef-solo:270:in `load'
/usr/bin/chef-solo:270:in `<main>'
[2018-05-16T13:32:12+01:00] DEBUG: TypeError: systemd_unit[testcase.service] (testcase::default line 1) had an error: TypeError: no implicit conversion of String into Integer
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:248:in `getpwuid'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:248:in `systemctl_opts'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:230:in `systemctl_execute'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:190:in `enabled?'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:41:in `load_current_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider.rb:165:in `run_action'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource.rb:577:in `run_action'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:70:in `run_action'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:98:in `block (2 levels) in converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:98:in `each'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:98:in `block in converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:97:in `converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:717:in `block in converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:712:in `catch'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:712:in `converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:751:in `converge_and_save'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:283:in `run'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application.rb:303:in `run_with_graceful_exit_option'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application.rb:279:in `block in run_chef_client'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/local_mode.rb:44:in `with_server_connectivity'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application.rb:261:in `run_chef_client'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application/client.rb:441:in `run_application'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application.rb:66:in `run'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application/solo.rb:224:in `run'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/bin/chef-solo:25:in `<top (required)>'
/usr/bin/chef-solo:270:in `load'
/usr/bin/chef-solo:270:in `<main>'
>>>> Caused by TypeError: no implicit conversion of String into Integer
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:248:in `getpwuid'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:248:in `systemctl_opts'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:230:in `systemctl_execute'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:190:in `enabled?'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider/systemd_unit.rb:41:in `load_current_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/provider.rb:165:in `run_action'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource.rb:577:in `run_action'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:70:in `run_action'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:98:in `block (2 levels) in converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:98:in `each'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:98:in `block in converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/resource_list.rb:94:in `block in execute_each_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/resource_collection/resource_list.rb:92:in `execute_each_resource'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/runner.rb:97:in `converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:717:in `block in converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:712:in `catch'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:712:in `converge'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:751:in `converge_and_save'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/client.rb:283:in `run'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application.rb:303:in `run_with_graceful_exit_option'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application.rb:279:in `block in run_chef_client'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/local_mode.rb:44:in `with_server_connectivity'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application.rb:261:in `run_chef_client'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application/client.rb:441:in `run_application'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application.rb:66:in `run'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/lib/chef/application/solo.rb:224:in `run'
/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.1.1/bin/chef-solo:25:in `<top (required)>'
/usr/bin/chef-solo:270:in `load'
/usr/bin/chef-solo:270:in `<main>'
[2018-05-16T13:32:12+01:00] FATAL: TypeError: systemd_unit[testcase.service] (testcase::default line 1) had an error: TypeError: no implicit conversion of String into Integer
[2018-05-16T13:32:12+01:00] FATAL: TypeError: systemd_unit[testcase.service] (testcase::default line 1) had an error: TypeError: no implicit conversion of String into Integer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment