none
FileUploadMiscError issue RRS feed

  • Question

  • UPDATE:  see https://github.com/Azure/Batch/issues/68

    I am trying to persist output data when a task is completed. The way I do it is use the 'output_files' parameter of the TaskAddParameter function. But I keep running into FileUploadMiscError. Specifically, below are my fileuploaderr.txt and fileuploadout.txt.

    Why is the URI not valid? It seems that the file_pattern="../stdout.txt",  is a valid one. Could it be the naming problem of the destination 'container_url' or 'path' ?

    {"code": "InternalError", "user_error": false, "pattern": "../stdout.txt", "file": "/mnt/batch/tasks/workitems/testjob/job-1/Task2/stdout.txt", "destination": "https://alexusingazure.blob.core.windows.net/testoutput?restype=container&sr=c&sig=quFEalQnU88BYdoNlPuXl3tQokc1HqaISmgmniiO1Gg%3D&sp=w&sv=2018-03-28&se=2019-08-30T01%3A15%3A21Z"}

    2019-07-19 09:19:12,740 System default encoding=utf-8, filesystem encoding=utf-8, default locale encoding=UTF-8
    2019-07-19 09:19:12,742 Resolved mappings: [[Resolved mapping - base_path: /mnt/batch/tasks/workitems/testjob/job-1/Task2, full_pattern: /mnt/batch/tasks/workitems/testjob/job-1/Task2/stdout.txt, original_pattern: ../stdout.txt,  destination: 1_11_0.txt]]
    2019-07-19 09:19:12,747 Uploading all files matching pattern /mnt/batch/tasks/workitems/testjob/job-1/Task2/stdout.txt
    Client-Request-ID=45b46a00-aa06-11e9-85f0-000d3a3206f7 Retry policy did not allow for a retry: Server-Timestamp=Fri, 19 Jul 2019 09:19:12 GMT, Server-Request-ID=7d8a8d00-101e-001f-5013-3e3f18000000, HTTP status code=400, Exception=The requested URI does not represent any resource on the server.<?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidUri</Code><Message>The requested URI does not represent any resource on the server.RequestId:7d8a8d00-101e-001f-5013-3e3f18000000Time:2019-07-19T09:19:12.7858957Z</Message></Error>.
    Traceback (most recent call last):
      File "/source/src/batchfileuploader.py", line 106, in main
      File "/source/src/agent/fileupload/uploader.py", line 483, in run
      File "/source/src/agent/fileupload/uploader.py", line 404, in push_file_list_to_storage
    common.exceptions.AggregateException: file: /mnt/batch/tasks/workitems/testjob/job-1/Task2/stdout.txt from pattern: ../stdout.txt to destination: https://alexusingazure.blob.core.windows.net/testoutput?restype=container&sr=c&sig=quFEalQnU88BYdoNlPuXl3tQokc1HqaISmgmniiO1Gg%3D&sp=w&sv=2018-03-28&se=2019-08-30T01%3A15%3A21Z hit error: Traceback (most recent call last):
      File "/source/src/common/util/fileupload.py", line 92, in upload_multiple_files
      File "/source/out/buildenvs/ubuntu-18.04-venv/lib/python3.6/site-packages/azure/storage/blob/blockblobservice.py", line 463, in create_blob_from_path
      File "/source/out/buildenvs/ubuntu-18.04-venv/lib/python3.6/site-packages/azure/storage/blob/blockblobservice.py", line 582, in create_blob_from_stream
      File "/source/out/buildenvs/ubuntu-18.04-venv/lib/python3.6/site-packages/azure/storage/blob/blockblobservice.py", line 1101, in _put_blob
      File "/source/out/buildenvs/ubuntu-18.04-venv/lib/python3.6/site-packages/azure/storage/common/storageclient.py", line 430, in _perform_request
      File "/source/out/buildenvs/ubuntu-18.04-venv/lib/python3.6/site-packages/azure/storage/common/storageclient.py", line 358, in _perform_request
      File "/source/out/buildenvs/ubuntu-18.04-venv/lib/python3.6/site-packages/azure/storage/common/storageclient.py", line 344, in _perform_request
      File "/source/out/buildenvs/ubuntu-18.04-venv/lib/python3.6/site-packages/azure/storage/common/_error.py", line 115, in _http_error_handler
    azure.common.AzureHttpError: The requested URI does not represent any resource on the server.
    <?xml version="1.0" encoding="utf-8"?>
    <Error><Code>InvalidUri</Code><Message>The requested URI does not represent any resource on the server.
    RequestId:7d8a8d00-101e-001f-5013-3e3f18000000
    Time:2019-07-19T09:19:12.7858957Z</Message></Error>



    Friday, July 19, 2019 4:27 PM

Answers