Unable to import content pack into Aria Operations for Logs. Error : content package error upload failed.
search cancel

Unable to import content pack into Aria Operations for Logs. Error : content package error upload failed.

book

Article ID: 371839

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

  • When you try to import a content pack into Aria Operations for Logs you get the following error: "Error : content package error upload failed." and logs also do not give any information about the error message.

Cause

  • There is some sort of browser extension/security blocking the upload of the vlcp file. On the UI you see the following error: "Error : content package error upload failed."

Resolution

You can try any of the following three workarounds:

  • Remove all browser extensions and then try the install or try using a different browser.

  • You can also try using incognito mode.

  • If we can't make the browser work, there is an internal API that might help(ensure to take snapshots before proceeding):

1. Upload the vlcp file to /tmp on the Aria Operations for Logs primary node using SCP utility of choice.
2. Log in to the primary node as root via SSH.
3. Run the following command to obtain an API token - provide the local admin username and password when prompted:

    echo;read -p "Username: " u;p=$(systemd-ask-password);echo;sessionId=$(curl -sk -X POST -H "Content-Type:application/json" -H "Accept:application/json" --data '{"username":"'$u'","password":"'$p'","provider":"Local"}' https://localhost:9543/api/v2/sessions | sed "s/{.*\"sessionId\":\"\([^\"]*\).*}/\1/g");echo -e "$sessionId\n"

4.  Run the following command to upload the content pack - be sure to modify the filename in the --data parameter if necessary:

     curl -kvw '\n' -X POST -H "Content-Type:application/json" -H "Accept:application/json" -H "Authorization:Bearer $sessionId" --data @/tmp/<file name> https://localhost:9543/api/v2/content/contentpack

5. The result should be "> HTTP/1.1 200 OK" followed by an echo of the contents of the vlcp file. If so, the user should be able to log in to Aria Operations for Logs and see the content pack installed.

         Note: If you receive "< HTTP/1.1 409 Conflict" this indicates the content pack was already installed.