youngmon/atlassian-qna huggingface dataset:
Export to XML - XML contains 2 spaces
Asked by turo:

hello all,

we're migrating from Confluence Cloud to Confluence Server and have to migrate few Confluence spaces. The first one went good and we imported it, all good.

Exporting the second one also worked fine but while importing is, we got an error message due to a duplicate key. Analyzing that, we saw that the second XML contains the second space AND the first one and the key of the second space leads to the error.

Trying to export other spaces works fine, just one space in the XML. It seems that just in one case, the export does export two spaces, but we do not understand why.

Anyone seen something similar?

thanks, Roland


Answers:
author: Tarun Sapra
body: Hello [@turo](/t5/user/viewprofilepage/user-id/1292553)

If you take a backup of a single space from cloud then it should contain only 1 space and not 2. I am not sure if that's the case that it's containing 2 spaces. Are you sure that the server instance doesn't have a space with exact same "key" which you are trying to restore from the cloud instance.

<https://confluence.atlassian.com/doc/troubleshooting-xml-backups-that-fail-on-restore-199034.html>

comments: author: turo
body: Hi Tarun

I found our situation described in [CONFCLOUD-64563](https://jira.atlassian.com/browse/CONFCLOUD-64563) and opened a support request. It might be related to database issue.

thanks for your feedback, Roland


Tags: confluence-server

server
Enabling anonymous access to the Confluence site
Asked by Nguyen Manh Hao:

I want enable anonymous access to my confluence site but when I enable global permission in General Configuration, my confluence site can not access and I only access by localhost. Why?


Answers:
author: Yoga Reddy {Appfire}
body: Hi [@Nguyen Manh Hao](/t5/user/viewprofilepage/user-id/2313231)

You can enable access from the Global Permissions and then provide access from the space level.  

You can follow the steps as mentioned [here](https://confluence.atlassian.com/doc/setting-up-public-access-156.html).  
Enabling the global permission should not impact you from accessing the instance through your DNS. However, if you still seeing it please provide us the logs.  

Thanks

Yoga


Tags: confluence-server

server
Open task Macro ticking of wrong tasks
Asked by Lisette Bruens:

The open task macro is really useful to easily see which tasks are still open from several meeting notes. BUT we noticed a big bug: if you want to tick of a task you have done, it often ticks of a totally different task in the same list (without you really noticing).

So the only way you can properly tick of the task is actually going to the original page, but this take away the entire advantage of the open task macro, having all the tasks in one list (and ticking of is done)

Anyone else has this problem / bug, and how to solve it?


Answers:
author: Shannon S
body: Lisette,

Could you confirm if you're using Confluence Cloud?

I'm aware of a bug in Confluence Cloud where checking off tasks from the Task Report Macro can be unreliable:

* [CONFCLOUD-58465](https://jira.atlassian.com/browse/CONFCLOUD-58465) *Completing simple tasks or tasks from 'Task Report Macro' is unreliable*

Have a look, and please confirm if this is the bug that is affecting you.

Regards,

Shannon
Remove from HTTPS
Asked by Sven Frankm?lle:

to change the Confluence from HTTP to HTTPS you must under /atlassian/confluence/conf

change the uncomment from Connector and set 'useHttpOnly="true"' to "false"

Additional edit under general configuration in Confluence Administration the server-base-url

That is afaik the usual way.

But I have another case - the connector is still uncommented the useHttpOnly is and was set "false" only in 'scheme="https"' is set HTTPS and the confluence is only reachable under HTTPS and forward http to https

My Question is:

To change it back from HTTPS to HTTP is it enough to remove the s from the scheme or are there any other ideas for this to undo?


Answers:
author: Zak Laughton
body: Hi Sven!

The way we typically recommend setting up SSL in Confluence is by following the steps on [Running Confluence over SSL or HTTPS](https://confluence.atlassian.com/doc/running-confluence-over-ssl-or-https-161203.html). This basically involves importing a certificate, adding an SSL connector in server.xml, and adding a rule to redirect web requests from the non-SSL connector to the SSL connector.

If you follow this method, you should be able to allow non-SSL traffic by removing the redirect in web.xml. If you want to remove SSL connectivity altogether, you can comment out the SSL connector in server.xml.

I hope this helps!  
-- Zak


Tags: confluence-server

linux

server
Can't sign in to Confluence convertOperationFailedException
Asked by Michael Mettenleiter:

Unfortunately I can not log in to Confluence from time to time.

In to the administration area I can not log in anymore.

### Cause {#toc-hId-1053881440}

com.atlassian.crowd.exception.runtime.OperationFailedException  
at com.atlassian.crowd.embedded.core.CrowdServiceImpl.convertOperationFailedException(CrowdServiceImpl.java:676)

caused by: com.atlassian.crowd.exception.ApplicationPermissionException: Forbidden (403) Beim Laden dieser Seite ist der Fehler "403 - Forbidden" aufgetreten. client.forbidden.exception Zur Jira Startseite  
at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.throwError(RestExecutor.java:522)

#### Stack Trace: {#toc-hId-1744442914}

```
com.atlassian.crowd.exception.runtime.OperationFailedException	at com.atlassian.crowd.embedded.core.CrowdServiceImpl.convertOperationFailedException(CrowdServiceImpl.java:676)	at com.atlassian.crowd.embedded.core.CrowdServiceImpl.authenticate(CrowdServiceImpl.java:76)
```


Answers:
author: Shannon S
body: Michael,

It seems like you might be running into this issue:

* [Unable to create JIRA User Directory in Confluence due to ApplicationPermissionException - Forbidden (403)](https://confluence.atlassian.com/confkb/unable-to-create-jira-user-directory-in-confluence-due-to-applicationpermissionexception-forbidden-403-320602732.html)

You might also need to add the IP address of your Confluence server, which is also mentioned on this article:

* [Connecting Confluence to Jira applications for User Management](https://confluence.atlassian.com/doc/connecting-to-crowd-or-jira-for-user-management-229838465.html#ConnectingtoCrowdorJiraforUserManagement-jira)

Let me know if you have any trouble.

Regards,

Shannon

comments: author: Michael Mettenleiter
body: Hi Shannon,

thanks for your reply.

My JIRA User Directory was working for the last year. I have updated Jira to 8.0 and Confluence to 6.14.1 and from this moment i get this error from time to time for normal login and durable for the administration login.

The IP is whitelisted and no firewall between those servers.


author: Shannon S
body: Michael,

Thank you for providing the specifics of your issue.

However, the only information I get from your error is that Jira is telling Confluence it's forbidden from accessing.

We'll need to get more errors from this in order to know why Confluence is forbidden.

On the **Confluence side**:

1. Navigate to **Confluence Administration** \>\> **General Configuration** \>\> **Logging and Profiling**
   * Add **org.apache.http** to the logging box and set it to **DEBUG**

On the **Jira side**:

1. Navigate to **Jira Administration** \>\> **System** \>\> **Logging and Profiling**
   * Enable **HTTP Access logging**
   * Enable **HTTP Dump logging**

Once you have that, when Confluence fails again, you can look at your server logs in both Jira and Confluence server. Then you can provide us with the lines that pertain to this login issue.

Regards,

Shannon


Tags: confluence-server

server
How can I copy an page tree from Confluence to another one ?
Asked by Eyad Rakouky:

How can I copy an page tree from Confluence to another one ?


Answers:
author: Zak Laughton
body: Hi Eyad,

The best way I can think of in Confluence to copy a page tree to another instance is by using the XML space export. The steps would look something like this:

1. Create a [custom space export](https://confluence.atlassian.com/doc/export-content-to-word-pdf-html-and-xml-139475.html), exporting only the targeted page tree.
2. [Restore the space](https://confluence.atlassian.com/doc/restoring-a-space-152036.html) to the destination Confluence instance.
3. [Move the parent page](https://confluence.atlassian.com/doc/move-and-reorder-pages-146407727.html) to the desired location in the destination instance (this will include child pages).

I hope this helps!  
-- Zak


author: Fabienne Gerhard
body: Hi [@Eyad Rakouky](/t5/user/viewprofilepage/user-id/2743032) - welcome to this wonderful community.

have a look on addons like [Copy Page Tree](https://marketplace.atlassian.com/apps/22929/copy-page-tree?hosting=cloud&tab=overview) (available for Cloud and Server). I tried this and it worked perfectly fine for me.

comments: author: Fabienne Gerhard
body: Ups - or did you mean between two instances? Have a look in this [topic](https://community.atlassian.com/t5/Confluence-questions/How-to-copy-a-page-to-a-different-confluence-instance/qaq-p/346924)
Is it possible to predefine a mention in a blueprint or template?
Asked by Per-?ge Themte:

Hi,

I'm creating a checklist for on- and offboarding of employees, and I'd like to create a template as a tasklist with pre-defined responsible parties. If I could hardcode user mentions in the template, those persons would automatically get notified when a page was created and they where given a task.

Is something like that possible? And if not - have you any suggestions for a workaround?


Answers:
author: Diego
body: Hello there! Thanks for sharing your question with the Community.

Could you clarify a few points for us:
> 1. Are you **able to create**new Page Templates in Confluence?
> 2. Is your Confluence instance **Cloud or Server**?

Nonetheless, you should be **able to insert mentions** on a Page Template. For **Confluence Server**, you could follow like this:
> 1. Click **Cog Icon** **\> General Configuration**
> 2. Search for **Global Templates and Blueprints**
> 3. Edit (or create) the desired Template
> 4. Add the mention **to the desired user**
> 5. **Save** the template

When you create a page using this template, the mention should be automatically inserted in the page.

For **Confluence Cloud** you can follow like this:
> 1. Click the **Cog Icon on the left bar**
> 2. Search for **Global Templates and Blueprints**
> 3. Edit (or create) the desired Template
> 4. Add the mention **to the desired user**
> 5. **Save** the template

The results should be the same as what we get in Confluence Server!

Let us know your results!

comments: author: Per-?ge Themte
body: Hi [@Diego](/t5/user/viewprofilepage/user-id/1188952) We're on cloud and this is definitely not working. Using @ in a template doesn't show any users, and trying to add mention from the menu shows error: "

No macro metadata There is no metadata configured for this macro which means no configuration screen can be presented here. If this is a user macro then you can add metadata to the template using the User Macro Administration console."


author: Diego
body: Hi again!

You are right, I was able to reproduce the behaviour on my Cloud Instance. With this in mind, I have raised the following Bug Report:

**[CONFCLOUD-65668 \| User mention on Page Template creation does not work](https://jira.atlassian.com/browse/CONFCLOUD-65668)**

You could proceed by **voting and watching**the report. Voting increases the report visibility and watching will keep you up to date with everything!

For more details on the bug fixing policies, you can check here:

**[Atlassian Cloud Bug Fix Policy](https://confluence.atlassian.com/support/atlassian-cloud-bug-fix-policy-206865884.html)**

Let us know!


author: Steven Slezak
body: Hello Atlassian Team,

I'm raising this issue again because I am seeing this same behavior. I'm trying to add @-mentions to custom templates for onboarding tasks and they are not sending notifications to my team.

Let me know if I need to submit any further information.

Thanks
Can I create a table of contents that includes sub-pages of another than the current page?
Asked by Eva Helmeth:

I want to insert a view of a table of contents of another page.


Answers:
author: Raja Shekher Kammara
body: Hi Eva Helmeth,

Add a macro "Children Display" on the page.

In the options "Parent Page" give the name of the page, which you would want the contents to appear.

You can also add a macro called "Page Tree". under the options select "Root Page"

Hope this helps.

<br />

Warm Regards,

Raja

comments: author: Eva Helmeth
body: Hi Raja,

Thanks for your quick reply. I'd like to integrate the headings of another page. There are no child pages...

Hope it's clear what I'm looking for.

Thanks and kind regards,

Eva


author: Raja Shekher Kammara
body: Hi Eva,

* You can use "Excerpt" macro
* Put your page heading in "Excerpt"
* Access the same in another page using "Excerpt Include" macro.

Hope this helps

Warm Regards,

Raja


author: Eva Helmeth
body: Oh perfect! Thanks so much, Raja!


author: Eva Helmeth
body: Dear Raja,

the headings are displayed correctly with the "exerpt include" macro. But the links are not leading to the page where the exerpt macro is added... When I click on the headings, I remain on the same page. Any ideas?

Thanks and kind regards

Eva


author: Cezar Sandra
body: Hi Eva,  
My answer is a bit late, but maybe someone else needs it. I found a solution here:  
[Display a Working Table of Contents on a Different Page](https://community.atlassian.com/t5/Confluence-questions/Display-a-Working-Table-of-Contents-on-a-Different-Page/qaq-p/125911#qanda-message-125912 "Display a Working Table of Contents on a Different Page")


Tags: cloud

confluence-cloud
Upload and edit of word documents on confluence and activity stream updates
Asked by Chantel Luther:

Hi everyone,

We recently imported several word documents as pages they show up on the activity stream on the created dated however when you edit the item the updated date actually changes to edit

so for example

Stream will say Person created page on specific date if anything is edited the status updated from created to edited through out the gadget.

How do we resolve or is have create and edit status displayed separately on activity


Answers:
author: Shannon S
body: Chantel,

I think I need a bit of clarification on your issue. From what I understand, you import Word Documents to convert to a page in Confluence, and in your Activity Stream, it's showing the date that they're created.

However, if you edit the page that has been created, the date shows the last edited date.

Is this correct? It seems that would be expected behavior to me, but if you can show me an example where it's not working properly, or what you'd expect to happen, I'd be happy to take a look.

Regards,

Shannon

comments: author: Chantel Luther
body: Hi Shannon

Issue is resolved.

Thank you!


Tags: cloud

confluence-cloud
Error when connect MySQL database to Confluence
Asked by quoc:

Hi,

I'm trying to connect confluence with my own database but I got this error.  
Confluence 6.14.1  
JDBC: mysql-connector-java-5.1.47  
Mysql 5.7.25 (It's already connected successfully with jira server)  

```
A system error has occurred - our apologies!

For immediate troubleshooting, consult our knowledge base for a solution.

If you would like to receive support from Atlassian's support team, ask your Confluence administrator to create a support issue on Atlassian's support system with the following information:

a description of your problem and what you were doing at the time it occurred
a copy of the error and system information found below
a copy of the application logs (if possible).
Your Confluence administrator can use the support request form to create a support ticket which will include this information.

We will respond as promptly as possible.
Thank you!

Return to site homepage?

The SystemInformationService could not be retrieved from the container. Therefore very limited information is available in this error report.?
The SystemInformationService could not be retrieved due to the following error: java.lang.IllegalStateException: Spring Application context has not been set
Cause
com.atlassian.config.ConfigurationException: Invalid bean definition with name 'tenantedLuceneConnection' defined in class path resource [indexingSubsystemContext.xml]: Could not resolve placeholder 'lucene.index.dir' in value "${lucene.index.dir}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'lucene.index.dir' in value "${lucene.index.dir}"
at com.atlassian.confluence.setup.actions.AbstractSetupAction.transitionFromColdToVacantState(AbstractSetupAction.java:162)
.....
```

Please help me, thanks you


Answers:
author: quoc
body: :))

Fixed by add this line

    <property name="lucene.index.dir">${confluenceHome}/index</property>

to \<home_dir\>/confluence.cfg.xml

comments: author: Grigory Salnikov
body: If only all the questions were solved by their authors :)


Tags: confluence-server

server
TaskQueue: Error running task. Failed to handle key=<C-a>. Cannot read property 'slice' of undefined
Asked by Dimas Sulistyanto:

TaskQueue: Error running task. Failed to handle key=\<C-a\>. Cannot read property 'slice' of undefined.


Answers:
author: Zak Laughton
body: Hi Dimas,

I'm a little unclear on the issue you're facing here. Could you provide some more context? The following information will help others in the Community to analyze and address the issue:

* What are you trying to accomplish?
* Where are you seeing this error?
* What steps did you take to produce this error?

Thanks!  
-- Zak

comments: author: Dimas Sulistyanto
body: Danke
Cannot connect MySQL database to Confluence
Asked by quoc:

Hi,

I'm trying to connect confluence with my own database but I got this error.  
Confluence 6.14.1  
JDBC: mysql-connector-java-5.1.47  
Mysql 5.7.25 (It's already connected successfully with jira server)

```

A system error has occurred - our apologies!

For immediate troubleshooting, consult our knowledge base for a solution.

If you would like to receive support from Atlassian's support team, ask your Confluence administrator to create a support issue on Atlassian's support system with the following information:

a description of your problem and what you were doing at the time it occurred
a copy of the error and system information found below
a copy of the application logs (if possible).
Your Confluence administrator can use the support request form to create a support ticket which will include this information.

We will respond as promptly as possible.
Thank you!

Return to site homepage...

The SystemInformationService could not be retrieved from the container. Therefore very limited information is available in this error report. 
The SystemInformationService could not be retrieved due to the following error: java.lang.IllegalStateException: Spring Application context has not been set
Cause
com.atlassian.config.ConfigurationException: Invalid bean definition with name 'tenantedLuceneConnection' defined in class path resource [indexingSubsystemContext.xml]: Could not resolve placeholder 'lucene.index.dir' in value "${lucene.index.dir}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'lucene.index.dir' in value "${lucene.index.dir}"
at com.atlassian.confluence.setup.actions.AbstractSetupAction.transitionFromColdToVacantState(AbstractSetupAction.java:162)
.....
```

Please help me, thanks you


Answers:
author: Zak Laughton
body: Hello,

Looks like you are running into a "Spring Application context has not been set" error. This is a common misconfiguration error on new installations, often caused by insufficient permissions on the Confluence install and Home folders.

I recommend running through the resolutions in order in the **Resolution** section of [Confluence does not start due to Spring Application context has not been set](https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html). These fixes almost always resolve the issue. If you still run into issues, please let us know what you tried and if you saw any change in behavior.

I hope this helps!  
-- Zak


Tags: confluence-server

server
NaN is displayed in excerpt include
Asked by Will Wang:

I insert one excerpt macro and embed one HTML macro into it on page A, the excerpt displays the value of HTML macro(550) correctly on page A; On page B, I inserted on excerpt include to include excerpt on page A, but it shows NaN on page B, BTW,the value has been transferred to string format, I also tried to output the value direct in JS but it is not available in JS currently after checking(if you know a way to do so, be sure to tell me, thanks in advance). Here attached screenshots of page A and page B for details.

Page A with excerpt:

![Page A with excerpt.PNG](/t5/image/serverpage/image-id/46105iB3F0F3740FCFDFC8/image-size/large?v=v2&px=999 "Page A with excerpt.PNG")Page A outcome:

![Page A outcome.PNG](/t5/image/serverpage/image-id/46108i9FEC924C188D3AF2/image-size/large?v=v2&px=999 "Page A outcome.PNG")

Page B outcome:

![excerpt include outcome on Page B.PNG](/t5/image/serverpage/image-id/46107iF38EEC428A949F86/image-size/large?v=v2&px=999 "excerpt include outcome on Page B.PNG")


Answers:
author: Will Wang
body: Woops, I find the root cause, the HTML macro is executed on Page B.

Any way to limit HTML macro to be executed on page A only ?

comments: author: Zak Laughton
body: Hi Will,

There's not a native way in Confluence to prevent the HTML macro from being run in an excerpt macro, but there may be a workaround with Javascript. I'd try wrapping the logic in a conditional statement that checks the title of the page.

For example (have not yet tested):

```
const pageTitle = document.querySelector('#title-text a').innerText; // Get title of page
if (pageTitle === "My Original Page") {
  // Insert logic here that you only want on "My Original Page"
}
```

I hope this helps!  
-- Zak


author: Will Wang
body: Hi Zak,

Noted with thanks. But I also need to get the table of source page(Page A).

i have choose solution that use load() formula in page B to get the data on Page A and get everything done in page B. Below is one sample of load()

$("#title-text").load("URL tbody",function(response){

insert the logic here

});


Tags: confluence-server

server