<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>45669</bug_id>
          
          <creation_ts>2023-03-27 19:03:09 +0300</creation_ts>
          <short_desc>More than 1 row in migrator table when migrates foreman</short_desc>
          <delta_ts>2023-03-27 19:20:04 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gem-sequel</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Малъ Скрылевъ">3aHyga</reporter>
          <assigned_to name="majioa@altlinux.org">majioa</assigned_to>
          <cc>admsasha</cc>
    
    <cc>cas</cc>
    
    <cc>majioa</cc>
    
    <cc>mike</cc>
    
    <cc>nbr</cc>
    
    <cc>pav</cc>
    
    <cc>rider</cc>
    
    <cc>thatman</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>223459</commentid>
    <comment_count>0</comment_count>
    <who name="Малъ Скрылевъ">3aHyga</who>
    <bug_when>2023-03-27 19:03:09 +0300</bug_when>
    <thetext>The exception with text More than 1 row in migrator table when database migration in foreman is thrown.

command to reproduce:
RAILS_ENV=production BUNDLE_GEMFILE=/usr/lib/foreman/Gemfile bundle exec rake db:migrate --trace

Sequel::Migrator::Error: More than 1 row in migrator table
/usr/lib/ruby/gemie/gems/sequel-5.66.0/lib/sequel/extensions/migration.rb:631:in `schema_dataset&apos;
/usr/lib/ruby/gemie/gems/sequel-5.66.0/lib/sequel/extensions/migration.rb:462:in `initialize&apos;
/usr/lib/ruby/gemie/gems/sequel-5.66.0/lib/sequel/extensions/migration.rb:526:in `initialize&apos;
/usr/lib/ruby/gemie/gems/sequel-5.66.0/lib/sequel/extensions/migration.rb:409:in `new&apos;
/usr/lib/ruby/gemie/gems/sequel-5.66.0/lib/sequel/extensions/migration.rb:409:in `run&apos;
/usr/lib/ruby/gemie/gems/dynflow-1.6.10/lib/dynflow/persistence_adapters/sequel.rb:271:in `migrate_db&apos;
/usr/lib/foreman/lib/tasks/dynflow.rake:23:in `block (2 levels) in &lt;top (required)&gt;&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/task.rb:281:in `each&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke&apos;
/usr/lib/foreman/lib/tasks/dynflow.rake:42:in `block (2 levels) in &lt;top (required)&gt;&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/task.rb:281:in `each&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/application.rb:116:in `each&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/application.rb:83:in `block in run&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling&apos;
/usr/lib/ruby/gemie/gems/rake-13.0.6/lib/rake/application.rb:80:in `run&apos;
/var/lib/foreman/bin/rake:9:in `&lt;top (required)&gt;&apos;
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/cli/exec.rb:63:in `load&apos;
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/cli/exec.rb:63:in `kernel_load&apos;
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/cli/exec.rb:28:in `run&apos;
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/cli.rb:474:in `exec&apos;
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run&apos;
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command&apos;
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch&apos;
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/cli.rb:30:in `dispatch&apos;
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start&apos;
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/cli.rb:24:in `start&apos;
/usr/bin/bundle:49:in `block in &lt;top (required)&gt;&apos;
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors&apos;
/usr/bin/bundle:37:in `&lt;top (required)&gt;&apos;
/var/lib/foreman/bin/bundle:3:in `load&apos;
/var/lib/foreman/bin/bundle:3:in `&lt;main&gt;&apos;
Tasks: TOP =&gt; dynflow:migrate
-bash-4.4$ RAILS_ENV=production BUNDLE_GEMFILE=/usr/lib/foreman/Gemfile bundle exec rake db:migrate --trace</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223460</commentid>
    <comment_count>1</comment_count>
    <who name="Малъ Скрылевъ">3aHyga</who>
    <bug_when>2023-03-27 19:05:09 +0300</bug_when>
    <thetext>related link is the https://gist.github.com/mccun934/b25876d81d8940be1f758370b84b4e30</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223463</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2023-03-27 19:20:04 +0300</bug_when>
    <thetext>gem-sequel-5.66.0-alt2 -&gt; sisyphus:

 Mon Mar 27 2023 Pavel Skrylev &lt;majioa@altlinux&gt; 5.66.0-alt2
 - ! fixed to more than 1 row in migrator table (closes #45669)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>