Skip to content
New issue

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

Database creation no longer works after a new schema is released #12

Open
AVSukhov opened this issue May 26, 2024 · 0 comments
Open

Database creation no longer works after a new schema is released #12

AVSukhov opened this issue May 26, 2024 · 0 comments

Comments

@AVSukhov
Copy link

AVSukhov commented May 26, 2024

Commands: pip install 'mbdata[replication]' --break-system-packages, mbslave init --create-database
Error log:

...
2024-05-26 20:47:17 INFO:mbdata.replication:Loading link_type to musicbrainz.link_type
2024-05-26 20:47:17 Traceback (most recent call last):
2024-05-26 20:47:17   File "/usr/local/bin/mbslave", line 8, in <module>
2024-05-26 20:47:17     sys.exit(main())
2024-05-26 20:47:17              ^^^^^^
2024-05-26 20:47:17   File "/usr/local/lib/python3.11/dist-packages/mbdata/replication.py", line 803, in main
2024-05-26 20:47:17     args.func(config, args)
2024-05-26 20:47:17   File "/usr/local/lib/python3.11/dist-packages/mbdata/replication.py", line 297, in mbslave_auto_import_main
2024-05-26 20:47:17     load_tar(url, fileobj, db, config, config.schemas.ignored_schemas, config.tables.ignored_tables)
2024-05-26 20:47:17   File "/usr/local/lib/python3.11/dist-packages/mbdata/replication.py", line 258, in load_tar
2024-05-26 20:47:17     cursor.copy_expert('COPY {} FROM STDIN'.format(fulltable), tar.extractfile(member))
2024-05-26 20:47:17 psycopg2.errors.InvalidTextRepresentation: invalid input syntax for type integer: "2014-05-18 09:46:23.72719+00"
2024-05-26 20:47:17 CONTEXT:  COPY link_type, line 1, column priority: "2014-05-18 09:46:23.72719+00"
2024-05-26 20:47:17 
2024-05-26 20:47:17 Traceback (most recent call last):
2024-05-26 20:47:17   File "/usr/local/bin/mbslave", line 8, in <module>
2024-05-26 20:47:17     sys.exit(main())
2024-05-26 20:47:17              ^^^^^^
2024-05-26 20:47:17   File "/usr/local/lib/python3.11/dist-packages/mbdata/replication.py", line 803, in main
2024-05-26 20:47:17     args.func(config, args)
2024-05-26 20:47:17   File "/usr/local/lib/python3.11/dist-packages/mbdata/replication.py", line 656, in mbslave_init_main
2024-05-26 20:47:17     run_script('mbslave auto-import')
2024-05-26 20:47:17   File "/usr/local/lib/python3.11/dist-packages/mbdata/replication.py", line 609, in run_script
2024-05-26 20:47:17     subprocess.run(['bash', '-euxc', script], check=True)
2024-05-26 20:47:17   File "/usr/lib/python3.11/subprocess.py", line 571, in run
2024-05-26 20:47:17     raise CalledProcessError(retcode, process.args,
2024-05-26 20:47:17 subprocess.CalledProcessError: Command '['bash', '-euxc', 'mbslave auto-import']' returned non-zero exit status 1.

It seems like the PyPI package has not been updated yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant