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

[Bug] SQLite > Maria migration error (2.x->3.x) #688

Closed
krohrsb opened this issue Mar 12, 2024 · 3 comments
Closed

[Bug] SQLite > Maria migration error (2.x->3.x) #688

krohrsb opened this issue Mar 12, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@krohrsb
Copy link

krohrsb commented Mar 12, 2024

RomM version
3.0.0

Describe the bug
SQL Migration script encounters an error.

.....(prior logs).....
INFO:     [RomM][alembic.runtime.migration] Running upgrade 1.8.2 -> 1.8.3, update to 1.8.3
INFO:     [RomM][alembic.runtime.migration] Running upgrade 1.8.3 -> 2.0.0, update to 2.0.0
INFO:     [RomM][alembic.runtime.migration] Running upgrade 2.0.0 -> 0009_models_refactor, empty message
INFO:     [RomM][alembic.runtime.migration] Running upgrade 0009_models_refactor -> 0010_igdb_id_integerr, empty message
INFO:     [RomM][alembic.runtime.migration] Running upgrade 0010_igdb_id_integerr -> 0011_drop_has_cover, empty message
INFO:     [RomM][alembic.runtime.migration] Running upgrade 0011_drop_has_cover -> 0012_add_regions_languages, empty message
INFO:     [RomM][alembic.runtime.migration] Running upgrade 0012_add_regions_languages -> 0013_upgrade_file_extension, empty message
INFO:     [RomM][alembic.runtime.migration] Running upgrade 0013_upgrade_file_extension -> 0014_asset_files, empty message
Traceback (most recent call last):
....(stacktrace)....
mariadb.ProgrammingError: statement (1) doesn't match the number of data elements (0).
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
sqlalchemy.exc.ProgrammingError: (mariadb.ProgrammingError) statement (1) doesn't match the number of data elements (0).
[SQL: INSERT INTO roms (id, igdb_id, p_igdb_id, sgdb_id, p_sgdb_id, platform_slug, p_name, file_name, file_name_no_tags, file_extension, file_path, file_size, file_size_units, name, slug, summary, path_cover_s, path_cover_l, revision, tags, multi, files, url_cover, url_screenshots, path_screenshots, regions, languages) VALUES (1065, 40779, "", null, "", "atari2600", "", "Atlantis 2.BIN", "Atlantis 2", "BIN", "roms/atari2600", 4.0, "KB", "Atlantis II", "atlantis-ii", "Many game companies in the 1980\'s held contests in an attempt to boost sales of their games and give their fans something fun to compete for. For example, there is Activision\'s Enduro: Race for Riches, Data Age\'s Bermuda Triangle Replica Artifact, and Parker Brothers\' Super Cobra Flight Jacket. Not surprisingly, Imagic also held several contests, one of which is \"Defend Atlantis\".
Unfortunately for Imagic, there were a lot of good Atlantis players. In fact, more than four individuals maxed out the score, so Imagic had to figure out a way to decide who the top four would be. They created a special contest version of Atlantis, that they called Atlantis II, that these top scorers would use for a tie-breaker.
Atlantis II is basically the same as Atlantis, except that it\'s faster, harder, and lower scoring. Contestants were sent a letter telling them that they qualified for this shoot off. They were to recieve in the mail the Atlantis II cartridge, along with the snorkeling set and t-shirt.
According to Imagic, \"We\'ve designed this contest version of Atlantis just for you experts. Those tricky Gorgons will still thwart you at every turn, but now the battle will be more fierce and the points scored for direct hits will be less.
Are you expert enough to meet this challenge and save Atlantis from the dreaded Gorgon death ray? If you\'re brave enough, read on.\" Contestants were to play the game for only two days and then send in their high scores.", "atari2600/Atlantis%20II/cover/small.png?timestamp=1704605184.054055", "atari2600/Atlantis%20II/cover/big.png?timestamp=1704605184.367968", "", '[]', 0, '[]', "https://images.igdb.com/igdb/image/upload/t_thumb/co5vji.jpg", '[]', '[]', '[]', '[]')]
(Background on this error at: https://sqlalche.me/e/20/f405)
ERROR:    [init][2024-03-12 09:30:26] Something went horribly wrong with our database

Perhaps simply a data escaping issue.

To Reproduce
Steps to reproduce the behavior:

  1. Follow migration guide from 2.x to 3.x
  2. Start it all up
  3. (Maybe specifically have this one game in the library)

Expected behavior
DB Migrated successfully

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@krohrsb krohrsb added the bug Something isn't working label Mar 12, 2024
@krohrsb krohrsb changed the title [Bug] SQLIte > Maria migration error [Bug] SQLite > Maria migration error Mar 12, 2024
@krohrsb krohrsb changed the title [Bug] SQLite > Maria migration error [Bug] SQLite > Maria migration error (2.x->3.x) Mar 12, 2024
@gantoine
Copy link
Member

Ok yeah I see the issue, will have it fixed in the next release.

@zurdi15 zurdi15 mentioned this issue Mar 13, 2024
@gantoine
Copy link
Member

@krohrsb can you try with the latest 3.0.1 release?

@krohrsb
Copy link
Author

krohrsb commented Mar 14, 2024

Confirmed this is fixed via #702

@krohrsb krohrsb closed this as completed Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants