Problem


For one or more vCenter managed systems, uploads to vCommander media libraries fail even though they are properly configured and the users have the appropriate permissions in their vCommander or Service Portal roles.


In addition to a failure message in the user interface, the vcommander.log file will contain a message similar to the following:


2017-07-11 14:20:27,118 [pool-5-thread-49] ERROR - Error uploading f35f312f-6e16-42d8-81cb-10a6ffbb8788 to https://your.vcommander.server:443/folder/%2ABC+Media+Library%2FBolas+Cloud+Administration%2Fgparted-live-0.12.1-1.iso.tmp?dcPath=pcc-198-27-72-180_datacenter2428&dsName=bol-002467.
java.net.ProtocolException: Server rejected operation
    at sun.net.www.protocol.http.HttpURLConnection.expect100Continue(HttpURLConnection.java:1045)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1105)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)


Solution


vCenter role priviliges provided to the account used to connect the managed system are not sufficient to complete the task. The required privilege is Datastore > Low level file operations  as covered in the VMware Docs here.