Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Atlassian Fix for Cleaning XML backups not Working

Sam
Contributor
September 16, 2020

I'm trying to follow the second solution provided in this KB article but whenever I run the line 

java -jar atlassian-xml-cleaner-0.1.jar entities.xml > entities-clean.xml

I get the following output:

 -rbash: entities-clean.xml: restricted: cannot redirect output

 I've given everyone rwx permission on all files and I've even tried running this as the superuser, but I still get this output every time. Does anyone have any idea why this might be happening?

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 16, 2020

This is down to your use of rbash for your shell - that restricts many of the functions that bash (and most other shells) do.

One of the things rbash prohibits is the use of redirection of output, the > in your command.

I think you'll need to run the command in a less restricted shell.

Sam
Contributor
September 16, 2020

Thank you for clearing that up! I ended up switching to the root user and then running the command 

java -jar atlassian-xml-cleaner-0.1.jar entities.xml > entities-clean.xml

It immediately worked. Thank you! 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.8.0
TAGS
AUG Leaders

Atlassian Community Events