Skip to content

change volume to named volume rather than host bind mount (#275) - #276

Open
sarahmccuan wants to merge 1 commit into
HugoFara:developfrom
sarahmccuan:fix-failing-migrations
Open

change volume to named volume rather than host bind mount (#275)#276
sarahmccuan wants to merge 1 commit into
HugoFara:developfrom
sarahmccuan:fix-failing-migrations

Conversation

@sarahmccuan

Copy link
Copy Markdown

Fixing all the migration failures: errno 150/194 and "error 41" migration failures in #275.

Root cause: docker-compose.yml bind-mounted the MariaDB data directory from the Windows host (./lwt_db_data:/var/lib/mysql); that path is case-insensitive, so MariaDB force-set lower_case_table_names=2 (unsupported on Linux builds) and every ALTER TABLE failed to rename its tablespace, which cascaded into the errors.

Fix: Switched that mount to a named Docker volume (lwt_db_data:/var/lib/mysql) so the InnoDB files live on ext4 inside the Docker VM.

@sarahmccuan
sarahmccuan marked this pull request as draft August 22, 2026 22:38
@sarahmccuan
sarahmccuan changed the base branch from main to develop August 22, 2026 22:39
@sarahmccuan
sarahmccuan marked this pull request as ready for review August 22, 2026 22:39
@HugoFara

Copy link
Copy Markdown
Owner

Good investigation, if that is the cause, the fix is more than welcome!

@HugoFara HugoFara added bug Something isn't working docker Anything related to Docker database Database-related issues labels Aug 22, 2026
@sarahmccuan

Copy link
Copy Markdown
Author

Confirmed that it worked locally on windows anyway. Would probably be worth someone testing on a linux box to make sure nothing breaks on that side.

@HugoFara

Copy link
Copy Markdown
Owner

I have launched the workflows, and I'll test on Linux when I get the time, thanks for the PR!

N. B.: I also found the lone ./ a bit strange, I hope changing it won't break anything in a new and surprising way!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working database Database-related issues docker Anything related to Docker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants