Portal.sh script struck in DB schema update
search cancel

Portal.sh script struck in DB schema update

book

Article ID: 372956

calendar_today

Updated On:

Products

CA API Developer Portal

Issue/Introduction

Portal not starting and the portal.sh script struck in DB schema update is needed....

Extract from docker log.

Jul 20 10:27:46 example.com dockerd[3135626]: time="2024-07-20T10:27:46.225582148Z" level=error msg="Failed creating ingress network: container ingress-sbox: endpoint create on GW Network failed: failed to create endpoint gateway_ingress-sbox on network docker_gwbridge: network a5eaa108c886a2d9d862094ff1d28d169774bcc72fbdf94dbcc26f36884ddb66 does not exist"

Environment

API Portal 5.2.x

Cause

Docker database corruption under /var/lib/docker/network/files/ directory, filename: local-kv.db 

Resolution

1. Stop portal docker stack

# docker stack rm portal

2. Stop docker service.

# systemctl stop docker

3. Go to /var/lib/docker/network/files/ directory and rename local-kv.db to local-kv.db_bkp.

4. Reboot the portal server.

5. Run ./portal.sh script, to start portal docker stack.