INFO 2020-10-20T16:39:02.262-0500 convertRepo - Ingesting 1 deepCoadd_skyMap dataset into run skymaps.
|
Traceback (most recent call last):
|
File "/software/lsstsw/stack_20200922/conda/miniconda3-py37_4.8.2/envs/lsst-scipipe/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1278, in _execute_context
|
cursor, statement, parameters, context
|
File "/software/lsstsw/stack_20200922/conda/miniconda3-py37_4.8.2/envs/lsst-scipipe/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute
|
cursor.execute(statement, parameters)
|
psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "dataset_tags_0008000000_unq_dataset_type_id_collection_5cf81e3b"
|
DETAIL: Key (dataset_type_id, collection_id, skymap)=(16, 238, hsc_rings_v1) already exists.
|
|
|
The above exception was the direct cause of the following exception:
|
|
Traceback (most recent call last):
|
File "/software/lsstsw/stack_20200922/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/daf_butler/19.0.0-174-g77e5f269+ff10c6d78d/python/lsst/daf/butler/registry/_registry.py", line 671, in insertDatasets
|
refs = list(storage.insert(runRecord, expandedDataIds))
|
File "/software/lsstsw/stack_20200922/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/daf_butler/19.0.0-174-g77e5f269+ff10c6d78d/python/lsst/daf/butler/registry/datasets/byDimensions/_storage.py", line 83, in insert
|
self._db.insert(self._tags, *tagsRows)
|
File "/software/lsstsw/stack_20200922/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/daf_butler/19.0.0-174-g77e5f269+ff10c6d78d/python/lsst/daf/butler/registry/interfaces/_database.py", line 1222, in insert
|
self._connection.execute(table.insert(), *rows)
|
File "/software/lsstsw/stack_20200922/conda/miniconda3-py37_4.8.2/envs/lsst-scipipe/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1014, in execute
|
return meth(self, multiparams, params)
|
File "/software/lsstsw/stack_20200922/conda/miniconda3-py37_4.8.2/envs/lsst-scipipe/lib/python3.7/site-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection
|
return connection._execute_clauseelement(self, multiparams, params)
|
File "/software/lsstsw/stack_20200922/conda/miniconda3-py37_4.8.2/envs/lsst-scipipe/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1133, in _execute_clauseelement
|
distilled_params,
|
File "/software/lsstsw/stack_20200922/conda/miniconda3-py37_4.8.2/envs/lsst-scipipe/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1318, in _execute_context
|
e, statement, parameters, cursor, context
|
File "/software/lsstsw/stack_20200922/conda/miniconda3-py37_4.8.2/envs/lsst-scipipe/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1512, in _handle_dbapi_exception
|
sqlalchemy_exception, with_traceback=exc_info[2], from_=e
|
File "/software/lsstsw/stack_20200922/conda/miniconda3-py37_4.8.2/envs/lsst-scipipe/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 178, in raise_
|
raise exception
|
File "/software/lsstsw/stack_20200922/conda/miniconda3-py37_4.8.2/envs/lsst-scipipe/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1278, in _execute_context
|
cursor, statement, parameters, context
|
File "/software/lsstsw/stack_20200922/conda/miniconda3-py37_4.8.2/envs/lsst-scipipe/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute
|
cursor.execute(statement, parameters)
|
sqlalchemy.exc.IntegrityError: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "dataset_tags_0008000000_unq_dataset_type_id_collection_5cf81e3b"
|
DETAIL: Key (dataset_type_id, collection_id, skymap)=(16, 238, hsc_rings_v1) already exists.
|
|
[SQL: INSERT INTO rc2w38_ssw42.dataset_tags_0008000000 (dataset_type_id, dataset_id, collection_id, skymap) VALUES (%(dataset_type_id)s, %(dataset_id)s, %(collection_id)s, %(skymap)s)]
|
[parameters: {'dataset_type_id': 16, 'dataset_id': 439257, 'collection_id': 238, 'skymap': 'hsc_rings_v1'}]
|
(Background on this error at: http://sqlalche.me/e/13/gkpj)
|
|
The above exception was the direct cause of the following exception:
|
|
Traceback (most recent call last):
|
File "./gen3-hsc-rc2/bootstrap.py", line 356, in <module>
|
main()
|
File "./gen3-hsc-rc2/bootstrap.py", line 352, in main
|
continue_=options.continue_, reruns=reruns)
|
File "./gen3-hsc-rc2/bootstrap.py", line 302, in run
|
visits=makeVisitList(tracts, filters)
|
File "/software/lsstsw/stack_20200922/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/obs_base/20.0.0-58-g47b63df+0e9af1ef10/python/lsst/obs/base/gen2to3/convertRepo.py", line 570, in run
|
converter.ingest()
|
File "/software/lsstsw/stack_20200922/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/obs_base/20.0.0-58-g47b63df+0e9af1ef10/python/lsst/obs/base/gen2to3/repoConverter.py", line 505, in ingest
|
run=run)
|
File "/software/lsstsw/stack_20200922/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/daf_butler/19.0.0-174-g77e5f269+ff10c6d78d/python/lsst/daf/butler/core/utils.py", line 261, in inner
|
return func(self, *args, **kwargs)
|
File "/software/lsstsw/stack_20200922/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/daf_butler/19.0.0-174-g77e5f269+ff10c6d78d/python/lsst/daf/butler/_butler.py", line 1239, in ingest
|
run=run)
|
File "/software/lsstsw/stack_20200922/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/daf_butler/19.0.0-174-g77e5f269+ff10c6d78d/python/lsst/daf/butler/core/utils.py", line 261, in inner
|
return func(self, *args, **kwargs)
|
File "/software/lsstsw/stack_20200922/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/daf_butler/19.0.0-174-g77e5f269+ff10c6d78d/python/lsst/daf/butler/registry/_registry.py", line 678, in insertDatasets
|
f"dimension row is missing.") from err
|
lsst.daf.butler.registry._exceptions.ConflictingDefinitionError: A database constraint failure was triggered by inserting one or more datasets of type DatasetType('deepCoadd_skyMap', {skymap}, SkyMap) into collection 'skymaps'. This probably means a dataset with the same data ID and dataset type already exists, but it may also mean a dimension row is missing.
|
+ ./query_results.py postgresql://madamow@lsst-pg-prod1.ncsa.illinois.edu:5432/lsstdb1 rc2w38_ssw42
|
select count(*), c.name from rc2w38_ssw42.run r, rc2w38_ssw42.collection c, rc2w38_ssw42.dataset ds where ds.run_id=r.collection_id and r.collection_id=c.collection_id group by c.name order by c.name
|
Error during the conversion:
INFO 2020-10-08T13:57:22.332-0500 convertRepo - Ingesting 207 ps1_pv3_3pi_20170110 datasets into run refcats.
Traceback (most recent call last):
File "./gen3-hsc-rc2/bootstrap.py", line 354, in <module>
main()
File "./gen3-hsc-rc2/bootstrap.py", line 350, in main
continue_=options.continue_, reruns=reruns)
File "./gen3-hsc-rc2/bootstrap.py", line 300, in run
visits=makeVisitList(tracts, filters)
File "/software/lsstsw/stack_20200922/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/obs_base/20.0.0-52-g73d9071+9bf1eb8e0a/python/lsst/obs/base/gen2to3/convertRepo.py", line 559, in run
converter.ingest()
File "/software/lsstsw/stack_20200922/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/obs_base/20.0.0-52-g73d9071+9bf1eb8e0a/python/lsst/obs/base/gen2to3/repoConverter.py", line 493, in ingest
run = self.getRun(datasetType.name, calibDate)
File "/software/lsstsw/stack_20200922/stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/obs_base/20.0.0-52-g73d9071+9bf1eb8e0a/python/lsst/obs/base/gen2to3/standardRepoConverter.py", line 202, in getRun
raise ValueError(f"No default run for repo at {self.root}, and no "
ValueError: No default run for repo at /datasets/hsc/repo, and no override for dataset fgcmLookUpTable.