Loomio site crashed after ~3 years of up time after domain name expired.
I recently let a domain name expire. I would like to migrate my loomio instance to a new domain name. I have tried to update the env file with the new domain name, and updating loomio to the current version. Unfortunately I am still getting a 502 error for bad gateway.
The results of my attemt to upgrade are seen below.
Pulling nginx ... done
Pulling letsencrypt ... done
Pulling worker ... done
Pulling db ... done
Pulling app ... done
Pulling redis ... done
Pulling mailin ... done
Stopping loomio-letsencrypt ... done
Stopping loomio-app ... done
Stopping loomio-worker ... done
Stopping loomio-mailin ... done
Stopping loomio-redis ... done
Stopping loomio-nginx ... done
Stopping loomio-db ... done
Removing loomio-letsencrypt ... done
Removing loomio-app ... done
Removing loomio-worker ... done
Removing loomio-mailin ... done
Removing loomio-redis ... done
Removing loomio-nginx ... done
Removing loomio-db ... done
Removing network loomio-deploy_main
Creating network "loomio-deploy_main" with the default driver
Creating loomio-db ... done
I, [2023-07-12T20:44:57.795619 #1] INFO -- : Migrating to NullUserIdsOnGuestMemberships (20200418053923)
20200418053923 NullUserIdsOnGuestMemberships: migrating ==================
-- execute("CREATE TEMP TABLE guest_memberships (id INT, user_id INT)")
-> 0.0150s
-- execute("INSERT INTO guest_memberships (id, user_id) SELECT memberships.id, memberships.user_id FROM memberships LEFT OUTER JOIN groups on groups.id = memberships.group_id WHERE groups.id IS NULL")
-> 0.0153s
-- execute("UPDATE memberships SET user_id = null WHERE id IN (SELECT id FROM guest_memberships)")
-> 0.0019s
20200418053923 NullUserIdsOnGuestMemberships: migrated (0.0367s) =========
I, [2023-07-12T20:44:57.847342 #1] INFO -- : Migrating to CopyInviterIdsToDiscussionReaders (20200418054222)
20200418054222 CopyInviterIdsToDiscussionReaders: migrating ==============
-- execute("DELETE FROM memberships WHERE user_id IS NULL")
-> 0.0009s
-- execute("CREATE TEMP TABLE membership_event_ids (id INT)")
-> 0.0009s
-- execute("INSERT INTO membership_event_ids (id) select events.id from events LEFT OUTER JOIN memberships ON events.eventable_id = memberships.id where eventable_type='Membership' and memberships.id is null")
-> 0.0154s
-- execute("DELETE FROM events where id in (SELECT id from membership_event_ids)")
-> 0.0014s
-- execute("CREATE TEMP TABLE notification_ids (id INT)")
-> 0.0029s
-- execute("INSERT INTO notification_ids (id) SELECT notifications.id FROM notifications LEFT OUTER JOIN events on notifications.event_id = events.id WHERE events.id is null")
-> 0.0165s
-- execute("DELETE FROM notifications WHERE id IN (select id from notification_ids)")
-> 0.0007s
20200418054222 CopyInviterIdsToDiscussionReaders: migrated (0.0483s) =====
I, [2023-07-12T20:44:57.903790 #1] INFO -- : Migrating to AllowNullStanceParticipant (20200521082353)
20200521082353 AllowNullStanceParticipant: migrating =====================
-- change_column(:stances, :participant_id, :integer, {:null=>true})
-> 0.0071s
20200521082353 AllowNullStanceParticipant: migrated (0.0083s) ============
I, [2023-07-12T20:44:57.918783 #1] INFO -- : Migrating to DropUserFromAnonymousStancesAndEvents (20200521231650)
20200521231650 DropUserFromAnonymousStancesAndEvents: migrating ==========
20200521231650 DropUserFromAnonymousStancesAndEvents: migrated (0.0986s) =
I, [2023-07-12T20:44:58.027003 #1] INFO -- : Migrating to AddHideResultsUntilClosedToPolls (20200522034042)
20200522034042 AddHideResultsUntilClosedToPolls: migrating ===============
-- add_column(:polls, :hide_results_until_closed, :boolean, {:default=>false, :null=>false})
-> 0.0038s
20200522034042 AddHideResultsUntilClosedToPolls: migrated (0.0049s) ======
I, [2023-07-12T20:44:58.037498 #1] INFO -- : Migrating to AddStancesInDiscussionToPolls (20200602220450)
20200602220450 AddStancesInDiscussionToPolls: migrating ==================
-- add_column(:polls, :stances_in_discussion, :boolean, {:default=>true, :null=>false})
-> 0.0023s
20200602220450 AddStancesInDiscussionToPolls: migrated (0.0034s) =========
I, [2023-07-12T20:44:58.046175 #1] INFO -- : Migrating to AdminsCanEditUserContentToGroups (20200612025415)
20200612025415 AdminsCanEditUserContentToGroups: migrating ===============
-- add_column(:groups, :admins_can_edit_user_content, :boolean, {:null=>false, :default=>false})
-> 0.0026s
20200612025415 AdminsCanEditUserContentToGroups: migrated (0.0039s) ======
I, [2023-07-12T20:44:58.055769 #1] INFO -- : Migrating to AddDiscardedAtToPolls (20200615225435)
20200615225435 AddDiscardedAtToPolls: migrating ==========================
-- add_column(:polls, :discarded_at, :timestamp, {:precision=>nil})
-> 0.0010s
-- add_column(:polls, :discarded_by, :integer)
-> 0.0005s
20200615225435 AddDiscardedAtToPolls: migrated (0.0037s) =================
I, [2023-07-12T20:44:58.064410 #1] INFO -- : Migrating to UnpinnDiscardedComments (20200617030449)
20200617030449 UnpinnDiscardedComments: migrating ========================
20200617030449 UnpinnDiscardedComments: migrated (0.0319s) ===============
I, [2023-07-12T20:44:58.102982 #1] INFO -- : Migrating to AddDesiredFeatureToGroupSurveys (20200630233309)
20200630233309 AddDesiredFeatureToGroupSurveys: migrating ================
-- add_column(:group_surveys, :desired_feature, :string)
-> 0.0009s
20200630233309 AddDesiredFeatureToGroupSurveys: migrated (0.0020s) =======
I, [2023-07-12T20:44:58.109895 #1] INFO -- : Migrating to UpdateUserTitles (20200703033800)
20200703033800 UpdateUserTitles: migrating ===============================
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
undefined local variable or method `bot' for #<User unsubscribe_token: "Cscf4ELDTX8UXgetXPsr", email_api_key: "4ff6c1c08687ee04a5b4afdc874737df", email: "[email protected]", id: 5, created_at: "2020-06-30 21:28:55.257496000 +0000", updated_at: "2023-02-01 23:43:23.951074000 +0000", name: "Shana Oppenheim", deactivated_at: nil, is_admin: false, avatar_kind: "initials", uploaded_avatar_file_name: nil, uploaded_avatar_content_type: nil, uploaded_avatar_file_size: nil, uploaded_avatar_updated_at: nil, avatar_initials: "SO", username: "XXXX", email_when_proposal_closing_soon: false, authentication_token: nil, memberships_count: 18, uses_markdown: false, selected_locale: nil, time_zone: "America/New_York", key: "3MSWNFP2", detected_locale: "en", email_catch_up: false, email_when_mentioned: true, email_on_participation: false, default_membership_volume: "normal", country: "United States", region: nil, city: nil, experiences: {"sidebar"=>true, "changePicture"=>true, "closingThread"=>true, "dismissThread"=>true, "pinningThread"=>true, "score_tool_tip"=>true, "proposal_tool_tip"=>true, "dismissProgressCard"=>true, "html-editor.expanded"=>true, "titles"=>{1=>"Millie did it"}}, facebook_community_id: nil, slack_community_id: nil, short_bio: "", email_verified: true, location: "", last_seen_at: "2023-02-01 23:43:23.940903000 +0000", legal_accepted_at: nil, email_newsletter: false, short_bio_format: "md", attachments: []>
/usr/local/bundle/gems/activemodel-7.0.4.2/lib/active_model/attribute_methods.rb:458:in `method_missing'
/loomio/app/models/user.rb:46:in `block in <class:User>'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:445:in `instance_exec'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:445:in `block in make_lambda'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:179:in `block (2 levels) in halting_and_conditional'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:179:in `all?'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:179:in `block in halting_and_conditional'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:595:in `block in invoke_before'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:595:in `each'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:595:in `invoke_before'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:106:in `run_callbacks'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:929:in `_run_validate_callbacks'
/usr/local/bundle/gems/activemodel-7.0.4.2/lib/active_model/validations.rb:406:in `run_validations!'
/usr/local/bundle/gems/activemodel-7.0.4.2/lib/active_model/validations/callbacks.rb:117:in `block in run_validations!'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:107:in `run_callbacks'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:929:in `_run_validation_callbacks'
/usr/local/bundle/gems/activemodel-7.0.4.2/lib/active_model/validations/callbacks.rb:117:in `run_validations!'
/usr/local/bundle/gems/activemodel-7.0.4.2/lib/active_model/validations.rb:337:in `valid?'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/validations.rb:68:in `valid?'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/validations.rb:84:in `perform_validations'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/validations.rb:53:in `save!'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/transactions.rb:302:in `block in save!'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/transactions.rb:354:in `block in with_transaction_returning_status'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/connection_adapters/abstract/database_statements.rb:314:in `transaction'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/transactions.rb:350:in `with_transaction_returning_status'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/transactions.rb:302:in `save!'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/suppressor.rb:54:in `save!'
/loomio/app/services/membership_service.rb:73:in `update_user_titles_and_broadcast'
/loomio/db/migrate/20200703033800_update_user_titles.rb:4:in `block in change'
/loomio/db/migrate/20200703033800_update_user_titles.rb:3:in `each'
/loomio/db/migrate/20200703033800_update_user_titles.rb:3:in `change'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:870:in `exec_migration'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:854:in `block (2 levels) in migrate'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:853:in `block in migrate'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:852:in `migrate'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1046:in `migrate'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1360:in `block in execute_migration_in_transaction'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/transactions.rb:209:in `transaction'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1411:in `ddl_transaction'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1359:in `execute_migration_in_transaction'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1333:in `each'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1333:in `migrate_without_lock'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1282:in `block in migrate'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1447:in `with_advisory_lock_connection'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1428:in `with_advisory_lock'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1282:in `migrate'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1117:in `up'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1092:in `migrate'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/tasks/database_tasks.rb:262:in `migrate'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/railties/databases.rake:92:in `block (2 levels) in <main>'
/usr/local/bundle/gems/sentry-ruby-5.9.0/lib/sentry/rake.rb:26:in `execute'
Caused by:
NameError: undefined local variable or method `bot' for #<User unsubscribe_token: "Cscf4ELDTX8UXgetXPsr", email_api_key: "4ff6c1c08687ee04a5b4afdc874737df", email: "[email protected]", id: 5, created_at: "2020-06-30 21:28:55.257496000 +0000", updated_at: "2023-02-01 23:43:23.951074000 +0000", name: "Shana Oppenheim", deactivated_at: nil, is_admin: false, avatar_kind: "initials", uploaded_avatar_file_name: nil, uploaded_avatar_content_type: nil, uploaded_avatar_file_size: nil, uploaded_avatar_updated_at: nil, avatar_initials: "SO", username: "XXXX", email_when_proposal_closing_soon: false, authentication_token: nil, memberships_count: 18, uses_markdown: false, selected_locale: nil, time_zone: "America/New_York", key: "3MSWNFP2", detected_locale: "en", email_catch_up: false, email_when_mentioned: true, email_on_participation: false, default_membership_volume: "normal", country: "United States", region: nil, city: nil, experiences: {"sidebar"=>true, "changePicture"=>true, "closingThread"=>true, "dismissThread"=>true, "pinningThread"=>true, "score_tool_tip"=>true, "proposal_tool_tip"=>true, "dismissProgressCard"=>true, "html-editor.expanded"=>true, "titles"=>{1=>"Millie did it"}}, facebook_community_id: nil, slack_community_id: nil, short_bio: "", email_verified: true, location: "", last_seen_at: "2023-02-01 23:43:23.940903000 +0000", legal_accepted_at: nil, email_newsletter: false, short_bio_format: "md", attachments: []>
/usr/local/bundle/gems/activemodel-7.0.4.2/lib/active_model/attribute_methods.rb:458:in `method_missing'
/loomio/app/models/user.rb:46:in `block in <class:User>'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:445:in `instance_exec'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:445:in `block in make_lambda'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:179:in `block (2 levels) in halting_and_conditional'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:179:in `all?'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:179:in `block in halting_and_conditional'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:595:in `block in invoke_before'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:595:in `each'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:595:in `invoke_before'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:106:in `run_callbacks'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:929:in `_run_validate_callbacks'
/usr/local/bundle/gems/activemodel-7.0.4.2/lib/active_model/validations.rb:406:in `run_validations!'
/usr/local/bundle/gems/activemodel-7.0.4.2/lib/active_model/validations/callbacks.rb:117:in `block in run_validations!'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:107:in `run_callbacks'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/callbacks.rb:929:in `_run_validation_callbacks'
/usr/local/bundle/gems/activemodel-7.0.4.2/lib/active_model/validations/callbacks.rb:117:in `run_validations!'
/usr/local/bundle/gems/activemodel-7.0.4.2/lib/active_model/validations.rb:337:in `valid?'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/validations.rb:68:in `valid?'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/validations.rb:84:in `perform_validations'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/validations.rb:53:in `save!'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/transactions.rb:302:in `block in save!'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/transactions.rb:354:in `block in with_transaction_returning_status'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/connection_adapters/abstract/database_statements.rb:314:in `transaction'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/transactions.rb:350:in `with_transaction_returning_status'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/transactions.rb:302:in `save!'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/suppressor.rb:54:in `save!'
/loomio/app/services/membership_service.rb:73:in `update_user_titles_and_broadcast'
/loomio/db/migrate/20200703033800_update_user_titles.rb:4:in `block in change'
/loomio/db/migrate/20200703033800_update_user_titles.rb:3:in `each'
/loomio/db/migrate/20200703033800_update_user_titles.rb:3:in `change'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:870:in `exec_migration'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:854:in `block (2 levels) in migrate'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:853:in `block in migrate'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:852:in `migrate'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1046:in `migrate'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1360:in `block in execute_migration_in_transaction'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/usr/local/bundle/gems/activesupport-7.0.4.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/transactions.rb:209:in `transaction'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1411:in `ddl_transaction'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1359:in `execute_migration_in_transaction'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1333:in `each'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1333:in `migrate_without_lock'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1282:in `block in migrate'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1447:in `with_advisory_lock_connection'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1428:in `with_advisory_lock'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1282:in `migrate'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1117:in `up'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/migration.rb:1092:in `migrate'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/tasks/database_tasks.rb:262:in `migrate'
/usr/local/bundle/gems/activerecord-7.0.4.2/lib/active_record/railties/databases.rake:92:in `block (2 levels) in <main>'
/usr/local/bundle/gems/sentry-ruby-5.9.0/lib/sentry/rake.rb:26:in `execute'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
Creating loomio-nginx ...
Creating loomio-nginx ... done
Creating loomio-redis ... done
Creating loomio-worker ... done
Creating loomio-mailin ... done
Creating loomio-app ... done
Creating loomio-letsencrypt ... done
Here is the error generated in 'docker-compose logs -f' when i try and access the site.
loomio-nginx | nginx.1 | 2023/07/12 20:56:32 [error] 124#124: *85 connect() failed (111: Connection refused) while connecting to upstream, client: 138.88.4.107, server: ethanrooney.xyz, request: "GET / HTTP/2.0", upstream: "http://172.18.0.4:3000/", host: "ethanrooney.xyz"
loomio-nginx | nginx.1 | ethanrooney.xyz 138.88.4.107 - - [12/Jul/2023:20:56:32 +0000] "GET / HTTP/2.0" 502 157 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "172.18.0.4:3000"
loomio-nginx | nginx.1 | ethanrooney.xyz 138.88.4.107 - - [12/Jul/2023:20:56:32 +0000] "GET /favicon.ico HTTP/2.0" 499 0 "https://ethanrooney.xyz/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "172.18.0.4:3000"
loomio-letsencrypt | 2023/07/12 20:56:43 Received event start for container a5abddc72c3f
loomio-nginx | dockergen.1 | 2023/07/12 20:56:43 Received event start for container a5abddc72c3f
loomio-nginx | dockergen.1 | 2023/07/12 20:56:43 Generated '/etc/nginx/conf.d/default.conf' from 7 containers
loomio-nginx | dockergen.1 | 2023/07/12 20:56:43 Running 'nginx -s reload'
loomio-nginx | nginx.1 | 2023/07/12 20:56:43 [notice] 15#15: signal 1 (SIGHUP) received from 125, reconfiguring
loomio-nginx | nginx.1 | 2023/07/12 20:56:43 [notice] 15#15: reconfiguring
loomio-nginx | nginx.1 | 2023/07/12 20:56:43 [notice] 15#15: using the "epoll" event method
loomio-nginx | nginx.1 | 2023/07/12 20:56:43 [warn] 15#15: 10240 worker_connections exceed open file resource limit: 1024
loomio-nginx | nginx.1 | 2023/07/12 20:56:43 [notice] 15#15: start worker processes
loomio-nginx | nginx.1 | 2023/07/12 20:56:43 [notice] 15#15: start worker process 126
loomio-nginx | nginx.1 | 2023/07/12 20:56:44 [notice] 124#124: gracefully shutting down
loomio-nginx | nginx.1 | 2023/07/12 20:56:44 [notice] 124#124: exiting
loomio-nginx | nginx.1 | 2023/07/12 20:56:44 [notice] 124#124: exit
loomio-nginx | nginx.1 | 2023/07/12 20:56:44 [notice] 15#15: signal 17 (SIGCHLD) received from 124
loomio-nginx | nginx.1 | 2023/07/12 20:56:44 [notice] 15#15: worker process 124 exited with code 0
loomio-nginx | nginx.1 | 2023/07/12 20:56:44 [notice] 15#15: signal 29 (SIGIO) received
loomio-nginx | dockergen.1 | 2023/07/12 20:56:48 Received event die for container a5abddc72c3f
loomio-letsencrypt | 2023/07/12 20:56:48 Received event die for container a5abddc72c3f
loomio-app exited with code 1
loomio-nginx | dockergen.1 | 2023/07/12 20:56:48 Generated '/etc/nginx/conf.d/default.conf' from 7 containers
loomio-nginx | dockergen.1 | 2023/07/12 20:56:48 Running 'nginx -s reload'
loomio-nginx | nginx.1 | 2023/07/12 20:56:48 [notice] 15#15: signal 1 (SIGHUP) received from 127, reconfiguring
loomio-nginx | nginx.1 | 2023/07/12 20:56:48 [notice] 15#15: reconfiguring
loomio-nginx | nginx.1 | 2023/07/12 20:56:48 [notice] 15#15: using the "epoll" event method
loomio-nginx | nginx.1 | 2023/07/12 20:56:48 [warn] 15#15: 10240 worker_connections exceed open file resource limit: 1024
loomio-nginx | nginx.1 | 2023/07/12 20:56:48 [notice] 15#15: start worker processes
loomio-nginx | nginx.1 | 2023/07/12 20:56:48 [notice] 15#15: start worker process 128
loomio-nginx | nginx.1 | 2023/07/12 20:56:48 [notice] 126#126: gracefully shutting down
loomio-nginx | nginx.1 | 2023/07/12 20:56:48 [notice] 126#126: exiting
loomio-nginx | nginx.1 | 2023/07/12 20:56:48 [notice] 126#126: exit
loomio-nginx | nginx.1 | 2023/07/12 20:56:48 [notice] 15#15: signal 17 (SIGCHLD) received from 126
loomio-nginx | nginx.1 | 2023/07/12 20:56:48 [notice] 15#15: worker process 126 exited with code 0
loomio-nginx | nginx.1 | 2023/07/12 20:56:48 [notice] 15#15: signal 29 (SIGIO) received
loomio-letsencrypt | 2023/07/12 20:56:53 Debounce minTimer fired
loomio-letsencrypt | 2023/07/12 20:56:53 Contents of /app/letsencrypt_service_data did not change. Skipping notification '/app/signal_le_service'
loomio-letsencrypt | 2023/07/12 20:57:49 Received event start for container a5abddc72c3f
loomio-nginx | dockergen.1 | 2023/07/12 20:57:49 Received event start for container a5abddc72c3f
loomio-nginx | dockergen.1 | 2023/07/12 20:57:49 Generated '/etc/nginx/conf.d/default.conf' from 7 containers
loomio-nginx | dockergen.1 | 2023/07/12 20:57:49 Running 'nginx -s reload'
loomio-nginx | nginx.1 | 2023/07/12 20:57:49 [notice] 15#15: signal 1 (SIGHUP) received from 129, reconfiguring
loomio-nginx | nginx.1 | 2023/07/12 20:57:49 [notice] 15#15: reconfiguring
loomio-nginx | nginx.1 | 2023/07/12 20:57:49 [notice] 15#15: using the "epoll" event method
loomio-nginx | nginx.1 | 2023/07/12 20:57:49 [warn] 15#15: 10240 worker_connections exceed open file resource limit: 1024
loomio-nginx | nginx.1 | 2023/07/12 20:57:49 [notice] 15#15: start worker processes
loomio-nginx | nginx.1 | 2023/07/12 20:57:49 [notice] 15#15: start worker process 130
loomio-nginx | nginx.1 | 2023/07/12 20:57:49 [notice] 128#128: gracefully shutting down
loomio-nginx | nginx.1 | 2023/07/12 20:57:49 [notice] 128#128: exiting
loomio-nginx | nginx.1 | 2023/07/12 20:57:49 [notice] 128#128: exit
loomio-nginx | nginx.1 | 2023/07/12 20:57:49 [notice] 15#15: signal 17 (SIGCHLD) received from 128
loomio-nginx | nginx.1 | 2023/07/12 20:57:49 [notice] 15#15: worker process 128 exited with code 0
loomio-nginx | nginx.1 | 2023/07/12 20:57:49 [notice] 15#15: signal 29 (SIGIO) received
loomio-app | rake aborted!
loomio-app | StandardError: An error has occurred, this and all later migrations canceled:
loomio-app |
Robert Guthrie Thu 13 Jul 2023 3:47AM
I'll also add that, I'm sure we can get your site upgraded - but it is likely to be a little bit of work. I'd love to help you do it. I think we've solved most of the problems already.. so just be patient and try to send through just the relevant logs
Ethan Rooney Thu 13 Jul 2023 4:50AM
Thanks @Robert Guthrie, is there good source to read about how to checkout each version? How do I find the current version of loomio?
Robert Guthrie Thu 13 Jul 2023 3:48PM
@Ethan Rooney
You'll have a .env file which specifies
LOOMIO_CONTAINER_IMAGE=loomio/loomio
LOOMIO_CONTAINER_TAG=stable
You can change LOOMIO_CONTAINER_TAG to be any version.
So v2.4.2
then v2.8.8
then v2.11.13
then v2.17.1
Then put it back to "stable".
The current loomio version is written in lib/version.rb
Maybe a command like this will work:
docker-compose run app cat lib/version.rb
Ethan Rooney Fri 14 Jul 2023 5:56PM
Thanks for working with me on this @Robert Guthrie .
I edited the .env to upgrade to 2.4.2 from 2.1.12.
upon running the update.sh script I got the following error:
Migrating to UpdateUserTitles (20200703033800)
20200703033800 UpdateUserTitles: migrating ===============================
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
Error connecting to Redis on redis:6379 (SocketError)
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:362:in `rescue in establish_connection'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:343:in `establish_connection'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:107:in `block in connect'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:308:in `with_reconnect'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:106:in `connect'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:381:in `ensure_connected'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:233:in `block in process'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:320:in `logging'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:232:in `process'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:198:in `call_pipelined'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:165:in `block in call_pipeline'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:308:in `with_reconnect'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:163:in `call_pipeline'
/usr/local/bundle/gems/redis-4.2.2/lib/redis.rb:2492:in `block in multi'
/usr/local/bundle/gems/redis-4.2.2/lib/redis.rb:69:in `block in synchronize'
/usr/local/bundle/gems/redis-4.2.2/lib/redis.rb:69:in `synchronize'
/usr/local/bundle/gems/redis-4.2.2/lib/redis.rb:2484:in `multi'
/usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/client.rb:189:in `block in raw_push'
/usr/local/bundle/gems/connection_pool-2.2.3/lib/connection_pool.rb:63:in `block (2 levels) in with'
/usr/local/bundle/gems/connection_pool-2.2.3/lib/connection_pool.rb:62:in `handle_interrupt'
/usr/local/bundle/gems/connection_pool-2.2.3/lib/connection_pool.rb:62:in `block in with'
/usr/local/bundle/gems/connection_pool-2.2.3/lib/connection_pool.rb:59:in `handle_interrupt'
/usr/local/bundle/gems/connection_pool-2.2.3/lib/connection_pool.rb:59:in `with'
/usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/client.rb:188:in `raw_push'
/usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/client.rb:74:in `push'
/usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/worker.rb:240:in `client_push'
/usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/extensions/generic_proxy.rb:27:in `method_missing'
/loomio/db/migrate/20200703033800_update_user_titles.rb:4:in `block in change'
/loomio/db/migrate/20200703033800_update_user_titles.rb:3:in `each'
/loomio/db/migrate/20200703033800_update_user_titles.rb:3:in `change'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:814:in `exec_migration'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:798:in `block (2 levels) in migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:797:in `block in migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `with_connection'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:796:in `migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:977:in `migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1292:in `block in execute_migration_in_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1343:in `block in ddl_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `block in transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/transactions.rb:212:in `transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1343:in `ddl_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1291:in `execute_migration_in_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1263:in `block in migrate_without_lock'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1262:in `each'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1262:in `migrate_without_lock'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1210:in `block in migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1363:in `with_advisory_lock'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1210:in `migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1036:in `up'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1011:in `migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <main>'
/usr/local/bundle/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Caused by:
Redis::CannotConnectError: Error connecting to Redis on redis:6379 (SocketError)
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:362:in `rescue in establish_connection'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:343:in `establish_connection'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:107:in `block in connect'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:308:in `with_reconnect'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:106:in `connect'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:381:in `ensure_connected'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:233:in `block in process'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:320:in `logging'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:232:in `process'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:198:in `call_pipelined'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:165:in `block in call_pipeline'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:308:in `with_reconnect'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:163:in `call_pipeline'
/usr/local/bundle/gems/redis-4.2.2/lib/redis.rb:2492:in `block in multi'
/usr/local/bundle/gems/redis-4.2.2/lib/redis.rb:69:in `block in synchronize'
/usr/local/bundle/gems/redis-4.2.2/lib/redis.rb:69:in `synchronize'
/usr/local/bundle/gems/redis-4.2.2/lib/redis.rb:2484:in `multi'
/usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/client.rb:189:in `block in raw_push'
/usr/local/bundle/gems/connection_pool-2.2.3/lib/connection_pool.rb:63:in `block (2 levels) in with'
/usr/local/bundle/gems/connection_pool-2.2.3/lib/connection_pool.rb:62:in `handle_interrupt'
/usr/local/bundle/gems/connection_pool-2.2.3/lib/connection_pool.rb:62:in `block in with'
/usr/local/bundle/gems/connection_pool-2.2.3/lib/connection_pool.rb:59:in `handle_interrupt'
/usr/local/bundle/gems/connection_pool-2.2.3/lib/connection_pool.rb:59:in `with'
/usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/client.rb:188:in `raw_push'
/usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/client.rb:74:in `push'
/usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/worker.rb:240:in `client_push'
/usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/extensions/generic_proxy.rb:27:in `method_missing'
/loomio/db/migrate/20200703033800_update_user_titles.rb:4:in `block in change'
/loomio/db/migrate/20200703033800_update_user_titles.rb:3:in `each'
/loomio/db/migrate/20200703033800_update_user_titles.rb:3:in `change'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:814:in `exec_migration'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:798:in `block (2 levels) in migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:797:in `block in migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `with_connection'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:796:in `migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:977:in `migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1292:in `block in execute_migration_in_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1343:in `block in ddl_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `block in transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/transactions.rb:212:in `transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1343:in `ddl_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1291:in `execute_migration_in_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1263:in `block in migrate_without_lock'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1262:in `each'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1262:in `migrate_without_lock'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1210:in `block in migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1363:in `with_advisory_lock'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1210:in `migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1036:in `up'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1011:in `migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <main>'
/usr/local/bundle/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Caused by:
SocketError: getaddrinfo: Temporary failure in name resolution
/usr/local/bundle/gems/redis-4.2.2/lib/redis/connection/ruby.rb:189:in `getaddrinfo'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/connection/ruby.rb:189:in `connect'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/connection/ruby.rb:299:in `connect'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:349:in `establish_connection'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:107:in `block in connect'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:308:in `with_reconnect'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:106:in `connect'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:381:in `ensure_connected'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:233:in `block in process'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:320:in `logging'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:232:in `process'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:198:in `call_pipelined'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:165:in `block in call_pipeline'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:308:in `with_reconnect'
/usr/local/bundle/gems/redis-4.2.2/lib/redis/client.rb:163:in `call_pipeline'
/usr/local/bundle/gems/redis-4.2.2/lib/redis.rb:2492:in `block in multi'
/usr/local/bundle/gems/redis-4.2.2/lib/redis.rb:69:in `block in synchronize'
/usr/local/bundle/gems/redis-4.2.2/lib/redis.rb:69:in `synchronize'
/usr/local/bundle/gems/redis-4.2.2/lib/redis.rb:2484:in `multi'
/usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/client.rb:189:in `block in raw_push'
/usr/local/bundle/gems/connection_pool-2.2.3/lib/connection_pool.rb:63:in `block (2 levels) in with'
/usr/local/bundle/gems/connection_pool-2.2.3/lib/connection_pool.rb:62:in `handle_interrupt'
/usr/local/bundle/gems/connection_pool-2.2.3/lib/connection_pool.rb:62:in `block in with'
/usr/local/bundle/gems/connection_pool-2.2.3/lib/connection_pool.rb:59:in `handle_interrupt'
/usr/local/bundle/gems/connection_pool-2.2.3/lib/connection_pool.rb:59:in `with'
/usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/client.rb:188:in `raw_push'
/usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/client.rb:74:in `push'
/usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/worker.rb:240:in `client_push'
/usr/local/bundle/gems/sidekiq-6.1.2/lib/sidekiq/extensions/generic_proxy.rb:27:in `method_missing'
/loomio/db/migrate/20200703033800_update_user_titles.rb:4:in `block in change'
/loomio/db/migrate/20200703033800_update_user_titles.rb:3:in `each'
/loomio/db/migrate/20200703033800_update_user_titles.rb:3:in `change'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:814:in `exec_migration'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:798:in `block (2 levels) in migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:797:in `block in migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `with_connection'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:796:in `migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:977:in `migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1292:in `block in execute_migration_in_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1343:in `block in ddl_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `block in transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/transactions.rb:212:in `transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1343:in `ddl_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1291:in `execute_migration_in_transaction'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1263:in `block in migrate_without_lock'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1262:in `each'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1262:in `migrate_without_lock'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1210:in `block in migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1363:in `with_advisory_lock'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1210:in `migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1036:in `up'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/migration.rb:1011:in `migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
/usr/local/bundle/gems/activerecord-5.2.4.4/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <main>'
/usr/local/bundle/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
loomio-db is up-to-date
Creating loomio-redis ... done
Creating loomio-worker ... done
Creating loomio-nginx ... done
Creating loomio-mailin ... done
Creating loomio-app ... done
Creating loomio-letsencrypt ... done
Robert Guthrie Fri 14 Jul 2023 11:23PM
@Ethan Rooney what does your docker-compose.yml look like? (does it have a redis section?)
Item removed
Ethan Rooney Mon 17 Jul 2023 12:22AM
@Robert Guthrie , Here is my env. It doesn't look like there is a REDIS section
Robert Guthrie Mon 17 Jul 2023 2:40AM
@Ethan Rooney - Sorry, but, I asked for your docker-compose.yml - you shared your .env.
I've deleted your comment to prevent sharing of your secret details.
You may want to change your DEVISE_SECRET and SECRET_COOKIE_TOKEN values, as well as your SMTP login details.
Robert Guthrie · Thu 13 Jul 2023 3:35AM
Hi @Ethan Rooney - When upgrading old Loomio instances, you need to move through significant versions.
See https://github.com/loomio/loomio-deploy#updating-old-versions-of-loomio
You'll need to check out each version later that your original one, and run migrations in each version.
However, it's worth mentioning, the domain name can be updated without updating the software. I consider the two things independent.