Hello folks,
Thank you marc. I successfully cleared my previous Issue. Now I am facing
with another issue while trying to reconfigure it. I copied the output from
command prompt which I got during reconfiguration and also
scalr-server-secrets.json file. I represented the error with dotted lines
at the end of the line. plz check it once.
--
You received this message because you are subscribed to the Google Groups
"scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
//This is the server-secrets.json file
"admin_password": "6eb3d6dbb28e815c351a01ff"{
"mysql": {
"root_password":
"65fd54864c9535f2932935be1b905cf55656dd9c2de0819184b463dbb$463dbbdf38d1e248118f6e2bdba98b1de47663111e7d9abcb",
"scalr_password":
"5a4081f985a8ce0ce2a1ac72add67f609131d969dbc457377ca76f99$$a76f99acdfc616c88f52159f476b9b65c21679a6893a1d8f74",
"repl_password": "05be247d8aaea058100edab2"
},
"memcached": {
"password":
"49f72a9f7e2a07bfb595df766bd3f18bb2c292c3b0593ce3d26bc2b844a189$44a1893d321c3fc0b2676a088d4ab7b513ad03e0db8a"
},
"app": {
"admin_password": "6eb3d6dbb28e815c351a01ff",
"secret_key": "OieU+pUBIwylVxfZWVU9lTfzXoCTtrQArFkF0R49sh8Y9w0+BWYOyDlwsuv0$
"id": "a04bab38"
}
}
//The parse error:trailing garbage issue i am facing while trying to
reconfigure it.
login as: miracle
[email protected]'s password:
Welcome to Ubuntu 14.04.2 LTS (GNU/Linux 3.16.0-30-generic x86_64)
* Documentation: https://help.ubuntu.com/
565 packages can be updated.
368 updates are security updates.
New release '16.04.3 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
Last login: Tue Aug 22 07:43:47 2017 from 172.17.13.117
miracle@miracle:~$ sudo su -
[sudo] password for miracle:
root@miracle:~# cd..
cd..: command not found
root@miracle:~# /opt/scalr-server/bin/scalr-server-ctl reconfigure
Starting Chef Client, version 12.3.0
Compiling Cookbooks...
Recipe: chef-sentry-handler::default
* directory[/opt/scalr-server/embedded/cookbooks/handlers] action create (up
to date)
[2017-08-22T07:51:42-04:00] WARN: chef_gem[uuidtools] chef_gem compile_time
installation is deprecated
[2017-08-22T07:51:42-04:00] WARN: chef_gem[uuidtools] Please set `compile_time
false` on the resource to use the new behavior.
[2017-08-22T07:51:42-04:00] WARN: chef_gem[uuidtools] or set `compile_time
true` on the resource if compile_time behavior is required.
* chef_gem[uuidtools] action install (up to date)
[2017-08-22T07:51:44-04:00] WARN: chef_gem[sentry-raven] chef_gem compile_time
installation is deprecated
[2017-08-22T07:51:44-04:00] WARN: chef_gem[sentry-raven] Please set
`compile_time false` on the resource to use the new behavior.
[2017-08-22T07:51:44-04:00] WARN: chef_gem[sentry-raven] or set `compile_time
true` on the resource if compile_time behavior is required.
* chef_gem[sentry-raven] action install (up to date)
* cookbook_file[/opt/scalr-server/embedded/cookbooks/handlers/sentry.rb]
action create (up to date)
* chef_handler[Raven::Chef::SentryHandler] action enable
- disable Raven::Chef::SentryHandler as a exception handler
- load Raven::Chef::SentryHandler from
/opt/scalr-server/embedded/cookbooks/handlers/sentry.rb
- enable chef_handler[Raven::Chef::SentryHandler] as a exception handler
Recipe: scalr-server::_config_dir
* directory[/etc/scalr-server] action create (up to date)
================================================================================
Recipe Compile Error in
/opt/scalr-server/embedded/cookbooks/scalr-server/recipes/default.rb
================================================================================
Chef::Exceptions::JSON::ParseError
----------------------------------
parse error: trailing garbage
"admin_password": "6eb3d6dbb28e815c351a01ff"{
---------------------------------------------------------------------
(right here) ------^
Error
Cookbook Trace:
---------------
/opt/scalr-server/embedded/cookbooks/scalr-server/libraries/scalr_server.rb:31:in
`generate_secrets'
/opt/scalr-server/embedded/cookbooks/scalr-server/libraries/scalr_server.rb:136:in
`generate_config'
/opt/scalr-server/embedded/cookbooks/scalr-server/recipes/default.rb:43:in
`from_file'
Relevant File Content:
----------------------
/opt/scalr-server/embedded/cookbooks/scalr-server/libraries/scalr_server.rb:
24: default :enable_all, true
25:
26: class << self
27:
28: def generate_secrets(node)
29: existing_secrets ||= Hash.new
30: if File.exists?(secrets_file_path node)
31>> existing_secrets =
Chef::JSONCompat.from_json(File.read(secrets_file_path node))
32: end
33: existing_secrets.each do |k, v|
34: v.each do |pk, p|
35: ScalrServer[k][pk] = p
36: end
37: end
38:
39: ScalrServer[:mysql][:root_password] ||= SecureRandom.hex 50
40: ScalrServer[:mysql][:scalr_password] ||= SecureRandom.hex 50
Running handlers:
[2017-08-22T07:51:44-04:00] ERROR: Running exception handlers
- Raven::Chef::SentryHandler
Running handlers complete
[2017-08-22T07:51:46-04:00] ERROR: Exception handlers complete
[2017-08-22T07:51:46-04:00] FATAL: Stacktrace dumped to
/opt/scalr-server/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 1 resources updated in 5.168468678 seconds
[2017-08-22T07:51:46-04:00] ERROR: parse error: trailing garbage
"admin_password": "6eb3d6dbb28e815c351a01ff"{
--------------------------------------------------------------------
(right here) ------^
Error
[2017-08-22T07:51:46-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef
run process exited unsuccessfully (exit code 1)