Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.3.34, 10.8.3
-
Docker 4.11.1 on Windows 10, WSL2 backend, Ubuntu 20.04
Description
I have a Laravel application inside Docker container, which crashes when trying to run migrations.
docker-compose.yml:
mysql:
|
container_name: web__mysql
|
build:
|
context: .
|
dockerfile: ./.docker/services/mysql/Dockerfile
|
restart: unless-stopped
|
tty: true
|
ports:
|
- "3306:3306"
|
volumes:
|
- ./.docker/services/mysql/data:/var/lib/mysql
|
environment:
|
MARIADB_DATABASE: db
|
MARIADB_USER: web
|
MARIADB_PASSWORD: password
|
MARIADB_ROOT_PASSWORD: root
|
SERVICE_TAGS: dev
|
SERVICE_NAME: mysql
|
TZ: Europe/Riga
|
networks:
|
- app
|
Dockerfile:
FROM mariadb:latest
|
ENV TZ=Europe/Riga
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
No matter which version I pick, everytime i run migrations, the database server crashes with this error:
InnoDB: preallocating 147456 bytes for file ./db/events_places.ibd failed with error 2
|
This always happens on this query:
alter table `events_places` add unique `events_places_place_id_event_id_unique`(`place_id`, `event_id`)) |
If you need all queries that were run before that, I can provide. In attachment there is log from Docker terminal.
Attachments
Issue Links
- relates to
-
MDEV-28580 Server crash when creating an index after adding a foreign key
-
- Closed
-
-
MDEV-29015 InnoDB: Assertion failure in file /home/buildbot/buildbot/build/mariadb-10.3.35/storage/innobase/fil/fil0fil.cc line 968
-
- Closed
-
-
MDEV-34938 Under Windows Subsystem for Linux, InnoDB crashes on ALTER TABLE or OPTIMIZE TABLE
-
- Closed
-
-
MDEV-35501 innodb.log_file_name fails with "Could not measure size of ..."
-
- Closed
-
uname -a shows
Linux DESKTOP-248G439 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
I followed linux kernel version link and seems like it's the latest version:
PS C:\Windows\system32> dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Image Version: 10.0.19044.1865
Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.
PS C:\Windows\system32> wsl --set-default-version 2
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
The operation completed successfully.