| popularity | question | answers | views | user | |
|---|---|---|---|---|---|
| 0 |
Timeout with knife bootstrap windows winrm
I am receiving an error with my ‘knife bootstrap windows winrm FQDN’ command. It keeps timing out, and I’m not sure what I can do.
|
0 | 18 | ||
| 0 |
No connection could be made because the target machine actively refused it
Hi, I am trying to bootstrap a Windows2008R2 host, but I am running into a few problems. Trying to run an exe but Chef complains: 127.0.0.1 [2013-04-22T09:01:11-07:00] FATAL: Errno::ECONNREFUSED: windows_package[CollabNet Subversion Edge] (collabnet_svn::default line 20) had an error: Errno::ECONNREFUSED: remote_file[c:/chef/cache/CollabNetSVNEdge_3.2.2.exe] (dynamically defined) had an error: Errno::ECONNREFUSED: No connection could be made because the target machine actively refused it. – Connection refused connecting to : for /CollabNetSVNEdge_3.2.2.exe/C:/CollabNetSVNEdge_3.2.2.exe, giving up
Any ideas, is this a bug? Thanks. |
0 | 32 | ||
| 0 |
Is there a IIS 8 cookbook for Windows 2012?
Hi all, It’s my first day using Chef. Cool stuff. I can’t get IIS to install on Windows Server 2012 which, like Windows 8, runs IIS 8. I’m using the IIS cookbook which is for IIS 7 and 7.5. I can’t find a cookbook for IIS 8. Specifically, WebpiCmdLine.exe crashes. I suppose I could edit the cookbook and but that’s dangerous for a newbie. -Rich |
0 | 31 | ||
| 0 |
First run attributes on chef-client 11 for windows
Hi, I have some troubles importing attributes at first run with chef-clietn 11 for windows. I have a json file “c:/chef/first-boot.json” with similar content {“company”:{“company_name”:“My Company”},“run_list”:[“role[server_role]”]} I start the client with this line chef-client -c c:/chef/client.rb -j c:/chef/first-boot.json I have a role, which is applied correctly and all recipes for that role are started to compile and run. However, if I want to use the “company” attribute at the first run, the attribute is missing (for example node[:company][:company_name] gives me “NoMethodError”, because node[:company] do not exist). If I do not use this attribute (i.e. all recipes pass trough the first run), the attribute node[:company] appears in the chef server and I can use it on the next run. This method for first run attributes works well on linux chef-client. There I’m able to use the node[:company] attribute on the first run without any problems. Am I doing something wrong or there is some limitation for chef-client for windows? Here is my log from the console chef-client -c c:/chef/client.rb -j c:/chef/first-boot.json -E dev INFO: Chef 11.4.0 INFO: Client key c:/chef/client.pem is not present – registering INFO: Setting the run_list to [“role[server_role]”] from JSON INFO: Run List is [role[server_role]] INFO: Run List expands to [testbook::compnay_set] INFO: Starting Chef Run for node01 INFO: Running start handlers INFO: Start handlers complete. INFO: Loading cookbooks [testbook] Synchronizing Cookbooks: – sag_base – testbook Compiling Cookbooks… ================================================================================ Recipe Compile Error in c:/chef/cache/cookbooks/testbook/recipes/compnay_set.rb ================================================================================ NoMethodError undefined method `[]‘ for nil:NilClass Cookbook Trace: c:/chef/cache/cookbooks/testbook/recipes/install_dbc.rb:8:in `from_file' Relevant File Content: c:/chef/cache/cookbooks/testbook/recipes/install_dbc.rb: … 7: 8>> name = node[:company][:company_name] 9: … ERROR: Running exception handlers FATAL: Saving node information to c:/chef/cache/failed-run-data.json ERROR: Exception handlers complete Chef Client failed. 0 resources updated FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out FATAL: NoMethodError: undefined method `[]‘ for nil:NilClass |
0 | 120 | ||
| 0 |
Did anyone able to verify sql_server cookbook is actually working for Chef 11.x?
Hi , I am trying to just set up very simple SQL Server 2008 R2 std installation on my vagrant’s windows 2008 R2 box. But it returns my windows_package (xxxxx native client) issue. Did anyone use this cookbook before? Can you share me your exp of how to use it? thanks, Matt. |
0 | 36 | ||
| 0 |
Cookbook Install error
My Platform : Windows 8 and Git 1.8.0-preview20121022 and Chef Client 10.16.2 When I run knife cookbook site install database, i get the following error,
I get this error only on windows, but when I tried the same command on Linux it works perfectly. Guessing its an issue with Windows Git ??? Any help in this regard will be of great help. ~Kamesh |
0 | 58 | ||
| 0 |
Latest Windows Cookbook (1.5.0) blows up on tasks
I had to revert to 1.4.0 after I was unable to fix a situation in which no matter what I did, I got this when I attempted to create a task: NoMethodErrorundefined method `[]‘ for false:FalseClass Cookbook Trace:c:/chef/cache/cookbooks/windows/providers/task.rb:91:in `load_current_resource' Something was declaring something false, it appears. This was with every conceivable variation of the recipe. Reverting to 1.4.0 fixed the problem. Was there something I was doing wrong with a new feature etc, or is this a bug? Thanks. |
0 | 75 | ||
| 0 |
Desktop Background change for windows
Hey Guys, I need a cookbook to change the desktop background for all kind of windows machines. this is an urgent requirement for my project.Please help me friends. please provide me cookbook link that changes the desktop BG. thanks, Raam Nobody knows about this..?i need it very urgently.. |
0 | 83 | ||
| 0 |
Error in Quck start of setting up of a Java Web Application
I am trying to set up the Chef architecture for the first time on my Windows 7 (32-bit) machine. For cloud information, I am using AWS credentials. In the initial step , when Chef tries to set up the architecture using my AWS credentials, I am getting errors. In the logs, I found these erros: [2012-08-14T22:16:02+00:00] ERROR: Running exception handlers [2012-08-14T22:16:03+00:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json [2012-08-14T22:16:03+00:00] ERROR: Exception handlers complete [2012-08-14T22:16:03+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [2012-08-14T22:16:03+00:00] FATAL: Chef::Exceptions::ShellCommandFailed: execute[update-java-alternatives] (java::openjdk line 27) had an error: Expected process to exit 0, but it exited with 1 —— Begin output of update-java-alternatives -s java-6-openjdk —— STDOUT: STDERR: update-java-alternatives: file does not exist: /usr/lib/jvm/.java-6-openjdk.jinfo —— End output of update-java-alternatives -s java-6-openjdk —— Ran update-java-alternatives -s java-6-openjdk returned 1 |
0 | 179 | ||
| 0 |
ArgumentError: invalid byte sequence in US-ASCII
When I ran “chef-client” on nodes(windows 2008, windows 7) with mysql::server, I got the following error: [2012-08-08T09:55:04+08:00] INFO: Chef 10.12.0 [2012-08-08T09:55:22+08:00] INFO: Run List is [recipe[mysql::server]] [2012-08-08T09:55:22+08:00] INFO: Run List expands to [mysql::server] [2012-08-08T09:55:22+08:00] INFO: Starting Chef Run for node08a.gdeii.com.cn [2012-08-08T09:55:22+08:00] INFO: Running start handlers [2012-08-08T09:55:22+08:00] INFO: Start handlers complete. [2012-08-08T09:55:22+08:00] INFO: Loading cookbooks [chef_handler, mysql, openss l, windows] [2012-08-08T09:55:22+08:00] INFO: Storing updated cookbooks/mysql/recipes/server .rb in the cache. [2012-08-08T09:55:23+08:00] INFO: Could not find previously defined grants.sql r esource [2012-08-08T09:55:23+08:00] INFO: Processing remote_file[c:/chef/cache/mysql-con nector-c-6.0.2-win32.msi] action create (mysql::client line /chef/cache/cookbook s/mysql/recipes/client.rb) [2012-08-08T09:55:23+08:00] INFO: Processing windows_package[MySQL Connector C 6 .0.2] action nothing (mysql::client line /chef/cache/cookbooks/mysql/recipes/cli ent.rb) [2012-08-08T09:55:23+08:00] INFO: Processing windows_path[C:\Program Files (x86) \MySQL\MySQL Connector C 6.0.2\bin] action add (mysql::client line /chef/cache/c ookbooks/mysql/recipes/client.rb) [2012-08-08T09:55:23+08:00] INFO: Processing env[PATH] action modify (c line /ch ef/cache/cookbooks/windows/providers/path.rb) [2012-08-08T09:55:23+08:00] INFO: Processing windows_package[MySQL Connector C 6 .0.2] action nothing (mysql::client line /chef/cache/cookbooks/mysql/recipes/cli ent.rb) [2012-08-08T09:55:23+08:00] INFO: Processing windows_path[C:\Program Files (x86) \MySQL\MySQL Connector C 6.0.2\bin] action add (mysql::client line /chef/cache/c ookbooks/mysql/recipes/client.rb) [2012-08-08T09:55:23+08:00] INFO: Processing env[PATH] action modify (c line /ch ef/cache/cookbooks/windows/providers/path.rb) [2012-08-08T09:55:23+08:00] INFO: Processing windows_package[MySQL Connector C 6 .0.2] action install (mysql::client line /chef/cache/cookbooks/mysql/recipes/cli ent.rb) [2012-08-08T09:55:23+08:00] INFO: Processing gem_package[mysql] action install ( mysql::client line /chef/cache/cookbooks/mysql/recipes/client.rb) NOTE: Gem::SourceIndex.from_gems_in is deprecated with no replacement. It will b e removed on or after 2011-10-01. Gem::SourceIndex.from_gems_in called from C:/opscode/chef/embedded/lib/ruby/gems /1.9.1/gems/chef-10.12.0/lib/chef/provider/package/rubygems.rb:265 . [2012-08-08T09:55:24+08:00] INFO: Processing ruby_block[copy libmysql.dll into r uby path] action create (mysql::client line /chef/cache/cookbooks/mysql/recipes/ client.rb) [2012-08-08T09:55:24+08:00] INFO: Processing remote_file[c:/chef/cache/mysql-5.5 .21-win32.msi] action create (mysql::server line /chef/cache/cookbooks/mysql/rec ipes/server.rb) [2012-08-08T09:55:24+08:00] INFO: Processing windows_package[MySQL Server 5.5] a ction nothing (mysql::server line /chef/cache/cookbooks/mysql/recipes/server.rb) [2012-08-08T09:55:24+08:00] INFO: Processing windows_package[MySQL Server 5.5] a ction install (mysql::server line /chef/cache/cookbooks/mysql/recipes/server.rb) [2012-08-08T09:55:24+08:00] INFO: Processing directory[C:\Program Files (x86)\My
SQL\MySQL Server 5.5] action create (mysql::server line /chef/cache/cookbooks/my
sql/recipes/server.rb)
[2012-08-08T09:55:24+08:00] INFO: Processing windows_path[C:\Program Files (x86)
\MySQL\MySQL Server 5.5\bin] action add (mysql::server line /chef/cache/cookbook
s/mysql/recipes/server.rb)
[2012-08-08T09:55:24+08:00] INFO: Processing env[PATH] action modify (c line /ch
ef/cache/cookbooks/windows/providers/path.rb)
[2012-08-08T09:55:24+08:00] INFO: Processing windows_batch[install mysql service
] action run (mysql::server line /chef/cache/cookbooks/mysql/recipes/server.rb)
[2012-08-08T09:55:24+08:00] INFO: Processing execute[install mysql service] acti
on run (dynamically defined)
[2012-08-08T09:55:24+08:00] INFO: execute[install mysql service] ran successfull
y
[2012-08-08T09:55:24+08:00] INFO: Processing service[mysql] action nothing (mysq
l::server line /chef/cache/cookbooks/mysql/recipes/server.rb)
[2012-08-08T09:55:24+08:00] ERROR: service[mysql] (mysql::server line /chef/cach
e/cookbooks/mysql/recipes/server.rb) has had an error
[2012-08-08T09:55:24+08:00] ERROR: service[mysql] (c:/chef/cache/cookbooks/mysql
/recipes/server.rb:101:in Do anyone know how to solve it ???? Many thanks |
0 | 166 |
