We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm initing the database with these commands:
pipx install 'mbslave' mbslave init
and running into this error:
... INFO:mbslave.replication:Loading l_series_work to musicbrainz.l_series_work INFO:mbslave.replication:Loading l_url_work to musicbrainz.l_url_work INFO:mbslave.replication:Loading l_work_work to musicbrainz.l_work_work INFO:mbslave.replication:Loading label to musicbrainz.label Traceback (most recent call last): File "/opt/pipx_bin/mbslave", line 8, in <module> sys.exit(main()) File "/opt/pipx/venvs/mbslave/lib/python3.10/site-packages/mbslave/replication.py", line 787, in main args.func(config, args) File "/opt/pipx/venvs/mbslave/lib/python3.10/site-packages/mbslave/replication.py", line 297, in mbslave_auto_import_main load_tar(url, fileobj, db, config, config.schemas.ignored_schemas, config.tables.ignored_tables) File "/opt/pipx/venvs/mbslave/lib/python3.10/site-packages/mbslave/replication.py", line 258, in load_tar cursor.copy_expert('COPY {} FROM STDIN'.format(fulltable), tar.extractfile(member)) psycopg2.errors.CheckViolation: new row for relation "label" violates check constraint "label_label_code_check" DETAIL: Failing row contains (294731, dacec7dc-806e-4f1a-ab41-cc0c46b297e0, beau by Republic, 2022, 10, 9, null, null, null, 202210, 1, 7741, , 0, 2024-05-14 21:06:04.842073+00, f). CONTEXT: COPY label, line 39973: "294731 dacec7dc-806e-4f1a-ab41-cc0c46b297e0 beau by Republic 2022 10 9 \N \N \N 202210 1 7741 0 202..." Traceback (most recent call last): File "/opt/pipx_bin/mbslave", line 8, in <module> sys.exit(main()) File "/opt/pipx/venvs/mbslave/lib/python3.10/site-packages/mbslave/replication.py", line 787, in main args.func(config, args) File "/opt/pipx/venvs/mbslave/lib/python3.10/site-packages/mbslave/replication.py", line 640, in mbslave_init_main run_script('mbslave auto-import') File "/opt/pipx/venvs/mbslave/lib/python3.10/site-packages/mbslave/replication.py", line 593, in run_script subprocess.run(script, check=True, shell=True) File "/usr/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'mbslave auto-import' returned non-zero exit status 1.
The text was updated successfully, but these errors were encountered:
I did some digging and this is because version 29 has not been published.
Sorry, something went wrong.
I fixed it by installing mbslave from git:
mbslave
pipx install git+https://github.com/acoustid/mbslave.git
I'm getting the same error, even after instalilng mbslave from git as suggested above. 😢
Update: After uninstalling mbslave before re-installing from git, it works.
No branches or pull requests
I'm initing the database with these commands:
and running into this error:
The text was updated successfully, but these errors were encountered: