Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chef never successfully completed! #21

Closed
juricazuanovic opened this issue May 3, 2014 · 6 comments
Closed

Chef never successfully completed! #21

juricazuanovic opened this issue May 3, 2014 · 6 comments

Comments

@juricazuanovic
Copy link

I've tried to install it on my computer using default setup, but installation always ends with errors:

[2014-05-03T15:36:07+00:00] INFO: package[php package] sending run action to execute[generate-module-list] (imm
ediate)                                                                                                        

================================================================================                               
Error executing action `run` on resource 'execute[generate-module-list]'                                       
================================================================================                               


Errno::ENOENT                                                                                                  
-------------                                                                                                  
No such file or directory - /usr/local/bin/apache2_module_conf_generate.pl /usr/lib/httpd /etc/httpd/mods-avail
able                                                                                                           


Resource Declaration:                                                                                          
---------------------                                                                                          
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/apache2/recipes/default.rb                                      

 68:   execute "generate-module-list" do                                                                       
 69:     command "/usr/local/bin/apache2_module_conf_generate.pl #{node['apache']['lib_dir']} #{node['apache'][
'dir']}/mods-available"                                                                                        
 70:     action :nothing                                                                                       
 71:   end                                                                                                     
 72:                                                                                                           



Compiled Resource:                                                                                             
------------------                                                                                             
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/apache2/recipes/default.rb:68:in `from_file'           

execute("generate-module-list") do                                                                             
  action [:nothing]                                                                                            
  retries 0                                                                                                    
  retry_delay 2                                                                                                
  guard_interpreter :default                                                                                   
  command "/usr/local/bin/apache2_module_conf_generate.pl /usr/lib/httpd /etc/httpd/mods-available"            
  backup 5                                                                                                     
  returns 0                                                                                                    
  cookbook_name :apache2                                                                                       
  recipe_name "default"                                                                                        
end

[2014-05-03T15:36:07+00:00] INFO: Running queued delayed notifications before re-raising exception             
[2014-05-03T15:36:07+00:00] INFO: template[/etc/iptables.d/all_established] sending run action to execute[rebui
ld-iptables] (delayed)                                                                                         
[2014-05-03T15:36:07+00:00] INFO: execute[rebuild-iptables] ran successfully                                   
[2014-05-03T15:36:07+00:00] INFO: template[/etc/httpd/mods-available/deflate.conf] sending restart action to se
rvice[apache2] (delayed)                                                                                       
[2014-05-03T15:36:09+00:00] INFO: service[apache2] restarted                                                   
[2014-05-03T15:36:09+00:00] ERROR: Running exception handlers                                                  
[2014-05-03T15:36:09+00:00] ERROR: Exception handlers complete                                                 
[2014-05-03T15:36:09+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out                    
[2014-05-03T15:36:09+00:00] ERROR: execute[generate-module-list] (apache2::default line 68) had an error: Errno
::ENOENT: No such file or directory - /usr/local/bin/apache2_module_conf_generate.pl /usr/lib/httpd /etc/httpd/
mods-available                                                                                                 
[2014-05-03T15:36:09+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully
 (exit code 1)                                                                                                 
Chef never successfully completed! Any errors should be visible in the                                         
output above. Please fix your recipes so that they properly complete.                                          
@miya0001
Copy link
Member

miya0001 commented May 3, 2014

I have some question.

  • What is version of your Vagrant and VirtualBox
  • What is your OS?
  • What is your Git client?

Looks like this is due to a windows line break.

@juricazuanovic
Copy link
Author

I use Vagrant 1.5.4, Virtualbox 4.3.10, msysGit on Windows 8.1

@miya0001
Copy link
Member

miya0001 commented May 5, 2014

Please check settings of msysgit.

Chef cookbooks in this Vagrant must have line-endings "LF" instead of "CRLF"

@konus1
Copy link

konus1 commented Jul 8, 2014

I also stubled over this problem using vagrant with windows and solved it with
git config --global core.autocrlf false
git config --global core.eol lf
(not sure if both are needed)

Would it be possible to change the default behavior on cloning with a .gitattribute file?

@miya0001
Copy link
Member

miya0001 commented Jul 9, 2014

Thanks!!

I don' know about .gitattribute.
Could you tell me how to write .gitattribute file?

:)

@konus1
Copy link

konus1 commented Jul 9, 2014

I found the following informations: https://help.github.com/articles/dealing-with-line-endings and http://stackoverflow.com/a/10017566 and http://adaptivepatchwork.com/2012/03/01/mind-the-end-of-your-line/
So I think a file named .gitattibute should be placed in root directory of the reposity with the following content
* -text
This should prevent changing of all lineendings. Sorry, I am a beginner and I did not test it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants