Project

General

Profile

Actions

Bug #12993

closed

PostgreSQL DuplicateColumn Error

Added by El Joppa over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Debian Jessie

Upgraded from 1.9.3 -> 1.10.0. Everything worked fine.

Wanted to test remote execution plugin so i did a

apt-get install ruby-smart-proxy-remote-execution-ssh && /etc/init.d/apache2 restart

Now when i try to hit my foreman i get:

Web application could not be started

PG::DuplicateColumn: ERROR:  column "version" of relation "dynflow_schema_info" already exists
 (Sequel::DatabaseError)
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/adapters/postgres.rb:180:in `async_exec'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/adapters/postgres.rb:180:in `block in execute_query'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/database/logging.rb:33:in `log_yield'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/adapters/postgres.rb:180:in `execute_query'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/adapters/postgres.rb:167:in `block in execute'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/adapters/postgres.rb:143:in `check_disconnect_errors'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/adapters/postgres.rb:167:in `execute'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/adapters/postgres.rb:520:in `_execute'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/adapters/postgres.rb:336:in `block (2 levels) in execute'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/adapters/postgres.rb:541:in `check_database_errors'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/adapters/postgres.rb:336:in `block in execute'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/database/connecting.rb:249:in `block in synchronize'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/connection_pool/threaded.rb:103:in `hold'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/database/connecting.rb:249:in `synchronize'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/adapters/postgres.rb:336:in `execute'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/database/query.rb:50:in `execute_dui'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/database/query.rb:43:in `execute_ddl'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/database/schema_methods.rb:418:in `block in apply_alter_table'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/database/schema_methods.rb:418:in `each'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/database/schema_methods.rb:418:in `apply_alter_table'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/database/schema_methods.rb:423:in `apply_alter_table_generator'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/database/schema_methods.rb:79:in `alter_table'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/extensions/migration.rb:586:in `schema_dataset'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/extensions/migration.rb:444:in `initialize'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/extensions/migration.rb:506:in `initialize'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/extensions/migration.rb:391:in `new'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/sequel-4.26.0/lib/sequel/extensions/migration.rb:391:in `run'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/dynflow-0.8.9/lib/dynflow/persistence_adapters/sequel.rb:218:in `migrate_db'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/dynflow-0.8.9/lib/dynflow/persistence_adapters/sequel.rb:44:in `initialize'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/foreman-tasks-0.7.8/lib/foreman_tasks/dynflow/configuration.rb:144:in `new'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/foreman-tasks-0.7.8/lib/foreman_tasks/dynflow/configuration.rb:144:in `initialize_persistence'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/foreman-tasks-0.7.8/lib/foreman_tasks/dynflow/configuration.rb:103:in `block in world_config'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/foreman-tasks-0.7.8/lib/foreman_tasks/dynflow/configuration.rb:99:in `tap'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/foreman-tasks-0.7.8/lib/foreman_tasks/dynflow/configuration.rb:99:in `world_config'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/foreman-tasks-0.7.8/lib/foreman_tasks/dynflow/configuration.rb:58:in `initialize_world'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/foreman-tasks-0.7.8/lib/foreman_tasks/dynflow.rb:40:in `initialize!'
  /usr/share/foreman/vendor/ruby/2.1.0/gems/foreman-tasks-0.7.8/lib/foreman_tasks/engine.rb:100:in `block (2 levels) in <class:Engine>'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/public_api.rb:40:in `call'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/public_api.rb:40:in `block in call_event'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/public_api.rb:39:in `each'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/public_api.rb:39:in `call_event'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:348:in `before_handling_requests'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:136:in `negotiate_spawn_command'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:160:in `<module:App>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'
Error ID
e3b9e24d
Application root
/usr/share/foreman
Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV, NODE_ENV and PASSENGER_APP_ENV)
production
Ruby interpreter command
/usr/bin/ruby
User and groups
uid=998(foreman) gid=998(foreman) groups=998(foreman),117(puppet)

http://debugs.theforeman.org/foreman-debug-X8odA.tar.xz


Related issues 4 (0 open4 closed)

Related to foreman-tasks - Bug #17372: Installation of foreman_tasks fails on Debian jessieDuplicateIvan Necas11/17/2016Actions
Related to Packaging - Bug #20050: ruby-sequel-pg DEB pollutes Foreman ruby gem environmentClosedIvan Necas06/19/2017Actions
Related to Foreman - Bug #22745: After Upgrade from 1.15.6 to 1.16.0 we can't access foremanFeedback03/01/2018Actions
Related to Foreman Remote Execution - Bug #23061: remote execution tasks stuck in status plannedDuplicate03/29/2018Actions
Actions

Also available in: Atom PDF