romm icon indicating copy to clipboard operation
romm copied to clipboard

[Bug] Problem with db after creating container

Open GameAlex opened this issue 2 years ago • 3 comments

RomM version Version of RomM: latest

Describe the bug When freshly setting up the docker container, the RomM containter gives an error about connecting/using the db and restarts in an infinite loop.

sqlalchemy.exc.OperationalError: (mariadb.OperationalError) Duplicate column name 'p_name'

To Reproduce Steps to reproduce the behavior:

  1. Use the example docker compose
  2. Replace volume links and setup environment variables
  3. use docker-compose to create containers
  4. container gives error and restarts in a loop

Expected behavior container setup finishes without error

Desktop:

  • OS: Windows 10

GameAlex avatar Apr 19 '24 13:04 GameAlex

I tried it again today and this time actually using a docker volumes instead of binding a folder for the db and it worked

GameAlex avatar Apr 22 '24 09:04 GameAlex

Huh not sure why it would work with one and not the other, but I'm happy to hear it's working!

gantoine avatar Apr 22 '24 12:04 gantoine

Was seeing the same error and moving to volume instead of binding worked for me as well. Thanks for the solution

allaboutduncan avatar Feb 27 '25 15:02 allaboutduncan