Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.1.32, 10.2.14
-
Docker for Mac, Docker for Win
Description
I'm not sure whether you're aware of this issue experienced by docker users: https://github.com/docker-library/mariadb/issues/95
When you start latest stable MariaDB with Docker for Mac/Win and /var/lib/mysql mounted from the host machine it fails with error:
+ mysql_install_db --datadir=/var/lib/mysql/ --rpm
|
[ERROR] InnoDB: preallocating 10485760 bytes for file ./ibdata1 failed with error 95
|
[ERROR] InnoDB: Could not set the file size of './ibdata1'. Probably out of disk space
|
[ERROR] InnoDB: Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
|
[ERROR] Plugin 'InnoDB' init function returned error.
|
[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
|
[ERROR] Unknown/unsupported storage engine: InnoDB
|
[ERROR] Aborting
|
As noted by tianon in the github issue:
Docker and MariaDB work fine together; the bit that doesn't work is the custom filesystem employed by Docker for Windows and Docker for Mac for sharing files across the VM boundary, which is not all that surprising for a database, which often use features like mmap for performance but thus also require support from the underlying filesystem. There are many reports of similar issues with vboxsf, for example.
Any fixes would have to happen either in Docker's shared filesystem or in MariaDB itself (not something we can really fix in this Docker image), so I'd recommend checking their respective upstream bugtrackers for any discussion of fixing the problem.
Also, it worth saying that older MariaDB versions work fine, for example 10.1.22
Docker images where the problem happens:
- Debian-based official _/mariadb
- Alpine-based wodby/mariadb
Attachments
Issue Links
- is duplicated by
-
MDEV-20594 InnoDB ibdata1 preallocation fails on 9p fs. mount
-
- Closed
-
- relates to
-
MDEV-11520 Extending an InnoDB data file unnecessarily allocates a large memory buffer on Windows
-
- Closed
-
-
MDEV-15882 Error starting MariaDB Server 10.2.14 within Docker with mounted volume
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
I'm not sure whether you're aware of this bug: https://github.com/docker-library/mariadb/issues/95
When you start latest stable MariaDB with Docker for Mac/Win and /var/lib/mysql mounted from the host machine it fails with error: {code} + mysql_install_db --datadir=/var/lib/mysql/ --rpm [ERROR] InnoDB: preallocating 10485760 bytes for file ./ibdata1 failed with error 95 [ERROR] InnoDB: Could not set the file size of './ibdata1'. Probably out of disk space [ERROR] InnoDB: Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again. [ERROR] Plugin 'InnoDB' init function returned error. [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. [ERROR] Unknown/unsupported storage engine: InnoDB [ERROR] Aborting {code} As noted by tianon in the github issue: {quote}Docker and MariaDB work fine together; the bit that doesn't work is the custom filesystem employed by Docker for Windows and Docker for Mac for sharing files across the VM boundary, which is not all that surprising for a database, which often use features like mmap for performance but thus also require support from the underlying filesystem. There are many reports of similar issues with vboxsf, for example. Any fixes would have to happen either in Docker's shared filesystem or in MariaDB itself (not something we can really fix in this Docker image), so I'd recommend checking their respective upstream bugtrackers for any discussion of fixing the problem. {quote} Also, it worth saying that older MariaDB versions works fine, for example 10.1.22 Docker images where problem happens: * Debian-based official [_/mariadb|https://github.com/docker-library/mariadb] * Alpine-based [wodby/mariadb|https://github.com/wodby/mariadb/blob/master/10/Dockerfile] |
I'm not sure whether you're aware of this issue experienced by docker users: https://github.com/docker-library/mariadb/issues/95
When you start latest stable MariaDB with Docker for Mac/Win and /var/lib/mysql mounted from the host machine it fails with error: {code} + mysql_install_db --datadir=/var/lib/mysql/ --rpm [ERROR] InnoDB: preallocating 10485760 bytes for file ./ibdata1 failed with error 95 [ERROR] InnoDB: Could not set the file size of './ibdata1'. Probably out of disk space [ERROR] InnoDB: Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again. [ERROR] Plugin 'InnoDB' init function returned error. [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. [ERROR] Unknown/unsupported storage engine: InnoDB [ERROR] Aborting {code} As noted by tianon in the github issue: {quote}Docker and MariaDB work fine together; the bit that doesn't work is the custom filesystem employed by Docker for Windows and Docker for Mac for sharing files across the VM boundary, which is not all that surprising for a database, which often use features like mmap for performance but thus also require support from the underlying filesystem. There are many reports of similar issues with vboxsf, for example. Any fixes would have to happen either in Docker's shared filesystem or in MariaDB itself (not something we can really fix in this Docker image), so I'd recommend checking their respective upstream bugtrackers for any discussion of fixing the problem. {quote} Also, it worth saying that older MariaDB versions works fine, for example 10.1.22 Docker images where the problem happens: * Debian-based official [_/mariadb|https://github.com/docker-library/mariadb] * Alpine-based [wodby/mariadb|https://github.com/wodby/mariadb/blob/master/10/Dockerfile] |
Description |
I'm not sure whether you're aware of this issue experienced by docker users: https://github.com/docker-library/mariadb/issues/95
When you start latest stable MariaDB with Docker for Mac/Win and /var/lib/mysql mounted from the host machine it fails with error: {code} + mysql_install_db --datadir=/var/lib/mysql/ --rpm [ERROR] InnoDB: preallocating 10485760 bytes for file ./ibdata1 failed with error 95 [ERROR] InnoDB: Could not set the file size of './ibdata1'. Probably out of disk space [ERROR] InnoDB: Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again. [ERROR] Plugin 'InnoDB' init function returned error. [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. [ERROR] Unknown/unsupported storage engine: InnoDB [ERROR] Aborting {code} As noted by tianon in the github issue: {quote}Docker and MariaDB work fine together; the bit that doesn't work is the custom filesystem employed by Docker for Windows and Docker for Mac for sharing files across the VM boundary, which is not all that surprising for a database, which often use features like mmap for performance but thus also require support from the underlying filesystem. There are many reports of similar issues with vboxsf, for example. Any fixes would have to happen either in Docker's shared filesystem or in MariaDB itself (not something we can really fix in this Docker image), so I'd recommend checking their respective upstream bugtrackers for any discussion of fixing the problem. {quote} Also, it worth saying that older MariaDB versions works fine, for example 10.1.22 Docker images where the problem happens: * Debian-based official [_/mariadb|https://github.com/docker-library/mariadb] * Alpine-based [wodby/mariadb|https://github.com/wodby/mariadb/blob/master/10/Dockerfile] |
I'm not sure whether you're aware of this issue experienced by docker users: https://github.com/docker-library/mariadb/issues/95
When you start latest stable MariaDB with Docker for Mac/Win and /var/lib/mysql mounted from the host machine it fails with error: {code} + mysql_install_db --datadir=/var/lib/mysql/ --rpm [ERROR] InnoDB: preallocating 10485760 bytes for file ./ibdata1 failed with error 95 [ERROR] InnoDB: Could not set the file size of './ibdata1'. Probably out of disk space [ERROR] InnoDB: Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again. [ERROR] Plugin 'InnoDB' init function returned error. [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. [ERROR] Unknown/unsupported storage engine: InnoDB [ERROR] Aborting {code} As noted by tianon in the github issue: {quote}Docker and MariaDB work fine together; the bit that doesn't work is the custom filesystem employed by Docker for Windows and Docker for Mac for sharing files across the VM boundary, which is not all that surprising for a database, which often use features like mmap for performance but thus also require support from the underlying filesystem. There are many reports of similar issues with vboxsf, for example. Any fixes would have to happen either in Docker's shared filesystem or in MariaDB itself (not something we can really fix in this Docker image), so I'd recommend checking their respective upstream bugtrackers for any discussion of fixing the problem. {quote} Also, it worth saying that older MariaDB versions work fine, for example 10.1.22 Docker images where the problem happens: * Debian-based official [_/mariadb|https://github.com/docker-library/mariadb] * Alpine-based [wodby/mariadb|https://github.com/wodby/mariadb/blob/master/10/Dockerfile] |
Link |
This issue relates to |
Link |
This issue relates to |
Fix Version/s | 10.1 [ 16100 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] |
Assignee | Marko Mäkelä [ marko ] |
Assignee | Marko Mäkelä [ marko ] | Vicentiu Ciorbaru [ cvicentiu ] |
Fix Version/s | 10.4 [ 22408 ] |
Assignee | Vicentiu Ciorbaru [ cvicentiu ] | Eugene Kosov [ kevg ] |
Fix Version/s | 10.1 [ 16100 ] |
Labels | docker | docker need_feedback |
Fix Version/s | 10.5.7 [ 25019 ] | |
Fix Version/s | 10.4.16 [ 25020 ] | |
Fix Version/s | 10.3.26 [ 25021 ] | |
Fix Version/s | 10.2.35 [ 25022 ] | |
Fix Version/s | 10.1.48 [ 25108 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Assignee | Eugene Kosov [ kevg ] | Marko Mäkelä [ marko ] |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Assignee | Marko Mäkelä [ marko ] | Vicențiu Ciorbaru [ cvicentiu ] |
Resolution | Fixed [ 1 ] | |
Status | Closed [ 6 ] | Stalled [ 10000 ] |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.5.7 [ 25019 ] | |
Fix Version/s | 10.4.16 [ 25020 ] | |
Fix Version/s | 10.3.26 [ 25021 ] | |
Fix Version/s | 10.2.35 [ 25022 ] | |
Fix Version/s | 10.1.48 [ 25108 ] |
Summary | Probably out of disk space error with docker for mac/win + bind mounts | Unhandled EOPNOTSUPP of posix_fallocate() causes bogus "Probably out of disk space error" |
Fix Version/s | 10.5.7 [ 25019 ] | |
Fix Version/s | 10.4.16 [ 25020 ] | |
Fix Version/s | 10.3.26 [ 25021 ] | |
Fix Version/s | 10.2.35 [ 25022 ] | |
Fix Version/s | 10.1.48 [ 25108 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Assignee | Vicențiu Ciorbaru [ cvicentiu ] | Marko Mäkelä [ marko ] |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Labels | docker need_feedback | docker |
Workflow | MariaDB v3 [ 86776 ] | MariaDB v4 [ 154246 ] |
Link |
This issue is duplicated by |
Could you please give any feedback on this issue. Thank you.