[MDEV-8457] preset root password with debconf maybe fails in some situations Created: 2015-07-13 Updated: 2018-12-23 Resolved: 2018-12-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Packaging, Platform Debian |
| Affects Version/s: | 10.0.16, 10.0.20, 10.1 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Emilien Mantel | Assignee: | Otto Kekäläinen |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Vagrant - "clean" Debian Jessie - Install from Debian repo or from MariaDB repo |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Hi MariaDB team, I have some problems to install MariaDB 10.0 on Debian Jessie. Silent install fails (with preset root password with debconf). I have the same bug from Debian repo (10.0.16) and from MariaDB repo (10.0.20). I have no problem with MariaDB 10.0.20 on Debian Wheezy.
Cheers, hanx |
| Comments |
| Comment by Daniel Black [ 2015-07-13 ] | |||||||||||
|
To get a bit more info can you try:
| |||||||||||
| Comment by Emilien Mantel [ 2015-07-13 ] | |||||||||||
|
Hi, see attachment | |||||||||||
| Comment by Elena Stepanova [ 2015-07-13 ] | |||||||||||
|
danblack, do you see anything helpful in the log? I don't, but I don't have much experience with aptitude installations. If nobody does, hanx, can you provide the error log (either from the log file or from syslog)? | |||||||||||
| Comment by Emilien Mantel [ 2015-07-13 ] | |||||||||||
|
In line 1272, "ROOT_PW" is unset... The offending lines seems (1167-1170):
| |||||||||||
| Comment by Daniel Black [ 2015-07-14 ] | |||||||||||
|
hanx is spot on. debian/mariadb-server-10.0.config is the code that dates from the initial 5.5 commit of this file (debian/mariadb-server-5.5.config).
It looks like the condition in these lines should be !=, i.e. if the password and its confirmation don't match set the ROOT_PW to ''. A workaround in the mean time might be to set mysql-server/root_password_again to the real password and mysql-server/root_password to something different. | |||||||||||
| Comment by Emilien Mantel [ 2015-07-15 ] | |||||||||||
|
I compared Jessie and Wheezy (see new aptitude log). The error seems starting at (220-221):
https://github.com/MariaDB/server/blob/10.0/debian/dist/Debian/mariadb-server-10.0.postinst | |||||||||||
| Comment by Elena Stepanova [ 2015-07-16 ] | |||||||||||
|
otto, | |||||||||||
| Comment by Otto Kekäläinen [ 2015-07-21 ] | |||||||||||
|
hanx As Debian Jessie includes MariaDB packages from Debian, and you have at the same time the mariadb.org repositories enabled, what methods do you use to make sure that the two different packaging of the same program does not interfere with each other? Do you use apt-pinning? What if you disable the mariadb.org repositories and only use the Debian provided packages, is the error still there? | |||||||||||
| Comment by Otto Kekäläinen [ 2015-07-21 ] | |||||||||||
|
While looking into this I noticed an interesting difference that I don't know why it is there:
| |||||||||||
| Comment by Andrii Nikitin (Inactive) [ 2016-11-08 ] | |||||||||||
|
This looks fixed in recent 10.2.3 . Otto Kekäläinen - is there any chance to fix it in 10.1 as well? (Because recent internal build 10.1.20 still showing the issue) | |||||||||||
| Comment by Faustin Lammler [ 2018-12-21 ] | |||||||||||
|
HI, Here is a recent BR on this issue: | |||||||||||
| Comment by Otto Kekäläinen [ 2018-12-23 ] | |||||||||||
|
Setting passwords via debconf is a hack and security risk. You should try to avoid that. Thanks to changes in Debian for MariaDB 10.0 this security issue is not a concern anymore thanks to the use of socket authentication for the default root and system maintenance user. See also:
This same improvement was supposed to land in upstream in 10.1, but was postponed many releases and it is unclear if it will be in 10.4. See details in https://jira.mariadb.org/browse/MDEV-11340 |