Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Cloud back-up corrupted using windows task scheduler

Hello, 

We are trying to accomplish the following:

Scenario - 

Automate the creation and removal of the backup file from the Atlassian cloud sites (JSW/Confluence) for rollback purposes, etc.    

Issue - 

Scenario I

Initiating the backup-jira-api-token.psi script from https://bitbucket.org/atlassianlabs/automatic-cloud-backup/src/master/.  Each time we run this script with Windows task scheduler the script will execute and download the backup.  However, the file is approximately half the size of a manually downloaded file and is corrupted.    

Scenario II

If we run the powershell script manually, the file downloads and is the expected size and is not corrupted. 

Root cause -

Unknown.

Could this be related to the scheduled task timing out?

 

Thank you in advance for any recommendations or thoughts you have with this issue.  

Thanks,

Aaron

1 answer

0 votes

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,120 views 8 28
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you