2015-07-14 05:22:41 |
itsadok |
bug |
|
|
added bug |
2015-07-14 05:30:18 |
Apport retracing service |
tags |
amd64 apport-package need-duplicate-check vivid |
amd64 apport-package vivid |
|
2015-07-14 05:30:19 |
Apport retracing service |
bug |
|
|
added subscriber Crash bug triagers for Ubuntu packages |
2015-07-23 20:34:31 |
Otto Kekäläinen |
mariadb-10.0 (Ubuntu): status |
New |
Confirmed |
|
2015-07-23 20:46:10 |
Otto Kekäläinen |
bug watch added |
|
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792918 |
|
2015-07-23 20:46:10 |
Otto Kekäläinen |
bug task added |
|
mariadb-10.0 (Debian) |
|
2015-07-23 20:47:01 |
Otto Kekäläinen |
summary |
package mariadb-server-10.0 10.0.17-0ubuntu1 failed to install/upgrade: subprocess new pre-installation script returned error exit status 1 |
Upgrade fails when /var/lib/mysql is a soft link |
|
2015-07-23 23:43:06 |
Bug Watch Updater |
mariadb-10.0 (Debian): status |
Unknown |
New |
|
2015-07-27 01:38:30 |
Bug Watch Updater |
mariadb-10.0 (Debian): status |
New |
Fix Released |
|
2015-08-10 23:14:28 |
Alberto Salvia Novella |
mariadb-10.0 (Ubuntu): importance |
Undecided |
Medium |
|
2016-01-01 21:30:29 |
Otto Kekäläinen |
mariadb-10.0 (Ubuntu): status |
Confirmed |
Fix Committed |
|
2016-04-22 05:53:54 |
Jean-Max Reymond |
bug task added |
|
mysql-5.7 (Ubuntu) |
|
2016-04-22 06:14:05 |
Jean-Max Reymond |
bug |
|
|
added subscriber Jean-Max Reymond |
2016-04-25 08:50:18 |
Robie Basak |
mysql-5.7 (Ubuntu): importance |
Undecided |
Medium |
|
2016-04-28 01:55:44 |
Launchpad Janitor |
mysql-5.7 (Ubuntu): status |
New |
Confirmed |
|
2016-04-29 12:06:07 |
Robie Basak |
mysql-5.7 (Ubuntu): milestone |
|
ubuntu-16.06 |
|
2016-08-02 16:09:03 |
Robie Basak |
tags |
amd64 apport-package vivid |
amd64 apport-package mysql-alternate-datadir vivid |
|
2016-08-05 10:57:12 |
Robie Basak |
mysql-5.7 (Ubuntu): milestone |
ubuntu-16.06 |
ubuntu-16.09 |
|
2016-08-19 10:31:53 |
Lars Tangvald |
mysql-5.7 (Ubuntu): status |
Confirmed |
In Progress |
|
2016-08-19 10:31:53 |
Lars Tangvald |
mysql-5.7 (Ubuntu): assignee |
|
Lars Tangvald (lars-tangvald) |
|
2016-09-14 06:07:18 |
Lars Tangvald |
cve linked |
|
2016-6662 |
|
2016-09-18 09:57:57 |
Lars Tangvald |
mysql-5.7 (Ubuntu): status |
In Progress |
Fix Committed |
|
2016-09-28 09:15:41 |
Launchpad Janitor |
mysql-5.7 (Ubuntu): status |
Fix Committed |
Fix Released |
|
2016-10-03 08:55:33 |
Lars Tangvald |
tags |
amd64 apport-package mysql-alternate-datadir vivid |
amd64 apport-package mysql-alternate-datadir vivid xenial-candidate |
|
2016-10-07 10:58:01 |
Robie Basak |
nominated for series |
|
Ubuntu Xenial |
|
2016-10-07 10:58:01 |
Robie Basak |
bug task added |
|
mariadb-10.0 (Ubuntu Xenial) |
|
2016-10-07 10:58:01 |
Robie Basak |
bug task added |
|
mysql-5.7 (Ubuntu Xenial) |
|
2016-10-07 10:58:38 |
Robie Basak |
mysql-5.7 (Ubuntu Xenial): status |
New |
Triaged |
|
2016-10-07 10:58:42 |
Robie Basak |
mysql-5.7 (Ubuntu Xenial): importance |
Undecided |
Medium |
|
2016-11-16 08:38:17 |
Launchpad Janitor |
mariadb-10.0 (Ubuntu Xenial): status |
New |
Confirmed |
|
2016-12-01 12:25:38 |
Lars Tangvald |
description |
Not sure if it's relevant, by my mariadb data dir is on a secondary hard drive. /var/lib/mysql-upgrade/DATADIR.link points to the right path.
This is the terminal output for apt-get dist-upgrade:
Selecting previously unselected package mariadb-server-10.0.
(Reading database ... 274672 files and directories currently installed.)
Preparing to unpack .../mariadb-server-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb ...
cp: cannot overwrite directory ‘/var/lib/mysql-upgrade/DATADIR.link/mysql’ with non-directory
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/mariadb-server-10.0.postinst abort-upgrade 10.0.20-0ubuntu0.15.04.1
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ '[' -n '' ']'
+ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/bin:/usr/bin
+ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/bin:/usr/bin
+ ERR_LOGGER='logger -p daemon.err -t mysqld_safe -i'
+ set -o pipefail
+ MYSQL_BOOTSTRAP='/usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables --default-storage-engine=myisam --plugin-load-add=auth_socket'
+ set +e
+ invoke stop
+ '[' -x /usr/sbin/invoke-rc.d ']'
+ invoke-rc.d mysql stop
+ set -e
+ case "$1" in
+ '[' abort-upgrade = configure ']'
+ db_stop
+ echo STOP
+ '[' -x /etc/init.d/mysql ']'
+ update-rc.d mysql defaults 19 21
+ '[' -x /etc/init.d/mysql ']'
+ echo 'Invoking mysql start'
+ logger -p daemon.err -t mysqld_safe -i
+ invoke-rc.d mysql start
+ exit 0
Preparing to unpack .../mariadb-server_10.0.20-0ubuntu0.15.04.1_all.deb ...
Unpacking mariadb-server (10.0.20-0ubuntu0.15.04.1) over (10.0.17-0ubuntu1) ...
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-server-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 15.04
Package: mariadb-server-10.0 10.0.17-0ubuntu1
ProcVersionSignature: Ubuntu 3.19.0-22.22-generic 3.19.8-ckt1
Uname: Linux 3.19.0-22-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
Date: Tue Jul 14 08:07:15 2015
DpkgTerminalLog:
Preparing to unpack .../mariadb-server-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb ...
cp: cannot overwrite directory ‘/var/lib/mysql-upgrade/DATADIR.link/mysql’ with non-directory
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
DuplicateSignature: package:mariadb-server-10.0:10.0.17-0ubuntu1:subprocess new pre-installation script returned error exit status 1
ErrorMessage: subprocess new pre-installation script returned error exit status 1
InstallationDate: Installed on 2015-01-15 (180 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
RelatedPackageVersions:
dpkg 1.17.25ubuntu1
apt 1.0.9.7ubuntu4
SourcePackage: mariadb-10.0
Title: package mariadb-server-10.0 10.0.17-0ubuntu1 failed to install/upgrade: subprocess new pre-installation script returned error exit status 1
UpgradeStatus: Upgraded to vivid on 2015-05-27 (47 days ago) |
Upgrade fails if datadir is a symlink and the server has previously been upgraded with datadir as a symlink
[Impact]
When upgrading, postinst makes a copy (with -d) of the datadir link to ensure it's preserved. This copy operation can fail in some situations if the destination already exists (because the package was previously upgraded with a similar situation), causing d/preinst to fail every time the user tries to upgrade the package unless they manually remove the old link every time.
The fix adds a -T to the copy operation, treating the destination as a regular file to be overwritten
[Test case]
* Create a /var/lib/mysql that is a symlink to some other location
* Install an older version of mysql-server
* Upgrade to a newer version of mysql-server
[Regression potential]
This change has been in Yakkety for some time (5.7.15-0ubuntu2).
The change only affects user with datadirs that are symlinks, and only a file copy operation for a file that's generally not used (it's backed up just in case)
[Original Description]
Not sure if it's relevant, by my mariadb data dir is on a secondary hard drive. /var/lib/mysql-upgrade/DATADIR.link points to the right path.
This is the terminal output for apt-get dist-upgrade:
Selecting previously unselected package mariadb-server-10.0.
(Reading database ... 274672 files and directories currently installed.)
Preparing to unpack .../mariadb-server-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb ...
cp: cannot overwrite directory ‘/var/lib/mysql-upgrade/DATADIR.link/mysql’ with non-directory
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/mariadb-server-10.0.postinst abort-upgrade 10.0.20-0ubuntu0.15.04.1
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ '[' -n '' ']'
+ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/bin:/usr/bin
+ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/bin:/usr/bin
+ ERR_LOGGER='logger -p daemon.err -t mysqld_safe -i'
+ set -o pipefail
+ MYSQL_BOOTSTRAP='/usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables --default-storage-engine=myisam --plugin-load-add=auth_socket'
+ set +e
+ invoke stop
+ '[' -x /usr/sbin/invoke-rc.d ']'
+ invoke-rc.d mysql stop
+ set -e
+ case "$1" in
+ '[' abort-upgrade = configure ']'
+ db_stop
+ echo STOP
+ '[' -x /etc/init.d/mysql ']'
+ update-rc.d mysql defaults 19 21
+ '[' -x /etc/init.d/mysql ']'
+ echo 'Invoking mysql start'
+ logger -p daemon.err -t mysqld_safe -i
+ invoke-rc.d mysql start
+ exit 0
Preparing to unpack .../mariadb-server_10.0.20-0ubuntu0.15.04.1_all.deb ...
Unpacking mariadb-server (10.0.20-0ubuntu0.15.04.1) over (10.0.17-0ubuntu1) ...
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-server-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 15.04
Package: mariadb-server-10.0 10.0.17-0ubuntu1
ProcVersionSignature: Ubuntu 3.19.0-22.22-generic 3.19.8-ckt1
Uname: Linux 3.19.0-22-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
Date: Tue Jul 14 08:07:15 2015
DpkgTerminalLog:
Preparing to unpack .../mariadb-server-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb ...
cp: cannot overwrite directory ‘/var/lib/mysql-upgrade/DATADIR.link/mysql’ with non-directory
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.0_10.0.20-0ubuntu0.15.04.1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
DuplicateSignature: package:mariadb-server-10.0:10.0.17-0ubuntu1:subprocess new pre-installation script returned error exit status 1
ErrorMessage: subprocess new pre-installation script returned error exit status 1
InstallationDate: Installed on 2015-01-15 (180 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
RelatedPackageVersions:
dpkg 1.17.25ubuntu1
apt 1.0.9.7ubuntu4
SourcePackage: mariadb-10.0
Title: package mariadb-server-10.0 10.0.17-0ubuntu1 failed to install/upgrade: subprocess new pre-installation script returned error exit status 1
UpgradeStatus: Upgraded to vivid on 2015-05-27 (47 days ago) |
|
2016-12-16 09:28:01 |
Lars Tangvald |
mysql-5.7 (Ubuntu Xenial): status |
Triaged |
Fix Committed |
|
2016-12-16 09:28:01 |
Lars Tangvald |
mysql-5.7 (Ubuntu Xenial): assignee |
|
Lars Tangvald (lars-tangvald) |
|
2016-12-16 11:42:21 |
Lars Tangvald |
mysql-5.7 (Ubuntu Xenial): status |
Fix Committed |
In Progress |
|
2017-01-06 11:42:41 |
Robie Basak |
mysql-5.7 (Ubuntu Xenial): milestone |
|
xenial-updates |
|
2017-01-29 23:31:59 |
Tim Bishop |
bug |
|
|
added subscriber Tim Bishop |
2017-02-03 07:33:21 |
Johan Zetterberg |
bug |
|
|
added subscriber Johan Zetterberg |
2017-02-06 13:05:45 |
Andy Whitcroft |
mysql-5.7 (Ubuntu Xenial): status |
In Progress |
Fix Committed |
|
2017-02-06 13:05:48 |
Andy Whitcroft |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2017-02-06 13:05:50 |
Andy Whitcroft |
bug |
|
|
added subscriber SRU Verification |
2017-02-06 13:05:57 |
Andy Whitcroft |
tags |
amd64 apport-package mysql-alternate-datadir vivid xenial-candidate |
amd64 apport-package mysql-alternate-datadir verification-needed vivid xenial-candidate |
|
2017-03-14 09:31:19 |
Lars Tangvald |
tags |
amd64 apport-package mysql-alternate-datadir verification-needed vivid xenial-candidate |
amd64 apport-package mysql-alternate-datadir verification-done vivid xenial-candidate |
|
2017-04-05 17:05:01 |
Launchpad Janitor |
mysql-5.7 (Ubuntu Xenial): status |
Fix Committed |
Fix Released |
|
2017-04-05 17:05:01 |
Launchpad Janitor |
bug watch added |
|
http://bugs.mysql.com/bug.php?id=83340 |
|
2017-04-05 17:05:21 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2018-02-15 19:38:16 |
Faustin |
mariadb-10.0 (Ubuntu): status |
Fix Committed |
Fix Released |
|