Getting 500 error when trying to back up Confluence

Simon Andersson December 22, 2020

Hi,

I am trying to automatically back up confluence (cloud) via REST API. According to the script samples I need to do a GET request towards https://<mydomain>.atlassian.net/wiki/rest/obm/1.0/getprogress but getting a 500 internal server error.

 

Other info:

I am going to create an Azure function app but as of now I am just testing the API via postman.

I had no issues backing up Service Management (cloud), only on Confluence.

confluence500.JPG

2 answers

1 accepted

0 votes
Answer accepted
Simon Andersson January 8, 2021

If someone is have the same issue, I had to create a session to be able to reach the rest api. 

This one helped me since I was developing an azure function (c#): https://stackoverflow.com/questions/43883952/using-httpclient-throughout-methods-without-losing-session-and-cookies

0 votes
Fadoua
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 25, 2020

@Simon Andersson 

I googled and noticed that most of the users who created successful backups did it through bitbucket or GitHub.

Is it an option for you guys or not?

Did you check the following?

https://docs.atlassian.com/atlassian-confluence/REST/1000.107.0/

Best,

Fadoua

Simon Andersson December 30, 2020

Hi Fadoua,

I suppose this is an option, but don't see the reason why we have to use a script (like powershell or python).

I wonder why I have no problem running the '/wiki/rest/obm/1.0/runbackup' for creating the cloud backup. But when trying trying to get the download url with '/wiki/rest/obm/1.0/getprogress' just returns a 500...

Since I can't even get the simple rest api call via postman, the scripts would fail as well no?

//Simon

Fadoua
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 31, 2020

@Simon Andersson 

Definitely I agree, if the get method is the one returning the 500 error then there is a problem.

Please click here then submit a ticket to Atlassian Team

All the best,

Fadoua

Like Simon Andersson likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events