Comments (30)
This is still an issue on Raspbian 10 and ARMv7 with the latest image.
I can't replicate this. Raspbian 10 on armv7 (Pi 4b) using the compose from the original post and it starts as expected.
You're correct, my apologies.
In all the troubles getting it to work I didn't pay enough attention to the most obvious error message:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Your DockerHost is most likely running an outdated version of libseccomp
To fix this, please visit https://docs.linuxserver.io/faq#libseccomp
Some apps might not behave correctly without this
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Followed the instructions at mentioned link and updated libseccomp:
wget http://ftp.us.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.5.1-1_armhf.deb
dpkg -i libseccomp2_2.5.1-1_armhf.deb
Container started working after restart/redeploy with compose. Can't reproduce the error anymore.
Hope this helps anyone who also doesn't read properly :)
from docker-mariadb.
from the upstream issue it seems that the last usable version for arm64 seems to be 10.4.13. Confirming that tag 110.4.13mariabionic-ls76
works on my device.
We will be waiting for a permanent resolution by the MariaDB team.
from docker-mariadb.
Thanks for opening your first issue here! Be sure to follow the issue template!
from docker-mariadb.
This happens with both the latest image and arm32v7-110.4.14mariabionic-ls77
from docker-mariadb.
Try it with an empty config folder (or better yet, remove the mountpoint altogether) and see if it starts up
from docker-mariadb.
Nope, same error regardless of whether the config folder is populated, empty, or removed.
from docker-mariadb.
I was unable to find a solution for this, but I was trying to use this with the LinuxServer Nextcloud image, and I was able to get the official postgres image working as a backend instead.
from docker-mariadb.
A workaround for this is to create the config directory manually before starting the container
mkdir config
chmod 755 config
docker-compose up -d
The reported error seems to have a root cause that the /config directory is not created and needs to have write permissions.
The 10-adduser script does chown of directories not yet created until 30-config
40-initialise_db once again does chown -R but not until the end of the script
The config directory is missing, an error is thrown at docker-compose up, since it's not created until 30-config
When attempting to use UMASK=0046
in the docker-compose.yml to get working permissions I discovered a related problem.
The image seems to be forcing UMASK to 0640. I am not sure why this is forced... but it seems wrong, they perhaps intended 640 to be the permissions and not the mask.
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
UMASK corrected from 0046 to 0646 ...
201003 12:03:43 mysqld_safe Logging to syslog.
The correction logic comes from /usr/bin/mariadbd-multi
if (defined($ENV{UMASK})) {
my $UMASK = $ENV{UMASK};
my $m;
my $fmode = "0640";
if(($UMASK =~ m/[^0246]/) || ($UMASK =~ m/^[^0]/) || (length($UMASK) != 4)) {
printf("UMASK must be a 3-digit mode with an additional leading 0 to indicate octal.\n");
printf("The first digit will be corrected to 6, the others may be 0, 2, 4, or 6.\n"); }
else {
from docker-mariadb.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from docker-mariadb.
This is still an issue on Raspbian 10 and ARMv7 with the latest image.
from docker-mariadb.
This is still an issue on Raspbian 10 and ARMv7 with the latest image.
I can't replicate this. Raspbian 10 on armv7 (Pi 4b) using the compose from the original post and it starts as expected.
from docker-mariadb.
I have the same issue with using latest linux/arm64/v8
image on Odroid-C2 using DietPi (optimized Debian) as OS.
I don't see the libseccomp
error in my logs - just the same thing as in the initial post.
I created the config folder, and put the env
file inside. Once ran the container created databases
and logs
folder and initializes the custom.cnf
file. but fails on the next steps.
from docker-mariadb.
I have the same issue with using latest
linux/arm64/v8
image on Odroid-C2 using DietPi (optimized Debian) as OS. I don't see thelibseccomp
error in my logs - just the same thing as in the initial post.I created the config folder, and put the
env
file inside. Once ran the container createddatabases
andlogs
folder and initializes thecustom.cnf
file. but fails on the next steps.
What version of docker are you running?
from docker-mariadb.
Version: 19.03.15
from docker-mariadb.
That's your issue. You'll see the same problems as those with the missing libseccomp if you're running Docker versions older than 20.10.0.
from docker-mariadb.
I upgraded my Debian from strech to bullseye and my docker to 20.10.9
I still get the same error when starting the container.
from docker-mariadb.
And dpkg -l | grep "libseccomp"
shows at least version 2.4.4
?
from docker-mariadb.
libseccomp2:arm64 2.5.1-1
from docker-mariadb.
Can you try
docker exec mariadb apk -U add libseccomp
docker exec mariadb scmp_sys_resolver faccessat
Assuming your container is called mariadb
otherwise change as appropriate.
Post the output to the second command.
from docker-mariadb.
it reported just 48
from docker-mariadb.
Oh, made a typo, should be
docker exec mariadb scmp_sys_resolver faccessat2
As per the Alpine 3.14 release notes it should return 439 if everything is correct.
from docker-mariadb.
now it responded with 439
as expected
from docker-mariadb.
I just noticed that the error is different than the original now:
/var/run/s6/etc/cont-init.d/40-initialise-db: line 4: 293 Illegal instruction (core dumped) mysqld --datadir="${DATADIR}" --init-file="${tempSqlFile}" --user=abc
The config folder I am mapping is with 777 permissions and the subfolders still gets created.
from docker-mariadb.
Can you provide your full run/compose and the full container logs.
from docker-mariadb.
running the container with: docker run -d --restart unless-stopped --network test --name mariadb -h mariadb -e TZ=Europe/Sofia -e PUID=0 -e PGID=0 -v /mariadb:/config linuxserver/mariadb
the config folder holds an env
file with the required properties.
here are the logs:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...
-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/
Brought to you by linuxserver.io
-------------------------------------
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid: 0
User gid: 0
-------------------------------------
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
[cont-init.d] 30-config: exited 0.
[cont-init.d] 40-initialise-db: executing...
Setting Up Initial Databases
Installing MariaDB/MySQL system tables in '/config/databases' ...
Illegal instruction (core dumped)
Installation of system tables failed! Examine the logs in
/config/databases for more information.
The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:
shell> /usr/bin/mysql_install_db --defaults-file=~/.my.cnf
You can also try to start the mysqld daemon with:
shell> /usr/bin/mysqld --skip-grant-tables --general-log &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables;
Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /config/databases that may be helpful.
The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
You can find the latest source at https://downloads.mariadb.org and
the maria-discuss email list at https://launchpad.net/~maria-discuss
Please check all of the above before submitting a bug report
at https://mariadb.org/jira
/var/run/s6/etc/cont-init.d/40-initialise-db: line 4: 294 Illegal instruction (core dumped) mysqld --datadir="${DATADIR}" --init-file="${tempSqlFile}" --user=abc
from docker-mariadb.
Don't run with PUID and/or PGID set to root, it's not a supported configuration.
from docker-mariadb.
I have 4 other containers from linuxserver that run with root just fine.
I tested with both PUID and PGID 1000 but the outcome is the same - folders get created the error is illegal instruction
from docker-mariadb.
I didn't say it'll never work, I said it was an unsupported configuration. Is 1000 the UID/GID of a value user on the host?
What do the logs in /config/databases say?
from docker-mariadb.
there is a user with that ID on the host.
There are no logs in the /config/databases folder. The only file created is a default configuration.
from docker-mariadb.
I've been having issues with the official MariaDB image too and we got some more details over in their issue. You can check it out to see if it helps.
Also I went ahead and tested running the container without mapping external folders, which should rule out any permissions issues I assume. The result was the same error.
from docker-mariadb.
Related Issues (20)
- MariaDB update to 10.11 or higher HOT 14
- [BUG] Pulling no matching manifest for linux/arm/v8 in the manifest list entries HOT 2
- [BUG] cat: /var/run/mysqld/mysqld.pid: No such file or directory HOT 2
- [BUG] Update from 10.6.12 to 10.11.03 facing SIGTERM and mysql.pid file missing HOT 32
- [BUG] arm32v7-latest HOT 2
- [BUG] #1231 - Variable 'lc_messages' can't be set to the value of 'zh_CN' HOT 2
- [FEAT] New Tag 11.1 HOT 3
- [BUG] Unraid docker will not start, and filerun returns "Database error: SQLSTATE[HY000] [2002] Connection refused" HOT 5
- [BUG] <title更新到最新版本后无法启动,回退到10.6.12也无法启动 HOT 2
- Log file is huge HOT 7
- [BUG] After container creation, error loop HOT 8
- [BUG] Unable to use FILE__MYSQL_ROOT_PASSWORD HOT 3
- [BUG] https is not enabled when connecting to db HOT 2
- [FEAT] healthcheck.sh to container image. HOT 4
- [BUG] Volume mapping issue - user not created HOT 6
- Documentation clarification - environment variables HOT 9
- [BUG] A shell script code typo error. HOT 3
- [FEAT] MariaDB Upgrade Instructions in Log are Unclear HOT 2
- [BUG] /etc/my.cnf.d/custom.cnf not being used by mariadb HOT 5
- [BUG] PR dont's should be written in README HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-mariadb.