Loading

Access Denied and command not found errors when upgrading the Runtime Fabric appliance version with rtfctl

Publiceringsdatum: Oct 6, 2024
Lösning

SYMPTOM

You are getting "Access Denied" and "bash: command not found" error messages when trying to upgrade the Runtime Fabric Appliance version using rtfctl.
 
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>Header=ABC123</RequestId>
<HostId>Header=ABC123=</HostId>
</Error>

# ./rtfctl appliance upgrade --url https://runtime-fabric.s3.amazonaws.com/installer/runtime-fabric-version.tar.gz?X-ABC123=ABC123%ABC123%ABC123%ABC123%ABC123%3D&X-ABC123=ABC123&ABC123=ABC123&ABC123=host&ABC123=ABC123&ABC123=ABC1231%2Fs3%ABC123&ABC123=5ABC123
[1] 32106
[2] 32107
[3] 32108
[4] 32109
[5] 32110
[6] 32111
-bash: Header=ABC123: command not found
-bash: Header=ABC123: command not found
-bash: Header=ABC123: command not found
-bash: Header=ABC123: command not found
-bash: Header=ABC123: command not found
-bash: Header=ABC123: command not found
[2] Exit 127 Header=ABC123
[3] Exit 127 Header=ABC123
[4] Exit 127 Header=ABC123
[5]- Exit 127 Header=ABC123
[6]+ Exit 127 Header=ABC123
# ***********************************************************
** Oh no! Your upgrade stopped due to an error. **
***********************************************************
1. Visit the troubleshooting guide for help:
https://docs.mulesoft.com/runtime-fabric/latest/upgrade-cluster#troubleshooting-upgrade-errors

2. Resume installation by running:
cd /opt/anypoint/runtimefabric/installer
sudo ./gravity upgrade --resume
 

CAUSE

The "&" characters in the download URL can be interpreted by the command line as a separate command, this is why the "bash: command not found" errors will show up in the command output. 

SOLUTION

Run the upgrade command again but this time put the whole URL between quotes.
Example command:

# ./rtfctl appliance upgrade --url "REDACTED_LONG_URL"
 

Note: Before running the upgrade command again, please obtain the new upgrade command URL from Runtime Manager.
The upgrade URLs are time-sensitive and expire after a certain period.

To get the URL you need to user your web browser, navigate to Runtime Manager and select the Runtime Fabrics tab to view a list of Runtime Fabric instances.
-Select the Runtime Fabric instance you want to upgrade.
-Next to the appliance version, click Upgrade Available.
-Select the Copy Link icon next to Installer package to copy the code snippet, then paste it on a text editor and change from:
rtfctl appliance upgrade --url REDACTED_LONG_URL
To:
rtfctl appliance upgrade --url "REDACTED_LONG_URL"
Knowledge-artikelnummer

001121079

 
Laddar
Salesforce Help | Article