Hi Jochen,
i installed the new version of graylog (2.0.1-2), described in your Link,
step by step, and all was going fine. but the last step, graylog-ctl
reconfigure, failed with this messages:
sudo graylog-ctl reconfigure
Starting Chef Client, version 12.6.0
Compiling Cookbooks...
Recipe: graylog::default
* directory[/etc/graylog] action create (up to date)
==============================================================================
==
Recipe Compile Error in
/opt/graylog/embedded/cookbooks/graylog/recipes/defaul
t.rb
==============================================================================
==
Chef::Exceptions::JSON::ParseError
----------------------------------
parse error: invalid object key (must be a string)
dmin_username": "admin" }, },
(right here) ------^
Cookbook Trace:
---------------
/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:39:in
`generate
_secrets'
/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:221:in
`generat
e_config'
/opt/graylog/embedded/cookbooks/graylog/recipes/default.rb:13:in
`from_file'
Relevant File Content:
----------------------
/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:
32: def generate_hex(chars)
33: SecureRandom.hex(chars)
34: end
35:
36: def generate_secrets(node_name)
37: existing_secrets ||= Hash.new
38: if File.exists?("/etc/graylog/graylog-secrets.json")
39>> existing_secrets =
Chef::JSONCompat.from_json(File.read("/etc/gr
aylog/graylog-secrets.json"))
40: end
41: existing_secrets.each do |k, v|
42: v.each do |pk, p|
43: Graylog[k][pk] = p
44: end
45: end
46:
47: Graylog['graylog_server']['secret_token'] ||=
generate_hex(64)
48: Graylog['graylog_server']['admin_password'] ||=
Digest::SHA2.new
<
< "admin"
Running handlers:
[2016-05-24T16:20:31+02:00] ERROR: Running exception handlers
Running handlers complete
[2016-05-24T16:20:31+02:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 01 seconds
[2016-05-24T16:20:31+02:00] FATAL: Stacktrace dumped to
/opt/graylog/embedded/co
okbooks/cache/chef-stacktrace.out
[2016-05-24T16:20:31+02:00] FATAL: Please provide the contents of the
stacktrace
.out file if you file a bug report
[2016-05-24T16:20:31+02:00] ERROR: parse error: invalid object key (must be
a
st
ring)
dmin_username": "admin" }, },
(right here) ------^
[2016-05-24T16:20:31+02:00] FATAL: Chef::Exceptions::ChildConvergeError:
Chef
ru
n process exited unsuccessfully (exit code 1)
i rebooted, tried once more, but the failures were the same.
Am Donnerstag, 28. April 2016 08:26:29 UTC+2 schrieb Leittechnik SUN:
>
> Hello,
> i'm running Graylog since 03/2015. I installed graylog from OVA Image on
> my VMware Servers and took every update. Last update was Graylog 1.3.3. Is
> there some instructions how to Upgrade to Graylog 2.0.0?
> i downloaded the new package from:
> https://packages.graylog2.org/releases/graylog2-omnibus/ubuntu/graylog_latest.deb,
>
> transfered it by sftp to my Ubuntu "/tmp" directory, and tried to install
> via command "sudo dpkg -G -i graylog_latest.deb". now i get this message:
>
> (Reading database ... 96088 files and directories currently installed.)
> Preparing to unpack graylog_latest.deb ...
> This is not a drop-in replacement. Please consult the updating guide!
> dpkg: error processing archive graylog_latest.deb (--install):
> subprocess new pre-installation script returned error exit status 1
> Graylog has been uninstalled!
>
> What i have to do???
>
>
--
You received this message because you are subscribed to the Google Groups
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/graylog2/c0bb454e-6bae-4732-b2a7-468ec1b190a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.