Created
April 29, 2017 17:49
-
-
Save bgirardot/11c56c2a98875f472f6fce244a0b9f04 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pg_restore: [archiver (db)] Error while PROCESSING TOC: | |
pg_restore: [archiver (db)] Error from TOC entry 3375; 0 1277792 TABLE DATA alembic_version www-hot-data | |
pg_restore: [archiver (db)] COPY failed for table "alembic_version": ERROR: duplicate key value violates unique constraint "alembic_version_pkc" | |
DETAIL: Key (version_num)=(a7c617755721) already exists. | |
CONTEXT: COPY alembic_version, line 1 | |
pg_restore: [archiver (db)] Error from TOC entry 3203; 0 1276773 TABLE DATA spatial_ref_sys postgres | |
pg_restore: [archiver (db)] could not execute query: ERROR: permission denied for relation spatial_ref_sys | |
Command was: COPY spatial_ref_sys FROM stdin; | |
pg_restore: [archiver (db)] Error from TOC entry 3379; 0 1277812 TABLE DATA tags www-hot-data | |
pg_restore: [archiver (db)] COPY failed for table "tags": ERROR: duplicate key value violates unique constraint "tags_pkey" | |
DETAIL: Key (id)=(1) already exists. | |
CONTEXT: COPY tags, line 1 | |
WARNING: errors ignored on restore: 3 | |
(venv) blake@blake-VirtualBox:~/tasking-manager$ sudo -u postgres psql -c "DROP USER hottm;" && | |
> sudo -u postgres dropdb tasking-manager | |
[sudo] password for blake: | |
ERROR: role "hottm" cannot be dropped because some objects depend on it | |
DETAIL: owner of database tasking-manager | |
18 objects in database tasking-manager | |
(venv) blake@blake-VirtualBox:~/tasking-manager$ sudo -u postgres dropdb tasking-manager && | |
> sudo -u postgres psql -c "DROP USER hottm;" | |
DROP ROLE | |
(venv) blake@blake-VirtualBox:~/tasking-manager$ sudo -u postgres psql -c "CREATE USER hottm WITH PASSWORD 'hottm';" && | |
> sudo -u postgres createdb -T template0 tasking-manager -E UTF8 -O hottm && | |
> sudo -u postgres psql -d tasking-manager -c "CREATE EXTENSION postgis; | |
> | |
> ^C | |
(venv) blake@blake-VirtualBox:~/tasking-manager$ sudo -u postgres psql -c "CREATE USER hottm WITH PASSWORD 'hottm';" && | |
> sudo -u postgres createdb -T template0 tasking-manager -E UTF8 -O hottm && | |
> sudo -u postgres psql -d tasking-manager -c "CREATE EXTENSION postgis;" | |
CREATE ROLE | |
CREATE EXTENSION | |
(venv) blake@blake-VirtualBox:~/tasking-manager$ pg_restore -h localhost -U hottm -d tasking-manager --no-owner tm-test-restorable.sql Password: | |
pg_restore: [archiver (db)] Error while PROCESSING TOC: | |
pg_restore: [archiver (db)] Error from TOC entry 3375; 0 1277792 TABLE DATA alembic_version www-hot-data | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "alembic_version" does not exist | |
Command was: COPY alembic_version (version_num) FROM stdin; | |
pg_restore: [archiver (db)] Error from TOC entry 3377; 0 1277799 TABLE DATA areas_of_interest www-hot-data | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "areas_of_interest" does not exist | |
Command was: COPY areas_of_interest (id, geometry, centroid) FROM stdin; | |
pg_restore: [archiver (db)] Error from TOC entry 3395; 0 0 SEQUENCE SET areas_of_interest_id_seq www-hot-data | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "areas_of_interest_id_seq" does not exist | |
LINE 1: SELECT pg_catalog.setval('areas_of_interest_id_seq', 1, true... | |
^ | |
Command was: SELECT pg_catalog.setval('areas_of_interest_id_seq', 1, true); | |
pg_restore: [archiver (db)] Error from TOC entry 3389; 0 1277938 TABLE DATA licenses www-hot-data | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "licenses" does not exist | |
Command was: COPY licenses (id, name, description, plain_text) FROM stdin; | |
pg_restore: [archiver (db)] Error from TOC entry 3396; 0 0 SEQUENCE SET licenses_id_seq www-hot-data | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "licenses_id_seq" does not exist | |
LINE 1: SELECT pg_catalog.setval('licenses_id_seq', 1, false); | |
^ | |
Command was: SELECT pg_catalog.setval('licenses_id_seq', 1, false); | |
pg_restore: [archiver (db)] Error from TOC entry 3381; 0 1277827 TABLE DATA users www-hot-data | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "users" does not exist | |
Command was: COPY users (id, username, role, mapping_level, tasks_mapped, tasks_validated, tasks_invalidated, projects_mapped) FROM stdin; | |
pg_restore: [archiver (db)] Error from TOC entry 3383; 0 1277841 TABLE DATA projects www-hot-data | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "projects" does not exist | |
Command was: COPY projects (id, status, aoi_id, created, priority, default_locale, author_id, mapper_level, enforce_mapper_level, enforce... | |
pg_restore: [archiver (db)] Error from TOC entry 3384; 0 1277864 TABLE DATA project_info www-hot-data | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "project_info" does not exist | |
Command was: COPY project_info (project_id, locale, name, short_description, description, instructions) FROM stdin; | |
pg_restore: [archiver (db)] Error from TOC entry 3397; 0 0 SEQUENCE SET projects_id_seq www-hot-data | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "projects_id_seq" does not exist | |
LINE 1: SELECT pg_catalog.setval('projects_id_seq', 1, true); | |
^ | |
Command was: SELECT pg_catalog.setval('projects_id_seq', 1, true); | |
pg_restore: [archiver (db)] Error from TOC entry 3203; 0 1276773 TABLE DATA spatial_ref_sys postgres | |
pg_restore: [archiver (db)] could not execute query: ERROR: permission denied for relation spatial_ref_sys | |
Command was: COPY spatial_ref_sys FROM stdin; | |
pg_restore: [archiver (db)] Error from TOC entry 3379; 0 1277812 TABLE DATA tags www-hot-data | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "tags" does not exist | |
Command was: COPY tags (id, organisations, campaigns) FROM stdin; | |
pg_restore: [archiver (db)] Error from TOC entry 3398; 0 0 SEQUENCE SET tags_id_seq www-hot-data | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "tags_id_seq" does not exist | |
LINE 1: SELECT pg_catalog.setval('tags_id_seq', 2, true); | |
^ | |
Command was: SELECT pg_catalog.setval('tags_id_seq', 2, true); | |
pg_restore: [archiver (db)] Error from TOC entry 3385; 0 1277878 TABLE DATA tasks www-hot-data | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "tasks" does not exist | |
Command was: COPY tasks (id, project_id, x, y, zoom, geometry, task_status, locked_by, mapped_by, validated_by) FROM stdin; | |
pg_restore: [archiver (db)] Error from TOC entry 3387; 0 1277910 TABLE DATA task_history www-hot-data | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "task_history" does not exist | |
Command was: COPY task_history (id, project_id, task_id, action, action_text, action_date, user_id) FROM stdin; | |
pg_restore: [archiver (db)] Error from TOC entry 3399; 0 0 SEQUENCE SET task_history_id_seq www-hot-data | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "task_history_id_seq" does not exist | |
LINE 1: SELECT pg_catalog.setval('task_history_id_seq', 36, true); | |
^ | |
Command was: SELECT pg_catalog.setval('task_history_id_seq', 36, true); | |
pg_restore: [archiver (db)] Error from TOC entry 3400; 0 0 SEQUENCE SET users_id_seq www-hot-data | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "users_id_seq" does not exist | |
LINE 1: SELECT pg_catalog.setval('users_id_seq', 1, false); | |
^ | |
Command was: SELECT pg_catalog.setval('users_id_seq', 1, false); | |
pg_restore: [archiver (db)] Error from TOC entry 3390; 0 1277949 TABLE DATA users_licenses www-hot-data | |
pg_restore: [archiver (db)] could not execute query: ERROR: relation "users_licenses" does not exist | |
Command was: COPY users_licenses ("user", license) FROM stdin; | |
WARNING: errors ignored on restore: 17 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment