Giter Club home page Giter Club logo

gitorious-centos-6's People

Contributors

makewhatis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gitorious-centos-6's Issues

error mysql-client

Hello

I have the folowing error when i run chef-solo, do you know what's going on ?

Can you help me out ?

Thanks

[2012-08-14T09:19:35+02:00] ERROR: package[mysql-client](mysql::client line 22) has had an error
[2012-08-14T09:19:35+02:00] ERROR: package[mysql-client](/root/chef-solo/cookbooks/mysql/recipes/client.rb:22:in from_file') had an error: package[mysql-client](mysql::client line 22) had an error: Chef::Exceptions::Exec: returned 1, expected 0 /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/mixin/command.rb:128:in handle_command_failures'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/provider/package/yum.rb:986:inyum_command' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/provider/package/yum.rb:1086:in install_package'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/provider/package.rb:59:inaction_install' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource.rb:454:in send'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource.rb:454:inrun_action' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/runner.rb:49:in run_action'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/runner.rb:85:inconverge' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/runner.rb:85:in each'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/runner.rb:85:inconverge' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource_collection.rb:94:in execute_each_resource'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in call_iterator_block'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:instep' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in iterate'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:ineach_with_index' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/resource_collection.rb:92:in execute_each_resource'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/runner.rb:80:inconverge' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/client.rb:330:in converge'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/client.rb:163:inrun' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/application/solo.rb:207:in run_application'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/application/solo.rb:195:inloop' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/application/solo.rb:195:in run_application'
/usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/../lib/chef/application.rb:70:inrun' /usr/lib/ruby/gems/1.8/gems/chef-10.12.0/bin/chef-solo:25 /usr/bin/chef-solo:19:in load'
/usr/bin/chef-solo:19
[2012-08-14T09:19:35+02:00] ERROR: Running exception handlers
[2012-08-14T09:19:35+02:00] ERROR: Exception handlers complete
[2012-08-14T09:19:35+02:00] FATAL: Stacktrace dumped to /root/chef-solo/chef-stacktrace.out
[2012-08-14T09:19:35+02:00] FATAL: Chef::Exceptions::Exec: package[mysql-client](mysql::client line 22) had an error: Chef::Exceptions::Exec: returned 1, expected 0

Gitorious chef config

Error executing action create on resource 'template[/etc/httpd/sites-available/gitorious.conf]'

Chef::Mixin::Template::TemplateError

undefined method `each' for "host31":String

Resource Declaration:

In /var/chef/cookbooks/apache2/definitions/web_app.rb

14: template "#{node[:apache][:dir]}/sites-available/#{application_name}.conf" do
15: source params[:template]
16: owner "root"
17: group "root"
18: mode 0644
19: if params[:cookbook]
20: cookbook params[:cookbook]
21: end
22: variables(

to add amazon capability

Not possible to automatically mysq-client and mysql-devel install on amazon nodes.
Need to define amazon

package "mysql-client" do
package_name value_for_platform(
[ "centos", "redhat", "suse", "fedora", "amazon"] => { "default" => "mysql" },
"default" => "mysql-client"
)
action :install
end

node.json typo

Is support_email's value missing a close " in line 18 of node.json?

mysql-ruby error

I'm getting the following error after running chef-solo:

[Tue, 13 Dec 2011 00:35:17 +0300] FATAL: Chef::Exceptions::Package: package[mysql-ruby](mysql::client line 45) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for ruby-mysql

not able to login

i did a fresh install on cento6, installation works great but i am not able to login using the default username and passsword. i think the default is "admin@localhost" and "password123" without the quotes. if there any place i can see some logs and check what the issue is.

Can't download chef-gitorious-etc-solo.rb gist from github - 404 Not Found

Trying the following:

wget -O /etc/chef/solo.rb https://gist.github.com/raw/847256/chef-gitorious-etc-solo.rb

Result 404 not found error:

Resolving gist.github.com... 204.232.175.94
Connecting to gist.github.com|204.232.175.94|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-12-13 09:56:15 ERROR 404:  Not Found.

Not working

Downloaded a test VM to try on before attempting it on a live server

http://sourceforge.net/projects/thoughtpolicevm/files/CentOS/centos-6.3-server/centos-6.3-i386-server.zip/download?use_mirror=netcologne

Note that there is no httpd or mysql packages installed by default

Removed iptables and disabled selinux

rebooted

Installed the latest epel repo

http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

Ran the chef-solo-prep.sh which installed a bunch of stuff AOK

Then ran the next section using the node.json defaults (don't care at this point) which fails

[root@localhost ~]# cd chef-solo
[root@localhost chef-solo]# chef-solo
Starting Chef Client, version 11.2.0
Compiling Cookbooks...
[2013-02-07T11:36:35-05:00] WARN: Cloning resource attributes for package[libyaml-devel] from prior resource (CHEF-3694)
[2013-02-07T11:36:35-05:00] WARN: Previous package[libyaml-devel]: /root/chef-solo/cookbooks/gitorious/recipes/default.rb:1:in from_file' [2013-02-07T11:36:35-05:00] WARN: Current package[libyaml-devel]: /root/chef-solo/cookbooks/gitorious/recipes/default.rb:1:infrom_file'
[2013-02-07T11:36:35-05:00] WARN: Cloning resource attributes for package[gcc-c++] from prior resource (CHEF-3694)
[2013-02-07T11:36:35-05:00] WARN: Previous package[gcc-c++]: /root/chef-solo/cookbooks/gitorious/recipes/default.rb:1:in from_file' [2013-02-07T11:36:35-05:00] WARN: Current package[gcc-c++]: /root/chef-solo/cookbooks/gitorious/recipes/default.rb:1:infrom_file'
[2013-02-07T11:36:35-05:00] WARN: Cloning resource attributes for package[openssl-devel] from prior resource (CHEF-3694)
[2013-02-07T11:36:35-05:00] WARN: Previous package[openssl-devel]: /root/chef-solo/cookbooks/gitorious/recipes/default.rb:1:in from_file' [2013-02-07T11:36:35-05:00] WARN: Current package[openssl-devel]: /root/chef-solo/cookbooks/gitorious/recipes/default.rb:1:infrom_file'
[2013-02-07T11:36:35-05:00] WARN: Cloning resource attributes for package[readline-devel] from prior resource (CHEF-3694)
[2013-02-07T11:36:35-05:00] WARN: Previous package[readline-devel]: /root/chef-solo/cookbooks/gitorious/recipes/default.rb:1:in from_file' [2013-02-07T11:36:35-05:00] WARN: Current package[readline-devel]: /root/chef-solo/cookbooks/gitorious/recipes/default.rb:1:infrom_file'

Recipe Compile Error in /root/chef-solo/cookbooks/gitorious/recipes/default.rb

NoMethodError

undefined method `[]' for nil:NilClass

Cookbook Trace:

/root/chef-solo/cookbooks/apache2/recipes/default.rb:61:in from_file' /root/chef-solo/cookbooks/passenger_apache2/recipes/default.rb:25:infrom_file'
/root/chef-solo/cookbooks/passenger_apache2/recipes/mod_rails.rb:25:in from_file' /root/chef-solo/cookbooks/gitorious/recipes/default.rb:3:infrom_file'

Relevant File Content:

/root/chef-solo/cookbooks/apache2/recipes/default.rb:

54: "arch" => { "default" => [ :restart, :reload, :status ] },
55: "default" => { "default" => [:restart, :reload ] }
56: )
57: action :enable
58: end
59:
60: if platform?("centos", "redhat", "fedora", "suse", "arch")
61>> directory node[:apache][:log_dir] do
62: mode 0755
63: action :create
64: end
65:
66: cookbook_file "/usr/local/bin/apache2_module_conf_generate.pl" do
67: source "apache2_module_conf_generate.pl"
68: mode 0755
69: owner "root"
70: group "root"

[2013-02-07T11:36:35-05:00] ERROR: Running exception handlers
[2013-02-07T11:36:35-05:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated
[2013-02-07T11:36:35-05:00] FATAL: Stacktrace dumped to /root/chef-solo/chef-stacktrace.out
[2013-02-07T11:36:35-05:00] FATAL: NoMethodError: undefined method `[]' for nil:NilClass

[root@localhost chef-solo]# cat /etc/redhat-release
CentOS release 6.3 (Final)

Can you spot what I've done wrong here?

Error Installation On CentOS 6.x

[2012-09-26T05:37:10-07:00] INFO: Processing package[curl-devel] action install (passenger_apache2::default line 30)

Error executing action install on resource 'package[curl-devel]'

RegexpError

Stack overflow in regexp matcher: /^(\S+) ([0-9]+) (\S+) (\S+) (\S+) [(.*)] ([i,a,r]) (\S+)$/

Resource Declaration:

In /root/chef-solo/cookbooks/passenger_apache2/recipes/default.rb

29: package "httpd-devel"
30: package "curl-devel"
31: else

Compiled Resource:

Declared in /root/chef-solo/cookbooks/passenger_apache2/recipes/default.rb:30:in `from_file'

package("curl-devel") do
retry_delay 2
package_name "curl-devel"
recipe_name "default"
retries 0
action :install
cookbook_name :passenger_apache2
end

[2012-09-26T05:37:23-07:00] ERROR: Running exception handlers
[2012-09-26T05:37:23-07:00] ERROR: Exception handlers complete
[2012-09-26T05:37:23-07:00] FATAL: Stacktrace dumped to /root/chef-solo/chef-stacktrace.out
[2012-09-26T05:37:23-07:00] FATAL: RegexpError: package[curl-devel](passenger_apache2::default line 30) had an error: RegexpError: Stack overflow in regexp matcher: /^(\S+) ([0-9]+) (\S+) (\S+) (\S+) [(.*)] ([i,a,r]) (\S+)$/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.