Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreman-rake db:import_dump file=/var/lib/foreman/db/foreman.1592992346.sql
- Your backup is going to be imported from: /var/lib/foreman/db/foreman.1592992346.sql
- You can backup the old database 'foreman' by running:
- - foreman-rake db:dump destination=/mydir/dumps/foreman.sql RAILS_ENV=production
- This task will destroy your old database tables! Are you sure you want to continue? [y/N]
- y
- pg_restore: while PROCESSING TOC:
- pg_restore: from TOC entry 4651; 2606 17097 FK CONSTRAINT subnets subnets_discovery_id_fk foreman
- pg_restore: error: could not execute query: ERROR: constraint "subnets_discovery_id_fk" of relation "subnets" does not exist
- Command was: ALTER TABLE ONLY public.subnets DROP CONSTRAINT subnets_discovery_id_fk;
- pg_restore: from TOC entry 4730; 2606 16692 FK CONSTRAINT discovery_rules discovery_rules_hostgroup_id_fk foreman
- pg_restore: error: could not execute query: ERROR: relation "public.discovery_rules" does not exist
- Command was: ALTER TABLE ONLY public.discovery_rules DROP CONSTRAINT discovery_rules_hostgroup_id_fk;
- pg_restore: from TOC entry 4731; 2606 16687 FK CONSTRAINT discovery_attribute_sets discovery_attribute_sets_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: relation "public.discovery_attribute_sets" does not exist
- Command was: ALTER TABLE ONLY public.discovery_attribute_sets DROP CONSTRAINT discovery_attribute_sets_host_id_fk;
- pg_restore: from TOC entry 4328; 1259 16392 INDEX unique_schema_migrations foreman
- pg_restore: error: could not execute query: ERROR: index "unique_schema_migrations" does not exist
- Command was: DROP INDEX public.unique_schema_migrations;
- pg_restore: from TOC entry 4614; 1259 413144 INDEX index_discovery_rules_on_priority foreman
- pg_restore: error: could not execute query: ERROR: index "index_discovery_rules_on_priority" does not exist
- Command was: DROP INDEX public.index_discovery_rules_on_priority;
- pg_restore: from TOC entry 4617; 1259 413105 INDEX index_discovery_attribute_sets_on_host_id foreman
- pg_restore: error: could not execute query: ERROR: index "index_discovery_attribute_sets_on_host_id" does not exist
- Command was: DROP INDEX public.index_discovery_attribute_sets_on_host_id;
- pg_restore: from TOC entry 4409; 2606 16655 CONSTRAINT users users_pkey foreman
- pg_restore: error: could not execute query: ERROR: cannot drop constraint users_pkey on table public.users because other objects depend on it
- DETAIL: constraint activation_keys_user_id_fk on table public.katello_activation_keys depends on index public.users_pkey
- constraint task_statuses_user_id_fk on table public.katello_task_statuses depends on index public.users_pkey
- constraint fk_rails_ee1659f1ac on table public.katello_subscription_facets depends on index public.users_pkey
- constraint fk_rails_a56904dd86 on table public.foreman_tasks_tasks depends on index public.users_pkey
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: ALTER TABLE ONLY public.users DROP CONSTRAINT users_pkey;
- pg_restore: from TOC entry 4489; 2606 16642 CONSTRAINT taxonomies taxonomies_pkey foreman
- pg_restore: error: could not execute query: ERROR: cannot drop constraint taxonomies_pkey on table public.taxonomies because other objects depend on it
- DETAIL: constraint katello_content_views_organization_fk on table public.katello_content_views depends on index public.taxonomies_pkey
- constraint katello_task_statuses_organization_fk on table public.katello_task_statuses depends on index public.taxonomies_pkey
- constraint katello_sync_plans_organization_fk on table public.katello_sync_plans depends on index public.taxonomies_pkey
- constraint katello_providers_organization_fk on table public.katello_providers depends on index public.taxonomies_pkey
- constraint katello_gpg_keys_organization_fk on table public.katello_gpg_keys depends on index public.taxonomies_pkey
- constraint katello_products_organization_fk on table public.katello_products depends on index public.taxonomies_pkey
- constraint katello_activation_keys_organization_fk on table public.katello_activation_keys depends on index public.taxonomies_pkey
- constraint katello_host_collections_organization_fk on table public.katello_host_collections depends on index public.taxonomies_pkey
- constraint katello_environments_organization_fk on table public.katello_environments depends on index public.taxonomies_pkey
- constraint katello_subscriptions_organization_fk on table public.katello_subscriptions depends on index public.taxonomies_pkey
- constraint katello_pools_organization_id on table public.katello_pools depends on index public.taxonomies_pkey
- constraint fk_rails_7d58ab6001 on table public.katello_contents depends on index public.taxonomies_pkey
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: ALTER TABLE ONLY public.taxonomies DROP CONSTRAINT taxonomies_pkey;
- pg_restore: from TOC entry 4455; 2606 16633 CONSTRAINT smart_proxies smart_proxies_pkey foreman
- pg_restore: error: could not execute query: ERROR: cannot drop constraint smart_proxies_pkey on table public.smart_proxies because other objects depend on it
- DETAIL: constraint hostgroups_content_source_id_fk on table public.hostgroups depends on index public.smart_proxies_pkey
- constraint katello_capsule_lifecycle_environments_capsule_fk on table public.katello_capsule_lifecycle_environments depends on index public.smart_proxies_pkey
- constraint katello_content_facets_content_source_id_fk on table public.katello_content_facets depends on index public.smart_proxies_pkey
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: ALTER TABLE ONLY public.smart_proxies DROP CONSTRAINT smart_proxies_pkey;
- pg_restore: from TOC entry 4555; 2606 16632 CONSTRAINT setup_provisioners setup_provisioners_pkey foreman
- pg_restore: error: could not execute query: ERROR: relation "public.setup_provisioners" does not exist
- Command was: ALTER TABLE ONLY public.setup_provisioners DROP CONSTRAINT setup_provisioners_pkey;
- pg_restore: from TOC entry 4602; 2606 16606 CONSTRAINT http_proxies http_proxies_pkey foreman
- pg_restore: error: could not execute query: ERROR: cannot drop constraint http_proxies_pkey on table public.http_proxies because other objects depend on it
- DETAIL: constraint fk_rails_4c4627948f on table public.katello_root_repositories depends on index public.http_proxies_pkey
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: ALTER TABLE ONLY public.http_proxies DROP CONSTRAINT http_proxies_pkey;
- pg_restore: from TOC entry 4335; 2606 16605 CONSTRAINT hosts hosts_pkey foreman
- pg_restore: error: could not execute query: ERROR: cannot drop constraint hosts_pkey on table public.hosts because other objects depend on it
- DETAIL: constraint katello_subscription_facets_host_id on table public.katello_subscription_facets depends on index public.hosts_pkey
- constraint katello_content_facets_host_id on table public.katello_content_facets depends on index public.hosts_pkey
- constraint katello_host_collection_hosts_host_id_fk on table public.katello_host_collection_hosts depends on index public.hosts_pkey
- constraint katello_host_trace_host_id on table public.katello_host_tracers depends on index public.hosts_pkey
- constraint katello_host_installed_packages_host_id on table public.katello_host_installed_packages depends on index public.hosts_pkey
- constraint katello_host_installed_debs_host_id on table public.katello_host_installed_debs depends on index public.hosts_pkey
- constraint katello_pools_hypervisor_fk on table public.katello_pools depends on index public.hosts_pkey
- constraint katello_hems_host_id_fk on table public.katello_host_available_module_streams depends on index public.hosts_pkey
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: ALTER TABLE ONLY public.hosts DROP CONSTRAINT hosts_pkey;
- pg_restore: from TOC entry 4377; 2606 16591 CONSTRAINT environments environments_pkey foreman
- pg_restore: error: could not execute query: ERROR: cannot drop constraint environments_pkey on table public.environments because other objects depend on it
- DETAIL: constraint katello_cvpe_pe_id on table public.katello_content_view_puppet_environments depends on index public.environments_pkey
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: ALTER TABLE ONLY public.environments DROP CONSTRAINT environments_pkey;
- pg_restore: from TOC entry 4613; 2606 16583 CONSTRAINT discovery_rules discovery_rules_pkey foreman
- pg_restore: error: could not execute query: ERROR: relation "public.discovery_rules" does not exist
- Command was: ALTER TABLE ONLY public.discovery_rules DROP CONSTRAINT discovery_rules_pkey;
- pg_restore: from TOC entry 4616; 2606 16582 CONSTRAINT discovery_attribute_sets discovery_attribute_sets_pkey foreman
- pg_restore: error: could not execute query: ERROR: relation "public.discovery_attribute_sets" does not exist
- Command was: ALTER TABLE ONLY public.discovery_attribute_sets DROP CONSTRAINT discovery_attribute_sets_pkey;
- pg_restore: from TOC entry 4293; 2604 16545 DEFAULT setup_provisioners id foreman
- pg_restore: error: could not execute query: ERROR: relation "public.setup_provisioners" does not exist
- Command was: ALTER TABLE public.setup_provisioners ALTER COLUMN id DROP DEFAULT;
- pg_restore: from TOC entry 4300; 2604 16502 DEFAULT dynflow_envelopes id foreman
- pg_restore: error: could not execute query: ERROR: column "id" of relation "dynflow_envelopes" is an identity column
- HINT: Use ALTER TABLE ... ALTER COLUMN ... DROP IDENTITY instead.
- Command was: ALTER TABLE public.dynflow_envelopes ALTER COLUMN id DROP DEFAULT;
- pg_restore: from TOC entry 4318; 2604 16500 DEFAULT discovery_rules id foreman
- pg_restore: error: could not execute query: ERROR: relation "public.discovery_rules" does not exist
- Command was: ALTER TABLE public.discovery_rules ALTER COLUMN id DROP DEFAULT;
- pg_restore: from TOC entry 4323; 2604 16499 DEFAULT discovery_attribute_sets id foreman
- pg_restore: error: could not execute query: ERROR: relation "public.discovery_attribute_sets" does not exist
- Command was: ALTER TABLE public.discovery_attribute_sets ALTER COLUMN id DROP DEFAULT;
- pg_restore: from TOC entry 242; 1259 16677 TABLE users foreman
- pg_restore: error: could not execute query: ERROR: cannot drop table public.users because other objects depend on it
- DETAIL: constraint activation_keys_user_id_fk on table public.katello_activation_keys depends on table public.users
- constraint task_statuses_user_id_fk on table public.katello_task_statuses depends on table public.users
- constraint fk_rails_ee1659f1ac on table public.katello_subscription_facets depends on table public.users
- constraint fk_rails_a56904dd86 on table public.foreman_tasks_tasks depends on table public.users
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: DROP TABLE public.users;
- pg_restore: from TOC entry 294; 1259 17084 TABLE taxonomies foreman
- pg_restore: error: could not execute query: ERROR: cannot drop table public.taxonomies because other objects depend on it
- DETAIL: constraint katello_content_views_organization_fk on table public.katello_content_views depends on table public.taxonomies
- constraint katello_task_statuses_organization_fk on table public.katello_task_statuses depends on table public.taxonomies
- constraint katello_sync_plans_organization_fk on table public.katello_sync_plans depends on table public.taxonomies
- constraint katello_providers_organization_fk on table public.katello_providers depends on table public.taxonomies
- constraint katello_gpg_keys_organization_fk on table public.katello_gpg_keys depends on table public.taxonomies
- constraint katello_products_organization_fk on table public.katello_products depends on table public.taxonomies
- constraint katello_activation_keys_organization_fk on table public.katello_activation_keys depends on table public.taxonomies
- constraint katello_host_collections_organization_fk on table public.katello_host_collections depends on table public.taxonomies
- constraint katello_environments_organization_fk on table public.katello_environments depends on table public.taxonomies
- constraint katello_subscriptions_organization_fk on table public.katello_subscriptions depends on table public.taxonomies
- constraint katello_pools_organization_id on table public.katello_pools depends on table public.taxonomies
- constraint fk_rails_7d58ab6001 on table public.katello_contents depends on table public.taxonomies
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: DROP TABLE public.taxonomies;
- pg_restore: from TOC entry 274; 1259 16915 TABLE smart_proxies foreman
- pg_restore: error: could not execute query: ERROR: cannot drop table public.smart_proxies because other objects depend on it
- DETAIL: constraint hostgroups_content_source_id_fk on table public.hostgroups depends on table public.smart_proxies
- constraint katello_capsule_lifecycle_environments_capsule_fk on table public.katello_capsule_lifecycle_environments depends on table public.smart_proxies
- constraint katello_content_facets_content_source_id_fk on table public.katello_content_facets depends on table public.smart_proxies
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: DROP TABLE public.smart_proxies;
- pg_restore: from TOC entry 338; 1259 18582 SEQUENCE setup_provisioners_id_seq foreman
- pg_restore: error: could not execute query: ERROR: sequence "setup_provisioners_id_seq" does not exist
- Command was: DROP SEQUENCE public.setup_provisioners_id_seq;
- pg_restore: from TOC entry 339; 1259 18584 TABLE setup_provisioners foreman
- pg_restore: error: could not execute query: ERROR: table "setup_provisioners" does not exist
- Command was: DROP TABLE public.setup_provisioners;
- pg_restore: from TOC entry 360; 1259 188007 TABLE http_proxies foreman
- pg_restore: error: could not execute query: ERROR: cannot drop table public.http_proxies because other objects depend on it
- DETAIL: constraint fk_rails_4c4627948f on table public.katello_root_repositories depends on table public.http_proxies
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: DROP TABLE public.http_proxies;
- pg_restore: from TOC entry 204; 1259 16395 TABLE hosts foreman
- pg_restore: error: could not execute query: ERROR: cannot drop table public.hosts because other objects depend on it
- DETAIL: constraint katello_subscription_facets_host_id on table public.katello_subscription_facets depends on table public.hosts
- constraint katello_content_facets_host_id on table public.katello_content_facets depends on table public.hosts
- constraint katello_host_collection_hosts_host_id_fk on table public.katello_host_collection_hosts depends on table public.hosts
- constraint katello_host_trace_host_id on table public.katello_host_tracers depends on table public.hosts
- constraint katello_host_installed_packages_host_id on table public.katello_host_installed_packages depends on table public.hosts
- constraint katello_host_installed_debs_host_id on table public.katello_host_installed_debs depends on table public.hosts
- constraint katello_pools_hypervisor_fk on table public.katello_pools depends on table public.hosts
- constraint katello_hems_host_id_fk on table public.katello_host_available_module_streams depends on table public.hosts
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: DROP TABLE public.hosts;
- pg_restore: from TOC entry 225; 1259 16571 TABLE environments foreman
- pg_restore: error: could not execute query: ERROR: cannot drop table public.environments because other objects depend on it
- DETAIL: constraint katello_cvpe_pe_id on table public.katello_content_view_puppet_environments depends on table public.environments
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: DROP TABLE public.environments;
- pg_restore: from TOC entry 353; 1259 187888 SEQUENCE dynflow_envelopes_id_seq foreman
- pg_restore: error: could not execute query: ERROR: cannot drop sequence public.dynflow_envelopes_id_seq because column id of table public.dynflow_envelopes requires it
- HINT: You can drop column id of table public.dynflow_envelopes instead.
- Command was: DROP SEQUENCE public.dynflow_envelopes_id_seq;
- pg_restore: from TOC entry 367; 1259 413078 SEQUENCE discovery_rules_id_seq foreman
- pg_restore: error: could not execute query: ERROR: sequence "discovery_rules_id_seq" does not exist
- Command was: DROP SEQUENCE public.discovery_rules_id_seq;
- pg_restore: from TOC entry 368; 1259 413080 TABLE discovery_rules foreman
- pg_restore: error: could not execute query: ERROR: table "discovery_rules" does not exist
- Command was: DROP TABLE public.discovery_rules;
- pg_restore: from TOC entry 369; 1259 413093 SEQUENCE discovery_attribute_sets_id_seq foreman
- pg_restore: error: could not execute query: ERROR: sequence "discovery_attribute_sets_id_seq" does not exist
- Command was: DROP SEQUENCE public.discovery_attribute_sets_id_seq;
- pg_restore: from TOC entry 370; 1259 413095 TABLE discovery_attribute_sets foreman
- pg_restore: error: could not execute query: ERROR: table "discovery_attribute_sets" does not exist
- Command was: DROP TABLE public.discovery_attribute_sets;
- pg_restore: from TOC entry 225; 1259 16571 TABLE environments foreman
- pg_restore: error: could not execute query: ERROR: relation "environments" already exists
- Command was: CREATE TABLE public.environments (
- id integer NOT NULL,
- name character varying(255) NOT NULL,
- created_at timestamp without time zone,
- updated_at timestamp without time zone
- );
- pg_restore: from TOC entry 204; 1259 16395 TABLE hosts foreman
- pg_restore: error: could not execute query: ERROR: relation "hosts" already exists
- Command was: CREATE TABLE public.hosts (
- id integer NOT NULL,
- name character varying(255) NOT NULL,
- last_compile timestamp without time zone,
- last_report timestamp without time zone,
- updated_at timestamp without time zone,
- created_at timestamp without time zone,
- root_pass text,
- architecture_id integer,
- operatingsystem_id integer,
- environment_id integer,
- ptable_id integer,
- medium_id integer,
- build boolean DEFAULT false,
- comment text,
- disk text,
- installed_at timestamp without time zone,
- model_id integer,
- hostgroup_id integer,
- owner_id integer,
- owner_type character varying(255),
- enabled boolean DEFAULT true,
- puppet_ca_proxy_id integer,
- managed boolean DEFAULT false NOT NULL,
- use_image boolean,
- image_file character varying(128),
- uuid character varying(255),
- compute_resource_id integer,
- puppet_proxy_id integer,
- certname character varying(255),
- image_id integer,
- organization_id integer,
- location_id integer,
- type character varying(255),
- otp character varying(255),
- realm_id integer,
- compute_profile_id integer,
- provision_method character varying(255),
- grub_pass character varying(255) DEFAULT ''::character varying,
- global_status integer DEFAULT 0 NOT NULL,
- lookup_value_matcher character varying(255),
- pxe_loader character varying(255),
- initiated_at timestamp without time zone,
- build_errors text,
- discovery_rule_id integer
- );
- pg_restore: from TOC entry 360; 1259 188007 TABLE http_proxies foreman
- pg_restore: error: could not execute query: ERROR: relation "http_proxies" already exists
- Command was: CREATE TABLE public.http_proxies (
- id integer NOT NULL,
- name character varying NOT NULL,
- url character varying NOT NULL,
- username character varying,
- password character varying
- );
- pg_restore: from TOC entry 274; 1259 16915 TABLE smart_proxies foreman
- pg_restore: error: could not execute query: ERROR: relation "smart_proxies" already exists
- Command was: CREATE TABLE public.smart_proxies (
- id integer NOT NULL,
- name character varying(255),
- url character varying(255),
- created_at timestamp without time zone,
- updated_at timestamp without time zone,
- expired_logs character varying(255) DEFAULT '0'::character varying
- );
- pg_restore: from TOC entry 294; 1259 17084 TABLE taxonomies foreman
- pg_restore: error: could not execute query: ERROR: relation "taxonomies" already exists
- Command was: CREATE TABLE public.taxonomies (
- id integer NOT NULL,
- name character varying(255),
- type character varying(255),
- created_at timestamp without time zone,
- updated_at timestamp without time zone,
- ignore_types text,
- ancestry character varying(255),
- title character varying(255),
- description text
- );
- pg_restore: from TOC entry 242; 1259 16677 TABLE users foreman
- pg_restore: error: could not execute query: ERROR: relation "users" already exists
- Command was: CREATE TABLE public.users (
- id integer NOT NULL,
- login character varying(255),
- firstname character varying(255),
- lastname character varying(255),
- mail character varying(255),
- admin boolean DEFAULT false NOT NULL,
- last_login_on timestamp without time zone,
- auth_source_id integer,
- created_at timestamp without time zone,
- updated_at timestamp without time zone,
- password_hash character varying(128),
- password_salt character varying(128),
- locale character varying(5),
- avatar_hash character varying(128),
- default_organization_id integer,
- default_location_id integer,
- lower_login character varying(255),
- mail_enabled boolean DEFAULT true,
- timezone character varying(255),
- description text
- );
- pg_restore: from TOC entry 4862; 0 16395 TABLE DATA hosts foreman
- pg_restore: error: could not execute query: ERROR: column "discovery_rule_id" of relation "hosts" does not exist
- Command was: COPY public.hosts (id, name, last_compile, last_report, updated_at, created_at, root_pass, architecture_id, operatingsystem_id, environment_id, ptable_id, medium_id, build, comment, disk, installed_at, model_id, hostgroup_id, owner_id, owner_type, enabled, puppet_ca_proxy_id, managed, use_image, image_file, uuid, compute_resource_id, puppet_proxy_id, certname, image_id, organization_id, location_id, type, otp, realm_id, compute_profile_id, provision_method, grub_pass, global_status, lookup_value_matcher, pxe_loader, initiated_at, build_errors, discovery_rule_id) FROM stdin;
- pg_restore: from TOC entry 4932; 0 16915 TABLE DATA smart_proxies foreman
- pg_restore: error: COPY failed for table "smart_proxies": ERROR: duplicate key value violates unique constraint "smart_proxies_pkey"
- DETAIL: Key (id)=(1) already exists.
- CONTEXT: COPY smart_proxies, line 1
- pg_restore: from TOC entry 4952; 0 17084 TABLE DATA taxonomies foreman
- pg_restore: error: COPY failed for table "taxonomies": ERROR: duplicate key value violates unique constraint "taxonomies_pkey"
- DETAIL: Key (id)=(1) already exists.
- CONTEXT: COPY taxonomies, line 2
- pg_restore: from TOC entry 4900; 0 16677 TABLE DATA users foreman
- pg_restore: error: COPY failed for table "users": ERROR: duplicate key value violates unique constraint "users_pkey"
- DETAIL: Key (id)=(1) already exists.
- CONTEXT: COPY users, line 1
- pg_restore: from TOC entry 4377; 2606 16591 CONSTRAINT environments environments_pkey foreman
- pg_restore: error: could not execute query: ERROR: multiple primary keys for table "environments" are not allowed
- Command was: ALTER TABLE ONLY public.environments
- ADD CONSTRAINT environments_pkey PRIMARY KEY (id);
- pg_restore: from TOC entry 4335; 2606 16605 CONSTRAINT hosts hosts_pkey foreman
- pg_restore: error: could not execute query: ERROR: multiple primary keys for table "hosts" are not allowed
- Command was: ALTER TABLE ONLY public.hosts
- ADD CONSTRAINT hosts_pkey PRIMARY KEY (id);
- pg_restore: from TOC entry 4602; 2606 16606 CONSTRAINT http_proxies http_proxies_pkey foreman
- pg_restore: error: could not execute query: ERROR: multiple primary keys for table "http_proxies" are not allowed
- Command was: ALTER TABLE ONLY public.http_proxies
- ADD CONSTRAINT http_proxies_pkey PRIMARY KEY (id);
- pg_restore: from TOC entry 4455; 2606 16633 CONSTRAINT smart_proxies smart_proxies_pkey foreman
- pg_restore: error: could not execute query: ERROR: multiple primary keys for table "smart_proxies" are not allowed
- Command was: ALTER TABLE ONLY public.smart_proxies
- ADD CONSTRAINT smart_proxies_pkey PRIMARY KEY (id);
- pg_restore: from TOC entry 4489; 2606 16642 CONSTRAINT taxonomies taxonomies_pkey foreman
- pg_restore: error: could not execute query: ERROR: multiple primary keys for table "taxonomies" are not allowed
- Command was: ALTER TABLE ONLY public.taxonomies
- ADD CONSTRAINT taxonomies_pkey PRIMARY KEY (id);
- pg_restore: from TOC entry 4409; 2606 16655 CONSTRAINT users users_pkey foreman
- pg_restore: error: could not execute query: ERROR: multiple primary keys for table "users" are not allowed
- Command was: ALTER TABLE ONLY public.users
- ADD CONSTRAINT users_pkey PRIMARY KEY (id);
- pg_restore: from TOC entry 4646; 2606 16752 FK CONSTRAINT fact_values fact_values_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "fact_values" violates foreign key constraint "fact_values_host_id_fk"
- DETAIL: Key (host_id)=(1) is not present in table "hosts".
- Command was: ALTER TABLE ONLY public.fact_values
- ADD CONSTRAINT fact_values_host_id_fk FOREIGN KEY (host_id) REFERENCES public.hosts(id);
- pg_restore: from TOC entry 4695; 2606 16762 FK CONSTRAINT smart_proxy_features features_smart_proxies_smart_proxy_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "smart_proxy_features" violates foreign key constraint "features_smart_proxies_smart_proxy_id_fk"
- DETAIL: Key (smart_proxy_id)=(2) is not present in table "smart_proxies".
- Command was: ALTER TABLE ONLY public.smart_proxy_features
- ADD CONSTRAINT features_smart_proxies_smart_proxy_id_fk FOREIGN KEY (smart_proxy_id) REFERENCES public.smart_proxies(id);
- pg_restore: from TOC entry 4721; 2606 16792 FK CONSTRAINT notification_recipients fk_rails_51975e21a8 foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "notification_recipients" violates foreign key constraint "fk_rails_51975e21a8"
- DETAIL: Key (user_id)=(13) is not present in table "users".
- Command was: ALTER TABLE ONLY public.notification_recipients
- ADD CONSTRAINT fk_rails_51975e21a8 FOREIGN KEY (user_id) REFERENCES public.users(id);
- pg_restore: from TOC entry 4733; 2606 16807 FK CONSTRAINT host_facets_reported_data_facets fk_rails_a82ac722f1 foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "host_facets_reported_data_facets" violates foreign key constraint "fk_rails_a82ac722f1"
- DETAIL: Key (host_id)=(1011) is not present in table "hosts".
- Command was: ALTER TABLE ONLY public.host_facets_reported_data_facets
- ADD CONSTRAINT fk_rails_a82ac722f1 FOREIGN KEY (host_id) REFERENCES public.hosts(id);
- pg_restore: from TOC entry 4660; 2606 16822 FK CONSTRAINT host_classes host_classes_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "host_classes" violates foreign key constraint "host_classes_host_id_fk"
- DETAIL: Key (host_id)=(897) is not present in table "hosts".
- Command was: ALTER TABLE ONLY public.host_classes
- ADD CONSTRAINT host_classes_host_id_fk FOREIGN KEY (host_id) REFERENCES public.hosts(id);
- pg_restore: from TOC entry 4718; 2606 16832 FK CONSTRAINT host_status host_status_hosts_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "host_status" violates foreign key constraint "host_status_hosts_host_id_fk"
- DETAIL: Key (host_id)=(1018) is not present in table "hosts".
- Command was: ALTER TABLE ONLY public.host_status
- ADD CONSTRAINT host_status_hosts_host_id_fk FOREIGN KEY (host_id) REFERENCES public.hosts(id);
- pg_restore: from TOC entry 4673; 2606 16887 FK CONSTRAINT hostgroups hostgroups_puppet_proxy_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "hostgroups" violates foreign key constraint "hostgroups_puppet_proxy_id_fk"
- DETAIL: Key (puppet_proxy_id)=(2) is not present in table "smart_proxies".
- Command was: ALTER TABLE ONLY public.hostgroups
- ADD CONSTRAINT hostgroups_puppet_proxy_id_fk FOREIGN KEY (puppet_proxy_id) REFERENCES public.smart_proxies(id);
- pg_restore: from TOC entry 4699; 2606 17022 FK CONSTRAINT nics nics_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "nics" violates foreign key constraint "nics_host_id_fk"
- DETAIL: Key (host_id)=(815) is not present in table "hosts".
- Command was: ALTER TABLE ONLY public.nics
- ADD CONSTRAINT nics_host_id_fk FOREIGN KEY (host_id) REFERENCES public.hosts(id);
- pg_restore: from TOC entry 4657; 2606 17077 FK CONSTRAINT reports reports_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "reports" violates foreign key constraint "reports_host_id_fk"
- DETAIL: Key (host_id)=(865) is not present in table "hosts".
- Command was: ALTER TABLE ONLY public.reports
- ADD CONSTRAINT reports_host_id_fk FOREIGN KEY (host_id) REFERENCES public.hosts(id);
- pg_restore: from TOC entry 4653; 2606 17107 FK CONSTRAINT subnets subnets_tftp_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "subnets" violates foreign key constraint "subnets_tftp_id_fk"
- DETAIL: Key (tftp_id)=(5) is not present in table "smart_proxies".
- Command was: ALTER TABLE ONLY public.subnets
- ADD CONSTRAINT subnets_tftp_id_fk FOREIGN KEY (tftp_id) REFERENCES public.smart_proxies(id);
- pg_restore: from TOC entry 4707; 2606 17117 FK CONSTRAINT taxable_taxonomies taxable_taxonomies_taxonomy_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "taxable_taxonomies" violates foreign key constraint "taxable_taxonomies_taxonomy_id_fk"
- DETAIL: Key (taxonomy_id)=(4) is not present in table "taxonomies".
- Command was: ALTER TABLE ONLY public.taxable_taxonomies
- ADD CONSTRAINT taxable_taxonomies_taxonomy_id_fk FOREIGN KEY (taxonomy_id) REFERENCES public.taxonomies(id);
- pg_restore: from TOC entry 4705; 2606 17142 FK CONSTRAINT tokens tokens_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "tokens" violates foreign key constraint "tokens_host_id_fk"
- DETAIL: Key (host_id)=(1052) is not present in table "hosts".
- Command was: ALTER TABLE ONLY public.tokens
- ADD CONSTRAINT tokens_host_id_fk FOREIGN KEY (host_id) REFERENCES public.hosts(id);
- pg_restore: from TOC entry 4717; 2606 17157 FK CONSTRAINT user_mail_notifications user_mail_notifications_user_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "user_mail_notifications" violates foreign key constraint "user_mail_notifications_user_id_fk"
- DETAIL: Key (user_id)=(28) is not present in table "users".
- Command was: ALTER TABLE ONLY public.user_mail_notifications
- ADD CONSTRAINT user_mail_notifications_user_id_fk FOREIGN KEY (user_id) REFERENCES public.users(id);
- pg_restore: warning: errors ignored on restore: 61
- pg_restore: while PROCESSING TOC:
- pg_restore: from TOC entry 4717; 2606 17157 FK CONSTRAINT user_mail_notifications user_mail_notifications_user_id_fk foreman
- pg_restore: error: could not execute query: ERROR: constraint "user_mail_notifications_user_id_fk" of relation "user_mail_notifications" does not exist
- Command was: ALTER TABLE ONLY public.user_mail_notifications DROP CONSTRAINT user_mail_notifications_user_id_fk;
- pg_restore: from TOC entry 4705; 2606 17142 FK CONSTRAINT tokens tokens_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: constraint "tokens_host_id_fk" of relation "tokens" does not exist
- Command was: ALTER TABLE ONLY public.tokens DROP CONSTRAINT tokens_host_id_fk;
- pg_restore: from TOC entry 4707; 2606 17117 FK CONSTRAINT taxable_taxonomies taxable_taxonomies_taxonomy_id_fk foreman
- pg_restore: error: could not execute query: ERROR: constraint "taxable_taxonomies_taxonomy_id_fk" of relation "taxable_taxonomies" does not exist
- Command was: ALTER TABLE ONLY public.taxable_taxonomies DROP CONSTRAINT taxable_taxonomies_taxonomy_id_fk;
- pg_restore: from TOC entry 4653; 2606 17107 FK CONSTRAINT subnets subnets_tftp_id_fk foreman
- pg_restore: error: could not execute query: ERROR: constraint "subnets_tftp_id_fk" of relation "subnets" does not exist
- Command was: ALTER TABLE ONLY public.subnets DROP CONSTRAINT subnets_tftp_id_fk;
- pg_restore: from TOC entry 4657; 2606 17077 FK CONSTRAINT reports reports_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: constraint "reports_host_id_fk" of relation "reports" does not exist
- Command was: ALTER TABLE ONLY public.reports DROP CONSTRAINT reports_host_id_fk;
- pg_restore: from TOC entry 4699; 2606 17022 FK CONSTRAINT nics nics_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: constraint "nics_host_id_fk" of relation "nics" does not exist
- Command was: ALTER TABLE ONLY public.nics DROP CONSTRAINT nics_host_id_fk;
- pg_restore: from TOC entry 4673; 2606 16887 FK CONSTRAINT hostgroups hostgroups_puppet_proxy_id_fk foreman
- pg_restore: error: could not execute query: ERROR: constraint "hostgroups_puppet_proxy_id_fk" of relation "hostgroups" does not exist
- Command was: ALTER TABLE ONLY public.hostgroups DROP CONSTRAINT hostgroups_puppet_proxy_id_fk;
- pg_restore: from TOC entry 4718; 2606 16832 FK CONSTRAINT host_status host_status_hosts_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: constraint "host_status_hosts_host_id_fk" of relation "host_status" does not exist
- Command was: ALTER TABLE ONLY public.host_status DROP CONSTRAINT host_status_hosts_host_id_fk;
- pg_restore: from TOC entry 4660; 2606 16822 FK CONSTRAINT host_classes host_classes_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: constraint "host_classes_host_id_fk" of relation "host_classes" does not exist
- Command was: ALTER TABLE ONLY public.host_classes DROP CONSTRAINT host_classes_host_id_fk;
- pg_restore: from TOC entry 4733; 2606 16807 FK CONSTRAINT host_facets_reported_data_facets fk_rails_a82ac722f1 foreman
- pg_restore: error: could not execute query: ERROR: constraint "fk_rails_a82ac722f1" of relation "host_facets_reported_data_facets" does not exist
- Command was: ALTER TABLE ONLY public.host_facets_reported_data_facets DROP CONSTRAINT fk_rails_a82ac722f1;
- pg_restore: from TOC entry 4721; 2606 16792 FK CONSTRAINT notification_recipients fk_rails_51975e21a8 foreman
- pg_restore: error: could not execute query: ERROR: constraint "fk_rails_51975e21a8" of relation "notification_recipients" does not exist
- Command was: ALTER TABLE ONLY public.notification_recipients DROP CONSTRAINT fk_rails_51975e21a8;
- pg_restore: from TOC entry 4695; 2606 16762 FK CONSTRAINT smart_proxy_features features_smart_proxies_smart_proxy_id_fk foreman
- pg_restore: error: could not execute query: ERROR: constraint "features_smart_proxies_smart_proxy_id_fk" of relation "smart_proxy_features" does not exist
- Command was: ALTER TABLE ONLY public.smart_proxy_features DROP CONSTRAINT features_smart_proxies_smart_proxy_id_fk;
- pg_restore: from TOC entry 4646; 2606 16752 FK CONSTRAINT fact_values fact_values_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: constraint "fact_values_host_id_fk" of relation "fact_values" does not exist
- Command was: ALTER TABLE ONLY public.fact_values DROP CONSTRAINT fact_values_host_id_fk;
- pg_restore: from TOC entry 4409; 2606 16655 CONSTRAINT users users_pkey foreman
- pg_restore: error: could not execute query: ERROR: cannot drop constraint users_pkey on table public.users because other objects depend on it
- DETAIL: constraint activation_keys_user_id_fk on table public.katello_activation_keys depends on index public.users_pkey
- constraint task_statuses_user_id_fk on table public.katello_task_statuses depends on index public.users_pkey
- constraint fk_rails_ee1659f1ac on table public.katello_subscription_facets depends on index public.users_pkey
- constraint fk_rails_a56904dd86 on table public.foreman_tasks_tasks depends on index public.users_pkey
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: ALTER TABLE ONLY public.users DROP CONSTRAINT users_pkey;
- pg_restore: from TOC entry 4489; 2606 16642 CONSTRAINT taxonomies taxonomies_pkey foreman
- pg_restore: error: could not execute query: ERROR: cannot drop constraint taxonomies_pkey on table public.taxonomies because other objects depend on it
- DETAIL: constraint katello_content_views_organization_fk on table public.katello_content_views depends on index public.taxonomies_pkey
- constraint katello_task_statuses_organization_fk on table public.katello_task_statuses depends on index public.taxonomies_pkey
- constraint katello_sync_plans_organization_fk on table public.katello_sync_plans depends on index public.taxonomies_pkey
- constraint katello_providers_organization_fk on table public.katello_providers depends on index public.taxonomies_pkey
- constraint katello_gpg_keys_organization_fk on table public.katello_gpg_keys depends on index public.taxonomies_pkey
- constraint katello_products_organization_fk on table public.katello_products depends on index public.taxonomies_pkey
- constraint katello_activation_keys_organization_fk on table public.katello_activation_keys depends on index public.taxonomies_pkey
- constraint katello_host_collections_organization_fk on table public.katello_host_collections depends on index public.taxonomies_pkey
- constraint katello_environments_organization_fk on table public.katello_environments depends on index public.taxonomies_pkey
- constraint katello_subscriptions_organization_fk on table public.katello_subscriptions depends on index public.taxonomies_pkey
- constraint katello_pools_organization_id on table public.katello_pools depends on index public.taxonomies_pkey
- constraint fk_rails_7d58ab6001 on table public.katello_contents depends on index public.taxonomies_pkey
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: ALTER TABLE ONLY public.taxonomies DROP CONSTRAINT taxonomies_pkey;
- pg_restore: from TOC entry 4455; 2606 16633 CONSTRAINT smart_proxies smart_proxies_pkey foreman
- pg_restore: error: could not execute query: ERROR: cannot drop constraint smart_proxies_pkey on table public.smart_proxies because other objects depend on it
- DETAIL: constraint katello_capsule_lifecycle_environments_capsule_fk on table public.katello_capsule_lifecycle_environments depends on index public.smart_proxies_pkey
- constraint katello_content_facets_content_source_id_fk on table public.katello_content_facets depends on index public.smart_proxies_pkey
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: ALTER TABLE ONLY public.smart_proxies DROP CONSTRAINT smart_proxies_pkey;
- pg_restore: from TOC entry 4602; 2606 16606 CONSTRAINT http_proxies http_proxies_pkey foreman
- pg_restore: error: could not execute query: ERROR: cannot drop constraint http_proxies_pkey on table public.http_proxies because other objects depend on it
- DETAIL: constraint fk_rails_4c4627948f on table public.katello_root_repositories depends on index public.http_proxies_pkey
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: ALTER TABLE ONLY public.http_proxies DROP CONSTRAINT http_proxies_pkey;
- pg_restore: from TOC entry 4335; 2606 16605 CONSTRAINT hosts hosts_pkey foreman
- pg_restore: error: could not execute query: ERROR: cannot drop constraint hosts_pkey on table public.hosts because other objects depend on it
- DETAIL: constraint katello_subscription_facets_host_id on table public.katello_subscription_facets depends on index public.hosts_pkey
- constraint katello_content_facets_host_id on table public.katello_content_facets depends on index public.hosts_pkey
- constraint katello_host_collection_hosts_host_id_fk on table public.katello_host_collection_hosts depends on index public.hosts_pkey
- constraint katello_host_trace_host_id on table public.katello_host_tracers depends on index public.hosts_pkey
- constraint katello_host_installed_packages_host_id on table public.katello_host_installed_packages depends on index public.hosts_pkey
- constraint katello_host_installed_debs_host_id on table public.katello_host_installed_debs depends on index public.hosts_pkey
- constraint katello_pools_hypervisor_fk on table public.katello_pools depends on index public.hosts_pkey
- constraint katello_hems_host_id_fk on table public.katello_host_available_module_streams depends on index public.hosts_pkey
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: ALTER TABLE ONLY public.hosts DROP CONSTRAINT hosts_pkey;
- pg_restore: from TOC entry 4377; 2606 16591 CONSTRAINT environments environments_pkey foreman
- pg_restore: error: could not execute query: ERROR: cannot drop constraint environments_pkey on table public.environments because other objects depend on it
- DETAIL: constraint katello_cvpe_pe_id on table public.katello_content_view_puppet_environments depends on index public.environments_pkey
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: ALTER TABLE ONLY public.environments DROP CONSTRAINT environments_pkey;
- pg_restore: from TOC entry 242; 1259 16677 TABLE users foreman
- pg_restore: error: could not execute query: ERROR: cannot drop table public.users because other objects depend on it
- DETAIL: constraint activation_keys_user_id_fk on table public.katello_activation_keys depends on table public.users
- constraint task_statuses_user_id_fk on table public.katello_task_statuses depends on table public.users
- constraint fk_rails_ee1659f1ac on table public.katello_subscription_facets depends on table public.users
- constraint fk_rails_a56904dd86 on table public.foreman_tasks_tasks depends on table public.users
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: DROP TABLE public.users;
- pg_restore: from TOC entry 294; 1259 17084 TABLE taxonomies foreman
- pg_restore: error: could not execute query: ERROR: cannot drop table public.taxonomies because other objects depend on it
- DETAIL: constraint katello_content_views_organization_fk on table public.katello_content_views depends on table public.taxonomies
- constraint katello_task_statuses_organization_fk on table public.katello_task_statuses depends on table public.taxonomies
- constraint katello_sync_plans_organization_fk on table public.katello_sync_plans depends on table public.taxonomies
- constraint katello_providers_organization_fk on table public.katello_providers depends on table public.taxonomies
- constraint katello_gpg_keys_organization_fk on table public.katello_gpg_keys depends on table public.taxonomies
- constraint katello_products_organization_fk on table public.katello_products depends on table public.taxonomies
- constraint katello_activation_keys_organization_fk on table public.katello_activation_keys depends on table public.taxonomies
- constraint katello_host_collections_organization_fk on table public.katello_host_collections depends on table public.taxonomies
- constraint katello_environments_organization_fk on table public.katello_environments depends on table public.taxonomies
- constraint katello_subscriptions_organization_fk on table public.katello_subscriptions depends on table public.taxonomies
- constraint katello_pools_organization_id on table public.katello_pools depends on table public.taxonomies
- constraint fk_rails_7d58ab6001 on table public.katello_contents depends on table public.taxonomies
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: DROP TABLE public.taxonomies;
- pg_restore: from TOC entry 274; 1259 16915 TABLE smart_proxies foreman
- pg_restore: error: could not execute query: ERROR: cannot drop table public.smart_proxies because other objects depend on it
- DETAIL: constraint katello_capsule_lifecycle_environments_capsule_fk on table public.katello_capsule_lifecycle_environments depends on table public.smart_proxies
- constraint katello_content_facets_content_source_id_fk on table public.katello_content_facets depends on table public.smart_proxies
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: DROP TABLE public.smart_proxies;
- pg_restore: from TOC entry 360; 1259 188007 TABLE http_proxies foreman
- pg_restore: error: could not execute query: ERROR: cannot drop table public.http_proxies because other objects depend on it
- DETAIL: constraint fk_rails_4c4627948f on table public.katello_root_repositories depends on table public.http_proxies
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: DROP TABLE public.http_proxies;
- pg_restore: from TOC entry 204; 1259 16395 TABLE hosts foreman
- pg_restore: error: could not execute query: ERROR: cannot drop table public.hosts because other objects depend on it
- DETAIL: constraint katello_subscription_facets_host_id on table public.katello_subscription_facets depends on table public.hosts
- constraint katello_content_facets_host_id on table public.katello_content_facets depends on table public.hosts
- constraint katello_host_collection_hosts_host_id_fk on table public.katello_host_collection_hosts depends on table public.hosts
- constraint katello_host_trace_host_id on table public.katello_host_tracers depends on table public.hosts
- constraint katello_host_installed_packages_host_id on table public.katello_host_installed_packages depends on table public.hosts
- constraint katello_host_installed_debs_host_id on table public.katello_host_installed_debs depends on table public.hosts
- constraint katello_pools_hypervisor_fk on table public.katello_pools depends on table public.hosts
- constraint katello_hems_host_id_fk on table public.katello_host_available_module_streams depends on table public.hosts
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: DROP TABLE public.hosts;
- pg_restore: from TOC entry 225; 1259 16571 TABLE environments foreman
- pg_restore: error: could not execute query: ERROR: cannot drop table public.environments because other objects depend on it
- DETAIL: constraint katello_cvpe_pe_id on table public.katello_content_view_puppet_environments depends on table public.environments
- HINT: Use DROP ... CASCADE to drop the dependent objects too.
- Command was: DROP TABLE public.environments;
- pg_restore: error: could not execute query: ERROR: relation "environments" already exists
- Command was: CREATE TABLE public.environments (
- id integer NOT NULL,
- name character varying(255) NOT NULL,
- created_at timestamp without time zone,
- updated_at timestamp without time zone
- );
- pg_restore: from TOC entry 204; 1259 16395 TABLE hosts foreman
- pg_restore: error: could not execute query: ERROR: relation "hosts" already exists
- Command was: CREATE TABLE public.hosts (
- id integer NOT NULL,
- name character varying(255) NOT NULL,
- last_compile timestamp without time zone,
- last_report timestamp without time zone,
- updated_at timestamp without time zone,
- created_at timestamp without time zone,
- root_pass text,
- architecture_id integer,
- operatingsystem_id integer,
- environment_id integer,
- ptable_id integer,
- medium_id integer,
- build boolean DEFAULT false,
- comment text,
- disk text,
- installed_at timestamp without time zone,
- model_id integer,
- hostgroup_id integer,
- owner_id integer,
- owner_type character varying(255),
- enabled boolean DEFAULT true,
- puppet_ca_proxy_id integer,
- managed boolean DEFAULT false NOT NULL,
- use_image boolean,
- image_file character varying(128),
- uuid character varying(255),
- compute_resource_id integer,
- puppet_proxy_id integer,
- certname character varying(255),
- image_id integer,
- organization_id integer,
- location_id integer,
- type character varying(255),
- otp character varying(255),
- realm_id integer,
- compute_profile_id integer,
- provision_method character varying(255),
- grub_pass character varying(255) DEFAULT ''::character varying,
- global_status integer DEFAULT 0 NOT NULL,
- lookup_value_matcher character varying(255),
- pxe_loader character varying(255),
- initiated_at timestamp without time zone,
- build_errors text,
- discovery_rule_id integer
- );
- pg_restore: from TOC entry 360; 1259 188007 TABLE http_proxies foreman
- pg_restore: error: could not execute query: ERROR: relation "http_proxies" already exists
- Command was: CREATE TABLE public.http_proxies (
- id integer NOT NULL,
- name character varying NOT NULL,
- url character varying NOT NULL,
- username character varying,
- password character varying
- );
- pg_restore: from TOC entry 274; 1259 16915 TABLE smart_proxies foreman
- pg_restore: error: could not execute query: ERROR: relation "smart_proxies" already exists
- Command was: CREATE TABLE public.smart_proxies (
- id integer NOT NULL,
- name character varying(255),
- url character varying(255),
- created_at timestamp without time zone,
- updated_at timestamp without time zone,
- expired_logs character varying(255) DEFAULT '0'::character varying
- );
- pg_restore: from TOC entry 294; 1259 17084 TABLE taxonomies foreman
- pg_restore: error: could not execute query: ERROR: relation "taxonomies" already exists
- Command was: CREATE TABLE public.taxonomies (
- id integer NOT NULL,
- name character varying(255),
- type character varying(255),
- created_at timestamp without time zone,
- updated_at timestamp without time zone,
- ignore_types text,
- ancestry character varying(255),
- title character varying(255),
- description text
- );
- pg_restore: from TOC entry 242; 1259 16677 TABLE users foreman
- pg_restore: error: could not execute query: ERROR: relation "users" already exists
- Command was: CREATE TABLE public.users (
- id integer NOT NULL,
- login character varying(255),
- firstname character varying(255),
- lastname character varying(255),
- mail character varying(255),
- admin boolean DEFAULT false NOT NULL,
- last_login_on timestamp without time zone,
- auth_source_id integer,
- created_at timestamp without time zone,
- updated_at timestamp without time zone,
- password_hash character varying(128),
- password_salt character varying(128),
- locale character varying(5),
- avatar_hash character varying(128),
- default_organization_id integer,
- default_location_id integer,
- lower_login character varying(255),
- mail_enabled boolean DEFAULT true,
- timezone character varying(255),
- description text
- );
- pg_restore: from TOC entry 4883; 0 16571 TABLE DATA environments foreman
- pg_restore: error: COPY failed for table "environments": ERROR: duplicate key value violates unique constraint "environments_pkey"
- DETAIL: Key (id)=(9) already exists.
- CONTEXT: COPY environments, line 1
- pg_restore: from TOC entry 4862; 0 16395 TABLE DATA hosts foreman
- pg_restore: error: could not execute query: ERROR: column "discovery_rule_id" of relation "hosts" does not exist
- Command was: COPY public.hosts (id, name, last_compile, last_report, updated_at, created_at, root_pass, architecture_id, operatingsystem_id, environment_id, ptable_id, medium_id, build, comment, disk, installed_at, model_id, hostgroup_id, owner_id, owner_type, enabled, puppet_ca_proxy_id, managed, use_image, image_file, uuid, compute_resource_id, puppet_proxy_id, certname, image_id, organization_id, location_id, type, otp, realm_id, compute_profile_id, provision_method, grub_pass, global_status, lookup_value_matcher, pxe_loader, initiated_at, build_errors, discovery_rule_id) FROM stdin;
- pg_restore: from TOC entry 4932; 0 16915 TABLE DATA smart_proxies foreman
- pg_restore: error: COPY failed for table "smart_proxies": ERROR: duplicate key value violates unique constraint "smart_proxies_pkey"
- DETAIL: Key (id)=(1) already exists.
- CONTEXT: COPY smart_proxies, line 1
- pg_restore: from TOC entry 4952; 0 17084 TABLE DATA taxonomies foreman
- pg_restore: error: COPY failed for table "taxonomies": ERROR: duplicate key value violates unique constraint "taxonomies_pkey"
- DETAIL: Key (id)=(1) already exists.
- CONTEXT: COPY taxonomies, line 2
- pg_restore: from TOC entry 4900; 0 16677 TABLE DATA users foreman
- pg_restore: error: COPY failed for table "users": ERROR: duplicate key value violates unique constraint "users_pkey"
- DETAIL: Key (id)=(1) already exists.
- CONTEXT: COPY users, line 1
- pg_restore: from TOC entry 4377; 2606 16591 CONSTRAINT environments environments_pkey foreman
- pg_restore: error: could not execute query: ERROR: multiple primary keys for table "environments" are not allowed
- Command was: ALTER TABLE ONLY public.environments
- ADD CONSTRAINT environments_pkey PRIMARY KEY (id);
- pg_restore: from TOC entry 4335; 2606 16605 CONSTRAINT hosts hosts_pkey foreman
- pg_restore: error: could not execute query: ERROR: multiple primary keys for table "hosts" are not allowed
- Command was: ALTER TABLE ONLY public.hosts
- ADD CONSTRAINT hosts_pkey PRIMARY KEY (id);
- pg_restore: from TOC entry 4602; 2606 16606 CONSTRAINT http_proxies http_proxies_pkey foreman
- pg_restore: error: could not execute query: ERROR: multiple primary keys for table "http_proxies" are not allowed
- Command was: ALTER TABLE ONLY public.http_proxies
- ADD CONSTRAINT http_proxies_pkey PRIMARY KEY (id);
- pg_restore: from TOC entry 4455; 2606 16633 CONSTRAINT smart_proxies smart_proxies_pkey foreman
- pg_restore: error: could not execute query: ERROR: multiple primary keys for table "smart_proxies" are not allowed
- Command was: ALTER TABLE ONLY public.smart_proxies
- ADD CONSTRAINT smart_proxies_pkey PRIMARY KEY (id);
- pg_restore: from TOC entry 4489; 2606 16642 CONSTRAINT taxonomies taxonomies_pkey foreman
- pg_restore: error: could not execute query: ERROR: multiple primary keys for table "taxonomies" are not allowed
- Command was: ALTER TABLE ONLY public.taxonomies
- ADD CONSTRAINT taxonomies_pkey PRIMARY KEY (id);
- pg_restore: from TOC entry 4409; 2606 16655 CONSTRAINT users users_pkey foreman
- pg_restore: error: could not execute query: ERROR: multiple primary keys for table "users" are not allowed
- Command was: ALTER TABLE ONLY public.users
- ADD CONSTRAINT users_pkey PRIMARY KEY (id);
- pg_restore: from TOC entry 4646; 2606 16752 FK CONSTRAINT fact_values fact_values_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "fact_values" violates foreign key constraint "fact_values_host_id_fk"
- DETAIL: Key (host_id)=(1) is not present in table "hosts".
- Command was: ALTER TABLE ONLY public.fact_values
- ADD CONSTRAINT fact_values_host_id_fk FOREIGN KEY (host_id) REFERENCES public.hosts(id);
- pg_restore: from TOC entry 4695; 2606 16762 FK CONSTRAINT smart_proxy_features features_smart_proxies_smart_proxy_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "smart_proxy_features" violates foreign key constraint "features_smart_proxies_smart_proxy_id_fk"
- DETAIL: Key (smart_proxy_id)=(2) is not present in table "smart_proxies".
- Command was: ALTER TABLE ONLY public.smart_proxy_features
- ADD CONSTRAINT features_smart_proxies_smart_proxy_id_fk FOREIGN KEY (smart_proxy_id) REFERENCES public.smart_proxies(id);
- pg_restore: from TOC entry 4721; 2606 16792 FK CONSTRAINT notification_recipients fk_rails_51975e21a8 foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "notification_recipients" violates foreign key constraint "fk_rails_51975e21a8"
- DETAIL: Key (user_id)=(13) is not present in table "users".
- Command was: ALTER TABLE ONLY public.notification_recipients
- ADD CONSTRAINT fk_rails_51975e21a8 FOREIGN KEY (user_id) REFERENCES public.users(id);
- pg_restore: from TOC entry 4733; 2606 16807 FK CONSTRAINT host_facets_reported_data_facets fk_rails_a82ac722f1 foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "host_facets_reported_data_facets" violates foreign key constraint "fk_rails_a82ac722f1"
- DETAIL: Key (host_id)=(1011) is not present in table "hosts".
- Command was: ALTER TABLE ONLY public.host_facets_reported_data_facets
- ADD CONSTRAINT fk_rails_a82ac722f1 FOREIGN KEY (host_id) REFERENCES public.hosts(id);
- pg_restore: from TOC entry 4660; 2606 16822 FK CONSTRAINT host_classes host_classes_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "host_classes" violates foreign key constraint "host_classes_host_id_fk"
- DETAIL: Key (host_id)=(897) is not present in table "hosts".
- Command was: ALTER TABLE ONLY public.host_classes
- ADD CONSTRAINT host_classes_host_id_fk FOREIGN KEY (host_id) REFERENCES public.hosts(id);
- pg_restore: from TOC entry 4718; 2606 16832 FK CONSTRAINT host_status host_status_hosts_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "host_status" violates foreign key constraint "host_status_hosts_host_id_fk"
- DETAIL: Key (host_id)=(1018) is not present in table "hosts".
- Command was: ALTER TABLE ONLY public.host_status
- ADD CONSTRAINT host_status_hosts_host_id_fk FOREIGN KEY (host_id) REFERENCES public.hosts(id);
- pg_restore: from TOC entry 4673; 2606 16887 FK CONSTRAINT hostgroups hostgroups_puppet_proxy_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "hostgroups" violates foreign key constraint "hostgroups_puppet_proxy_id_fk"
- DETAIL: Key (puppet_proxy_id)=(2) is not present in table "smart_proxies".
- Command was: ALTER TABLE ONLY public.hostgroups
- ADD CONSTRAINT hostgroups_puppet_proxy_id_fk FOREIGN KEY (puppet_proxy_id) REFERENCES public.smart_proxies(id);
- pg_restore: from TOC entry 4699; 2606 17022 FK CONSTRAINT nics nics_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "nics" violates foreign key constraint "nics_host_id_fk"
- DETAIL: Key (host_id)=(815) is not present in table "hosts".
- Command was: ALTER TABLE ONLY public.nics
- ADD CONSTRAINT nics_host_id_fk FOREIGN KEY (host_id) REFERENCES public.hosts(id);
- pg_restore: from TOC entry 4657; 2606 17077 FK CONSTRAINT reports reports_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "reports" violates foreign key constraint "reports_host_id_fk"
- DETAIL: Key (host_id)=(865) is not present in table "hosts".
- Command was: ALTER TABLE ONLY public.reports
- ADD CONSTRAINT reports_host_id_fk FOREIGN KEY (host_id) REFERENCES public.hosts(id);
- pg_restore: from TOC entry 4653; 2606 17107 FK CONSTRAINT subnets subnets_tftp_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "subnets" violates foreign key constraint "subnets_tftp_id_fk"
- DETAIL: Key (tftp_id)=(5) is not present in table "smart_proxies".
- Command was: ALTER TABLE ONLY public.subnets
- ADD CONSTRAINT subnets_tftp_id_fk FOREIGN KEY (tftp_id) REFERENCES public.smart_proxies(id);
- pg_restore: from TOC entry 4707; 2606 17117 FK CONSTRAINT taxable_taxonomies taxable_taxonomies_taxonomy_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "taxable_taxonomies" violates foreign key constraint "taxable_taxonomies_taxonomy_id_fk"
- DETAIL: Key (taxonomy_id)=(4) is not present in table "taxonomies".
- Command was: ALTER TABLE ONLY public.taxable_taxonomies
- ADD CONSTRAINT taxable_taxonomies_taxonomy_id_fk FOREIGN KEY (taxonomy_id) REFERENCES public.taxonomies(id);
- pg_restore: from TOC entry 4705; 2606 17142 FK CONSTRAINT tokens tokens_host_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "tokens" violates foreign key constraint "tokens_host_id_fk"
- DETAIL: Key (host_id)=(1052) is not present in table "hosts".
- Command was: ALTER TABLE ONLY public.tokens
- ADD CONSTRAINT tokens_host_id_fk FOREIGN KEY (host_id) REFERENCES public.hosts(id);
- pg_restore: from TOC entry 4717; 2606 17157 FK CONSTRAINT user_mail_notifications user_mail_notifications_user_id_fk foreman
- pg_restore: error: could not execute query: ERROR: insert or update on table "user_mail_notifications" violates foreign key constraint "user_mail_notifications_user_id_fk"
- DETAIL: Key (user_id)=(28) is not present in table "users".
- Command was: ALTER TABLE ONLY public.user_mail_notifications
- ADD CONSTRAINT user_mail_notifications_user_id_fk FOREIGN KEY (user_id) REFERENCES public.users(id);
- pg_restore: warning: errors ignored on restore: 55
- Completed.
Advertisement
Add Comment
Please, Sign In to add comment