Skip to content

Instantly share code, notes, and snippets.

@jwadolowski
Created December 30, 2016 21:52
Show Gist options
  • Save jwadolowski/35a96a2f0d26b37664da1737119ced16 to your computer and use it in GitHub Desktop.
Save jwadolowski/35a96a2f0d26b37664da1737119ced16 to your computer and use it in GitHub Desktop.
cq_user JSON parse error
==> default: * cq_user[Publish: replication-receiver] action modify
==> default: [2016-12-19T17:18:14+01:00] FATAL: Unable to parse
==> default: as JSON: 757: unexpected token at ''
==> default:
==> default:
==> default: ================================================================================
==> default:
==> default: Error executing action `modify` on resource 'cq_user[Publish: replication-receiver]'
==> default:
==> default: ================================================================================
==> default:
==> default:
==> default: SystemExit
==> default:
==> default: ----------
==> default:
==> default: exit
==> default:
==> default:
==> default: Cookbook Trace:
==> default:
==> default: ---------------
==> default:
==> default: /tmp/vagrant-chef/204bcb1ae3f2cc168fff01219ea9086f/cookbooks/cq/libraries/_http_helper.rb:40:in `rescue in json_to_hash'
==> default:
==> default: /tmp/vagrant-chef/204bcb1ae3f2cc168fff01219ea9086f/cookbooks/cq/libraries/_http_helper.rb:36:in `json_to_hash'
==> default:
==> default: /tmp/vagrant-chef/204bcb1ae3f2cc168fff01219ea9086f/cookbooks/cq/libraries/provider_cq_user.rb:283:in `raw_user_profile'
==> default:
==> default: /tmp/vagrant-chef/204bcb1ae3f2cc168fff01219ea9086f/cookbooks/cq/libraries/provider_cq_user.rb:319:in `user_profile'
==> default:
==> default: /tmp/vagrant-chef/204bcb1ae3f2cc168fff01219ea9086f/cookbooks/cq/libraries/provider_cq_user.rb:437:in `populate_user_data'
==> default:
==> default: /tmp/vagrant-chef/204bcb1ae3f2cc168fff01219ea9086f/cookbooks/cq/libraries/provider_cq_user.rb:55:in `load_current_resource'
==> default:
==> default: /tmp/vagrant-chef/204bcb1ae3f2cc168fff01219ea9086f/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action'
==> default:
==> default: /tmp/vagrant-chef/204bcb1ae3f2cc168fff01219ea9086f/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge'
==> default:
==> default: /tmp/vagrant-chef/204bcb1ae3f2cc168fff01219ea9086f/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each'
==> default:
==> default: /tmp/vagrant-chef/204bcb1ae3f2cc168fff01219ea9086f/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge'
==> default:
==> default: /tmp/vagrant-chef/204bcb1ae3f2cc168fff01219ea9086f/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge'
==> default:
==> default:
==> default: Resource Declaration:
==> default:
==> default: ---------------------
==> default:
==> default: # In /tmp/vagrant-chef/204bcb1ae3f2cc168fff01219ea9086f/cookbooks/xxx-webapp/recipes/publish_users.rb
==> default:
==> default:
==> default: 20: cq_user 'Publish: replication-receiver' do
==> default:
==> default: 21: id 'CPELP'
==> default:
==> default: 22: username node['cq']['publish']['credentials']['login']
==> default:
==> default: 23: password node['cq']['publish']['credentials']['password']
==> default:
==> default: 24: instance "http://localhost:#{node['cq']['publish']['port']}"
==> default:
==> default: 25: user_password node['cq']['replication_user']['password']
==> default:
==> default: 26:
==> default:
==> default: 27: action :modify
==> default:
==> default: 28: end
==> default:
==> default:
==> default: Compiled Resource:
==> default:
==> default: ------------------
==> default:
==> default: # Declared in /tmp/vagrant-chef/204bcb1ae3f2cc168fff01219ea9086f/cookbooks/xxx-webapp/recipes/publish_users.rb:20:in `from_file'
==> default:
==> default:
==> default: cq_user("Publish: replication-receiver") do
==> default:
==> default: action [:modify]
==> default:
==> default: retries 0
==> default:
==> default: retry_delay 2
==> default:
==> default: default_guard_interpreter :default
==> default:
==> default: id "CPELP"
==> default:
==> default: username "admin"
==> default:
==> default: password "admin"
==> default:
==> default: instance "http://localhost:6203"
==> default:
==> default: user_password "yyy"
==> default:
==> default: enabled true
==> default:
==> default: declared_type :cq_user
==> default:
==> default: cookbook_name :"xxx-webapp"
==> default:
==> default: recipe_name "publish_users"
==> default:
==> default: admin_password "admin"
==> default:
==> default: my_password "yyy"
==> default:
==> default: end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment