forked from docs/doc-exports
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: weihongmin1 <weihongmin1@huawei.com> Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
106 lines
10 KiB
HTML
106 lines
10 KiB
HTML
<a name="obs_11_0058"></a><a name="obs_11_0058"></a>
|
|
|
|
<h1 class="topictitle1">Return Codes</h1>
|
|
<div id="body1554982511704"><p id="obs_11_0058__p169772010175615">If obsutil is invoked by processes, the command output cannot be viewed in real time. obsutil generates different return codes based on different execution results. <a href="#obs_11_0058__table936012247195">Table 1</a> describes the return codes. You can use either the following methods to obtain the return code of the latest execution result and then analyze and rectify the fault based on it:</p>
|
|
<ul id="obs_11_0058__ul19665189168"><li id="obs_11_0058__li947510322463">In the macOS or Linux OS, run the following command to obtain the return code of the latest execution result:<pre class="screen" id="obs_11_0058__screen1867183413014">echo $?</pre>
|
|
</li><li id="obs_11_0058__li74741440134613">In the Windows OS, run the following command to obtain the return code of the latest execution result:<pre class="screen" id="obs_11_0058__screen147271755153020">echo %errorlevel%</pre>
|
|
</li></ul>
|
|
|
|
<div class="tablenoborder"><a name="obs_11_0058__table936012247195"></a><a name="table936012247195"></a><table cellpadding="4" cellspacing="0" summary="" id="obs_11_0058__table936012247195" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Return codes</caption><thead align="left"><tr id="obs_11_0058__row13361112412193"><th align="left" class="cellrowborder" valign="top" width="18.09180918091809%" id="mcps1.3.3.2.4.1.1"><p id="obs_11_0058__p10361724141920">Return Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="26.82268226822682%" id="mcps1.3.3.2.4.1.2"><p id="obs_11_0058__p1836110246197">Meaning</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.08550855085508%" id="mcps1.3.3.2.4.1.3"><p id="obs_11_0058__p5361172414190">Example Scenario</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="obs_11_0058__row15361324111912"><td class="cellrowborder" valign="top" width="18.09180918091809%" headers="mcps1.3.3.2.4.1.1 "><p id="obs_11_0058__p136132419192">0</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.82268226822682%" headers="mcps1.3.3.2.4.1.2 "><p id="obs_11_0058__p1736152401911">Execution succeeded.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.08550855085508%" headers="mcps1.3.3.2.4.1.3 "><p id="obs_11_0058__p4361182421920">An object is successfully uploaded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0058__row83611124201915"><td class="cellrowborder" valign="top" width="18.09180918091809%" headers="mcps1.3.3.2.4.1.1 "><p id="obs_11_0058__p936172471916">1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.82268226822682%" headers="mcps1.3.3.2.4.1.2 "><p id="obs_11_0058__p336172431919">The file does not exist.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.08550855085508%" headers="mcps1.3.3.2.4.1.3 "><p id="obs_11_0058__p7361172415199">The entered file path does not exist for uploading a file by running the <strong id="obs_11_0058__b7139122016518">cp</strong> command.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0058__row425016264216"><td class="cellrowborder" valign="top" width="18.09180918091809%" headers="mcps1.3.3.2.4.1.1 "><p id="obs_11_0058__p825111269214">2</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.82268226822682%" headers="mcps1.3.3.2.4.1.2 "><p id="obs_11_0058__p7251626172119">The task does not exist.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.08550855085508%" headers="mcps1.3.3.2.4.1.3 "><p id="obs_11_0058__p13251726132113">The specified task ID does not exist for resuming a failed upload task by running the <strong id="obs_11_0058__b126989471670">cp</strong> command.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0058__row15969153413237"><td class="cellrowborder" valign="top" width="18.09180918091809%" headers="mcps1.3.3.2.4.1.1 "><p id="obs_11_0058__p79691234122314">3</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.82268226822682%" headers="mcps1.3.3.2.4.1.2 "><p id="obs_11_0058__p6969734182317">Parameter error</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.08550855085508%" headers="mcps1.3.3.2.4.1.3 "><ul id="obs_11_0058__ul169195316318"><li id="obs_11_0058__li169191031738">At least one entered additional parameters is not supported for uploading a file by running the <strong id="obs_11_0058__b1327518712111">cp</strong> command.</li><li id="obs_11_0058__li5441617311">The entered value of <strong id="obs_11_0058__b17316740171412">cloud_url</strong> is invalid for downloading a file by running the <strong id="obs_11_0058__b36799509142">cp</strong> command.<div class="note" id="obs_11_0058__note2064653215122"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="obs_11_0058__p10647432201214"><strong id="obs_11_0058__b1256924015459">cloud_url</strong> indicates the bucket path or object path. Set <strong id="obs_11_0058__b3717138105313">cloud_url</strong> in the format of <strong id="obs_11_0058__b1680232913532">obs://</strong><em id="obs_11_0058__i1071973318532">bucketname</em> when downloading all objects in a bucket. Set <strong id="obs_11_0058__b121504409546">cloud_url</strong> in the format of <strong id="obs_11_0058__b0725857165419">obs://</strong><em id="obs_11_0058__i103736175510">bucketname</em><strong id="obs_11_0058__b1049918355516">/</strong><em id="obs_11_0058__i638387195516">key</em> when downloading a specified object in a bucket.</p>
|
|
</div></div>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0058__row10934256225"><td class="cellrowborder" valign="top" width="18.09180918091809%" headers="mcps1.3.3.2.4.1.1 "><p id="obs_11_0058__p149341562024">4</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.82268226822682%" headers="mcps1.3.3.2.4.1.2 "><p id="obs_11_0058__p69344567215">Bucket status error</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.08550855085508%" headers="mcps1.3.3.2.4.1.3 "><p id="obs_11_0058__p1693495612219">The specified destination bucket does not exist for uploading a folder by running the <strong id="obs_11_0058__b155231141161512">cp</strong> command.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0058__row1467515181148"><td class="cellrowborder" valign="top" width="18.09180918091809%" headers="mcps1.3.3.2.4.1.1 "><p id="obs_11_0058__p15675718548">5</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.82268226822682%" headers="mcps1.3.3.2.4.1.2 "><p id="obs_11_0058__p17675818349">Initialization error during command execution</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.08550855085508%" headers="mcps1.3.3.2.4.1.3 "><ul id="obs_11_0058__ul145291824329"><li id="obs_11_0058__li8618025323">An error occurs when loading the configuration file.</li><li id="obs_11_0058__li1452917243210">Parameter <strong id="obs_11_0058__b10363845165813">-o</strong> is configured when running the <strong id="obs_11_0058__b197467480589">cp</strong> command to upload a folder, but the folder specified by <strong id="obs_11_0058__b03031601907">-o</strong> for saving the result files fails to be created.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0058__row911713115716"><td class="cellrowborder" valign="top" width="18.09180918091809%" headers="mcps1.3.3.2.4.1.1 "><p id="obs_11_0058__p811741120713">6</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.82268226822682%" headers="mcps1.3.3.2.4.1.2 "><p id="obs_11_0058__p91177111371">Execution error.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.08550855085508%" headers="mcps1.3.3.2.4.1.3 "><p id="obs_11_0058__p141171711975">When you run the <strong id="obs_11_0058__b1591032102518">ls</strong> command to query the bucket list, the query fails because the network times out.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0058__row1269312411894"><td class="cellrowborder" valign="top" width="18.09180918091809%" headers="mcps1.3.3.2.4.1.1 "><p id="obs_11_0058__p1269354119919">7</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.82268226822682%" headers="mcps1.3.3.2.4.1.2 "><p id="obs_11_0058__p96937416915">The operation is not supported.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.08550855085508%" headers="mcps1.3.3.2.4.1.3 "><p id="obs_11_0058__p1369318417915">Running the <strong id="obs_11_0058__b724204311317">chattri</strong> command to change object properties.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0058__row449544513101"><td class="cellrowborder" valign="top" width="18.09180918091809%" headers="mcps1.3.3.2.4.1.1 "><p id="obs_11_0058__p749564519103">8</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.82268226822682%" headers="mcps1.3.3.2.4.1.2 "><p id="obs_11_0058__p144951545171013">A batch task succeeded partially.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.08550855085508%" headers="mcps1.3.3.2.4.1.3 "><p id="obs_11_0058__p1549514515101">Some objects fail to be downloaded during a batch download by running the <strong id="obs_11_0058__b14368013182419">cp</strong> command.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0058__row1504936141118"><td class="cellrowborder" valign="top" width="18.09180918091809%" headers="mcps1.3.3.2.4.1.1 "><p id="obs_11_0058__p2050413621110">9</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.82268226822682%" headers="mcps1.3.3.2.4.1.2 "><p id="obs_11_0058__p8504143681116">Interruption error</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.08550855085508%" headers="mcps1.3.3.2.4.1.3 "><p id="obs_11_0058__p125041362119">Users press <strong id="obs_11_0058__b1442612715262">Ctrl</strong> + <strong id="obs_11_0058__b678713109267">C</strong> to interrupt the command execution.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_11_0058__row59351423116"><td class="cellrowborder" valign="top" width="18.09180918091809%" headers="mcps1.3.3.2.4.1.1 "><p id="obs_11_0058__p14936174241117">-1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.82268226822682%" headers="mcps1.3.3.2.4.1.2 "><p id="obs_11_0058__p9936942161114">Unknown error</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.08550855085508%" headers="mcps1.3.3.2.4.1.3 "><p id="obs_11_0058__p4936842161114">-</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_11_0054.html">Fault Locating</a></div>
|
|
</div>
|
|
</div>
|
|
|