Skip to content
This repository has been archived by the owner on Jun 13, 2018. It is now read-only.

latest foreman and openscap fails on foreman-rake db:migrate #24

Open
cristifalcas opened this issue Jun 25, 2015 · 3 comments
Open

latest foreman and openscap fails on foreman-rake db:migrate #24

cristifalcas opened this issue Jun 25, 2015 · 3 comments

Comments

@cristifalcas
Copy link

I removed /opt/rh/ruby193/root/usr/share/gems/gems/scaptimony-0.3.1/db/migrate/20150115155947_add_scaptimony_scap_content_digest.rb in order to skip this error

Packages installed:
[root@puppet ~]# rpm -qa | grep -i "foreman|openscap" | sort
foreman-1.8.1-1.el7.noarch
foreman-cli-1.8.1-1.el7.noarch
foreman-compute-1.8.1-1.el7.noarch
foreman-debug-1.8.0-1.el7.noarch
foreman-ec2-1.8.1-1.el7.noarch
foreman-gce-1.8.1-1.el7.noarch
foreman-libvirt-1.8.1-1.el7.noarch
foreman-ovirt-1.8.1-1.el7.noarch
foreman-postgresql-1.8.1-1.el7.noarch
foreman-proxy-1.8.1-1.el7.noarch
foreman-selinux-1.8.1-1.el7.noarch
foreman-vmware-1.8.1-1.el7.noarch
openscap-1.2.2-0.1.el7.centos.x86_64
ruby193-rubygem-foreman_abrt-0.0.6-1.el7.noarch
ruby193-rubygem-foreman_column_view-0.2.0-1.el7.noarch
ruby193-rubygem-foreman_docker-1.3.1-1.fm1_8.el7.noarch
ruby193-rubygem-foreman_hooks-0.3.7-3.el7.noarch
ruby193-rubygem-foreman_openscap-0.4.0-1.el7.noarch
ruby193-rubygem-foreman-tasks-0.6.12-2.el7.noarch
ruby193-rubygem-foreman_templates-1.5.0-1.el7.noarch
ruby193-rubygem-openscap-0.4.2-2.el7.noarch
ruby193-rubygem-puppetdb_foreman-0.1.2-1.el7.noarch
rubygem-hammer_cli_foreman-0.2.0-1.el7.noarch
rubygem-smart_proxy_openscap-0.4.0-1.el7.noarch

Error:
== AddScaptimonyScapContentDigest: migrating =================================
-- add_column(:scaptimony_scap_contents, :digest, :string, {:limit=>128})
rake aborted!
An error has occurred, this and all later migrations canceled:

PGError: ERROR: column "digest" of relation "scaptimony_scap_contents" already exists
: ALTER TABLE "scaptimony_scap_contents" ADD COLUMN "digest" character varying(128)

Tasks: TOP => db:migrate
(See full trace by running task with --trace)

@cristifalcas
Copy link
Author

doesn't happen with the latest version from what I can tell

@cristifalcas
Copy link
Author

Sorry to reopen this, but the error is still present on upgrades. The last time I test it, I didn't have the 20150115155947_add_scaptimony_scap_content_digest.rb file.

@cristifalcas cristifalcas reopened this Jun 25, 2015
shlomizadok added a commit to shlomizadok/scaptimony that referenced this issue Jul 12, 2015
isimluk added a commit that referenced this issue Jul 13, 2015
fixes #11057 & issue #24 - make digest migration conditional
@shlomizadok
Copy link
Contributor

@cristi1979 - #26 is now merged. Will you kindly test if it works for you?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants