Re: [graylog2] Re: Unable to Upgrade Graylog from 1.3 to 2.0 Lauched from Readymade AMI

2016-05-16 Thread Utkarsh Sharma
Hi

I am facing this issue now, Please assist me to get this sorted,


Thanks in advance



root@graylog:~# 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/default.rb



  NoMethodError
  -
  undefined method `[]=' for nil:NilClass

  Cookbook Trace:
  ---
/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:82:in
`block (2 levels) in generate_services'
/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:81:in
`each'
/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:81:in
`block in generate_services'
/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:80:in
`each'
/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:80:in
`generate_services'
/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:223:in
`generate_config'
/opt/graylog/embedded/cookbooks/graylog/recipes/default.rb:13:in
`from_file'

  Relevant File Content:
  --
  /opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:

   75:  def generate_services
   76:existing_services ||= Hash.new
   77:if File.exists?("/etc/graylog/graylog-services.json")
   78:  existing_services =
Chef::JSONCompat.from_json(File.read("/etc/graylog/graylog-services.json"))
   79:end
   80:existing_services.each do |k, v|
   81:  v.each do |pk, p|
   82>>   Graylog[k][pk] = p
   83:  end
   84:end
   85:
   86:Graylog['etcd']['enabled']=
Graylog[:node]['graylog']['etcd']['enable'] if
Graylog['etcd']['enabled'].nil?
   87:Graylog['nginx']['enabled']   =
Graylog[:node]['graylog']['nginx']['enable'] if
Graylog['nginx']['enabled'].nil?
   88:Graylog['mongodb']['enabled'] =
Graylog[:node]['graylog']['mongodb']['enable'] if
Graylog['mongodb']['enabled'].nil?
   89:Graylog['elasticsearch']['enabled']   =
Graylog[:node]['graylog']['elasticsearch']['enable'] if
Graylog['elasticsearch']['enabled'].nil?
   90:Graylog['graylog_server']['enabled']  =
Graylog[:node]['graylog']['graylog-server']['enable'] if
Graylog['graylog_server']['enabled'].nil?
   91:


  Running handlers:
[2016-05-16T06:20:00+00:00] ERROR: Running exception handlers
  Running handlers complete
[2016-05-16T06:20:00+00:00] ERROR: Exception handlers complete
  Chef Client failed. 0 resources updated in 00 seconds
[2016-05-16T06:20:00+00:00] FATAL: Stacktrace dumped to
/opt/graylog/embedded/cookbooks/cache/chef-stacktrace.out
[2016-05-16T06:20:00+00:00] FATAL: Please provide the contents of the
stacktrace.out file if you file a bug report
[2016-05-16T06:20:00+00:00] ERROR: undefined method `[]=' for nil:NilClass
[2016-05-16T06:20:00+00:00] FATAL: Chef::Exceptions::ChildConvergeError:
Chef run process exited unsuccessfully (exit code 1)

*Regards,*
*Utkarsh Sharma*
*DevOps Engineer*
*CloudCover Consultancy Pvt. Ltd.*
*Phone: +91 91-68615342  | Skype: utkarshsharma021 | *
*Email : utka...@cloudcover.in <utka...@cloudcover.in> | www.cloudcover.in
<http://www.cloudcover.in/> *


*Disclaimer**: The information in this mail is confidential and is intended
solely for the addressee. Access to this mail by anyone else is
unauthorized. Copying or further distribution beyond the original recipient
may be unlawful. Any opinion expressed in this mail is that of the sender
and does not necessarily reflect that of CloudCover **Consultancy Pvt. Ltd.*

On Fri, May 13, 2016 at 10:07 PM, Utkarsh Sharma <utka...@cloudcover.in>
wrote:

> Hi Marius,
>
>
> Getting this error now
>
> root@graylog:/opt/graylog/embedded/bin# 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/default.rb
>
> 
>
>   NoMethodError
>   -
>   undefined method `[]=' for nil:NilClass
>
>   Cookbook Trace:
>   ---
> /opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:82:in
> `block (2 levels) in generate_services'
> /opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:81:in
> `each'
> /opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:81:in
> `block in generate_services'
> /opt/gra

[graylog2] Re: Unable to Upgrade Graylog from 1.3 to 2.0 Lauched from Readymade AMI

2016-05-13 Thread Utkarsh Sharma
Hi Marius,


Getting this error now

root@graylog:/opt/graylog/embedded/bin# 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/default.rb
  


  NoMethodError
  -
  undefined method `[]=' for nil:NilClass

  Cookbook Trace:
  ---
/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:82:in 
`block (2 levels) in generate_services'
/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:81:in 
`each'
/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:81:in 
`block in generate_services'
/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:80:in 
`each'
/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:80:in 
`generate_services'
/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:223:in 
`generate_config'
/opt/graylog/embedded/cookbooks/graylog/recipes/default.rb:13:in 
`from_file'

  Relevant File Content:
  --
  /opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:

   75:  def generate_services
   76:existing_services ||= Hash.new
   77:if File.exists?("/etc/graylog/graylog-services.json")
   78:  existing_services = 
Chef::JSONCompat.from_json(File.read("/etc/graylog/graylog-services.json"))
   79:end
   80:existing_services.each do |k, v|
   81:  v.each do |pk, p|
   82>>   Graylog[k][pk] = p
   83:  end
   84:end
   85:
   86:Graylog['etcd']['enabled']= 
Graylog[:node]['graylog']['etcd']['enable'] if 
Graylog['etcd']['enabled'].nil?
   87:Graylog['nginx']['enabled']   = 
Graylog[:node]['graylog']['nginx']['enable'] if 
Graylog['nginx']['enabled'].nil?
   88:Graylog['mongodb']['enabled'] = 
Graylog[:node]['graylog']['mongodb']['enable'] if 
Graylog['mongodb']['enabled'].nil?
   89:Graylog['elasticsearch']['enabled']   = 
Graylog[:node]['graylog']['elasticsearch']['enable'] if 
Graylog['elasticsearch']['enabled'].nil?
   90:Graylog['graylog_server']['enabled']  = 
Graylog[:node]['graylog']['graylog-server']['enable'] if 
Graylog['graylog_server']['enabled'].nil?
   91:


  Running handlers:
[2016-05-13T16:16:33+00:00] ERROR: Running exception handlers
  Running handlers complete
[2016-05-13T16:16:33+00:00] ERROR: Exception handlers complete
  Chef Client failed. 0 resources updated in 00 seconds
[2016-05-13T16:16:33+00:00] FATAL: Stacktrace dumped to 
/opt/graylog/embedded/cookbooks/cache/chef-stacktrace.out
[2016-05-13T16:16:33+00:00] FATAL: Please provide the contents of the 
stacktrace.out file if you file a bug report
[2016-05-13T16:16:33+00:00] ERROR: undefined method `[]=' for nil:NilClass
[2016-05-13T16:16:33+00:00] FATAL: Chef::Exceptions::ChildConvergeError: 
Chef run process exited unsuccessfully (exit code 1)

.


On Tuesday, May 10, 2016 at 4:55:16 PM UTC+5:30, Utkarsh Sharma wrote:
>
> Hi Team,
>
> We have setup Graylog 1.3 using readymade AWS EC2-AMI, Now we are planning 
> to upgrade that to 2.0.
> but unfortunately we are unable to upgrade that Please help us getting it 
> resolved.
>
> I have used below commands to upgrade graylog.
>
> *wget 
> https://packages.graylog2.org/releases/graylog-omnibus/ubuntu/graylog_latest.deb
>  
> <https://packages.graylog2.org/releases/graylog-omnibus/ubuntu/graylog_latest.deb>
> sudo graylog-ctl stop
> sudo dpkg -G -i graylog_latest.deb
> sudo graylog-ctl reconfigure*
>
>
> *Output :*
>
> *Reading database ... 91745 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!
> By installing this package, you accept the terms of the Oracle Binary Code 
> License Agreement for the Java SE Platform Products and JavaFX, which can be 
> found at 
> http://www.oracle.com/technetwork/java/javase/terms/license/index.html 
> <http://www.oracle.com/technetwork/java/javase/terms/license/index.html>
>
> Thank you for installing Graylog!
> The next step in the install process is to run:
>
> sudo graylog-ctl reconfigure
> Errors were encountered while processing:*
>
>
>
> *Thanks in advance,*
>
>
> *Regards,*
> *Utkarsh Sharma*
> *DevOps Engineer*
> *CloudCover Consultancy Pvt. Ltd.*
> *Phone: +91 91-6

[graylog2] Trying to upgrade Graylog from 1.3 to 2.0 facing issues

2016-05-12 Thread Utkarsh Sharma
Hi team,

I am trying to upgrade graylog from 1.3 to 2.0 version 
but facing some issues Please help me in this

*ERROR*

[2016-05-12T01:16:48-07:00] FATAL: Can not reach master server, make sure 
127.0.0.1 is reachable and 'etcd' service is running properly.


  


  Recipe Compile Error in 
/opt/graylog/embedded/cookbooks/graylog/recipes/default.rb

  



  SystemExit

  --

  exit


  Cookbook Trace:

  ---

/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:165:in 
`rescue in generate_settings'

/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:160:in 
`generate_settings'

/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:224:in 
`generate_config'

/opt/graylog/embedded/cookbooks/graylog/recipes/default.rb:13:in 
`from_file'


  Relevant File Content:

  --

  /opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:


  158:if Graylog['current_address'] != Graylog['last_address']

  159:  Chef::Log.warn("IP change detected!")

  160:  begin

  161:client = Etcd.client(host: Graylog['master_node'], port: 
4001)

  162:client.delete("/servers/#{Graylog['last_address']}") if 
client.exists?("/servers/#{Graylog['last_address']}")

  163:
client.delete("/elasticsearch/#{Graylog['last_address']}") if 
client.exists?("/elasticsearch/#{Graylog['last_address']}")

  164:  rescue Exception => e

  165>> Chef::Application.fatal!("Can not reach master server, make 
sure #{Graylog['master_node']} is reachable and 'etcd' service is running 
properly.")

  166:end

  167:  Graylog['last_address'] = Graylog['current_address']

  168:end

  169:

  170:if File.directory?("/etc/graylog")

  171:  File.open("/etc/graylog/graylog-settings.json", "w") do |f|

  172:f.puts(

  173:  Chef::JSONCompat.to_json_pretty({

  174:'timezone' => Graylog['timezone'],



  Running handlers:

[2016-05-12T01:16:48-07:00] ERROR: Running exception handlers

  Running handlers complete

[2016-05-12T01:16:48-07:00] ERROR: Exception handlers complete

  Chef Client failed. 0 resources updated in 00 seconds

[2016-05-12T01:16:48-07:00] FATAL: Stacktrace dumped to 
/opt/graylog/embedded/cookbooks/cache/chef-stacktrace.out

[2016-05-12T01:16:48-07:00] FATAL: Please provide the contents of the 
stacktrace.out file if you file a bug report

[2016-05-12T01:16:48-07:00] ERROR: exit

[2016-05-12T01:16:48-07:00] FATAL: Chef::Exceptions::ChildConvergeError: 
Chef run process exited unsuccessfully (exit code 1)






Thanks in advance



-- 
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 graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/5e24ccb6-0c09-4ea0-b366-06aa4b64ca48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Re: Unable to Upgrade Graylog from 1.3 to 2.0 Lauched from Readymade AMI

2016-05-12 Thread Utkarsh Sharma
 

Hi Jochen,


I hv gone through doc but getting this error

[2016-05-12T01:16:48-07:00] FATAL: Can not reach master server, make sure 
127.0.0.1 is reachable and 'etcd' service is running properly.


  


  Recipe Compile Error in 
/opt/graylog/embedded/cookbooks/graylog/recipes/default.rb

  



  SystemExit

  --

  exit


  Cookbook Trace:

  ---

/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:165:in 
`rescue in generate_settings'

/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:160:in 
`generate_settings'

/opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:224:in 
`generate_config'

/opt/graylog/embedded/cookbooks/graylog/recipes/default.rb:13:in 
`from_file'


  Relevant File Content:

  --

  /opt/graylog/embedded/cookbooks/graylog/libraries/graylog.rb:


  158:if Graylog['current_address'] != Graylog['last_address']

  159:  Chef::Log.warn("IP change detected!")

  160:  begin

  161:client = Etcd.client(host: Graylog['master_node'], port: 
4001)

  162:client.delete("/servers/#{Graylog['last_address']}") if 
client.exists?("/servers/#{Graylog['last_address']}")

  163:
client.delete("/elasticsearch/#{Graylog['last_address']}") if 
client.exists?("/elasticsearch/#{Graylog['last_address']}")

  164:  rescue Exception => e

  165>> Chef::Application.fatal!("Can not reach master server, make 
sure #{Graylog['master_node']} is reachable and 'etcd' service is running 
properly.")

  166:end

  167:  Graylog['last_address'] = Graylog['current_address']

  168:end

  169:

  170:if File.directory?("/etc/graylog")

  171:  File.open("/etc/graylog/graylog-settings.json", "w") do |f|

  172:f.puts(

  173:  Chef::JSONCompat.to_json_pretty({

  174:'timezone' => Graylog['timezone'],



  Running handlers:

[2016-05-12T01:16:48-07:00] ERROR: Running exception handlers

  Running handlers complete

[2016-05-12T01:16:48-07:00] ERROR: Exception handlers complete

  Chef Client failed. 0 resources updated in 00 seconds

[2016-05-12T01:16:48-07:00] FATAL: Stacktrace dumped to 
/opt/graylog/embedded/cookbooks/cache/chef-stacktrace.out

[2016-05-12T01:16:48-07:00] FATAL: Please provide the contents of the 
stacktrace.out file if you file a bug report

[2016-05-12T01:16:48-07:00] ERROR: exit

[2016-05-12T01:16:48-07:00] FATAL: Chef::Exceptions::ChildConvergeError: 
Chef run process exited unsuccessfully (exit code 1)

On Tuesday, May 10, 2016 at 4:55:16 PM UTC+5:30, Utkarsh Sharma wrote:
>
> Hi Team,
>
> We have setup Graylog 1.3 using readymade AWS EC2-AMI, Now we are planning 
> to upgrade that to 2.0.
> but unfortunately we are unable to upgrade that Please help us getting it 
> resolved.
>
> I have used below commands to upgrade graylog.
>
> *wget 
> https://packages.graylog2.org/releases/graylog-omnibus/ubuntu/graylog_latest.deb
>  
> <https://packages.graylog2.org/releases/graylog-omnibus/ubuntu/graylog_latest.deb>
> sudo graylog-ctl stop
> sudo dpkg -G -i graylog_latest.deb
> sudo graylog-ctl reconfigure*
>
>
> *Output :*
>
> *Reading database ... 91745 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!
> By installing this package, you accept the terms of the Oracle Binary Code 
> License Agreement for the Java SE Platform Products and JavaFX, which can be 
> found at 
> http://www.oracle.com/technetwork/java/javase/terms/license/index.html 
> <http://www.oracle.com/technetwork/java/javase/terms/license/index.html>
>
> Thank you for installing Graylog!
> The next step in the install process is to run:
>
> sudo graylog-ctl reconfigure
> Errors were encountered while processing:*
>
>
>
> *Thanks in advance,*
>
>
> *Regards,*
> *Utkarsh Sharma*
> *DevOps Engineer*
> *CloudCover Consultancy Pvt. Ltd.*
> *Phone: +91 91-68615342  | Skype: utkarshsharma021 | *
> *Email : utka...@cloudcover.in <utka...@cloudcover.in> | www.cloudcover.in 
> <http://www.cloudcover.in/> *
>
>
>

-- 
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 graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/9e92d4ee-66ed-43b7-928f-458ac5e3d93c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Unable to Upgrade Graylog from 1.3 to 2.0 Lauched from Readymade AMI

2016-05-10 Thread Utkarsh Sharma
Hi Team,

We have setup Graylog 1.3 using readymade AWS EC2-AMI, Now we are planning 
to upgrade that to 2.0.
but unfortunately we are unable to upgrade that Please help us getting it 
resolved.

I have used below commands to upgrade graylog.

*wget 
https://packages.graylog2.org/releases/graylog-omnibus/ubuntu/graylog_latest.deb
 
<https://packages.graylog2.org/releases/graylog-omnibus/ubuntu/graylog_latest.deb>
sudo graylog-ctl stop
sudo dpkg -G -i graylog_latest.deb
sudo graylog-ctl reconfigure*


*Output :*

*Reading database ... 91745 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!
By installing this package, you accept the terms of the Oracle Binary Code 
License Agreement for the Java SE Platform Products and JavaFX, which can be 
found at http://www.oracle.com/technetwork/java/javase/terms/license/index.html 
<http://www.oracle.com/technetwork/java/javase/terms/license/index.html>

Thank you for installing Graylog!
The next step in the install process is to run:

sudo graylog-ctl reconfigure
Errors were encountered while processing:*



*Thanks in advance,*


*Regards,*
*Utkarsh Sharma*
*DevOps Engineer*
*CloudCover Consultancy Pvt. Ltd.*
*Phone: +91 91-68615342  | Skype: utkarshsharma021 | *
*Email : utka...@cloudcover.in <utka...@cloudcover.in> | www.cloudcover.in 
<http://www.cloudcover.in/> *


-- 
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 graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/dc86bb41-ce9f-444f-960b-5967b70fe420%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.