SM 3.1 to SM3.2
nss-mgmt02:~ # cat /etc/*release
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 3
This file is deprecated and will be removed in a future service pack or release.
Please check /etc/os-release for details about this release.
NAME=“SLES”
VERSION=“12-SP3”
VERSION_ID=“12.3”
PRETTY_NAME=“SUSE Linux Enterprise Server 12 SP3”
ID=“sles”
ANSI_COLOR=“0;32”
CPE_NAME=“cpe:/o:suse:sles:12:sp3”
Spacewalk release 2.8 (Smile)
nss-mgmt02:~ # rpm -qa | grep manager
susemanager-build-keys-web-12.0.1-7.3.noarch
susemanager-tftpsync-3.2.3-6.2.x86_64
susemanager-best-practices_en-pdf-3.2-10.21.1.noarch
susemanager-schema-3.2.11-2.23.1.noarch
susemanager-sync-data-3.2.7-2.19.1.noarch
susemanager-frontend-libs-3.2.1-5.1.noarch
gnome-power-manager-3.20.0-6.3.x86_64
susemanager-tools-3.2.10-2.21.2.x86_64
susemanager-reference_en-pdf-3.2-10.21.1.noarch
supportutils-plugin-susemanager-3.2.1-2.6.3.noarch
susemanager-getting-started_en-pdf-3.2-10.21.1.noarch
gnome-power-manager-lang-3.20.0-6.3.noarch
release-notes-susemanager-3.2.0-5.23.1.x86_64
susemanager-docs_en-3.2-10.21.1.noarch
vncmanager-greeter-1.0.0-1.5.x86_64
susemanager-advanced-topics_en-pdf-3.2-10.21.1.noarch
yast2-services-manager-3.2.2-2.4.3.noarch
susemanager-sls-3.2.14-2.27.1.noarch
susemanager-branding-oss-3.2.3-6.1.noarch
susemanager-nagios-plugin-3.2.2-5.3.noarch
vncmanager-controller-1.0.0-3.6.x86_64
susemanager-3.2.10-2.21.2.x86_64
vncmanager-1.0.0-5.3.6.x86_64
vncmanager-controller-gnome-1.0.0-3.6.x86_64
susemanager-build-keys-12.0.1-7.3.noarch
susemanager-jsp_en-3.2-10.21.1.noarch
nss-mgmt02:~ #
following the upgrade instructions, I’m stopped at the section of the spacewalk schema upgrade.
nss-mgmt02:~ # spacewalk-schema-upgrade
Found unfinished schema migration
Try to continue schema migration
Planning to run schema upgrade with dir ‘/var/log/spacewalk/schema-upgrade/schema-from-20180702-203134’
Hit Enter to continue or Ctrl+C to interrupt:
Executing spacewalk-sql, the log is in [/var/log/spacewalk/schema-upgrade/schema-from-20180702-203134-to-susemanager-schema-3.1.17.log].
(1/24) apply upgrade [susemanager-schema-3.1.15-to-susemanager-schema-3.1.16/100-lookup_package_capability.sql.postgresql]
Upgrade failed, please see log [/var/log/spacewalk/schema-upgrade/schema-from-20180702-203134-to-susemanager-schema-3.1.17.log].
You can fix the failed migration in [/var/log/spacewalk/schema-upgrade/schema-from-20180702-203134]
and run spacewalk-schema-upgrade again
I’ve run the spacewalk-schema-upgrade several times with the same results.
directory contents
nss-mgmt02:~ # l /var/log/spacewalk/schema-upgrade
total 164
drwxr-xr-x 1 root root 414 Jul 2 20:31 ./
drwxr-xr-x 1 root root 28 Jan 2 2018 …/
-rw-r–r-- 1 root root 38466 Jan 2 2018 schema-from-20180102-193909-to-susemanager-schema-3.1.13.log
-rw-r–r-- 1 root root 100520 Apr 27 06:46 schema-from-20180427-064636-to-susemanager-schema-3.1.15.log
drwxr-xr-x 1 root root 1960 Jul 2 20:31 schema-from-20180702-203134/
-rw-r–r-- 1 root root 24440 Jul 20 18:32 schema-from-20180702-203134-to-susemanager-schema-3.1.17.log
nss-mgmt02:~ # cat /var/log/spacewalk/schema-upgrade/schema-from-20180702-203134-to-susemanager-schema-3.1.17.log
================== started: 2018-07-02 20:31:39 ==================
SQL> select ‘schema-from-20180702-203134/00_0000-upgrade-start.sql’ from dual;
update rhnVersionInfo
.
.
.
language plpgsql;
commit;
?column?
susemanager-schema-3.1.15-to-susemanager-schema-3.1.16/100-lookup_package_capability.sql.postgresql
(1 row)
psql::46: ERROR: syntax error at or near “on”
LINE 27: on conflict do nothing;
^
OK whats the issue
Whats the next step? To get past this and finish the schema upgrade?