- edited description
Windows task scheduler issue running backup-jira-api-token.psi creates a corrupted file
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)
-
Account Deactivated reporter -
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 -
- changed status to on hold
I am not sure whether the issue is with the script or with the task scheduler. However, can you give a try to the PS scripts from below repository and see if they work?
https://bitbucket.org/sebastianclaesson/atlassian-cloud-backup/src/master/
Please notice this scripts are not provided by Atlassian and are not supported by us in any way. Make sure you read and understand the scripts before running them!
Cheers,
Dario -
- changed status to wontfix
- Log in to comment