Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1372
(An Untitled Masterwork)
Active
Public
Actions
Authored by
vlorentz
on Jun 2 2022, 3:06 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
$ 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
created this paste.
Jun 2 2022, 3:06 PM
2022-06-02 15:06:01 (UTC+2)
vlorentz
edited the content of this paste.
(Show Details)
Log In to Comment