openSUSE / ansible-obs

Some playbooks to operate OBS
1 stars 10 forks source link

Error when deploying with migrations #71

Closed danidoni closed 1 year ago

danidoni commented 1 year ago

While deploying with migrations I'm getting this (it's edited to increase readability)

fatal: [obs]: FAILED! => {
  "changed": true,
  "cmd": "source /root/.bashrc && run_in_api rails db:migrate:with_data",
  "delta": "0:00:05.975351",
  "end": "2022-12-12 14:18:45.033780",
  "msg": "non-zero return code",
  "rc": 1,
  "start": "2022-12-12 14:18:39.058429",
  "stderr": "WARNING: Nokogiri was built against libxml version 2.9.12, but has dynamically loaded 2.9.14
   To use retry middleware with Faraday v2.0+, install `faraday-retry` gem rails aborted!
 NameError: uninitialized constant Continuation

             ::Continuation::SchemaMigration.migrations_paths,
                         ^^^^^^^^^^^^^^
                         Did you mean?  Configuration

                         Tasks: TOP => db:migrate:with_data
                         (See full trace by running task with --trace)",
   "stderr_lines": [
     "WARNING: Nokogiri was built against libxml version 2.9.12, but has dynamically loaded 2.9.14",
     "To use retry middleware with Faraday v2.0+, install `faraday-retry` gem", 
     "rails aborted!", 
     "NameError: uninitialized constant Continuation",
     "", 
     "            ::Continuation::SchemaMigration.migrations_paths,", 
     "            ^^^^^^^^^^^^^^", "Did you mean?  Configuration", 
     "", 
     "Tasks: TOP => db:migrate:with_data", 
     "(See full trace by running task with --trace)"
   ], 
   "stdout": "== Schema =====================================================================", 
   "stdout_lines": ["== Schema ====================================================================="]
 } 
danidoni commented 1 year ago

https://errbit.opensuse.org/apps/5620ca2bdc71fa00b1000000/problems/6397384284bf4605266497aa

danidoni commented 1 year ago

We're gonna fix this here: https://github.com/openSUSE/open-build-service/pull/13516