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-68615342  | Skype: utkarshsharma021 | *
> *Email : [email protected] <[email protected]> | 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/42f8a5eb-8e83-41a8-86bc-c57b825be1f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to