Docker: MariaDB, Insecure, Apache Example is No Longer Working

Created on 26 Dec 2019  路  9Comments  路  Source: nextcloud/docker

When I log in, it says that it cannot find the database. I'm using the exact code from the Github and I've set the database password.

The Postgress version works great, so I assume the issue is with the MariaDB docker image. It probably got changed in a recent update.

I'm just going to stick to Postgress, but I though you should know that the example is broken.

Most helpful comment

It seems there's several regressions when doing first instantiation of MariaDB. One is related to the TZTIME tool timing out, but there's a workaround for that.
The second hurdle I found was (also on first instantiation) that writing to ibtmpl for some reason also took a very long time (10-15s) and timed out, even though it's only a 12mb file and dd-ing to the drive normally get's me about 400mbps. I gave up on mariadb after that.

Please also note that the yml files won't even work when replacing mariadb with mysql:latest, since none of the nextcloud images seem to include PHP7.4, required for the cached_sha256, which is default since mysql:8.
All in all, it would be smart to have the yml files pin the version of the images they were tested with, so at least examples work as published.

All 9 comments

Hello,

I have the same problem MariaDB is not working

Not just insecure, it's all the mariadb examples which aren't working. The version of mariadb should be specified in the example docker-compose.yml (IMHO).

I tried MariaDB 10.3 doesn鈥檛 work. Do anybody know the last working tag ?

It also is not working for me. Has anyone figured out a solution to this?

I got this same issue on jc21/nginx-proxy-manager. I fixed it by going to version 10.4.5, but for the downgrade to work, you had to delete all the persisted data inside the volumes. I'm not sure if @jensamberg did that, but it might be worth a shot here.

I think the issue is that MariaDB isn't reading the environment variables and they've changed the way you configure the database. I'm not sure what the new way is though.

@ShiromMakkad I tried a fresh installation. So I had no persist data. I also discovered that the MariaDB Image does not read the environment. Do you think the Issue is in the MariaDB Container?

Got simmiliar problems with linuxserver/mariadb and linuxserver/nextcloud . I had to add a database and a user with privileges. Entering this information at start works. But i also had a timeout and I had to add the variable installed => true inside the config.

It seems there's several regressions when doing first instantiation of MariaDB. One is related to the TZTIME tool timing out, but there's a workaround for that.
The second hurdle I found was (also on first instantiation) that writing to ibtmpl for some reason also took a very long time (10-15s) and timed out, even though it's only a 12mb file and dd-ing to the drive normally get's me about 400mbps. I gave up on mariadb after that.

Please also note that the yml files won't even work when replacing mariadb with mysql:latest, since none of the nextcloud images seem to include PHP7.4, required for the cached_sha256, which is default since mysql:8.
All in all, it would be smart to have the yml files pin the version of the images they were tested with, so at least examples work as published.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Xanarkan picture Xanarkan  路  3Comments

SQGE picture SQGE  路  3Comments

tanja84dk picture tanja84dk  路  3Comments

pr4xx picture pr4xx  路  4Comments

raimund-schluessler picture raimund-schluessler  路  3Comments