Failing to upload a file on storage account with "[Errno 104] Connection reset by peer" message.

Hi All
I am trying to upload a file (5GB) to storage account using put page blob api of azure python sdk.
example-  blob_service.put_page_blob_from_path('container', 'windows.vhd', '/mnt/23/Windows.vhd').
But after sometime connection gets reset, i am getting same error in other regions as well. Following is the connection reset log-
>> blob_service.put_page_blob_from_path('container', 'windows.vhd', '/mnt/snapshotted_images/23/Windows7-flat.vhd')
*** error: [Errno 104] Connection reset by peer
Thanks,
Vaibhav Kale

Hello Vaibhav,
Directly uploading a 5GB file may last long time due to client network, then in that time period, if certain network latency or exception happens, then the upload action will be impacted.
To overcome this type of issue, you can consider to apply existing tool to upload vhd: azcopy
http://azure.microsoft.com/en-us/documentation/articles/storage-use-azcopy/
http://blogs.msdn.com/b/windowsazurestorage/archive/2012/12/03/azcopy-uploading-downloading-files-for-windows-azure-blobs.aspx
you can either start the tool by your python code to upload the target vhd file or manually run azcopy command to upload(if this uploading happens very rarely to you).
in azcopy, as the tutorial, there is option for you to specify the target blob to be page blob:
/BlobType:<block | page>
Specifies whether the destination blob is a block blob or a page blob. This option is applicable only when uploading blob; otherwise, an error is generated. If the destination is a blob and this option is not specified, then by default AzCopy will create
a block blob.
hopes this helps in your project.
In addition, I tested the python sdk here
https://github.com/Azure/azure-sdk-for-python, as it described, the function for create page blobs (from a stream, a file, or a string) worked for me. could you also try to reload this sdk and test?
let me know if there is any question.
Jian Wu

Similar Messages

  • I am trying to upload a file to an accounting website for work. It will not allow me to select any type of file, they are all greyed out.

    I am trying to upload a file to an accounting website for work. My computer will not allow me to select any type of file, they are all greyed out.

    Try using a different browser. If it works, then the problem is most likely Safari. If the other browser doesn't work, perhaps it is the web site.
    Firefox

  • Upload text file to oracle table with checking and aggregation

    Hi Friends,
    I am new to ODI.  I have encountered a problem which is specific to ODI 11G (11.1.1.6.3) to upload text file to oracle table with checking and aggregation.  Would you please teach me how to implement the following requirement in ODI 11G?
    Input text file a:
    staffCode, staffCat, status, data
    input text file b:
    staffCodeStart, staffCodeEnd, staffCat
    temp output oracle table c:
    staffCat, data
    output oracle table d:
    staffCat, data
    order:
    a.staffCode, a.staffCat, a.status
    filter:
    a.status = ‘active’
    join:
    a left outerjoin b on a.staffCode between b.staffCodeStart and b.staffCodeEnd
    insert temp table c:
    c.staffCat = if b.staffCat is not null then b.staffCat else a.staffCat
    c.data = a.data
    insert table d:
    if c.staffCat between 99 and 1000 then d.staffCat = c.staffCat, d.data = sum(c.data)
    else d.staffCat = c.staffCat, d.data = LAST(c.data)
    Any help on fixing this is highly appreciated. Thanks!!
    Thanks,
    Chris

    Dear Santy,
    Many thanks for your prompt reply.  May I have more information about the LAST or SUM step?
    I was successful to create and run the following interfaces p and q
    1. Drag text file a to a newly created interface panel p
    2. Filter text file a : a.status = ‘active’
    3. Lookup text file a to text file b : a.staffCode between b.staffCodeStart and b.staffCodeEnd
    4. Drag oracle temp table c to interface panel p
    5. Set c.staffCat : CASE WHEN b.staffCat IS NULL THEN a.staffCat ELSE b.staffCat END
    6. Set c.data : a.data
    7. Drag oracle temp table c to a newly created interface panel q
    8. Drag oracle table d to interface panel q
    9. Set UK to d.staffCat
    10. Set Distinct Rows to table d
    11. Set d.staffCat = c.staffCat
    12. Set d.data = SUM(c.data)
    However, the interface q should be more than that:
    If c.staffCat is between 99 and 1000, then d.data = the last record c.data; else d.data = sum(c.data)
    Would you please teach me how to do the LAST or SUM steps?  Moreover, can interface p and interface q be combined to one interface and do not use the temp table c?  Millions thanks!
    Regards,
    Chris

  • Upload a file in KM repository with Web dynpro for abap

    Hi gurus, i´m trying to create a KM repository and then upload a file into this repository with Web dynpro for abap , but i can´t find any info. Can anyone help me with this problem, i have to solve it ASAP...
    Thanks for all....
    Regards,
    Diego.

    Please referr to the ideas on this thread.
    Install Problems withe the NW04s ABAP Trial verssion
    You have installed the loopback adapter and made the propriate entries in the hosts file, right?
    Regards,
    Rich Heilman

  • SSL: Connection reset by peer ; Failed to enable crypto error while calling the report using bing API with SOAP client

    Hi,
    I am trying to fetch report using bing API and making a SOAP call for fetching the data. I get the following error:
    [Warning] fopen(): SSL: Connection reset by peer [file] /var/www/sites/psmedia/perfectstormmedia/tools/class/msn_api.class.php [line] 780
    02-04-2015 10:17:41 (BST) : [Warning] fopen(): Failed to enable crypto [file] /var/www/sites/psmedia/perfectstormmedia/tools/class/msn_api.class.php [line] 780
    02-04-2015 10:17:41 (BST) : [Warning] fopen(https://download.api.bingads.microsoft.com/ReportDownload/Download.aspx?q=rzr63XFt5qJduddohoIRyOYAP%2f1%2ftsnhk8L%2bzBmUpdU2CQlcUB98RpY%2bbOaLFFGMqAC4IUUadC%2fNdNnJqeVCY%2f%2bpy6noVsVA%2fMJp47a3Xb1VjABfKhcdKy6vqpgEdcQg%2fQZ7QcEpZ3bEloJjUtGpDquFk53BnkeHEPVWZkDYcsQegRz%2fpG4t4w6gKCCRmhArd6osr6ZU9CMJ3lbxtGXjcQEMPvP2apNyr9P%2fc8niyfWA2aBcm1aEmOLX2KL3aRJ4rz9N7gG7uBslVZH%2b4rUjHdB7CMkbb%2fHyHwvPTqGPbPCHnicefr%2b%2fDP70hlkBEGfyOOswK67%2bl1zh7CyIv%2bcMlaDsuDX1HeFf4uORfD41H1z7):
    failed to open stream: operation failed [file] /var/www/sites/psmedia/perfectstormmedia/tools/class/msn_api.class.php [line] 780
    Whenever I execute my script. Can you please let me know what we can do to solve this issue. The version of PHP we are using is 5.3.3 with open ssl. 

    Hi Shobha,
    I can't confirm what version of PHP you are using, but to err on the side of caution please use the version specified in the sample/SDK:
    PHP 5.4.14 has been installed from PHP.
    Here is our code examples:
    https://msdn.microsoft.com/en-US/library/bing-ads-overview-getting-started-php-with-web-services.aspx
    Thanks,
    Itai

  • Postings to G/L accounts with open item management are not permitted Messag

    HI All,
    Me activiated New GL. and when I am trying to post the
    document, I am getting the below error.
    The GL used 200100 is Cash A/c (40)
    Cr Eq Share Capital A/c (50)
    As Cash A/c requires Clearing, I have activated "Open Item Management".
    Can you advice me why Its giving me the below mentioned error.
    Thanks
    Postings to G/L accounts with open item management are not permitted
    Message no. FAGL_POST_SERVICE012
    Diagnosis
    You use G/L account 200100 in company code RLIF with open item
    management. However, postings are not permitted to G/L accounts in
    individual ledgers with open item management.
    Procedure
    If you have not yet made any postings to this account and if the
    account is to be used for closing processes in non-leading ledgers,
    deactivate the Open Item Management indicator in the company code data
    for the G/L account.
    Thanks,
    Niranjan Yandamuri

    Hi,
    Please, refer to note 1646466 for the info on this message.
    Regards,
    Eli

  • I already have an Apple ID account with 4 devices connected to it but I would like to make a new one with a desperate password for my school iPad. How do I do that?

    I already have an Apple ID account with 4 devices connected to it but I would like to make a new one with a desperate password for my school iPad. How do I do that?

    You can create a new Apple ID and password for the iPad but none of the content downloaded using the Apple ID associated with the four devices will be available on the iPad.
    Create new >   Apple - My Apple ID
    It's not possible to use two passwords with one Apple ID.

  • XI 2.0 Inbound file adapter : Connection reset by peer

    I am using XI 2.0 and have an inbound file adapter. It polls every 5 minutes. But at least 1 or twice a day the file adapter stops with the following error message.
    "java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read" occurred \par
    There have been times when this runs for days or weeks without any problems.
    Has anyone else seen this issue and how do your correct it?
    Currently I have to go into the file adpaters and restart them manually. It would be nice if there was some way to automate this function. Any ideas?
    Regards,
    Jim

    With JDK 5.0 use ojdbc5.jar instead of ojdbc14.jar.

  • SXPG_COMMAND_EXECUTE - Recv failed:Connection reset by peer

    We are calling external commands in a batch job using the SAP supplied function module SXPG_COMMAND_EXECUTE.  However, if the external command takes longer than 2 minutes (120 seconds) to execute the call to the external command is terminated (from the SAP perspective) with the message Recv failed:Connection reset by peer.  The termination is precisely at 120 seconds.  The external command, however, continues to run as an u201Corphanu201D task and finishes normally.  However, due to the connection termination, SAP is no longer aware of it.
    Do you have any ideas where the termination is occurring and/or where the wait limit of 120 seconds is set?

    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
        EXPORTING
          commandname                   = 'ZTEST_BATCH'
          additional_parameters         = param1
          operatingsystem               = castserveropsys
          targetsystem                  = target
          stdout                        = 'X'
          stderr                        = 'X'
          terminationwait               = 'X'
        IMPORTING
          status                        = funcstatus
        TABLES
          exec_protocol                 = iserveroutput[]
        EXCEPTIONS
          no_permission                 = 1
          command_not_found             = 2
          parameters_too_long           = 3
          security_risk                 = 4
          wrong_check_call_interface    = 5
          program_start_error           = 6
          program_termination_error     = 7
          x_error                       = 8
          parameter_expected            = 9
          too_many_parameters           = 10
          illegal_command               = 11
          wrong_asynchronous_parameters = 12
          cant_enq_tbtco_entry          = 13
          jobcount_generation_error     = 14
          OTHERS                        = 15.

  • HT201209 To create an iTunes account with a gift card, I receive this message at the end: Contact iTunes support to complete your transaction. What the **** is it?

    To create an iTunes account with a gift card, I receive this message at the end: Contact iTunes support to complete your transaction. And then, nothing! What the **** is it?

    It means contact itunes support

  • How to access Trace file in storage account

    Hi,
    I am new to Azure Cloud, I would like to know how to access the trace file stored in Storage account.
    We have implemented diagnostics & traces, I have no idea how to access the trace file.
    I have no idea what are the folders created inside the storage account and where the trace files are stored.
    Would some one help me?
    Thank you!

    Hi,
    In addition, you could use Azure Storage Explorer (https://azurestorageexplorer.codeplex.com/) to search your trace files.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can't upload mp3 files to server - could with version 6

    I need to upload mp3 files to a server. This was possible in FireFox version 6, but I unfortunately upgraded to version 10.0.2. Now it just says "connecting" and "sending request" without any results.

    Hi there. First off thank you for your interest and your help.
    I have done what you suggest probably 30 times as I have obsessed over this crazy problem for a couple straight weeks before I finaly gave up on CS5.5
    I'm not sure what you mean by REMOTE server. The only server settings I am aware of are the ones in Dreamweaver. Here they are:
    5.0 Settings:
    Server Name = the same values on each
    Connect Using = FTP
    FTP Address = same numeric value on 5.0 & 5.5 port 21
    User name = same on both
    Password = same on both
    Root directory = is blank (I have tried it using / with no luck as well)
    web URL = http://ftp.westbrookadvertising.com/www/htdocs/
    Passive FTP is checked & Use FTP Peformance optimization is checked.
    5.5 Settings:
    Server Name = the same values on each
    Connect Using = FTP
    FTP Address = same numeric value on 5.0 & 5.5 port 21
    User name = same on both
    Password = same on both
    Root directory = is blank (I have tried it using / with no luck as well)
    web URL = http://ftp.westbrookadvertising.com/www/htdocs/
    Passive FTP is checked & Use FTP Peformance optimization is checked.

  • Can not able to upload a build on App Store with new itunes connect interface.

    Hello ,
    I am uploading a build to app store with the version number 1.2.1 with same bundle version . But after some time apple shows error as Redundant Binary Error. You are trying to upload a same build that is already on app store.
    So i change my app bundle number to 1.2.1.1. This time the apple shows error as The session status is changed.The session
    I tried to solve it out by changing the
    # https.proxyPort=443          To         https.proxyPort=80
    I have uploaded the build with changing the bundle number but now every time it shows same error.
    I was also trying to upload the build taking some break in between. Uploaded build more than 15 times to app store, but couldn't successed.
    Please some one help me. It's getting very frustrated.

    You will be better off asking in the developer forums, this forum is for questions about buying/downloading from the store : https://devforums.apple.com/index.jspa

  • Read from socket failed: Connection reset by peer

    On Solaris 10 SPARC I have NO problem with establishing SSH connections.
    Here is proof:
    # svcs -a | grep ssh
    online Jun_02 svc:/network/ssh:default...but here is what can be found in /var/adm/messages
    Jun 7 04:09:16 my_host sshd[11701]: [ID 800047 auth.crit] fatal: Read from socket failed: Connection reset by peerTHIS IS IMPORTANT!!!
    This messages does not appear during I establish my ssh connection. It appears irregular.
    Does anyone know whats going on ?

    Hi Darren,
    that would make sense but I just made a test:
    I have opened tail -f /var/adm/messages and from other host:
    - telnet to it on port 22 - no message
    - closed client during establishing connection - still no message
    But I belive you must be right as I see no other possibility...
    Can I turn on more detailed logger in message to be able to see IP address of all host who are trying SSH connection ?
    Edited by: czezz on Jun 25, 2009 10:50 PM

  • Using multiple MAIL accounts with GMail. When I compose a message from one account it shows "FROM" as one of my other accounts. How can I resolve this?  Thanks!

    MAIL Preferences / Composing / Addressing / Send new messages from account of selected mailbox = SHOWING as the option to use.
    This is only happening in one of my four email accounts...
    Thanks for your help!

    As Ernie said, you need to create an SMTP server for each gmail account with the correct username and password. Be sure the correct server for each account is listed in the SMTP box and check the box to use only that server for that account.
    Gmail's default behavior when sending from one account through another account's outgoing server is to change the address to the server which is used. Same goes if I send a message from my ATT/Yahoo account and use gmail's server to send through. It will change the ATT address to the gmail address.
    There is an option in gmail's settings under the Account's tab under Send Mail As. You can add different gmail or other accounts such as Yahoo to this and choose how the gmail server handles it. You can set it to send as the sending account and not change the address. I've used this many times for my ATT account for sending through gmail when ATT accounts were having problems.
    You can add the different accounts to each gmail account you have.

Maybe you are looking for

  • 100% cenvat on capital goods

    Dear all,    How can  100% cenvat be availed in case of capital goods in case of transfer from  one plant to another.     The T-code used  is J1IH

  • Excise Register

    Hi We have a scenario in which RG23A register is updated with the credit values and also the invoices cut during the month. At some time during the same month, the balance in the register becomes zero. However, in such a case, we need to pay the duty

  • Different VLAN for AP and WLC

    I have a problem when I rebulid my client's wireless network My client's AP is using static IP address on AP1131AG in VLAN 50, but the controller is at VLAN 100 A DHCP with option 43 and 60 is running on core switch, that's meaning if the AP is no IP

  • OBI rounding off to 2 decimals

    I just created a a simple request with a dumy column and one column and gave the calculation for this column as 23/12.6. The result returned is 1.83. Why the result is rounding off to two decimal places? thx.

  • Reg: Retreiving Custom UME attributes

    How to retrieve custom UME attributes in webdynpro. Should i add any imports or jar files for that.