Public bug reported:

I have moved mysql datadir to /home/mysql. In /var/lib/mysql is symlink
to /home/mysql. Upgrade failed.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 5.7.13-0ubuntu0.16.04.2
ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
Uname: Linux 4.4.0-36-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Wed Sep 14 09:51:29 2016
DpkgTerminalLog:
 Preparing to unpack .../mysql-server-5.7_5.7.15-0ubuntu0.16.04.1_amd64.deb ...
 cp: nie je možné prepísať adresár '/var/lib/mysql-upgrade/DATADIR.link/mysql' 
súborom (ktorý nie je adresár)
 dpkg: error processing archive 
/var/cache/apt/archives/mysql-server-5.7_5.7.15-0ubuntu0.16.04.1_amd64.deb 
(--unpack):
  subprocess new pre-installation script returned error exit status 1
DuplicateSignature:
 package:mysql-server-5.7:5.7.13-0ubuntu0.16.04.2
 Preparing to unpack .../mysql-server-5.7_5.7.15-0ubuntu0.16.04.1_amd64.deb ...
 cp: nie je možné prepísať adresár '/var/lib/mysql-upgrade/DATADIR.link/mysql' 
súborom (ktorý nie je adresár)
 dpkg: error processing archive 
/var/cache/apt/archives/mysql-server-5.7_5.7.15-0ubuntu0.16.04.1_amd64.deb 
(--unpack):
  subprocess new pre-installation script returned error exit status 1
ErrorMessage: subprocess new pre-installation script returned error exit status 
1
InstallationDate: Installed on 2014-12-14 (639 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
Logs.var.log.daemon.log:
 
MySQLConf.etc.mysql.conf.d.mysql.cnf: [mysql]
MySQLConf.etc.mysql.conf.d.mysqldump.cnf:
 [mysqldump]
 quick
 quote-names
 max_allowed_packet     = 16M
MySQLConf.etc.mysql.mysql.conf.d.mysqld_safe_syslog.cnf:
 [mysqld_safe]
 syslog
MySQLVarLibDirListing: ['nn', 'c1realsoft', 'performance_schema', 'ibdata1', 
'debian-5.7.flag', 'mysql_upgrade_info', 'faktury', 'debian-5.5.flag', 
'ib_buffer_pool', 'topreality', 'elastic', 'xreality', 'ib_logfile1', 
'auto.cnf', 'mysql', 'netteskolenie', 're2', 'ibtmp1', 'imobiliaresoft', 
'debian-5.6.flag', 'sys', 'ib_logfile0']
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.4.0-36-generic 
root=UUID=800ed27d-efec-4f0d-85a3-cce518c18c30 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt  1.2.12~ubuntu16.04.1
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.13-0ubuntu0.16.04.2 failed to 
install/upgrade: subprocess new pre-installation script returned error exit 
status 1
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.mysql.mysql.conf.d.mysqld.cnf: [modified]
mtime.conffile..etc.mysql.mysql.conf.d.mysqld.cnf: 2016-08-25T14:36:38.667364

** Affects: mysql-5.7 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-package xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1623371

Title:
  Problem upgrade mysql when datadir is moved to other place

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1623371/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to