Trouble on API Portal 4.0.170601 Patch

book

Article ID: 8065

calendar_today

Updated On:

Products

CA API Developer Portal CA API Gateway

Issue/Introduction

CA API Developer Portal should be started after upgrading v4.0 with the 4.0.170601 Patch along with the provided upgrade instructions, but it may not be started with the following messages:

bash-4.2# systemctl start docker && systemctl start apim-portal
Job for apim-portal.service failed because the control process exited with error code. See "systemctl status apim-portal.service" and "journalctl -xe" for details.

You may find the following messages with "journalctl -u apim-portal |tail -20".

Aug 31 10:49:50 portal40.domain.local systemd[1]: Starting CA On-premise Portal...
Aug 31 10:49:50 portal40.domain.local start-portal[12112]: Sourced /etc/ca/apim-portal/portal-local.inc
Aug 31 10:49:50 portal40.domain.local start-portal[12112]: PORTAL_SMTP_USE_SSL has been deprecated. Defaulting to true.
Aug 31 10:49:50 portal40.domain.local start-portal[12112]: Traceback (most recent call last):
Aug 31 10:49:50 portal40.domain.local start-portal[12112]: File "/opt/ca/apim-portal/render-config", line 39, in <module>
Aug 31 10:49:50 portal40.domain.local start-portal[12112]: from dateutil import parser
Aug 31 10:49:50 portal40.domain.local start-portal[12112]: ImportError: No module named dateutil

Cause

The following three RPM packages and their depending packages are not installed on the API Portal host.

  • python-dateutil-1.5-7.el7.noarch.rpm
  • python-jinja2-2.7.2-2.el7.noarch.rpm
  • pyOpenSSL-0.13.1-3.el7.x86_64.rpm

Environment

CA API Developer Portal 4.0 is in the process of the upgrade to v4.0.170601.

Resolution

Please install the missing RPM packages with the following commands:

yum -y install python-dateutil
yum -y install python-jinja2
yum -y install pyOpenSSL.x86_64

Docker is supposed to be started already, so please start the API Portal only.

systemctl start apim-portal