Getting an Error While Upgrading from SLES 12 SP1 to SP2

I am getting the Permission denined error while upgrading from 12 SP1 to SP2

cat /etc/os-release

NAME=“SLES”
VERSION=“12-SP1”
VERSION_ID=“12.1”
PRETTY_NAME=“SUSE Linux Enterprise Server 12 SP1”
ID=“sles”
ANSI_COLOR=“0;32”
CPE_NAME=“cpe:/o:suse:sles:12:sp1”

zypper refresh

Repository ‘SLE-Module-Adv-Systems-Management12-Pool’ is up to date.
Repository ‘SLE-Module-Adv-Systems-Management12-Updates’ is up to date.
Repository ‘SLE-Module-Containers12-Pool’ is up to date.
Repository ‘SLE-Module-Containers12-Updates’ is up to date.
Repository ‘SLE-Module-Legacy12-Pool’ is up to date.
Repository ‘SLE-Module-Legacy12-Updates’ is up to date.
Repository ‘SLE-Module-Public-Cloud12-Pool’ is up to date.
Repository ‘SLE-Module-Public-Cloud12-Updates’ is up to date.
Repository ‘SLE-Module-Adv-Systems-Management12-Pool’ is up to date.
Repository ‘SLE-Module-Adv-Systems-Management12-Updates’ is up to date.
Repository ‘SLE-Module-Containers12-Pool’ is up to date.
Repository ‘SLE-Module-Containers12-Updates’ is up to date.
Repository ‘SLE-Module-Legacy12-Pool’ is up to date.
Repository ‘SLE-Module-Legacy12-Updates’ is up to date.
Repository ‘SLE-Module-Public-Cloud12-Pool’ is up to date.
Repository ‘SLE-Module-Public-Cloud12-Updates’ is up to date.
Repository ‘SLE-Module-Toolchain12-Pool’ is up to date.
Repository ‘SLE-Module-Toolchain12-Updates’ is up to date.
Repository ‘SLE-Module-Web-Scripting12-Pool’ is up to date.
Repository ‘SLE-Module-Web-Scripting12-Updates’ is up to date.
Repository ‘SLE-SDK12-SP1-Pool’ is up to date.
Repository ‘SLE-SDK12-SP1-Updates’ is up to date.
Repository ‘SLES12-SP1-Pool’ is up to date.
Repository ‘SLES12-SP1-Updates’ is up to date.
Repository ‘SLES12-SP1-Pool’ is up to date.
Repository ‘SLES12-SP1-Updates’ is up to date.
Repository ‘SLE-SDK12-SP1-Pool’ is up to date.
Repository ‘SLE-SDK12-SP1-Updates’ is up to date.
Repository ‘SLE-Module-Toolchain12-Pool’ is up to date.
Repository ‘SLE-Module-Toolchain12-Updates’ is up to date.
Repository ‘SLE-Module-Web-Scripting12-Pool’ is up to date.
Repository ‘SLE-Module-Web-Scripting12-Updates’ is up to date.
Repository ‘nVidia-Driver-SLE12-SP1’ is up to date.
All repositories have been refreshed.

zypper patch

Refreshing service ‘Advanced_Systems_Management_Module_x86_64’.
Refreshing service ‘Containers_Module_x86_64’.
Refreshing service ‘Legacy_Module_x86_64’.
Refreshing service ‘Public_Cloud_Module_x86_64’.
Refreshing service ‘SMT-http_smt-ec2_susecloud_net’.
Refreshing service ‘SUSE_Linux_Enterprise_Server_x86_64’.
Refreshing service ‘SUSE_Linux_Enterprise_Software_Development_Kit_x86_64’.
Refreshing service ‘Toolchain_Module_x86_64’.
Refreshing service ‘Web_and_Scripting_Module_x86_64’.
Loading repository data…
Reading installed packages…
Resolving package dependencies…

Nothing to do.

#zypper install zypper-migration-plugin
Refreshing service ‘Advanced_Systems_Management_Module_x86_64’.
Refreshing service ‘Containers_Module_x86_64’.
Refreshing service ‘Legacy_Module_x86_64’.
Refreshing service ‘Public_Cloud_Module_x86_64’.
Refreshing service ‘SMT-http_smt-ec2_susecloud_net’.
Refreshing service ‘SUSE_Linux_Enterprise_Server_x86_64’.
Refreshing service ‘SUSE_Linux_Enterprise_Software_Development_Kit_x86_64’.
Refreshing service ‘Toolchain_Module_x86_64’.
Refreshing service ‘Web_and_Scripting_Module_x86_64’.
Loading repository data…
Reading installed packages…
‘zypper-migration-plugin’ is already installed.
No update candidate for ‘zypper-migration-plugin-0.10-9.1.noarch’. The highest available version is already installed.
Resolving package dependencies…

Nothing to do.

zypper migration

Executing ‘zypper refresh’

Repository ‘SLE-Module-Adv-Systems-Management12-Pool’ is up to date.
Repository ‘SLE-Module-Adv-Systems-Management12-Updates’ is up to date.
Repository ‘SLE-Module-Containers12-Pool’ is up to date.
Repository ‘SLE-Module-Containers12-Updates’ is up to date.
Repository ‘SLE-Module-Legacy12-Pool’ is up to date.
Repository ‘SLE-Module-Legacy12-Updates’ is up to date.
Repository ‘SLE-Module-Public-Cloud12-Pool’ is up to date.
Repository ‘SLE-Module-Public-Cloud12-Updates’ is up to date.
Repository ‘SLE-Module-Adv-Systems-Management12-Pool’ is up to date.
Repository ‘SLE-Module-Adv-Systems-Management12-Updates’ is up to date.
Repository ‘SLE-Module-Containers12-Pool’ is up to date.
Repository ‘SLE-Module-Containers12-Updates’ is up to date.
Repository ‘SLE-Module-Legacy12-Pool’ is up to date.
Repository ‘SLE-Module-Legacy12-Updates’ is up to date.
Repository ‘SLE-Module-Public-Cloud12-Pool’ is up to date.
Repository ‘SLE-Module-Public-Cloud12-Updates’ is up to date.
Repository ‘SLE-Module-Toolchain12-Pool’ is up to date.
Repository ‘SLE-Module-Toolchain12-Updates’ is up to date.
Repository ‘SLE-Module-Web-Scripting12-Pool’ is up to date.
Repository ‘SLE-Module-Web-Scripting12-Updates’ is up to date.
Repository ‘SLE-SDK12-SP1-Pool’ is up to date.
Repository ‘SLE-SDK12-SP1-Updates’ is up to date.
Repository ‘SLES12-SP1-Pool’ is up to date.
Repository ‘SLES12-SP1-Updates’ is up to date.
Repository ‘SLES12-SP1-Pool’ is up to date.
Repository ‘SLES12-SP1-Updates’ is up to date.
Repository ‘SLE-SDK12-SP1-Pool’ is up to date.
Repository ‘SLE-SDK12-SP1-Updates’ is up to date.
Repository ‘SLE-Module-Toolchain12-Pool’ is up to date.
Repository ‘SLE-Module-Toolchain12-Updates’ is up to date.
Repository ‘SLE-Module-Web-Scripting12-Pool’ is up to date.
Repository ‘SLE-Module-Web-Scripting12-Updates’ is up to date.
Repository ‘nVidia-Driver-SLE12-SP1’ is up to date.
All repositories have been refreshed.

Executing ‘zypper --no-refresh patch-check --updatestack-only’

Loading repository data…
Reading installed packages…
0 patches needed (0 security patches)

Available migrations:

1 | SUSE Linux Enterprise Server 12 SP5 x86_64
    SUSE Linux Enterprise Software Development Kit 12 SP5 x86_64
    Advanced Systems Management Module 12 x86_64 (already installed)
    Containers Module 12 x86_64 (already installed)
    Legacy Module 12 x86_64 (already installed)
    Public Cloud Module 12 x86_64 (already installed)
    Toolchain Module 12 x86_64 (already installed)
    Web and Scripting Module 12 x86_64 (already installed)

2 | SUSE Linux Enterprise Server 12 SP4 x86_64
    SUSE Linux Enterprise Software Development Kit 12 SP4 x86_64
    Advanced Systems Management Module 12 x86_64 (already installed)
    Containers Module 12 x86_64 (already installed)
    Legacy Module 12 x86_64 (already installed)
    Public Cloud Module 12 x86_64 (already installed)
    Toolchain Module 12 x86_64 (already installed)
    Web and Scripting Module 12 x86_64 (already installed)

3 | SUSE Linux Enterprise Server 12 SP3 x86_64
    SUSE Linux Enterprise Software Development Kit 12 SP3 x86_64
    Advanced Systems Management Module 12 x86_64 (already installed)
    Containers Module 12 x86_64 (already installed)
    Legacy Module 12 x86_64 (already installed)
    Public Cloud Module 12 x86_64 (already installed)
    Toolchain Module 12 x86_64 (already installed)
    Web and Scripting Module 12 x86_64 (already installed)

4 | SUSE Linux Enterprise Server 12 SP2 x86_64
    SUSE Linux Enterprise Software Development Kit 12 SP2 x86_64
    Advanced Systems Management Module 12 x86_64 (already installed)
    Containers Module 12 x86_64 (already installed)
    Legacy Module 12 x86_64 (already installed)
    Public Cloud Module 12 x86_64 (already installed)
    Toolchain Module 12 x86_64 (already installed)
    Web and Scripting Module 12 x86_64 (already installed)

Executing ‘snapper create --type pre --cleanup-algorithm=number --print-number --userdata important=yes --description ‘before online migration’’

sh: snapper: command not found
Upgrading product SUSE Linux Enterprise Server 12 SP2 x86_64.
Found obsolete repository SLES12-SP1-Pool
Disable obsolete repository SLES12-SP1-Pool [y/n] (y): y
… disabling.
Upgrading product SUSE Linux Enterprise Software Development Kit 12 SP2 x86_64.
Found obsolete repository SLE-SDK12-SP1-Pool
Disable obsolete repository SLE-SDK12-SP1-Pool [y/n] (y): y
… disabling.
Upgrading product Advanced Systems Management Module 12 x86_64.
Upgrading product Containers Module 12 x86_64.
Upgrading product Legacy Module 12 x86_64.
Upgrading product Public Cloud Module 12 x86_64.
Upgrading product Toolchain Module 12 x86_64.
Upgrading product Web and Scripting Module 12 x86_64.

Executing ‘zypper --releasever 12.2 ref -f’

Warning: Enforced setting: $releasever=12.2
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Adv-Systems-Management12-Pool’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Adv-Systems-Management12-Pool’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Adv-Systems-Management12-Updates’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Adv-Systems-Management12-Updates’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Containers12-Pool’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Containers12-Pool’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Containers12-Updates’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Containers12-Updates’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Legacy12-Pool’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Legacy12-Pool’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Legacy12-Updates’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Legacy12-Updates’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Public-Cloud12-Pool’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Public-Cloud12-Pool’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Public-Cloud12-Updates’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Public-Cloud12-Updates’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Adv-Systems-Management12-Pool’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Adv-Systems-Management12-Pool’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Adv-Systems-Management12-Updates’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Adv-Systems-Management12-Updates’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Containers12-Pool’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Containers12-Pool’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Containers12-Updates’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Containers12-Updates’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Legacy12-Pool’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Legacy12-Pool’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Legacy12-Updates’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Legacy12-Updates’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Public-Cloud12-Pool’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Public-Cloud12-Pool’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Public-Cloud12-Updates’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Public-Cloud12-Updates’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Toolchain12-Pool’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Toolchain12-Pool’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Toolchain12-Updates’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Toolchain12-Updates’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Web-Scripting12-Pool’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Web-Scripting12-Pool’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Web-Scripting12-Updates’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Web-Scripting12-Updates’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-SDK12-SP1-Updates’ metadata ---------------------------------------------------------------------------------------------------[\]
Permission to access ‘https://smt-ec2.susecloud.net/repo/SUSE/Updates/SLE-SDK/12-SP1/x86_64/update/repodata/repomd.xml?credentials=SMT-http_smt-ec2_susecloud_net’ denied.

Abort, retry, ignore? [a/r/i/? shows all options] (a):
Abort, retry, ignore? [a/r/i/? shows all options] (a):
Retrieving repository ‘SLE-SDK12-SP1-Updates’ metadata …[error]
Repository ‘SLE-SDK12-SP1-Updates’ is invalid.
[SMT-http_smt-ec2_susecloud_net:SLE-SDK12-SP1-Updates|https://smt-ec2.susecloud.net/repo/SUSE/Updates/SLE-SDK/12-SP1/x86_64/update/?credentials=SMT-http_smt-ec2_susecloud_net] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘SLE-SDK12-SP1-Updates’ because of the above error.
Forcing raw metadata refresh
Retrieving repository ‘SLES12-SP1-Updates’ metadata ------------------------------------------------------------------------------------------------------[|]
Permission to access ‘https://smt-ec2.susecloud.net/repo/SUSE/Updates/SLE-SERVER/12-SP1/x86_64/update/repodata/repomd.xml?credentials=SMT-http_smt-ec2_susecloud_net’ denied.

Abort, retry, ignore? [a/r/i/? shows all options] (a):
Abort, retry, ignore? [a/r/i/? shows all options] (a):
Retrieving repository ‘SLES12-SP1-Updates’ metadata …[error]
Repository ‘SLES12-SP1-Updates’ is invalid.
[SMT-http_smt-ec2_susecloud_net:SLES12-SP1-Updates|https://smt-ec2.susecloud.net/repo/SUSE/Updates/SLE-SERVER/12-SP1/x86_64/update/?credentials=SMT-http_smt-ec2_susecloud_net] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘SLES12-SP1-Updates’ because of the above error.
Forcing raw metadata refresh
Retrieving repository ‘SLES12-SP2-Pool’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLES12-SP2-Pool’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLES12-SP2-Updates’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLES12-SP2-Updates’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-SDK12-SP2-Pool’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-SDK12-SP2-Pool’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-SDK12-SP2-Updates’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-SDK12-SP2-Updates’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Toolchain12-Pool’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Toolchain12-Pool’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Toolchain12-Updates’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Toolchain12-Updates’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Web-Scripting12-Pool’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Web-Scripting12-Pool’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘SLE-Module-Web-Scripting12-Updates’ metadata …[done]
Forcing building of repository cache
Building repository ‘SLE-Module-Web-Scripting12-Updates’ cache …[done]
Forcing raw metadata refresh
Retrieving repository ‘nVidia-Driver-SLE12-SP1’ metadata …[done]
Forcing building of repository cache
Building repository ‘nVidia-Driver-SLE12-SP1’ cache …[done]
Some of the repositories have not been refreshed because of an error.
Executing ‘zypper --releasever 12.2 ref -f’: RuntimeError: Refresh of repositories failed.

Migration failed.

Performing repository rollback…

Can anyone help me…!!!

Thanks in Advance

Hi and welcome to the Forum :slight_smile:
This is the error;

[SMT-http_smt-ec2_susecloud_net:SLES12-SP1-Updates|https://smt-ec2.susecloud.net/repo/S...susecloud_net] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.

On your SMT setup, do you have the SP2 version synced?