Unable to resolve revisionId of null error while using Restricted Shell
search cancel

Unable to resolve revisionId of null error while using Restricted Shell

book

Article ID: 253738

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Customer gets below error on using restricted shell:

ssgconfig@gateway(host)>show
Error occurred while retrieving hosts configuration: Unable to resolve revisionId of null
ssgconfig@gateway(host)>route
ssgconfig@gateway(route)>show
Error occurred while retrieving static routes configuration: Unable to resolve revisionId of null
ssgconfig@gateway(route)>timeserver
ssgconfig@gateway(timeserver)>show
Unable to show Time Server Configuration: Unable to resolve revisionId of null.
ssgconfig@gateway(timeserver)>dns
ssgconfig@gateway(dns)>show
Error occurred while retrieving dns configuration: Unable to resolve revisionId of null

The file permissions look Ok

[root@gatewaygateway ~]# ll /etc/resolv.conf
-rw-r--r-- 1 root root 616 Apr 28 11:33 /etc/resolv.conf
[root@gateway ~]# ll /etc/hosts
-rw-r--r-- 1 root root 956 Oct 19 2021 /etc/hosts
[root@gateway ~]# ll /etc/ntp.conf
-rw-r--r-- 1 root root 727 Sep 30 2021 /etc/ntp.conf
[root@gateway ~]# ll /etc/sysconfig/network-scripts/route-ssg_eth0
-rw-r--r-- 1 root root 891 Nov 5 14:26 /etc/sysconfig/network-scripts/route-ssg_eth0

Environment

Release : 10.x

Resolution

1. Try to delete l7-config folder under opt/SecureSpan/platform and REBOOT GW machine. The folder will be rebuilt once the reboot is finished.

Make sure you have a snapshot/back up of the API GW and also have a back up of the l7config folder, in case something goes wrong.

OR

2. Please check if there is a discrepancy in the location of the com.l7tech configuration files plays a role in this problem.
The machine they are experiencing the problem is the only one where there is a l7-config directory in the path twice:

 

opt/SecureSpan/Platform

drwxr-xr-x 3 fndsrv fndsrv 4096 Apr 8 2022 bin
drwxr-xr-x 6 fndsrv fndsrv 4096 Oct 26 08:33 data
drwxr-xr-x 2 fndsrv fndsrv 4096 Apr 8 2022 deploy
drwxr-xr-x 2 fndsrv fndsrv 4096 Apr 8 2022 etc
drwxr-xr-x 2 fndsrv fndsrv 4096 Aug 16 2021 instances
drwxr--r-- 5 fndsrv fndsrv 4096 Oct 26 08:40 l7-config
drwxr-xr-x 5 fndsrv fndsrv 4096 Apr 8 2022 lib
-rwxr-xr-x 1 fndsrv fndsrv 27754 Mar 2 2022 LICENSE
-rw-r--r-- 1 fndsrv fndsrv 0 Aug 16 2021 lock
-rwxr-xr-x 1 fndsrv fndsrv 1919 Mar 2 2022 NOTICE
drwxr-xr-x 2 fndsrv fndsrv 4096 Mar 2 2022 scripts
drwxr-xr-x 4 fndsrv fndsrv 4096 Apr 8 2022 system
drwxr-xr-x 5 fndsrv fndsrv 4096 Mar 2 2022 templates

/opt/SecureSpan/Platform/l7-config

drwxr--r-- 3 fndsrv fndsrv 4096 Apr 8 2022 data
drwxr--r-- 4 fndsrv fndsrv 4096 Aug 16 2021 l7-config

/opt/SecureSpan/Platform/l7-config/l7-config

-rwxr--r-- 1 fndsrv fndsrv 78 Jun 8 2021 com.l7tech.platform.authentication.dto.AuthenticationConfiguration
-rwxr--r-- 1 fndsrv fndsrv 156 Sep 30 2021 com.l7tech.platform.network.dto.Dns
-rwxr--r-- 1 fndsrv fndsrv 1058 Oct 19 2021 com.l7tech.platform.network.dto.Hosts
-rwxr--r-- 1 fndsrv fndsrv 263 Sep 30 2021 com.l7tech.platform.network.dto.Network
-rwxr--r-- 1 fndsrv fndsrv 1087 Sep 30 2021 com.l7tech.platform.network.dto.NetworkInterfaces
-rwxr--r-- 1 fndsrv fndsrv 818 Nov 5 2021 com.l7tech.platform.network.dto.StaticRoutes
-rwxr--r-- 1 fndsrv fndsrv 20 Jun 8 2021 com.l7tech.platform.system.dto.BannerMessage
-rwxr--r-- 1 fndsrv fndsrv 48 Jun 8 2021 com.l7tech.platform.system.dto.Keyboard
-rwxr--r-- 1 fndsrv fndsrv 91 Jun 8 2021 com.l7tech.platform.system.dto.Rsyslog
-rwxr--r-- 1 fndsrv fndsrv 56 Sep 30 2021 com.l7tech.platform.system.dto.TimeServers
-rwxr--r-- 1 fndsrv fndsrv 37 Sep 30 2021 com.l7tech.platform.system.dto.Timezone
drwxr--r-- 3 fndsrv fndsrv 4096 Jun 7 2021 data

In this case, please try renaming the parent l7-config folder first, move the child folder under /Platform and try to use the restricted shell now