Aspera

 View Only
Expand all | Collapse all

How to properly move a file/folder within the same storage on AoC Transfer Server

  • 1.  How to properly move a file/folder within the same storage on AoC Transfer Server

    Posted Sat May 14, 2022 03:43 PM

    Hello, I need to move files from one folder to another within my S3 storage. I'm using Aspera on Cloud's transfer server, but am not using the AoC api, just the node api directly.

    As for authentication, my application uses access keys/secrets for authenticating transfers and this is working fine. In particular, each user is provided a sub-access key so they have access to only a specific path.

    I'm testing this in postman and this is my payload-

    POST - https://ats-aws-us-east-1.aspera.io/ops/transfers -

    { "direction": "send", "remote_host": "https://ats-aws-us-east-1.aspera.io", "token": "Basic {{base64 encoded token}}", "paths": [ { "source": "/source-file.txt", "destination": "/item1/source-file.txt" } ], "title": "a test transfer", "create_dir": true, "delete_source": false, "delete_before_transfer": false, "remove_after_transfer": false, "remove_empty_directories": false }

    The response is a 200 status and provides full information about the transfer.

    When I retrieve information about the transfer it holds with a status of "waiting" for a long time and then fails. It fails with error code 112 and "Target address not available."

    Has anyone successfully moved files using the AoCts with subaccess keys for authentication? If so, do you see any issue with my request?



    #AsperaonCloud
    #Support
    #SupportMigration


  • 2.  RE: How to properly move a file/folder within the same storage on AoC Transfer Server

    Posted Thu May 26, 2022 04:08 PM

    Dear customer,

    It looks you are trying to test a transfer by using the API endpoint, maybe something is missing in the body of the endpoint.

    body should be like this:

    { "direction": "send", "remote_host": "localhost",

    "token": "Basic {{token}}", "paths": [ { "source": "/dir1/source-file_2.txt", "destination" : "/dir2/source-file_2.txt" } ], "title": "a test transfer", "delete_source": false, "destination_root": "/", "create_dir" : true }

    Please open a case and contact support if you still having the issue

    regards!



    #AsperaonCloud
    #Support
    #SupportMigration


  • 3.  RE: How to properly move a file/folder within the same storage on AoC Transfer Server

    Posted Thu June 09, 2022 08:18 AM

    Hi Samantha, thanks for the info. The issue here was that I needed to use localhost instead of the full URL to the server.



    #AsperaonCloud
    #Support
    #SupportMigration