And that;s the solution!!! :) THX





On Wednesday, December 30, 2015 at 4:49:59 PM UTC+1, Jochen Schalanda wrote:
>
> Hi,
>
> it looks like etcd isn't running. Try executing the following commands 
> inside the VM to fix this:
>
> sudo graylog-ctl stop etcd
> sudo rm -r /var/opt/graylog/data/etcd/*
> sudo graylog-ctl start etcd
> sudo graylog-ctl reconfigure
>
>
>
> Cheers,
> Jochen
>
> On Wednesday, 30 December 2015 15:26:19 UTC+1, Mr Polo wrote:
>>
>> Hi,
>>
>> After updating graylog from 1.2 to 1.3 following this
>>
>> wget https://
>> packages.graylog2.org/releases/graylog2-omnibus/ubuntu/graylog_latest.deb
>> sudo graylog-ctl stop
>> sudo dpkg -G -i graylog_latest.deb
>> sudo graylog-ctl reconfigure
>>
>>
>> when i write the last command , i get an fatal error:
>>
>> * ruby_block[add node to server list] action run
>>
>>
>>     
>> ================================================================================
>>     Error executing action `run` on resource 'ruby_block[add node to 
>> server list]'
>>     
>> ================================================================================
>>
>>
>>     Errno::ECONNREFUSED
>>     -------------------
>>     Connection refused - connect(2) for "127.0.0.1" port 4001
>>
>>
>>     Cookbook Trace:
>>     ---------------
>>     /opt/graylog/embedded/cookbooks/graylog/libraries/registry.rb:17:in 
>> `set_master'
>>     
>> /opt/graylog/embedded/cookbooks/graylog/recipes/graylog-server.rb:82:in 
>> `block 
>> (2 levels) in from_file'
>>
>>
>>     Resource Declaration:
>>     ---------------------
>>     # In /opt/graylog/embedded/cookbooks/graylog/recipes/graylog-server.rb
>>
>>
>>      80: ruby_block "add node to server list" do
>>      81:   block do
>>      82:     $registry.set_master
>>      83:     $registry.add_gl_server(node['ipaddress'])
>>      84:     $registry.add_es_node(node['ipaddress'])
>>      85:   end
>>      86: end
>>
>>
>>     Compiled Resource:
>>     ------------------
>>     # Declared in 
>> /opt/graylog/embedded/cookbooks/graylog/recipes/graylog-server.rb:80:in 
>> `from_file'
>>
>>
>>     ruby_block("add node to server list") do
>>       action [:run]
>>       retries 0
>>       retry_delay 2
>>       default_guard_interpreter :default
>>       block_name "add node to server list"
>>       declared_type :ruby_block
>>       cookbook_name :graylog
>>       recipe_name "graylog-server"
>>       block 
>> #<Proc:0x000000046aa668@/opt/graylog/embedded/cookbooks/graylog/recipes/graylog-server.rb:81>
>>     end
>>
>> Stacktrace :
>>
>> Generated at 2015-12-30 13:19:54 +0100
>> Errno::ECONNREFUSED: ruby_block[add node to server list] (graylog::
>> graylog-server line 80) had an error: Errno::ECONNREFUSED: Connection 
>> refused - connect(2) for "127.0.0.1" port 4001
>> /opt/graylog/embedded/lib/ruby/2.1.0/net/http.rb:879:in `initialize'
>> /opt/graylog/embedded/lib/ruby/2.1.0/net/http.rb:879:in `open'
>> /opt/graylog/embedded/lib/ruby/2.1.0/net/http.rb:879:in `block in connect'
>> /opt/graylog/embedded/lib/ruby/2.1.0/timeout.rb:76:in `timeout'
>> /opt/graylog/embedded/lib/ruby/2.1.0/net/http.rb:878:in `connect'
>> /opt/graylog/embedded/lib/ruby/2.1.0/net/http.rb:1447:in `begin_transport'
>> /opt/graylog/embedded/lib/ruby/2.1.0/net/http.rb:1404:in 
>> `transport_request'
>> /opt/graylog/embedded/lib/ruby/2.1.0/net/http.rb:1378:in `request'
>> /opt/graylog/embedded/lib/ruby/2.1.0/net/http.rb:1371:in `block in 
>> request'
>> /opt/graylog/embedded/lib/ruby/2.1.0/net/http.rb:853:in `start'
>> /opt/graylog/embedded/lib/ruby/2.1.0/net/http.rb:1369:in `request'
>> /opt/graylog/embedded/lib/ruby/gems/2.1.0/gems/etcd-0.3.0/lib/etcd/client.rb:111:in
>>  
>> `api_execute'
>> /opt/graylog/embedded/lib/ruby/gems/2.1.0/gems/etcd-0.3.0/lib/etcd/keys.
>> rb:39:in `set'
>> /opt/graylog/embedded/cookbooks/graylog/libraries/registry.rb:17:in `
>> set_master'
>> /opt/graylog/embedded/cookbooks/graylog/recipes/graylog-server.rb:82:in 
>> `block (2 levels) in from_file'
>> /opt/graylog/embedded/lib/ruby/gems/2.1.0/gems/chef-12.4.1/lib/chef/
>> provider/ruby_block.rb:35:in `call'
>> /opt/graylog/embedded/lib/ruby/gems/2.1.0/gems/chef-12.4.1/lib/chef/provider/ruby_block.rb:35:in
>>  
>> `block in action_run'
>> /opt/graylog/embedded/lib/ruby/gems/2.1.0/gems/chef-12.4.1/lib/chef/mixin/why_run.rb:52:in
>>  
>> `call'
>> /opt/graylog/embedded/lib/ruby/gems/2.1.0/gems/chef-12.4.1/lib/chef/mixin
>> /
>> ...
>
>

-- 
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/93fc8022-b6e9-4393-8fce-487a2d2d5d57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to