Issue #310
Problema com o converge na social
LOG 1
ocial: [2015-10-09T13:46:23-03:00] INFO: Processing service[munin-node] action start (munin::node line 3)
social: [2015-10-09T13:46:24-03:00] INFO: Processing directory[/usr/local/share/munin/plugins] action create (munin::node line 7)
social: [2015-10-09T13:46:24-03:00] INFO: Processing cookbook_file[/usr/local/share/munin/plugins/packetloss] action create (munin::node line 10)
social: [2015-10-09T13:46:24-03:00] INFO: Processing link[/etc/munin/plugins/packetloss_reverseproxy] action create (munin::node line 15)
social: [2015-10-09T13:46:24-03:00] INFO: Processing link[/etc/munin/plugins/packetloss_database] action create (munin::node line 15)
social: [2015-10-09T13:46:24-03:00] INFO: Processing link[/etc/munin/plugins/packetloss_social] action create (munin::node line 15)
social: [2015-10-09T13:46:24-03:00] INFO: Processing link[/etc/munin/plugins/packetloss_email] action create (munin::node line 15)
social: [2015-10-09T13:46:24-03:00] INFO: Processing link[/etc/munin/plugins/packetloss_integration] action create (munin::node line 15)
social: [2015-10-09T13:46:24-03:00] INFO: Processing bash[allow connections from munin master] action run (munin::node line 20)
social: [2015-10-09T13:46:24-03:00] INFO: Processing bash[set munin-node hostname] action run (munin::node line 27)
social: [2015-10-09T13:46:24-03:00] INFO: Processing yum_package[nginx] action install (basics::nginx line 1)
social: [2015-10-09T13:46:24-03:00] INFO: Processing service[nginx] action enable (basics::nginx line 3)
social: [2015-10-09T13:46:25-03:00] INFO: Processing cookbook_file[/etc/selinux/local/nginx.te] action create (basics::nginx line 11)
social: [2015-10-09T13:46:25-03:00] INFO: Processing execute[selinux-nginx] action nothing (basics::nginx line 15)
social: [2015-10-09T13:46:25-03:00] INFO: Processing cookbook_file[/etc/yum.repos.d/noosfero.repo] action delete (noosfero::default line 2)
social: [2015-10-09T13:46:25-03:00] INFO: Processing yum_package[noosfero-deps] action upgrade (noosfero::default line 8)
social: [2015-10-09T13:46:25-03:00] INFO: yum_package[noosfero-deps] installing noosfero-deps-1.3-5.1 from isv_spb_spb repository
social: [2015-10-09T13:47:36-03:00] INFO: yum_package[noosfero-deps] upgraded noosfero-deps to 1.3-5.1
social: [2015-10-09T13:47:36-03:00] INFO: Processing yum_package[noosfero] action upgrade (noosfero::default line 13)
social: [2015-10-09T13:47:37-03:00] INFO: yum_package[noosfero] installing noosfero-1.3.1+spb2-6.1 from isv_spb_spb repository
social: [2015-10-09T13:48:17-03:00] INFO: yum_package[noosfero] upgraded noosfero to 1.3.1+spb2-6.1
social: [2015-10-09T13:48:17-03:00] INFO: yum_package[noosfero] not queuing delayed action restart on servicenoosfero, as it's already been queued
social: [2015-10-09T13:48:17-03:00] INFO: Processing template[/etc/noosfero/database.yml] action create (noosfero::default line 18)
social: [2015-10-09T13:48:17-03:00] INFO: Processing execute[noosfero:schema] action run (noosfero::default line 26)
social: [2015-10-09T13:48:17-03:00] INFO: Processing execute[Guard resource] action run (dynamically defined)
social: [2015-10-09T13:48:17-03:00] INFO: execute[Guard resource] ran successfully
social: [2015-10-09T13:48:17-03:00] INFO: Processing yum_package[noosfero-spb] action upgrade (noosfero::default line 34)
social: [2015-10-09T13:48:17-03:00] INFO: yum_package[noosfero-spb] installing noosfero-spb-4.1-8.1 from isv_spb_spb repository
social: [2015-10-09T13:48:25-03:00] INFO: yum_package[noosfero-spb] upgraded noosfero-spb to 4.1-8.1
social: [2015-10-09T13:48:25-03:00] INFO: yum_package[noosfero-spb] not queuing delayed action restart on servicenoosfero, as it's already been queued
social: [2015-10-09T13:48:25-03:00] INFO: Processing execute[plugins:enable] action run (noosfero::default line 53)
social: [2015-10-09T13:48:25-03:00] INFO: execute[plugins:enable] ran successfully
social: [2015-10-09T13:48:25-03:00] INFO: Processing execute[noosfero:plugins_spb:disable] action run (noosfero::default line 65)
social: [2015-10-09T13:48:25-03:00] INFO: execute[noosfero:plugins_spb:disable] ran successfully
social: [2015-10-09T13:48:25-03:00] INFO: Processing execute[noosfero:migrate] action run (noosfero::default line 69)
social:
social: ================================================================================
social: Error executing action run
on resource 'execute[noosfero:migrate]'
social: ================================================================================
social:
social: Mixlib::ShellOut::ShellCommandFailed
social: ------------------------------------
social: Expected process to exit with [0], but received '1'
social: ---- Begin output of RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate ----
social: STDOUT: == CreateProfileActivity: migrating ==========================================
social: -- create_table(:profile_activities)
social: STDERR: NOTICE: CREATE TABLE will create implicit sequence "profile_activities_id_seq" for serial column "profile_activities.id"
social: rake aborted!
social: StandardError: An error has occurred, this and all later migrations canceled:
social:
social: PG::Error: ERROR: duplicate key value violates unique constraint "pg_type_typname_nsp_index"
social: DETAIL: Key (typname, typnamespace)=(profile_activities_id_seq, 2200) already exists.
social: : CREATE TABLE "profile_activities" ("id" serial primary key, "profile_id" integer, "activity_id" integer, "activity_type" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/postgresql_adapter.rb:650:in async_exec'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/postgresql_adapter.rb:650:in
block in execute'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract_adapter.rb:280:in block in log'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activesupport-3.2.22/lib/active_support/notifications/instrumenter.rb:20:in
instrument'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract_adapter.rb:275:in log'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/postgresql_adapter.rb:649:in
execute'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/schema_statements.rb:170:in create_table'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:466:in
block in method_missing'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:438:in block in say_with_time'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:438:in
say_with_time'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:458:in method_missing'
social: /usr/lib/noosfero/db/migrate/20150216213259_create_profile_activity.rb:4:in
block in up'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/transactions.rb:208:in
transaction'
social: /usr/lib/noosfero/db/migrate/20150216213259_create_profile_activity.rb:3:in up'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:410:in
block (2 levels) in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:410:in block in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in
with_connection'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:389:in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:528:in
migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:720:in block (2 levels) in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:775:in
call'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:775:in block in ddl_transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in
transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/transactions.rb:208:in transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:775:in
ddl_transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:719:in block in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:700:in
each'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:700:in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:570:in
up'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:551:in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/railties/databases.rake:193:in
block (2 levels) in '
social: Tasks: TOP => db:migrate
social: (See full trace by running task with --trace)
social: ---- End output of RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate ----
social: Ran RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate returned 1
social:
social: Resource Declaration:
social: ---------------------
social: # In /var/tmp/chef.central/cookbooks/noosfero/recipes/default.rb
social:
social: 69: execute 'noosfero:migrate' do
social: 70: command 'RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate'
social: 71: cwd '/usr/lib/noosfero'
social: 72: user 'noosfero'
social: 73: end
social: 74:
social:
social: Compiled Resource:
social: ------------------
social: # Declared in /var/tmp/chef.central/cookbooks/noosfero/recipes/default.rb:69:in from_file'
social:
social: execute("noosfero:migrate") do
social: action [:run]
social: retries 0
social: retry_delay 2
social: default_guard_interpreter :execute
social: command "RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate"
social: backup 5
social: cwd "/usr/lib/noosfero"
social: returns 0
social: user "noosfero"
social: declared_type :execute
social: cookbook_name :noosfero
social: recipe_name "default"
social: end
social:
social: [2015-10-09T13:48:34-03:00] INFO: Running queued delayed notifications before re-raising exception
social: [2015-10-09T13:48:34-03:00] INFO: execute[postfix:configrelay] sending reload action to service[postfix] (delayed)
social: [2015-10-09T13:48:34-03:00] INFO: Processing service[postfix] action reload (email::default line 6)
social: [2015-10-09T13:48:35-03:00] INFO: service[postfix] reloaded
social: [2015-10-09T13:48:35-03:00] INFO: yum_package[noosfero-deps] sending restart action to service[noosfero] (delayed)
social: [2015-10-09T13:48:35-03:00] INFO: Processing service[noosfero] action restart (noosfero::default line 121)
social: [2015-10-09T13:48:57-03:00] INFO: service[noosfero] restarted
social: [2015-10-09T13:48:57-03:00] ERROR: Running exception handlers
social: [2015-10-09T13:48:57-03:00] ERROR: Exception handlers complete
social: [2015-10-09T13:48:57-03:00] FATAL: Stacktrace dumped to /var/tmp/chef.central/cache/chef-stacktrace.out
social: [2015-10-09T13:48:57-03:00] ERROR: execute[noosfero:migrate] (noosfero::default line 69) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
social: ---- Begin output of RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate ----
social: STDOUT: == CreateProfileActivity: migrating ==========================================
social: -- create_table(:profile_activities)
social: STDERR: NOTICE: CREATE TABLE will create implicit sequence "profile_activities_id_seq" for serial column "profile_activities.id"
social: rake aborted!
social: StandardError: An error has occurred, this and all later migrations canceled:
social:
social: PG::Error: ERROR: duplicate key value violates unique constraint "pg_type_typname_nsp_index"
social: DETAIL: Key (typname, typnamespace)=(profile_activities_id_seq, 2200) already exists.
social: : CREATE TABLE "profile_activities" ("id" serial primary key, "profile_id" integer, "activity_id" integer, "activity_type" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/postgresql_adapter.rb:650:in
async_exec'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/postgresql_adapter.rb:650:in block in execute'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract_adapter.rb:280:in
block in log'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activesupport-3.2.22/lib/active_support/notifications/instrumenter.rb:20:in instrument'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract_adapter.rb:275:in
log'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/postgresql_adapter.rb:649:in execute'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/schema_statements.rb:170:in
create_table'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:466:in block in method_missing'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:438:in
block in say_with_time'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:438:in say_with_time'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:458:in
method_missing'
social: /usr/lib/noosfero/db/migrate/20150216213259_create_profile_activity.rb:4:in block in up'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in
transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/transactions.rb:208:in transaction'
social: /usr/lib/noosfero/db/migrate/20150216213259_create_profile_activity.rb:3:in
up'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:410:in block (2 levels) in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:410:in
block in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in with_connection'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:389:in
migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:528:in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:720:in
block (2 levels) in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:775:in call'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:775:in
block in ddl_transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/transactions.rb:208:in
transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:775:in ddl_transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:719:in
block in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:700:in each'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:700:in
migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:570:in up'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:551:in
migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/railties/databases.rake:193:in block (2 levels) in <top (required)>'
social: Tasks: TOP => db:migrate
social: (See full trace by running task with --trace)
social: ---- End output of RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate ----
social: Ran RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate returned 1
social: [2015-10-09T13:48:57-03:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Killed by signal 1.
rake aborted!
Chake::Backend::CommandFailed: social: FAILED with exit status 1
/usr/local/share/gems/gems/chake-0.7/lib/chake/backend.rb:34:in
run'
/usr/local/share/gems/gems/chake-0.7/lib/chake/backend.rb:47:in run_as_root'
/usr/local/share/gems/gems/chake-0.7/lib/chake.rb:180:in
block (2 levels) in '
Tasks: TOP => converge => converge:integration => converge:social
(See full trace by running task with --trace)
real 5m41.967s user 0m1.074
LOG 2
social: ================================================================================
social: Error executing action run
on resource 'execute[plugins_spb:migrate:spb_migrations]'
social: ================================================================================
social:
social: Mixlib::ShellOut::ShellCommandFailed
social: ------------------------------------
social: Expected process to exit with [0], but received '1'
social: ---- Begin output of RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate ----
social: STDOUT: == ChangeSoftwareLayout: migrating ===========================================
social: ..................................................................................................................................................
social: STDERR: rake aborted!
social: StandardError: An error has occurred, this and all later migrations canceled:
social:
social: undefined method layout_template=' for nil:NilClass/usr/lib/noosfero/config/plugins/spb_migrations/db/migrate/20150727161511_change_software_layout.rb:20:in
change_layout'
social: /usr/lib/noosfero/config/plugins/spb_migrations/db/migrate/20150727161511_change_software_layout.rb:10:in block in up'
social: /usr/lib/noosfero/config/plugins/spb_migrations/db/migrate/20150727161511_change_software_layout.rb:9:in
each'
social: /usr/lib/noosfero/config/plugins/spb_migrations/db/migrate/20150727161511_change_software_layout.rb:9:in up'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:410:in
block (2 levels) in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:410:in block in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in
with_connection'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:389:in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:528:in
migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:720:in block (2 levels) in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:775:in
call'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:775:in block in ddl_transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in
transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/transactions.rb:208:in transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:775:in
ddl_transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:719:in block in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:700:in
each'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:700:in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:570:in
up'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:551:in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/railties/databases.rake:193:in
block (2 levels) in '
social: Tasks: TOP => db:migrate
social: (See full trace by running task with --trace)
social: ---- End output of RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate ----
social: Ran RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate returned 1
social:
social: Resource Declaration:
social: ---------------------
social: # In /var/tmp/chef.central/cookbooks/noosfero/recipes/default.rb
social:
social: 82: execute ('plugins_spb:migrate:' + plugin) do
social: 83: command 'RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate'
social: 84: cwd '/usr/lib/noosfero'
social: 85: user 'noosfero'
social: 86: end
social: 87: end
social:
social: Compiled Resource:
social: ------------------
social: # Declared in /var/tmp/chef.central/cookbooks/noosfero/recipes/default.rb:82:in block in from_file'
social:
social: execute("plugins_spb:migrate:spb_migrations") do
social: action [:run]
social: retries 0
social: retry_delay 2
social: default_guard_interpreter :execute
social: command "RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate"
social: backup 5
social: cwd "/usr/lib/noosfero"
social: returns 0
social: user "noosfero"
social: declared_type :execute
social: cookbook_name :noosfero
social: recipe_name "default"
social: end
social:
social: [2015-10-09T14:11:14-03:00] INFO: Running queued delayed notifications before re-raising exception
social: [2015-10-09T14:11:14-03:00] INFO: execute[postfix:configrelay] sending reload action to service[postfix] (delayed)
social: [2015-10-09T14:11:14-03:00] INFO: Processing service[postfix] action reload (email::default line 6)
social: [2015-10-09T14:11:14-03:00] INFO: service[postfix] reloaded
social: [2015-10-09T14:11:14-03:00] ERROR: Running exception handlers
social: [2015-10-09T14:11:14-03:00] ERROR: Exception handlers complete
social: [2015-10-09T14:11:14-03:00] FATAL: Stacktrace dumped to /var/tmp/chef.central/cache/chef-stacktrace.out
social: [2015-10-09T14:11:14-03:00] ERROR: execute[plugins_spb:migrate:spb_migrations] (noosfero::default line 82) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
social: ---- Begin output of RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate ----
social: STDOUT: == ChangeSoftwareLayout: migrating ===========================================
social: ..................................................................................................................................................
social: STDERR: rake aborted!
social: StandardError: An error has occurred, this and all later migrations canceled:
social:
social: undefined method
layout_template=' for nil:NilClass/usr/lib/noosfero/config/plugins/spb_migrations/db/migrate/20150727161511_change_software_layout.rb:20:in change_layout'
social: /usr/lib/noosfero/config/plugins/spb_migrations/db/migrate/20150727161511_change_software_layout.rb:10:in
block in up'
social: /usr/lib/noosfero/config/plugins/spb_migrations/db/migrate/20150727161511_change_software_layout.rb:9:in each'
social: /usr/lib/noosfero/config/plugins/spb_migrations/db/migrate/20150727161511_change_software_layout.rb:9:in
up'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:410:in block (2 levels) in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:410:in
block in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in with_connection'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:389:in
migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:528:in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:720:in
block (2 levels) in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:775:in call'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:775:in
block in ddl_transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/transactions.rb:208:in
transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:775:in ddl_transaction'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:719:in
block in migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:700:in each'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:700:in
migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:570:in up'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/migration.rb:551:in
migrate'
social: /usr/lib/noosfero/vendor/bundle/ruby/gems/activerecord-3.2.22/lib/active_record/railties/databases.rake:193:in block (2 levels) in <top (required)>'
social: Tasks: TOP => db:migrate
social: (See full trace by running task with --trace)
social: ---- End output of RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate ----
social: Ran RAILS_ENV=production SCHEMA=/dev/null bundle exec rake db:migrate returned 1
social: [2015-10-09T14:11:14-03:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Killed by signal 1.
rake aborted!
Chake::Backend::CommandFailed: social: FAILED with exit status 1
/usr/local/share/gems/gems/chake-0.7/lib/chake/backend.rb:34:in
run'
/usr/local/share/gems/gems/chake-0.7/lib/chake/backend.rb:47:in run_as_root'
/usr/local/share/gems/gems/chake-0.7/lib/chake.rb:180:in
block (2 levels) in '
Tasks: TOP => converge => converge:integration => converge:social
(See full trace by running task with --trace)
real 2m33.010s user 0m0.497s sys 0m0.273s
-
eu não sei o problema do primeiro log, acho que é um problema de rodar migração com a aplicação rodando ou algo do tipo, creio que não tem coisas com mesmo id para o postgres reclamar.
o segundo eu corrigi, as vezes o software poderia não ter uma comunidade associada e isso quebra essa migração mesmo.
é um erro bem bobo que passou mas corrigi!
agora esse commit não deixa isso acontecer: https://softwarepublico.gov.br/gitlab/softwarepublico/spb_migrations/commit/9cd1d18c6374e24f769adaa7abb912ecf794cc5a
e a nova tag é https://softwarepublico.gov.br/gitlab/softwarepublico/spb_migrations/commits/1.2.3
-
Status changed to closed