Windows task scheduler issue running backup-jira-api-token.psi creates a corrupted file

Issue #35 wontfix
Aaron Cook created an issue

Trying to run the backup-jira-api-token.psi script from https://bitbucket.org/atlassianlabs/automatic-cloud-backup/src/master/ and every time we run it with windows task scheduler it will download the zip file but only half of it and the zip is corrupted. If we run the powershell script manually by just double clicking, it downloads a larger zip file that works fine. Seems to be something with the scheduled task timing out?

How do we resolve this issue?

Thanks,

Aaron

Comments (4)

  1. Michael Littman

    I am working with Aaron on this wanted to add what we see in the script running with task scheduler 

    PS>TerminatingError(Invoke-WebRequest): "Received an unexpected EOF or 0 bytes from the transport stream."
    Invoke-WebRequest : Received an unexpected EOF or 0 bytes from the transport stream.
    At C:\scripts\Atlassian_Cloud_Backup\jiracloudbkup.ps1:96 char:1
    + Invoke-WebRequest -Method Get -Headers $header -WebSession $session - ...
    + ~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Invoke-WebRequest], IOException
    + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
    Invoke-WebRequest : Received an unexpected EOF or 0 bytes from the transport stream.
    At C:\scripts\Atlassian_Cloud_Backup\jiracloudbkup.ps1:96 char:1
    + Invoke-WebRequest -Method Get -Headers $header -WebSession $session - ...
    +
    ~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Invoke-WebRequest], IOException
    + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.InvokeWebRequest
    Command

  2. Log in to comment