search cancel

Error starting Portal

book

Article ID: 240915

calendar_today

Updated On:

Products

CA API Developer Portal

Issue/Introduction

We are receiving the following error when we try to start the portal

 

Cause

Needed to reset the portal, Postgres DB in error

Also after resetting getting error accessing portal

httpStatusCode 404

errorCode 505

devErrorMessage "tenant id +tenant502 not found"

userErrorMessage "tenant id +tenant502 not found."

locale "en"

userErrorKey "error.resource.not.found"

Environment

Release : 5.0

Component :

Resolution

Reset portal

https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-api-management/api-developer-portal/5-0/install-configure-and-upgrade/install-portal-on-docker-swarm/troubleshoot-the-installation.html

Restart Deployment

The API Portal installation issues are resolved automatically when the Docker Daemon is running. If you must start the deployment, follow these steps:

Remove the existing deployment (services only) using the following command:

# docker stack rm portal

Note: Removing the existing deployment does not remove the persistent data. 

To remove persistent data, use:

# docker volume rm $(docker volume ls -q)

Run the deployment.

If you encounter any errors, repeat step 1.

Review /etc/hosts - for proper names for the portal

Wait for all containers to be up 1/1 before creating container

# watch docker service ls 

Create the tenant 

apim-portal-4.4-final/util/create-tenant.sh -D -d

Fill in values when asked example: 

Tenant ID: tenant50

Portal name: TSSG-4.4

Admin email: [email protected]r<hostnme>

'No Reply' email: [email protected]<hostname>

Terms of use (EULA): Eula

You must access the portal over SSL using the tenant name (DNS resolvable) if not the following error related to tenant Not Found occurs

https://<no tenant-name> /admin/homeRedirect

httpStatusCode 404

errorCode 505

devErrorMessage "tenant id +tenant502 not found"

userErrorMessage "tenant id +tenant502 not found."

locale "en"

userErrorKey "error.resource.not.found"