I have created a template in chef, sending the value from attributes and recipes but getting error :
[2015-12-09T08:09:19-05:00] ERROR: Running exception handlers
[2015-12-09T08:09:19-05:00] ERROR: Exception handlers complete
[2015-12-09T08:09:19-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2015-12-09T08:09:19-05:00] INFO: Sending resource update report (run-id: a9175420-0358-4631-8d30-664fdfd792c0)
[2015-12-09T08:09:19-05:00] ERROR: undefined method `default' for Chef::Resource::Template
[2015-12-09T08:09:19-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
How to resolve the error:
I have defined the attribute as :
default['abc']['LOG_FILE']=''
and in recipe it is
variables(
:LOG_FILE => default['abc']['LOG_FILE'],
Your syntax is wrong, you need to use node instead of default when referencing attributes:
variables(
:LOG_FILE => node['abc']['LOG_FILE'],
Related
I have a Selenium Python test suite. It starts to run show error msg.
unexpected error: Exception AttributeError: "'Service' object has no
attribute 'process'" in del of
selenium.webdriver.chrome.service.Service object at 0x040F20B0
ignored
and
Warning [ WARN ] Keyword 'Capture Page Screenshot' could not be run on
failure: No browser is open
How can I fix it.
The actual error for you is "WebDriverException: Message: 'chromedriver' executable needs to be available in the path"
Download Chrome driver from
https://sites.google.com/a/chromium.org/chromedriver/downloads
Then set the path to chrome driver
*** Settings ***
Library OperatingSystem
*** Keywords ****
Set Environment Variable webdriver.chrome.driver ${PATHTODRIVER}/chromedriver.exe
We are trying to install python using OpsWork. Installation happens correct but in the end we get the message:
Ran "bash" "/tmp/chef-script20140715-9783-k2dw6u" returned 2
[2014-07-15T10:29:19+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
What can we be doing wrong?
Final Snippets of the output is below:
Compiling /usr/local/lib/python2.7/xml/sax/__init__.py ...
Compiling /usr/local/lib/python2.7/xml/sax/_exceptions.py ...
Compiling /usr/local/lib/python2.7/xml/sax/expatreader.py ...
Compiling /usr/local/lib/python2.7/xml/sax/handler.py ...
Compiling /usr/local/lib/python2.7/xml/sax/saxutils.py ...
Compiling /usr/local/lib/python2.7/xml/sax/xmlreader.py ...
Compiling /usr/local/lib/python2.7/xmllib.py ...
Compiling /usr/local/lib/python2.7/xmlrpclib.py ...
Compiling /usr/local/lib/python2.7/zipfile.py ...
STDERR: configure: WARNING:
By default, distutils will build C++ extension modules with "g++".
If this is not intended, then set CXX on the configure command line.
libpython2.7.a(posixmodule.o): In function `posix_tmpnam':
/var/lib/aws/opsworks/cache/Python-2.7.1/./Modules/posixmodule.c:7346: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
libpython2.7.a(posixmodule.o): In function `posix_tempnam':
/var/lib/aws/opsworks/cache/Python-2.7.1/./Modules/posixmodule.c:7301: warning: the use of `tempnam' is dangerous, better use `mkstemp'
*** WARNING: renaming "crypt" since importing it failed: build/lib.linux-x86_64-2.7/crypt.so: undefined symbol: crypt
*** WARNING: renaming "nis" since importing it failed: build/lib.linux-x86_64-2.7/nis.so: undefined symbol: yp_master
*** WARNING: renaming "crypt" since importing it failed: build/lib.linux-x86_64-2.7/crypt.so: undefined symbol: crypt
*** WARNING: renaming "nis" since importing it failed: build/lib.linux-x86_64-2.7/nis.so: undefined symbol: yp_master
make: *** [libinstall] Error 1
---- End output of "bash" "/tmp/chef-script20140715-9783-k2dw6u" ----
Ran "bash" "/tmp/chef-script20140715-9783-k2dw6u" returned 2
[2014-07-15T10:29:19+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
I've had that error happen before.
Solution 1 - I needed to upgrade make tools. Also needed to ensure that the python wasn't already installed.
Solution 2 - ( horrible one ) Also if all things fail, simply add the line into the BASH stanza:
bash "install python...." do
..
ignore_failure true
..
end
In my app, when I call [Nextpeer launchDashboard], the app crashes and I get this error:
*** Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:],
/SourceCache/UIKit_Sim/UIKit-2380.17/UITableView.m:5471
2014-06-23 10:40:07.489 PZPlayer[9966:907]
*** Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason:
'UITableView dataSource must return a cell from
tableView:cellForRowAtIndexPath:'
I've tried deleting and reinstalling the next peer framework but it didn't help.
Maybe someone faced with the same situation
We have a clean instance on redis who try to put a chef
Default recipe has only
include_recipe "redisio :: install"
When I cook getting the following error
Enviroment AWS ec2.micro ubuntu 12.04
When I run cook to receive an error
================================================================================
Recipe Compile Error in /tmp/chef-solo/cookbooks/main/recipes/default.rb
================================================================================
NoMethodError
-------------
undefined method `[]' for nil:NilClass
Cookbook Trace:
---------------
/tmp/chef-solo/cookbooks/ulimit/recipes/default.rb:13:in `block in from_file'
/tmp/chef-solo/cookbooks/ulimit/recipes/default.rb:12:in `from_file'
/tmp/chef-solo/cookbooks/redisio/recipes/install.rb:20:in `from_file'
/tmp/chef-solo/cookbooks/main/recipes/default.rb:11:in `from_file'
Relevant File Content:
----------------------
/tmp/chef-solo/cookbooks/ulimit/recipes/default.rb:
6: # All rights reserved - Do Not Redistribute
7: #
8: ulimit = node['ulimit']
9:
10: case node[:platform]
11: when "debian", "ubuntu"
12: template "/etc/pam.d/su" do
13>> cookbook ulimit['pam_su_template_cookbook']
14: end
15: end
16:
[2013-04-06T14:09:50+00:00] ERROR: Running exception handlers
[2013-04-06T14:09:50+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated
[2013-04-06T14:09:50+00:00] FATAL: Stacktrace dumped to /tmp/chef-solo/chef-stacktrace.out
[2013-04-06T14:09:50+00:00] FATAL: NoMethodError: undefined method `[]' for nil:NilClass
ERROR: RuntimeError: chef-solo failed. See output above.
Resource https://github.com/Piom/redis-chef.git
I ran into this issue as well. I have one way to solve it but I am also just started looking into chef.
the issue is redisio depends on ulimit and looks like the recipe does not handle when you don't have any attributes for ulimit defined.
ulimit = node['ulimit']
try to get a hash of attributes but is getting nil. So if you define some attributes it should work.
there might be an updated version of the recipe since you downloaded it. If not in ulimit/attributes/default.rb I have default['ulimit']['pam_su_template_cookbook'] = nil and it worked for me.
ulimit let you limit resources. I think it can be used to limit redis resources. (again I am new too.) So the better way might be figure how you want to configure ulimit and set the correct attribute rather than nil
When I use the Emacs to run my SML codes to understand the errors I get an error message. No matter what my codes are, every time I try SML/Process/start SML repl
and then type use "project name";, I get this message:
use "New_Pro";
[Opening New_Pro]
[use failed: Io: OpenIn failed on "New_Pro", Win32TextPrimIO:openRd: failed]
uncaught exception Error
raised at: .../compiler/TopLevel/interact/interact.sml:24.14-24.28
-
What's wrong with it?
I can use C-c C-l to load my Project.