Comments (1)
I then removed the docker volume used by the container and updated the image to bitner/pgstac:0.2.4
. Running migrate again gave:
root@934e25efea4a:/opt/src# pypgstac migrate --dsn postgresql://username:password@database:5432/postgis
Traceback (most recent call last):
File "/opt/conda/bin/pypgstac", line 8, in <module>
sys.exit(app())
File "/opt/conda/lib/python3.8/site-packages/typer/main.py", line 214, in __call__
return get_command(self)(*args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/opt/conda/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/conda/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/conda/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/typer/main.py", line 497, in wrapper
return callback(**use_params) # type: ignore
File "/opt/conda/lib/python3.8/site-packages/pypgstac/pypgstac.py", line 125, in migrate
typer.echo(asyncio.run(run_migration(dsn)))
File "/opt/conda/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/opt/conda/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/opt/conda/lib/python3.8/site-packages/pypgstac/pypgstac.py", line 110, in run_migration
await conn.execute(migration_sql)
File "/opt/conda/lib/python3.8/site-packages/asyncpg/connection.py", line 297, in execute
return await self._protocol.query(query, timeout)
File "asyncpg/protocol/protocol.pyx", line 336, in query
asyncpg.exceptions.DuplicateTableError: relation "migrations" already exists
from pgstac.
Related Issues (20)
- Dynamic queryables HOT 3
- Deadlock issue arises during STAC items ingestion HOT 4
- Setting up time partitioning after initial data load HOT 1
- Exception with a legitimate SQL query
- Optimizing query performance during ingestion process HOT 3
- Intermittent data ingestion issue HOT 5
- Don't allow Collections without ids to be written
- Removing queryables indices HOT 2
- PgStac no longer works with Azure Flexible Postgres server HOT 3
- How to create a STAC from a Postgres table based on the provided samples (s3 storing SAFE and pg dump) HOT 1
- scripts/install missing? HOT 1
- Occasional syntax errors from well formed search queries HOT 10
- CQL2: ILIKE vs. CASEI
- Validation Error and Content Mismatch in Sentinel-2-L1C Item Definition JSON HOT 3
- Error when installing pgstac > v0.8.1 HOT 2
- Changelog inaccurately indicates pypgstac loader compatibility within major version HOT 2
- Excessive growth of database logs HOT 1
- Unable to ingest private metadata HOT 8
- Feature request: Update collection extend from item(s) HOT 2
- BETWEEN operator bug
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgstac.