You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have recently joined the meta/musicbrainz community. For a few days, I have been facing troubles in the replication of Musicbrainz database (through Mbdata). Basically, following the guide there are no problems up to point 6, everything is fine; however, on point 7, where I should import dumps in the form of .tar files, I keep running into this error:
Importing data from mbdump.tar.bz2
- Loading alternative_release_type to musicbrainz.alternative_release_type
Traceback (most recent call last):
File "/home/manuel/.local/bin/mbslave", line 8, in
sys.exit(main())
File "/home/manuel/.local/lib/python3.9/site-packages/mbdata/replication.py", line 592, in main
args.func(config, args)
File "/home/manuel/.local/lib/python3.9/site-packages/mbdata/replication.py", line 253, in mbslave_import_main
load_tar(filename, db, config, config.schemas.ignored_schemas, config.tables.ignored_tables)
File "/home/manuel/.local/lib/python3.9/site-packages/mbdata/replication.py", line 245, in load_tar
cursor.copy_from(tar.extractfile(member), fulltable)
psycopg2.errors.UndefinedTable: relation "musicbrainz.alternative_release_type" does not exist
If I check in the Postgres musicbrainz database, all the tables are available. Any advice on how to proceed? Thank you so much in advance.
The text was updated successfully, but these errors were encountered:
It seems that the copy_from() method in psycopg2 was recently updated to address security concerns and I think this is the line in the load_tar() function in replication.py that is causing this error on import.
Hi,
I have recently joined the meta/musicbrainz community. For a few days, I have been facing troubles in the replication of Musicbrainz database (through Mbdata). Basically, following the guide there are no problems up to point 6, everything is fine; however, on point 7, where I should import dumps in the form of .tar files, I keep running into this error:
Importing data from mbdump.tar.bz2
- Loading alternative_release_type to musicbrainz.alternative_release_type
Traceback (most recent call last):
File "/home/manuel/.local/bin/mbslave", line 8, in
sys.exit(main())
File "/home/manuel/.local/lib/python3.9/site-packages/mbdata/replication.py", line 592, in main
args.func(config, args)
File "/home/manuel/.local/lib/python3.9/site-packages/mbdata/replication.py", line 253, in mbslave_import_main
load_tar(filename, db, config, config.schemas.ignored_schemas, config.tables.ignored_tables)
File "/home/manuel/.local/lib/python3.9/site-packages/mbdata/replication.py", line 245, in load_tar
cursor.copy_from(tar.extractfile(member), fulltable)
psycopg2.errors.UndefinedTable: relation "musicbrainz.alternative_release_type" does not exist
If I check in the Postgres musicbrainz database, all the tables are available. Any advice on how to proceed? Thank you so much in advance.
The text was updated successfully, but these errors were encountered: