8000 Init fails with BadCopyFileFormat · Issue #21 · acoustid/mbslave · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Init fails with BadCopyFileFormat #21
Open
@mreinfried

Description

@mreinfried

Running mbslave init --createDatabase, I am getting the following error when loading medium to the database. I installed from git with pipx install git+https://github.com/acoustid/mbslave.git, because when doing a simple pipx install 'mbslave', I was getting a check violation mentioned in an issue from a year ago.

INFO:mbslave.replication:Loading medium to musicbrainz.medium
Traceback (most recent call last):
File "/Users/martin/.local/bin/mbslave", line 8, in
sys.exit(main())
~~~~^^
File "/Users/martin/.local/pipx/venvs/mbslave/lib/python3.13/site-packages/mbslave/replication.py", line 806, in main
args.func(config, args)
~~~~~~~~~^^^^^^^^^^^^^^
File "/Users/martin/.local/pipx/venvs/mbslave/lib/python3.13/site-packages/mbslave/replication.py", line 304, in mbslave_auto_import_main
load_tar(url, fileobj, db, config, config.schemas.ignored_schemas, config.tables.ignored_tables)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/martin/.local/pipx/venvs/mbslave/lib/python3.13/site-packages/mbslave/replication.py", line 265, in load_tar
cursor.copy_expert('COPY {} FROM STDIN'.format(fulltable), tar.extractfile(member))
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
psycopg2.errors.BadCopyFileFormat: extra data after last expected column
CONTEXT: COPY medium, line 1: "5434234 4997020 1 12 0 2025-05-19 18:02:17.904703+00 1 9560d0bb-b9e8-4050-8c1b-f4740304c056"

Traceback (most recent call last):
File "/Users/martin/.local/bin/mbslave", line 8, in
sys.exit(main())
~~~~^^
File "/Users/martin/.local/pipx/venvs/mbslave/lib/python3.13/site-packages/mbslave/replication.py", line 806, in main
args.func(config, args)
~~~~~~~~~^^^^^^^^^^^^^^
File "/Users/martin/.local/pipx/venvs/mbslave/lib/python3.13/site-packages/mbslave/replication.py", line 654, in mbslave_init_main
run_script('mbslave auto-import')
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/martin/.local/pipx/venvs/mbslave/lib/python3.13/site-packages/mbslave/replication.py", line 607, in run_script
subprocess.run(script, check=True, shell=True)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 577, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'mbslave auto-import' returned non-zero exit status 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0