Page MenuHomeSoftware Heritage
Paste P1372

(An Untitled Masterwork)
ActivePublic

Authored by vlorentz on Jun 2 2022, 3:06 PM.
$ docker-compose exec swh-idx-storage swh db --config-file /indexer_storage.yml upgrade indexer_storage
ERROR:swh.core.db.db_utils:Failed to connect to `postgresql:///?service=swh-indexers`
Traceback (most recent call last):
File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/core/db/db_utils.py", line 241, in swh_db_module
db = connect_to_conninfo(db_or_conninfo)
File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/core/db/db_utils.py", line 80, in connect_to_conninfo
db = psycopg2.connect(db_or_conninfo)
File "/srv/softwareheritage/venv/lib/python3.7/site-packages/psycopg2/__init__.py", line 127, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: definition of service "swh-indexers" not found
ERROR:swh.core.db.db_utils:Failed to connect to `postgresql:///?service=swh-indexers`
Traceback (most recent call last):
File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/core/db/db_utils.py", line 97, in swh_db_version
db = connect_to_conninfo(db_or_conninfo)
File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/core/db/db_utils.py", line 80, in connect_to_conninfo
db = psycopg2.connect(db_or_conninfo)
File "/srv/softwareheritage/venv/lib/python3.7/site-packages/psycopg2/__init__.py", line 127, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: definition of service "swh-indexers" not found
Warning: the database does not have a dbmodule table.
Write the module information (indexer_storage) in the database? [Y/n]:
ERROR:swh.core.db.db_utils:Failed to connect to `postgresql:///?service=swh-indexers`
Traceback (most recent call last):
File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/core/db/db_utils.py", line 241, in swh_db_module
File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/core/db/db_utils.py", line 80, in connect_to_conninfo
File "/srv/softwareheritage/venv/lib/python3.7/site-packages/psycopg2/__init__.py", line 127, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: definition of service "swh-indexers" not found
ERROR:swh.core.db.db_utils:Failed to connect to `postgresql:///?service=swh-indexers`
Traceback (most recent call last):
File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/core/db/db_utils.py", line 293, in swh_set_db_module
File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/core/db/db_utils.py", line 80, in connect_to_conninfo
File "/srv/softwareheritage/venv/lib/python3.7/site-packages/psycopg2/__init__.py", line 127, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: definition of service "swh-indexers" not found
ERROR:swh.core.db.db_utils:Could not load the swh.indexer_storage module: No module named 'swh.indexer_storage'
Usage: swh db upgrade [OPTIONS] MODULE
Try 'swh db upgrade -h' for help.
Error: You cannot use this command on old-style datastore backend {db_module}

Event Timeline

vlorentz edited the content of this paste. (Show Details)