Question & Answer
Question
Why is my Developer Portal upgrade failing with the following errors?
Updating from system version 7.x-5.0.8.1-20171030-1423 to system version 7.x-5.0.8.3-20180426-2319
Checking file perms ...
chmod: cannot access '/etc/csync2.key': No such file or directory
Re-enabling the crontab for the admin user ...
Fixpack removing stop_db breadcrumb
Error occurred in script 5.0.8.3-APIConnect-Portal-Ubuntu16-20180426-2319.bin at line: 1586.
Line exited with status: 1
See /var/log/devportal/command_line.log for more details.
NOTE: The "from" and "to" system versions in the messages above are not specific to these values and can be any generally available 5.0.x.x versions
Cause
These errors are indicative of applying a fixpack to a node which has not yet been setup. To verify that this is the issue being encountered, the output of the `status` command should show something like the following:
Operating System: Ubuntu 16.04.4 LTS
System version: 7.x-5.0.8.1-20171030-1423
Distribution version: 7.x-5.0.8.1-20171030-1404
Free disk space: 304G
RAM Free/Total: 60351 MB / 64430 MB (93% free)
Set Hostname: OK
DNS Server: Reachable (9.9.9.9)
This node has not yet been setup.
Please execute either
set_apim_host
to setup a standalone machine or the first machine in a cluster.
or
set_hostname myhostname
set_cluster_members existing_machine_ip/host
to add a machine to an existing cluster.
Answer
The node needs to be setup as standalone, setup as the first machine in the cluster, or added to an existing cluster. To correct the issue:
- Do one of the following:
- Setup as standalone machine or the first machine in a cluster by executing the following command: `set_apim_host`
- Add the machine to an existing cluster by executing the following commands:
- `set_hostname <valid_hostname>`
- `set_cluster_members <existing_machine_ip_or_hostname>`
- Re-install fixpack
IMPORTANT NOTE: If attempting to migrate from Debian to Ubuntu, see Migrating your Developer Portal OVAs from Debian V7 to Ubuntu V16.04 and follow instructions step-by-step including using the specific versions documented in the article.
- Debian V7 upgrade file: 5.0.8.3-APIConnect-Portal-Debian7-20180508-1349.bin
- Ubuntu V16.04 OVA file: 5.0.8.3-APIConnect-Portal-Ubuntu16-20180508-1349.ova
Was this topic helpful?
Document Information
Modified date:
27 November 2018
UID
ibm10742517