This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Calculating dependencies... | |
Fetching git repository at: git://github.com/rails/arel.git | |
Updating source: http://gems.rubyforge.org | |
Fetching git repository at: git://github.com/rails/arel.git | |
Caching: mysql-2.8.1.gem | |
Downloading pg-0.8.0.gem | |
Installing mysql (2.8.1) | |
Building native extensions. This could take a while... | |
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) | |
ERROR: Failed to build gem native extension. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update_repository_cache | |
require_custom_tasks | |
push_code | |
info "~> Starting full deploy" | |
copy_repository_cache | |
with_failed_release_cleanup do | |
create_revision_file | |
bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2010/10/19 14:54:23 [error] 2736#0: *402595 upstream prematurely closed connection while reading response header from upstream, client: 10.122.111.224, server: _, request: "GET /services/ps3/countries/lookup.json?ip_address=217.18.22.220 HTTP/1.1", upstream: "http://unix:/var/run/engineyard/unicorn_mubi.sock:/services/ps3/countries/lookup.json?ip_address=217.18.22.220", host: "staging.mubi.com" | |
2010/10/19 14:55:52 [error] 2736#0: *403284 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 10.122.111.224, server: _, request: "POST /services/ps3/users.json HTTP/1.1", upstream: "http://unix:/var/run/engineyard/unicorn_mubi.sock:/services/ps3/users.json", host: "staging.mubi.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enable_package "www-servers/nginx" do | |
version '0.7.19' | |
end | |
package "www-servers/nginx" do | |
version '0.7.19' | |
action :install | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nginx2_dir="/data/nginx2" | |
directory "#{nginx2_dir}" do | |
action :create | |
owner "root" | |
mode 0755 | |
group "root" | |
end | |
directory "#{nginx2_dir}/servers" do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execute "gem uninstall -v 1.2.1 -aIx" do | |
action :run | |
only_if { FileTest.directory?("/usr/lib/rubyee/gems/1.8/gems/rack-1.2.1") } | |
end | |
execute "gem uninstall -v 1.1.0 -aIx" do | |
action :run | |
only_if { FileTest.directory?("/usr/lib/rubyee/gems/1.8/gems/rack-1.1.0") } | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set backup interval | |
cron_hour = if node[:backup_interval].to_s == '24' | |
"1" # 0100 Pacific, per support's request | |
# NB: Instances run in the Pacific (Los Angeles) timezone | |
elsif node[:backup_interval] | |
"*/#{node[:backup_interval]}" | |
else | |
"1" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ruby fixes as we need the following gems installed and are getting screwed up. | |
# | |
gem_package "rack" do | |
version "1.0.1" | |
action :install | |
end | |
gem_package "rack" do | |
version "0.4.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node.engineyard.apps.each do |app| | |
unicorn_instance_count = (get_mongrel_count / node.engineyard.apps.size) | |
if app.name == "mubi" | |
unicorn_worker_count = unicorn_instance_count - 1 | |
else | |
#Unicorn workers for accounting should half of the number of workers for mubi | |
unicorn_worker_count = unicorn_instance_count/2 - 1 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Status: 500 Internal Server Error | |
Too many connections | |
/data/accounting/releases/20101030214759/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:576:in `real_connect' | |
/data/accounting/releases/20101030214759/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:576:in `connect' | |
/data/accounting/releases/20101030214759/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:204:in `initialize' | |
/data/accounting/releases/20101030214759/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:76:in `new' | |
/data/accounting/releases/20101030214759/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:76:in `mysql_connection' | |
/data/accounting/releases/20101030214759/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `send' | |
/data/accounting/releases/20101030214759/vendor/rails/activerecord/lib/active_record/ |