Hello SDC experts,


I am trying to run SDC locally on MacOS. I have followed all the instructions 
from this 
page(https://wiki.onap.org/display/DW/Building+and+running+SDC+using+Docker+for+OSX)
 but somehow I am getting this error after running this script

sdc-os-chef/scripts/docker_run.sh -e AUTO -l


 It looks like it fails to start  sdc-cassandra-init due to which other 
containers like (sdc-BE, sdc-FE etc are not able to start). This is the error I 
am getting

docker run sdc-cassandra-init...

[2019-03-07T21:40:51+00:00] INFO: Started chef-zero at chefzero://localhost:1 
with repository at /root/chef-solo

  One version per cookbook

[2019-03-07T21:40:51+00:00] INFO: Started chef-zero at chefzero://localhost:1 
with repository at /root/chef-solo

  One version per cookbook

[2019-03-07T21:40:51+00:00] INFO: Forking chef instance to converge...

[2019-03-07T21:40:51+00:00] INFO: Forking chef instance to converge...

Starting Chef Client, version 13.8.5

[2019-03-07T21:40:51+00:00] INFO: *** Chef 13.8.5 ***

[2019-03-07T21:40:51+00:00] INFO: *** Chef 13.8.5 ***

[2019-03-07T21:40:51+00:00] INFO: Platform: x86_64-linux-musl

[2019-03-07T21:40:51+00:00] INFO: Platform: x86_64-linux-musl

[2019-03-07T21:40:51+00:00] INFO: Chef-client pid: 14

[2019-03-07T21:40:51+00:00] INFO: Chef-client pid: 14

[2019-03-07T21:40:51+00:00] INFO: The plugin path /etc/chef/ohai/plugins does 
not exist. Skipping...

[2019-03-07T21:40:51+00:00] INFO: The plugin path /etc/chef/ohai/plugins does 
not exist. Skipping...

[2019-03-07T21:40:52+00:00] INFO: Setting the run_list to 
["role[cassandra-actions]"] from CLI options

[2019-03-07T21:40:52+00:00] INFO: Setting the run_list to 
["role[cassandra-actions]"] from CLI options

[2019-03-07T21:40:52+00:00] INFO: Run List is [role[cassandra-actions]]

[2019-03-07T21:40:52+00:00] INFO: Run List is [role[cassandra-actions]]

[2019-03-07T21:40:52+00:00] INFO: Run List expands to 
[cassandra-actions::01-createCsUser, cassandra-actions::03-schemaCreation, 
cassandra-actions::04-importComformance]

[2019-03-07T21:40:52+00:00] INFO: Run List expands to 
[cassandra-actions::01-createCsUser, cassandra-actions::03-schemaCreation, 
cassandra-actions::04-importComformance]

[2019-03-07T21:40:52+00:00] INFO: Starting Chef Run for 1eef96bea083

[2019-03-07T21:40:52+00:00] INFO: Starting Chef Run for 1eef96bea083

[2019-03-07T21:40:52+00:00] INFO: Running start handlers

[2019-03-07T21:40:52+00:00] INFO: Running start handlers

[2019-03-07T21:40:52+00:00] INFO: Start handlers complete.

[2019-03-07T21:40:52+00:00] INFO: Start handlers complete.

resolving cookbooks for run list: ["cassandra-actions::01-createCsUser", 
"cassandra-actions::03-schemaCreation", 
"cassandra-actions::04-importComformance"]

[2019-03-07T21:40:54+00:00] INFO: Loading cookbooks [[email protected]]

[2019-03-07T21:40:54+00:00] INFO: Loading cookbooks [[email protected]]

Synchronizing Cookbooks:

  - cassandra-actions (0.0.0)

Installing Cookbook Gems:

Compiling Cookbooks...



================================================================================

Recipe Compile Error in 
/root/chef-solo/cache/cookbooks/cassandra-actions/recipes/03-schemaCreation.rb

================================================================================



NoMethodError

-------------

undefined method `+' for nil:NilClass



Cookbook Trace:

---------------

  
/root/chef-solo/cache/cookbooks/cassandra-actions/recipes/03-schemaCreation.rb:21:in
 `block in from_file'

  
/root/chef-solo/cache/cookbooks/cassandra-actions/recipes/03-schemaCreation.rb:15:in
 `from_file'



Relevant File Content:

----------------------

/root/chef-solo/cache/cookbooks/cassandra-actions/recipes/03-schemaCreation.rb:



 14:

 15:  template "titan.properties" do

 16:    sensitive true

 17:    path "/tmp/sdctool/config/titan.properties"

 18:    source "titan.properties.erb"

 19:    mode "0755"

 20:    variables({

 21>>      :DC_NAME      => 
node['cassandra']['datacenter_name']+node.chef_environment,

 22:       :cassandra_ip  => node['Nodes']['CS'].first,

 23:       :cassandra_pwd => node['cassandra'][:cassandra_password],

 24:       :cassandra_usr => node['cassandra'][:cassandra_user],

 25:       :titan_connection_timeout => 
node['cassandra']['titan_connection_timeout']

 26:    })

 27:  end

 28:

 29:

 30:  template "/tmp/sdctool/config/configuration.yaml" do



System Info:

------------

chef_version=13.8.5

platform=alpine

platform_version=3.8.1

ruby=ruby 2.5.2p104 (2018-10-18 revision 65133) [x86_64-linux-musl]

program_name=chef-solo worker: ppid=8;start=21:40:51;

executable=/usr/bin/chef-solo



Running handlers:

[2019-03-07T21:40:55+00:00] ERROR: Running exception handlers

[2019-03-07T21:40:55+00:00] ERROR: Running exception handlers

Running handlers complete

[2019-03-07T21:40:55+00:00] ERROR: Exception handlers complete

[2019-03-07T21:40:55+00:00] ERROR: Exception handlers complete

Chef Client failed. 0 resources updated in 04 seconds

[2019-03-07T21:40:55+00:00] FATAL: Stacktrace dumped to 
/root/chef-solo/cache/chef-stacktrace.out

[2019-03-07T21:40:55+00:00] FATAL: Stacktrace dumped to 
/root/chef-solo/cache/chef-stacktrace.out

[2019-03-07T21:40:55+00:00] FATAL: Please provide the contents of the 
stacktrace.out file if you file a bug report

[2019-03-07T21:40:55+00:00] FATAL: Please provide the contents of the 
stacktrace.out file if you file a bug report

[2019-03-07T21:40:55+00:00] ERROR: undefined method `+' for nil:NilClass

[2019-03-07T21:40:55+00:00] ERROR: undefined method `+' for nil:NilClass

[2019-03-07T21:40:55+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef 
run process exited unsuccessfully (exit code 1)

[2019-03-07T21:40:55+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef 
run process exited unsuccessfully (exit code 1)



Anyone aware of this?

Thanks,
Prathamesh Morde

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15935): https://lists.onap.org/g/onap-discuss/message/15935
Mute This Topic: https://lists.onap.org/mt/30313463/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to