[MCOL-302] rpm -U reports errors Created: 2016-09-19  Updated: 2023-10-26  Resolved: 2016-10-10

Status: Closed
Project: MariaDB ColumnStore
Component/s: ?
Affects Version/s: 1.0.3
Fix Version/s: 1.0.4

Type: Bug Priority: Minor
Reporter: David Hill (Inactive) Assignee: David Hill (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of MCOL-280 Beta issues Closed
Sprint: 2016-19

 Description   

[root@ip-172-30-0-125 rpm.1.0.3.new]# rpm -Uvh mariadb-columnstore*.rpm
Preparing... ################################# [100%]
Updating / installing...
1:mariadb-columnstore-common-1.0.3-################################# [ 6%]
2:mariadb-columnstore-libs-1.0.3-1 ################################# [ 12%]
MariaDB ColumnStore RPM install completed
3:mariadb-columnstore-client-1.0.3-################################# [ 18%]

******************************************************************
A MySQL or MariaDB server package (mariadb-columnstore-server-1.0.2-1.el7.centos.x86_64) is installed.

Upgrading directly from MySQL 1.0 to MariaDB 10.1 may not
be safe in all cases. A manual dump and restore using mysqldump is
recommended. It is important to review the MariaDB manual's Upgrading
section for version-specific incompatibilities.

A manual upgrade is required.

  • Ensure that you have a complete, working backup of your data and my.cnf
    files
  • Shut down the MySQL server cleanly
  • Remove the existing MySQL packages. Usually this command will
    list the packages you should remove:
    rpm qa | grep -i '^mysql'

You may choose to use 'rpm --nodeps -ev <package-name>' to remove
the package which contains the mysqlclient shared library. The
library will be reinstalled by the MariaDB-shared package.

  • Install the new MariaDB packages supplied by MariaDB AB
  • Ensure that the MariaDB server is started
  • Run the 'mysql_upgrade' program

This is a brief description of the upgrade process. Important details
can be found in the MariaDB manual, in the Upgrading section.
******************************************************************
error: %pre(mariadb-columnstore-server-1.0.3-1.el7.centos.x86_64) scriptlet failed, exit status 1
error: mariadb-columnstore-server-1.0.3-1.el7.centos.x86_64: install failed
4:mariadb-columnstore-gssapi-server################################# [ 24%]
5:mariadb-columnstore-platform-1.0.################################# [ 29%]
The next step is:

/usr/local/mariadb/columnstore/bin/postConfigure

MariaDB ColumnStore RPM install completed
6:mariadb-columnstore-storage-engin################################# [ 35%]
MariaDB ColumnStore RPM install completed
7:mariadb-columnstore-gssapi-client################################# [ 41%]
8:mariadb-columnstore-shared-1.0.3-################################# [ 47%]
error: mariadb-columnstore-server-1.0.2-1.el7.centos.x86_64: erase skipped
Cleaning up / removing...
9:mariadb-columnstore-storage-engin################################# [ 53%]
10:mariadb-columnstore-platform-1.0.################################# [ 59%]
11:mariadb-columnstore-client-1.0.2-################################# [ 65%]
12:mariadb-columnstore-shared-1.0.2-################################# [ 71%]
13:mariadb-columnstore-gssapi-client################################# [ 76%]
14:mariadb-columnstore-libs-1.0.2-1 ################################# [ 82%]
15:mariadb-columnstore-common-1.0.2-################################# [ 88%]
[root@ip-172-30-0-125 rpm.1.0.3.new]#



 Comments   
Comment by Ben Thompson (Inactive) [ 2016-09-28 ]

Two pull requests, Server changes the server version string to use columnstore version. Engine changes some of the cmake/cpack that was noticed when testing rpm -U.

Comment by Andrew Hutchings (Inactive) [ 2016-09-28 ]

Change looks good to me. Moved to David H to test.

Comment by David Hill (Inactive) [ 2016-10-10 ]

FAILED.... Reopening...

I install 1.0.2 and then tried to upgrade to 1.0.4 and got the below errors

[root@centos7 ~]# ./package_install
Preparing... ################################# [100%]
Updating / installing...
1:mariadb-columnstore-common-10.1.1################################# [ 13%]
2:mariadb-columnstore-libs-1.0.2.1-################################# [ 25%]
MariaDB ColumnStore RPM install completed
3:mariadb-columnstore-client-10.1.1################################# [ 38%]
4:mariadb-columnstore-server-10.1.1################################# [ 50%]
5:mariadb-columnstore-platform-1.0.################################# [ 63%]
The next step is:

/usr/local/mariadb/columnstore/bin/postConfigure

MariaDB ColumnStore RPM install completed
6:mariadb-columnstore-storage-engin################################# [ 75%]
MariaDB ColumnStore RPM install completed
7:mariadb-columnstore-gssapi-client################################# [ 88%]
8:mariadb-columnstore-shared-10.1.1################################# [100%]
[root@centos7 ~]# cd /home/builder/rpm/
[root@centos7 rpm]#
[root@centos7 rpm]#
[root@centos7 rpm]# rpm -Uvh *rpm
Preparing... ################################# [100%]
package mariadb-columnstore-common-10.1.14-1.el7.centos.x86_64 (which is newer than mariadb-columnstore-common-1.0.4-1.el7.centos.x86_64) is already installed
package mariadb-columnstore-client-10.1.14-1.el7.centos.x86_64 (which is newer than mariadb-columnstore-client-1.0.4-1.el7.centos.x86_64) is already installed
package mariadb-columnstore-server-10.1.14-1.el7.centos.x86_64 (which is newer than mariadb-columnstore-server-1.0.4-1.el7.centos.x86_64) is already installed
package mariadb-columnstore-gssapi-client-10.1.14-1.el7.centos.x86_64 (which is newer than mariadb-columnstore-gssapi-client-1.0.4-1.el7.centos.x86_64) is already installed
package mariadb-columnstore-shared-10.1.14-1.el7.centos.x86_64 (which is newer than mariadb-columnstore-shared-1.0.4-1.el7.centos.x86_64) is already installed
[root@centos7 rpm]# ll
total 180512
rw-rw-r-. 1 builder builder 92370780 Oct 9 22:46 mariadb-columnstore-1.0.4-1-centos7.x86_64.rpm.tar.gz
rw-rr-. 1 builder builder 12056284 Oct 9 22:46 mariadb-columnstore-1.0.4-1-x86_64-centos7-client.rpm
rw-rr-. 1 builder builder 43676 Oct 9 22:46 mariadb-columnstore-1.0.4-1-x86_64-centos7-common.rpm
rw-rr-. 1 builder builder 18708 Oct 9 22:46 mariadb-columnstore-1.0.4-1-x86_64-centos7-gssapi-client.rpm
rw-rr-. 1 builder builder 46004 Oct 9 22:46 mariadb-columnstore-1.0.4-1-x86_64-centos7-gssapi-server.rpm
rw-rr-. 1 builder builder 3665148 Oct 9 22:44 mariadb-columnstore-1.0.4-1-x86_64-centos7-libs.rpm
rw-rr-. 1 builder builder 2464284 Oct 9 22:44 mariadb-columnstore-1.0.4-1-x86_64-centos7-platform.rpm
rw-rr-. 1 builder builder 72535508 Oct 9 22:46 mariadb-columnstore-1.0.4-1-x86_64-centos7-server.rpm
rw-rr-. 1 builder builder 1243020 Oct 9 22:46 mariadb-columnstore-1.0.4-1-x86_64-centos7-shared.rpm
rw-rr-. 1 builder builder 381532 Oct 9 22:44 mariadb-columnstore-1.0.4-1-x86_64-centos7-storage-engine.rpm

Comment by Ben Thompson (Inactive) [ 2016-10-10 ]

Looks like pre-1.0.3 the packages were still getting built on server with the 10.1.14 version instead of columnstore version, suggest retesting with 1.0.3 package. Should be working on all builds moving forward.

Comment by David Hill (Inactive) [ 2016-10-10 ]

Upgrade works on 1.0.3 to 1.0.4.. 1.0.2 had different packahe names, so user would still need to sue the rpm -e and rpm -i commands...

Generated at Thu Feb 08 02:20:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.