youngmon/atlassian-qna huggingface dataset:
Bulk updates of user IDs for imported Confluence pages to cloud from private
Asked by Robert Douglas:

We moved our confluence server from a private hosting to the Atlassian cloud. Upon importing, all the pages show long ID's for those who created and last edited a page. These correspond to the users' former IDs. Is there any way we can map these IDs to the user's new accounts? Or, is there any way I can edit who 'created' a page? I'd like to get the proper information in all these pages, if I can. Currently, I cannot figure out how to do such, even manually.


Answers:
author: Suren Raj
body: Hi, Robert.

<br />

Based on your question, we assume you encountering the same issue as the below documentation:

* <https://confluence.atlassian.com/cloudkb/fixing-the-unknown-user-confluence-issue-after-migration-826878305.html>

As the resolution for this issue will require database modification, please contact Atlassian Cloud Support for assistance.

* <https://support.atlassian.com/contact/#/>


Tags: cloud

confluence-cloud
Automatically number table rows issue
Asked by Stech Development:

According to the Documentation, we should be able to enable the autoincrement. However, this option is not available in the version 6.10. Is there any option I need to enable or with the new version the "Automatically number table rows" functionality is removed?

<https://www.atlassian.com/blog/confluence/new-improvements-tables-confluence>

Can someone shed some light on this please?


Answers:
author: Thomas Schlegel
body: Hi [@Stech Development](/t5/user/viewprofilepage/user-id/39710),

maybe it's just the user interface which' changes are confusing. In Confluence 6.7 (which I have here), the function is enabled with this button:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/29422i6D2F5423D6894C8A/image-size/large?v=v2&px=999 "image.png")


Tags: confluence-server

server
Upgrade from Confluence 5.8.18 on Oracle 11g to 5.10 in Postgresql 9.4
Asked by Ryazbb:

To move the DB from Oracle 11g, we plan to migrate the Confluence current version: 5.8.18 to Postgresql 9.4


Answers:
author: Mirek
body: HI [@Ryazbb](/t5/user/viewprofilepage/user-id/1805135)! I suggest you to first switch database then upgrade confluence. This is what you need to read before you move on with the change - <https://confluence.atlassian.com/doc/migrating-to-another-database-148867.html> - and upgrade - <https://confluence.atlassian.com/doc/upgrading-confluence-4578.html>

comments: author: Ryazbb
body: Thanks Mirek,

For your reply, Confluence 5.8.18 is compatible with Postgresql 9.3, whereas we do not support anything below postgres 9.4, please advice.

Best Regards,

Riyaz


author: Mirek
body: Actually it does not mean that Confluence 5.8.18 is not compatible with 9.4 but only not tested by Atlassian (and recommended officially). You can test on your own or if you are afraid upgrade Confluence to 6.0 temporary (where 9.3 is still supported) and later switch to 9.4 and upgrade to the latest again.


Tags: confluence-server

server
I need to backup my confluence database (postgreSQL) in order to setup confluence completely new and
Asked by Hans-Georg Emberger:

I have an unstable server and need to setup Confluence again (after completely wiping the server)  

How can I make sure I can backup my confluence in order to restore it after new installation

Are there step-by-step instructions?


Answers:
author: Shannon S
body: Hans-Georg,

You can migrate Confluence using [Migrating Confluence Between Servers](https://confluence.atlassian.com/doc/migrating-confluence-between-servers-184150.html) or by restoring a site backup (provided your instance isn't too large) following [Site Backup and Restore](https://confluence.atlassian.com/doc/site-backup-and-restore-163578.html).

Please review both articles to help determine which method is best for you!

Regards,

Shannon


author: Alexis Robert
body: Hello [@Hans-Georg Emberger](/t5/user/viewprofilepage/user-id/1489336),

you will need to perform a XML backup as described [here](https://confluence.atlassian.com/doc/manually-backing-up-the-site-152405.html), and then [import it](https://confluence.atlassian.com/doc/confluence-setup-guide-135691.html#ConfluenceSetupGuide-restore) during the new server Confluence.

You might want to save following from the old server:

* conf/server.xml file if you manually changed it
* bin/setenv.sh file if you manually changed it
* your attachment directory

You can also use [this page](https://confluence.atlassian.com/doc/migrating-confluence-between-servers-184150.html) as a reference for migrating your instance.

Let me know if this helps,

--Alexis


author: Hans-Georg Emberger
body: Thank you for your help!!

comments: author: Alexis Robert
body: Glad we could help [@Hans-Georg Emberger](/t5/user/viewprofilepage/user-id/1489336)

Please take a moment to mark our posts as "Accepted" so that other users can find this when they run into a similar issue.

Thanks,

--Alexis


Tags: confluence-server

server
Confluence Crashes During Initialization
Asked by technology:

My current setup is on all one server instance:

- Standalone Linux Server - CentOS Linux release 7.5.1804 (Core)  
- Standalone JIRA Service Desk v3.11.1 (installed w/provided .bin file)  
- Standalone Confluence v6.10.0 (installed w/provided .bin)  
- Standalone Postgres DB Server (on the same host)

My Issue:

During the "Setup" process (via the browser on port 8090), I chose the following steps:

- Production Installation  
- No Add-ons  
- My own database (connection successful !)  
- Load Content -\> "Example Site"  
- Configure User Management -\> (Have tried both options)  
CRASH - my confluence instance crashes.

<br />

I can repeat the process by deleting the "confluence.cfg.xml" file and restarting confluence, then browsing to my server at port 8090. This step was determined by resolution 10 on the following URL (after a proper google search):  
<https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html>

<br />

After each crash, my confluence.cfg.xml file size is the same and only the "confluence.setup.server.id", "jwt.private.key", and "jwt.public.key" property values are changed.

What are my next steps here?  
I would like to get confluence up and running.

If you need to see anything else, then please let me know and I will share it with you.

Many Thanks.


Answers:
author: Shannon S
body: Hi there,

Thank you for all the information! Would you be able to have a look at your [Confluence server logs](https://confluence.atlassian.com/doc/working-with-confluence-logs-108364721.html) in order to see exactly which error is causing Confluence to crash?

I think that would help the most in this situation.

Regards,

Shannon
Secutiry
Asked by Ramesh Arul:

Hi how secure are confluence wiki when all of the IT servicedesk wiki are up in the cloud ?


Answers:
author: Grigory Salnikov
body: Hello and welcome to the Community,

Please, have a look at the following material:

[Security practices](https://www.atlassian.com/trust/security/security-practices)

Hope this helps.


Tags: cloud

confluence-cloud
Spring Application context has not been set
Asked by Purdue ACM SIGApp:

I have already looked at the [related link](https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html?_ga=2.220174428.47363192.1533899811-413076059.1532399669), but no dice, sadly. I specifically have tried deleting \`confluence.cfg.xml\` and resetting permissions on both folders multiple times, but it still gives me the error. Any help is appreciated. I can post the stack if requested, but I didn't to keep under the 20,000 character limit

**Cause:**

com.atlassian.config.ConfigurationException: IOException parsing XML document from class path resource \[jmxContext.xml\]; nested exception is java.io.FileNotFoundException: class path resource \[jmxContext.xml\] cannot be opened because it does not exist  
at com.atlassian.confluence.setup.actions.AbstractSetupAction.transitionFromColdToVacantState(AbstractSetupAction.java:162)

caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource \[jmxContext.xml\]; nested exception is java.io.FileNotFoundException: class path resource \[jmxContext.xml\] cannot be opened because it does not exist  
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:344)

caused by: java.io.FileNotFoundException: class path resource \[jmxContext.xml\] cannot be opened because it does not exist  
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)

**URL:** /setup/setupdbtype.action


Answers:
author: AnnWorley
body: Hi,

I am not confident that I know the root cause of what is happening for your instance, since the URL is "/setup/setupdbtype.action" it sounds like a new install. None of my test instances have that file "jmxContext.xml"

Since your instance is looking for that file, one thing we could try is to download it from the bottom of this page: [Unable to Start Confluence Due to JMX](https://confluence.atlassian.com/confkb/unable-to-start-confluence-due-to-jmx-182158269.html) and place it in the \<[confluence-install](https://confluence.atlassian.com/doc/confluence-home-and-other-important-directories-590259707.html)\>/confluence/WEB-INF/classes folder

I look forward to hearing the result.

Thanks,

Ann  

comments: author: Purdue ACM SIGApp
body: It is a new install. Sorry for not mentioning that earlier. It was already there, but I re-downloaded it, and the same error happened. I then tried deleting it and restarting, and the same error.


Tags: confluence-server

server
searching for answers in regular confluence pages from questions for confluence
Asked by Andreas Hagglund:

is it possible to configure "questions for confluence" to search through answers, but also regular pages when asking questions?

ie if someone is creating a question in confluence for questions for "what is the best resturant in Paris" and there is a blog post on "best resturants in Paris" in the confluence space, I want questions for confluence to suggest the blog post.


Answers:
author: Shannon S
body: Andreas,

By using the quick search or full search in Confluence, you will find results both on pages and previously asked questions. This is the recommended search method in both our [Server](https://confluence.atlassian.com/questions/questions-and-answers-407724478.html#Questionsandanswers-Findquestions(andanswers)) and [Cloud](https://confluence.atlassian.com/questionscloud/questions-and-answers-738361789.html) documentation.

I believe you might be referring to the **Ask a question** search bar. We've had a feature request for this in Server, but we do not have plans to implement it in the near future:

* [CONFSERVER-47497](https://jira.atlassian.com/browse/CONFSERVER-47497)

As for Cloud, the feature is still currently open but hasn't gathered a lot of traction:

* [CONFCLOUD-47497](https://jira.atlassian.com/browse/CONFCLOUD-47497)

Please feel free to vote or comment on those requests, and in the meantime I would recommend using Confluence search for this functionality.

Regards,

Shannon


Tags: questions-for-confluence
Is there a reference list for Confluence versions and their associated AUI version?
Asked by Sharon Hinde:

Google shows me ways to get the AUI version but I'm hoping for a more user friendly way to find out your AUI version, so users know which icons may be available in their Confluence.


Answers:
author: Daz
body: Hi Sharon,

There's a list of Atlassian products and the version of AUI they use here: <https://bitbucket.org/atlassian/aui-adg/wiki/versions/product-version-matrix>.

In-product, you can check the version of AUI that's used by checking the value of the \`data-aui-version\` attribute on the \<body\> tag.

I'm not sure if either of these qualify as "user-friendly" approaches to retrieving the version, however... there's a bit of a breadcrumb trail to follow to get the information you actually want.

Hope that helps,

Daz

comments: author: Sharon Hinde
body: That's brill as a starting point, thanks Daz!


author: Diego
body: Hello Sharon, thanks for contacting our community!  
Dealing with the AUI documentation shoud be quite straightforward. We do have a list of our AUI versions right here:  

**[Atlassian Archive](https://docs.atlassian.com/aui/archive.html)**   

However a explicit list of the AUI version used with each Confluence version is not available. You could search for *Preparing for Confluence* in our knowledge base. When the AUI version is changed, it will be listed there:  

**[Preparing for Confluence](https://confluence.atlassian.com/search/?productName=Confluence&queryString=Preparing%20for%20Confluence%20)**   

You can also check the current guidelines here:  

**[AUI Server](https://atlassian.design/server/)**

If you need to check the version used in your project, you can refer to the data-aui-version attribute:

**[AUI FAQ](https://docs.atlassian.com/aui/faq.html)**

<br />

Let us know if this helps your team!

comments: author: Sharon Hinde
body: > However a explicit list of the AUI version used with each Confluence version is not available

This is the information I was hoping for but if its not there then I will have to think of another way, thanks.


Tags: atl-adm

aui

confluence-server

server
How do I remove the username of a deactiveted user in Confluence when on a created page by this user
Asked by Micha:

We de-activated a user in our Confluence 6.2.3 environment. On a page created by this user we see Unknown User, but behind it we still see the username. We would like to change this/delete this. This is because we don't want people in our organisation to ask for this user anymore. How do we do this?

![mbrouwer.PNG](/t5/image/serverpage/image-id/29391i5C327BB979A2E49C/image-size/large?v=v2&px=999 "mbrouwer.PNG")


Answers:
author: Erica Cunningham
body: Just as an option, we created a code to have a name removed from a space so we wouldn't get the Unknown user showing. Go to Space tools \> stylesheet

Replace "++NAMEHERE++" with the user name.

**#com-atlassian-confluence .page-metadata-modification-info .confluence-userlink\[data-username="NAMEHERE"\]{**

**display:none**

**}**

This is what the top of the page will look like:

![removeuserexample.png](https://community.atlassian.com/t5/image/serverpage/image-id/29474i37B31EF34A83F7D6/image-size/large?v=v2&px=999 "removeuserexample.png")

If they created the page it just skips putting a name, and show who last updated, etc...

Additionally, if you have permissions, you can do this at the Global level so the name will remove from all spaces if they were involved in multiple spaces, go to the Confluence admin console under Look and Feel \> Stylesheet.

comments: author: Micha
body: Thank you Erica, we will try to do so. After that I will accept the answer.


author: shetty
body: You have to remove user/delete account from users lists in user management

comments: author: Micha
body: Doesn't this delete the created content by this user as well?


Tags: confluence-server

server
Update a Page with PHP Variables / REST API
Asked by Chris Nowaczyk:

Hello everybody, I want to update a page in confluence with some php-variables. So here's my PHP Code to update the page:

```
$curl = curl_init();

$post = "{\"id\":\"65604\",\"type\":\"page\",\"title\":\"page\",\"space\":{\"key\":\"***\"},\"body\":{\"storage\":{\"value\":\"<p>Here comes the other variable: $product_response </p>\",\"representation\":\"storage\"}},\"version\":{\"number\":11}}";

curl_setopt_array($curl, array(
? CURLOPT_PORT => "6003",
? CURLOPT_URL => "http://localhost:6003/rest/api/content/65604",
? CURLOPT_RETURNTRANSFER => true,
? CURLOPT_ENCODING => "",
? CURLOPT_MAXREDIRS => 10,
? CURLOPT_TIMEOUT => 30,
? CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
? CURLOPT_CUSTOMREQUEST => "PUT",
? CURLOPT_POSTFIELDS => $post,
? CURLOPT_COOKIE => "JSESSIONID=3A16CBFE8B99E619D62BD4CD6573F184",
? CURLOPT_HTTPHEADER => array(
??? "authorization: Basic xyYS123_test_test-45Sdasds==",
??? "content-type: application/json"
? ),
));
```

For your information:

* If i print the $post in another script, the variable value show up
* without the variable, the curl session works and I can update the page

Thats the error:
> {"statusCode":500,"message":"org.codehaus.jackson.JsonParseException: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value\\n at \[Source: com.atlassian.confluence.plugins.restapi.filters.LimitingRequestFilter$1@5dff62ce; line: 1, column: 119\]","reason":"Internal Server Error"}

I tried many of formats in the $post, but nothing seems to work.


Answers:
author: Chris Nowaczyk
body: For your information:

I asked the same question at stackoverflow. (<https://stackoverflow.com/questions/51856253/update-a-page-with-php-variables-rest-api-confluence>)

They helped me in a few minutes, you have to use json_encode.

**Heres the answer:**

The json values for post that you are forming is incorrectly formed, Why dont you use json_encode(); by declaring all the values inside an array, you can change your code like this:

    $curl = curl_init();$post = array(    "id"=>"65604",    "type"=>"page",    "title"=>"page",    "space"=>["key"=>"***"],    "body" =>["storage"=>["value"=>"<p>Here comes the other variable: ".$product_response." </p>", "representation"=>"storage"]],    "version"=>["number"=>11]);curl_setopt_array($curl, array(CURLOPT_PORT => "6003",CURLOPT_URL => "http://localhost:6003/rest/api/content/65604",CURLOPT_RETURNTRANSFER => true,CURLOPT_ENCODING => "",CURLOPT_MAXREDIRS => 10,CURLOPT_TIMEOUT => 30,CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,CURLOPT_CUSTOMREQUEST => "PUT",CURLOPT_POSTFIELDS => json_encode($post),CURLOPT_COOKIE => "JSESSIONID=3A16CBFE8B99E619D62BD4CD6573F184",CURLOPT_HTTPHEADER => array("authorization: Basic xyYS123_test_test-45Sdasds==","content-type: application/json",    'Accept: application/json'),));


Tags: confluence-server

curl

error

php

rest-api

server
How can I find all the broken links in a space?
Asked by Vidya:

We have many broken links in one of our Confluence Spaces that contains roughly 750 pages. Is there a way I can generate a report that lists down all the broken links across the space?


Answers:
author: Piotr Dziedziel
body: Hi,

You can try this one: <https://confluence.atlassian.com/doc/confluence-how-to-validate-links-952603062.html>

comments: author: Vidya
body: Thanks for sharing the link, Piotr. But this does not work for the Cloud instance. We are running Confluence Cloud.


author: Nic Brough -Adaptavist-
body: There is no way to do this on Cloud - all the "tricks" need access that you don't have on Cloud.


author: Vidya
body: Yeah, I am realizing it. This is sad though.


author: Ravee Panjwani
body: If you are open to it, you can try exporting your space to a single page HTML, and then use a text editor that supports regex to extract a complete list of links.

For instance:

Find \> .\*?(<https://docs.confluence>.\[a-zA-Z0-9\\.\\/\\-\\+\]+) and replace it with $1\\n

That'll help you get a complete list of links, and you use automation to test them.


author: Kim Wallace
body: The link mentioned in the is article is 404d.


author: Lasse Bencke
body: I think the article has been move to here:   
<https://confluence.atlassian.com/confkb/confluence-how-to-validate-links-952603062.html>


author: Tim Nash
body: Does anyone else see the irony in a discussion about finding dead links that includes a link to a solution that happens to now be a dead link, itself? ;-)


author: shetty
body: <https://gsuite.atlassian.net/wiki/spaces/YASH/overview>

you can refer this link, here in the overview of space it will enlists all the pages that you have created in your space

comments: author: Vidya
body: Thanks, but I cannot access the link you have shared.


author: Nic Brough -Adaptavist-
body: The link is nonsense, yes.

But if you go to **your** space overview as a space admin, it will list them.


author: Vidya
body: I want something more like a report that would list all the broken links a space contains.


author: shetty
body: then go to spaces\>my spaces\>space details(you will find this towards right)\>content tools\>export

you will get option pdf/xml/html select the option and click next


Tags: link
EAN13 (barcode) check digit user macro
Asked by Reto Eggenberger:

Hi

I want to make a simple user macro, which calculates the ean13 check digit with javascript. But I'm absolutely not used to velocity. Maybe someone can give me a jump start ...

I've found this javascript code to calculate the 13th digit:

```
function getLastEan13Digit(ean) {
 if (!ean || ean.length !== 12) throw new Error('Invalid EAN 13, should have 12 digits');
 const multiply = [1, 3];
 let total = 0;
 ean.split('').forEach((letter, index) => {
 total += parseInt(letter, 10) * multiply[index % 2];
 });
 const base10Superior = Math.ceil(total / 10) * 10;
 return base10Superior - total;
}
```

How can I display this script result on the page?

I guess I have to wrap it in a script tag and I tried this:

```
getLastEan13Digit('$paramEAN13');

<script type="text/javascript">
function getLastEan13Digit(ean) {
 if (!ean || ean.length !== 12) throw new Error('Invalid EAN 13, should have 12 digits')
 const multiply = [1, 3];
 let total = 0;
 ean.split('').forEach((letter, index) => {
 total += parseInt(letter, 10) * multiply[index % 2];
 })
 const base10Superior = Math.ceil(total / 10) * 10;
 return = base10Superior - total;
}
</script>
```

But of course this doesn't execute the script.

Thx for any hints.


Answers:
author: Reto Eggenberger
body: Got it.

Just use normal jQuery syntax ...

```
<div id="result">Test</div>

<script type="text/javascript">
jQuery(document).ready(function () {
 jQuery('#result').text('$paramEAN13'+getLastEan13Digit('$paramEAN13'));
});

function getLastEan13Digit(ean) {
 if (!ean || ean.length !== 12) throw new Error('Invalid EAN 13, should have 12 digits')
 const multiply = [1, 3];
 let total = 0;
 ean.split('').forEach((letter, index) => {
 total += parseInt(letter, 10) * multiply[index % 2];
 })
 const base10Superior = Math.ceil(total / 10) * 10;
 return base10Superior - total;
};
</script>
```


Tags: confluence-server

server

user-macro
Which credentials should we use when we set up an administrator account?
Asked by Boitumelo:

Our test Jira was initially on the DMZ and we moved it to the network and changed the database connection, so it is now treating it as a new installation when we try access it and we cannot seem to set up the administrator account as it says "cannot add user, all the user directory are read only" so that we can access Jira.


Answers:
author: AhmadDanial
body: Hi, Boitumelo.

First and foremost, I would be interested to know the type of database that you are using after the migration and version that you are on. I came across a couple of questions where users run into the same problem due to:

* Using Postgres 9.6 - <https://community.atlassian.com/t5/Jira-questions/JIRA-Cannot-add-user-all-the-user-directories-are-read-only/qaq-p/252197>
* MySQL incorrect setup - <https://community.atlassian.com/t5/Questions/MySQL-Install-quot-Cannot-add-user-all-the-user-directories-are/qaq-p/51030>
* Update jdbc driver - <https://community.atlassian.com/t5/Jira-Core-questions/Jira-7-Setup-All-User-Directories-are-read-only/qaq-p/63364>

Additionally, can you please confirm the error that you are seeing in *atlassian-jira.log* when you are trying to set up the admin account too?


Tags: jira

server