youngmon/atlassian-qna huggingface dataset:
Confluence site suddenly stops working. There is/are [150] thread(s) Value may be stuck
Asked by IT Support:

I have a confluence standalone version running on Windows 2012 and SQL in AWS.  
The confluence website stops working every day or so.

After a reboot of the instance, the Confluence starts working again. But then work for just day or so before it needs a reboot.

Just before it stops working I get the below error.

Is there some kind of setting I can tweak to make it running without getting stuck?

I compare a number of logs when it got stuck and found that when there is 150 threads and value may be stuck message the confluence stop working.

**There is/are \[150\] thread(s) in total that is monitored by this Valve and may be stuck.**

15-Jul-2019 16:33:52.678 WARNING \[ContainerBackgroundProcessor\[StandardEngine\[Standalone\]\]\] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread \[https-jsse-nio2-443-exec-148\] (id=\[2175\]) has been active for \[66,752\] milliseconds (since \[7/15/19 4:32 PM\]) to serve the same request for \[[https://help.pexxxx.com.au/rest/quickreload/latest/1477398?since=1563171193340\&_=1563172367298](https://help.pexxxx.com.au/rest/quickreload/latest/1477398?since=1563171193340&_=1563172367298)\] and may be stuck (configured threshold for this StuckThreadDetectionValve is \[60\] seconds). **There is/are \[150\] thread(s) in total that are monitored by this Valve and may be stuck.**   
java.lang.Throwable  
at com.hascode.confluence.plugin.filter.ApplicatorFilter.doFilter(ApplicatorFilter.java:48)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:64)  
at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:37)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:58)  
at


Answers:
author: Stephen Sifers
body: Hello,

Thank you for providing what infrastructure you're running on along with that steps help to resolve the issue. Additionally, the logs you sent are helpful. The type of error, however, is not always clear in what could be the cause. There are a few items which may cause this type of timeout and/or performance issue:

* Check CPU utilization on both your Confluence server and SQL instance.
* Ensuring your Memory utilization is not over-allocated
* Ensuring disks are not queuing and are adequate for your instances

Additional resources to review would be: [Performance Tuning](https://confluence.atlassian.com/doc/performance-tuning-130289.html)

Regards,  
Stephen SIfers

comments: author: charleslcso
body: My Confluence 7.3.1 has only 1 thread, and it still stuck.  

\[Catalina-utility-1\] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread \[http-nio-8090-exec-12\] (id=\[221\]) has been active for \[60,689\] milliseconds (since \[5/2/20 7:41 PM\]) to serve the same request for \[xxx\] and may be stuck (configured threshold for this StuckThreadDetectionValve is \[60\] seconds). There is/are \[1\] thread(s) in total that are monitored by this Valve and may be stuck.
Re-install confluence, lost server id and recover license?
Asked by ???:

Hi, i meet some error while install confluence, so i restored VM from snapshot.

Then i realized that the snapshow is before install the confluence. I recorded server id but it's lost when restored from snapshot..... And re-install confluence generated a new server id...

Who can tell you how can i do with this kind of situation?

Thanks.


Answers:
author: Ollie Guan
body: Hello [@???](/t5/user/viewprofilepage/user-id/3300666) ,

Have you ever tried generating a new serial number using the new server ID?

[New Evaluation License](https://my.atlassian.com/products/index)

You can add my WeChat, I will pull you into the AUG WeChat user group in China.

WeChat ID : guanqun1982

comments: author: ???
body: Yes re-installed with a evaluation license and the new server ID.


Tags: confluence-server

server
Is there a way to force all links to be a page ID rather than the pretty format?
Asked by Zach Zampetti:

Pretty names are fairly useless for external links since changing the name of a page breaks the link. Is there a way to force all pages to use ID so it is easier to copy and paste links?


Answers:
author: Nic Brough -Adaptavist-
body: No, there's no way to do this easily. You'd have to turn off the code that makes the "pretty" urls.

I tend to use the short links (in the page properties) which are also invariant.

comments: author: Bill Bailey
body: Well won't the pretty URLs redirect (or at least point the user to the correct page)?

And yeah, tiny URLs is probably the easiest way to go.


author: Zach Zampetti
body: Thanks. The short links seem to work. I just wish there was an easier way of getting those links. Having to open each page and then wait while the link is generated is a bit slow.


author: Bill Bailey
body: Maybe update the page layout to display that value? Then it would always be visible,

Docs are here [customizing-site-and-space-layouts](https://confluence.atlassian.com/doc/customizing-site-and-space-layouts-149374.html).

You will have to search on how to get the tinyURL.


author: Bill Bailey
body: Actually, this decorator file will give you some clues

**link-to-this-page.vm**

```
#* @vtlvariable name="globalSettings" type="com.atlassian.confluence.setup.settings.Settings" *#
#* @vtlvariable name="page" type="com.atlassian.confluence.pages.AbstractPage" *#
#if ($page && $action.tinyUrl)
<content tag="canonical">
##We want search engines to index the current version of the page, not the historical ones.
#if ($helper.isHistoricalVersion())
<link rel="canonical" href="$globalSettings.baseUrl$generalUtil.htmlEncode($generalUtil.getPageUrl($page.originalVersion))">
#else
<link rel="canonical" href="$globalSettings.baseUrl$generalUtil.htmlEncode($generalUtil.getPageUrl($page))">
#end
<link rel="shortlink" href="${globalSettings.baseUrl}/x/$action.tinyUrl">
<meta name="wikilink" content="$generalUtil.htmlEncode($page.linkWikiMarkup)">
<meta name="page-version" content="$page.version">
<meta name="ajs-page-version" content="$page.version">
</content>
#end
```


Tags: confluence-server

server
Marcos are not working after migrating Confluence Server to Confluence Cloud
Asked by abiy mulu:

We are in the process of migrating Confluence server to Cloud and some of the Macros are not functioning...Unknown macro: "macro name".


Answers:
author: Michael Kuhl _Appfire_
body: Hi Abiy - Make sure you have installed the same apps in your cloud instance as in server. If they are not installed in the cloud instance then the macro for the add-on will not work. If you have the cloud version of the add-on installed, but still see the errors, then check the add-on documentation to see if that macro is available in the cloud version of the app.

In some cases there may not be a cloud version of the app you use on server in which case you may wish to see if there are Confluence cloud apps that will give you the same functionality. If you find one then you will need to replace the macros with the new add-on's macros.


Tags: atlassian-support
Is there a way to hide existing documents in Confluence?
Asked by Dawnn Burrell:

We have some documents that are out dated in our Confluence pages, that we would like to temporary hide them. Is there a way to do this.

Thanks much.

Dawnn


Answers:
author: Thomas Deiler
body: Dear [@Dawnn Burrell](/t5/user/viewprofilepage/user-id/2856398) ,

you could

a) move this pages to another space, where only admins have access

b) restrict the pages viewing

If you mean to hide just attachments of one page, this won't work. Either the entire page or nothing.

So long

Thomas

comments: author: Thomas Deiler
body: for a) this is simple.

* create a new space and be sure only you or any other admin can access
* go to the page to hide
* click on the 3 dots in the upper right page view
* "move" - \> select the new space

for b): [Page Restrictions](https://confluence.atlassian.com/doc/page-restrictions-139414.html)


author: Dawnn Burrell
body: Hi Thomas:

Thanks for replying to me.

Where can I get the instructions for "a" and "b" (restrict the pages viewing)?

Thanks much.

Dawnn

comments: author: Dawnn Burrell
body: Hi Thomas:

Thanks for your help. I used Option B Page Restrictions and it worked.

Thanks again.

Dawnn
Will copying a space still link to original
Asked by Victor Mutambuki:

Does copying a space to a new one attach original pages, attachments and linked pages to the new space?

As far as I know, it shouldn't, however, I know of someone having issues.

Victor


Answers:
author: Diego
body: Hey there Victor!

I am not sure if I understand what you need. Confluence have three types of *Space Exports*that can be restored into other instances. Here you can see them and what is included with them:
> ![Screen Shot 2019-07-18 at 18.15.42.png](https://community.atlassian.com/t5/image/serverpage/image-id/60892i1AA1BAA8AC47130B/image-dimensions/587x344?v=v2 "Screen Shot 2019-07-18 at 18.15.42.png")

If we *assume* the issue is happening with our *XML Exports,* attachment should be present in the export and after the restore into another instance. For more information on *Content Export And Restore,*you can take a look here:
> * **++*[Export Content to Word, PDF, HTML and XML - Confluence Server](https://confluence.atlassian.com/doc/export-content-to-word-pdf-html-and-xml-139475.html)*++**
> * [**++*Restoring a Space*++**](https://confluence.atlassian.com/doc/restoring-a-space-152036.html)

If you are on *Confluence Cloud,*you should look here:
> * ***++[Import a Confluence Space](https://confluence.atlassian.com/confcloud/import-a-confluence-space-724765531.html)++***
> * ***++[Export Content to Word, PDF, HTML and XML - Confluence Cloud](https://confluence.atlassian.com/confcloud/export-content-to-word-pdf-html-and-xml-724764824.html)++***

With the above in mind, could you clarify:
> 1. What *kind of issue*is the user facing?
> 2. Has this worked in the past?
> 3. Are you on *Confluence Cloud* or *Confluence Server?*

Looking forward to your reply Victor!

comments: author: Victor Mutambuki
body: Diego,

Thanks for the reply. I'm not the one who was having an issue but a fellow community user. Their issue is different. When they copy a space in confluence, page tries from the previous space are active and present in the new space.

I've never experienced that issue as i know once you copy a space, it gets detached from the original.

Victor


author: Diego
body: Hey there Victor!

As of today, Confluence (Cloud or Server) does not support copying of spaces. Here you can have more details about it:
> * ***++[How to copy or rename a space in Confluence](https://confluence.atlassian.com/confkb/how-to-copy-or-rename-a-space-in-confluence-169578.html)++***

It is likely that your instance has some kind of third-party plugin that allows this. One example of such a plugin is this:
> * ++***[Copy Space for Confluence](https://marketplace.atlassian.com/apps/212/copy-space-for-confluence?hosting=server&tab=overview)***++   

The plugin presented above is available *++only for Confluence server.++* Let us know if you are using Confluence Cloud.

Let us hear from you, Victor!
Want to create JIRA fliter that filters the tickets created in any specific quarter (Q1/Q2/Q3)
Asked by venmathi sivasankaran:

Hi I want to filter the JIRA tickets based on the date it has been created. But I want to filter for each Quarter. Q1 Q2 and Q3 that way... I tried using the below query. But it doesn't seem to work properly.

**Query 1:** project = RFL AND (created \>= startOfYear(7M) AND created \<= startOfYear(9M))

**Query 2:** project = RFL AND created \>= startOfMonth()

Query 1 is for filtering tickets for this Quarter (Q3) but no results are returned. Where as Query 2 is returning me results which are created starting from this month .

If I try to use the Query 1 for last quarter(Q2) I'm getting some results. But I doubt whether its correct as its is not working for Q3.

Please help me out.


Answers:
author: Ilya Turov
body: it's just that startOfYear() is the 1st of Jan, startOfYear(1M) is the 1st of Feb etc.. so startOfYear(7M) gonna be 7 months *after* the year started, so the 1st of August, which as we all know hasn't come yet

comments: author: venmathi sivasankaran
body: Thank You [@Ilya Turov](/t5/user/viewprofilepage/user-id/2616972)

Its bit confusing. So the below query returns tickets created in Q2.

project = RCTRL AND (created \>= startOfYear(3M) AND created \<=endOfYear(-6M))


author: Ilya Turov
body: Honestly, I would go for consistency and use startOfYear() (almost) everywhere, so

Q1: between startOfYear() and startOfYear(3M)

Q2: between startOfYear(3M) and startOfYear(6M)

Q3: between startOfYear(6M) and startOfYear(9M)

Q4: between startOfYear(9M) and endOfYear()


author: venmathi sivasankaran
body: Yes This works. I'm confusing myself a lot. Thank You IIya!


author: Andrew Mirauta
body: Hello [@Ilya Turov](/t5/user/viewprofilepage/user-id/2616972) , is there a startOfYear type function for the previous year? I'm loving this function, and I'd like to add a 2020Q1 report next to it for comparison. I'm seeing this as being used for the next few years at my company's board meetings.


author: Thomas Deiler
body: Dear [@venmathi sivasankaran](/t5/user/viewprofilepage/user-id/3460615) ,

what about pragmatically:

```
project = xyz and createdDate >= 2019-01-01 and createdDate < 2019-04-01
```

for Q1?

So long

Thomas

comments: author: venmathi sivasankaran
body: Hi [@Thomas Deiler](/t5/user/viewprofilepage/user-id/72007)

We can use dates, but I'm thinking of some generic stuffs , so that we no need to change the dates all the time. But Thank You for input and time.

Thanks,

Venmathi


Tags: jira-core
Can no longer Create pages / sub pages after upgrade
Asked by Justin Plaza:

Upgrades to latest Atlassian Confluence 6.15.4 Using Refined Wiki Theme (but doesnt come up without the theme either) After upgrade i can no longer "Create" - the button is missing from every page/space. Seems like a permissions issue but I can't seem to get to the bottom of it. I've granted myself full confluence administrator to a brand new account and the Create button is still missing


Answers:
author: JP _AC Bielefeld Leader_
body: Hi,

did you check the application.log for any errors after upgrade? Are you the only user affected?

Best

JP

comments: author: Justin Plaza
body: We only have 4 users accessing. All users are affected.

<br />

Where can i find the log? On my server?


author: JP _AC Bielefeld Leader_
body: Correct!

Please check:

<https://confluence.atlassian.com/adminjiraserver073/logging-and-profiling-861253813.html>

and

<https://confluence.atlassian.com/adminjiraserver073/important-directories-and-files-861253886.html>

Best

JP


author: JP _AC Bielefeld Leader_
body: Oh, sorry. This was for Jira.

Try this:

<https://confluence.atlassian.com/doc/working-with-confluence-logs-108364721.html>


Tags: button

confluence-server

server
How to copy a complete page hierarchy without links
Asked by Aakash:

For example, I copy the directory Trees in confluence from a German manual to a separate space, because the page hierarchy should remain the same. The links and sublinks are also copied. In the edit mode, I would have to manually go to each subitem. Is there a way to solve all links automatically?  
As soon as I enter the English terms in the copied tree page hierarchy (also in the copied subdirectories), the German content in the German manual changes to the directory Tree, which I copied.  
Hope that was more understandable?


Answers:
author: Victor Mutambuki
body: Arun,

If i understand you correctly, you should not include child pages when you copy over the structure. This should be achieved by simply NOT checking, child pages.

Victor

comments: author: Aakash
body: Hi Victor,

thanks for your answer! Actually I want to use the copied tree page hierarchy (also in the copied subdirectories) in order to edit it but the copied link refer to the original tree which contents i do not want to change. Any idea how to achieve this? Bests Arun


author: Victor Mutambuki
body: Arun,

Once copied, the pages are delinked from the original and now have URLS of new spaces. The page names are same but the path of the pages is different reflecting new space.

Victor


author: Aakash
body: Victor,

but unfortunately in the present case when I edit the Content of the copied trees - the changes are all visible in the original tree that i had copied from.

Arun


author: Victor Mutambuki
body: Arun,

Even if they're visible, they're detached from the original and vice versa.

Your copied content is independent from the original.

<https://confluence.atlassian.com/confcloud/move-copy-and-hide-pages-724764858.html>

Victor


author: Aakash
body: Victor,

i checked the content of the original pages which hierarchy i had copied and the Content had changed.

Arun


author: Victor Mutambuki
body: Arun,

I'm confused. As per the documentation, the different spaces have the same content but with different URL paths which aren't connected.

Victor


author: Aakash
body: Victor

May be the documentation mentions this, but in reality it did not work. Arun


author: Victor Mutambuki
body: Arun,

I've experience with confluence and also copying of pages as well as entire spaces and I've never encountered such issues.

Victor


author: Aakash
body: Victor,

still thanks for your effort. May be i have to look for another solution. Arun


Tags: cloud

confluence-cloud
Can the Confiforms Status field colors be overridden?
Asked by Bill Purlock:

The Status filed type in Confiforms only allows for a selection of six different colors. Is it possible to add to this selection or modify the colors that are currently available?


Answers:
author: Bill Purlock
body: Thank you for your response.


author: Davin Studer
body: The status fields use Atlassians AUI (Atlassian User Interface) framework. You could override the colors using some custom CSS. You could do that space wide using the space stylesheet in space administration or you could put a style macro on the page and limit it to a single page.
Algorithm hash for Confluence analytics datas
Asked by CAT:

Hi ! Do u know which algorithm is used by atlassian for the confluence analytics datas ? I want to know how datas wich will be send to Atlassian (that the condition) are well protect, my DPO is going to check it and say go or not to activate Analytics in confluence.

Thanks for your answer !

Clotilde


Answers:
author: Stephen Sifers
body: Hello Clotilde,

If you're wanting to see further information on how Confluence Analytics and Statistics work then we would suggest reviewing the guides on how they function and what is required. There are a few resources which cover what is needed and the data that is gathered when enabled. You may find these resources here:

* [Confluence: Analytics \& Statistics](https://confluence.atlassian.com/confeval/confluence-evaluator-resources/confluence-analytics-statistics)
* [Viewing Site Statistics](https://confluence.atlassian.com/doc/viewing-site-statistics-123043962.html)
* [How do I get more statistics from Confluence?](https://confluence.atlassian.com/confkb/how-do-i-get-more-statistics-from-confluence-154239308.html)

While this is not the exact algorithm that is used for the data, these should prove helpful in understanding what is needed and used for populating the data.

Regards,  
Stephen Sifers


Tags: confluence-server

server
"AND" Labels in Content Report Table macro
Asked by Mondo:

I am trying to build a list from a combination of Labels, but it only seems to work as an "OR" statement with comma's, and no way to do A + B, both being required.


Answers:
author: Diego
body: Hello there Armando!

You are correct, the Content Report Table macro works with an "OR" statement. We are not able to use an "AND" statement. If we fetch the specifications from our documentation for this macro, we find this:
> *This parameter is required. Specify one or more labels, separated by a comma. The macro will display the ++content tagged with any of the label(s) specified here.++*
>
> *For example, if you specify labels 'A' and 'B', the macro will display ++all pages that have the label 'A', and all pages that have the label 'B++ ', and all pages that have ++both those labels.++*

You can have a look at this right here:
> * ++***[Content Report Table Macro](https://confluence.atlassian.com/confcloud/content-report-table-macro-724765181.html)***++

When we search outside of our documentation, a user from *StackOverflow*devised a way to have similar results to what you need. Here is his thread:
> * ++***[Customizing the Content Report Table Macro](https://stackoverflow.com/questions/26405847/customizing-the-content-report-table-macro)***++

Let us know your thoughts on this Armando. Looking forward to your reply!

comments: author: Zeno
body: my thoughts are that :

* obsidian makes this trivial with DataView plugin.
* Notion makes this trivial too.
* it's been nearly four years and nearly 800 people have viewed this.
* it's really strange that JQL is a thing only in Jira. I guess this is a result of Atlassian filling out their product offering via acquisitions rather than building it themselves.

Fairly dissapointing really.


Tags: cloud

confluence-cloud
Confluence backup ending up in temp directory instead of backups
Asked by Nick Reilingh:

I am trying to run an XML backup on Confluence Server 5.10.3. The nightly backup job is disabled, so I am running it manually from the task scheduler.  

The backup job completes, but it does not end up in the \<homedir\>/backups directory indicated in the backup settings page. I managed to find it in the temp directory instead.  

The backup appears to be complete, but I am worried about this behavior---what can I do to troubleshoot?


Answers:
author: Thomas Deiler
body: Dear [@Nick Reilingh](/t5/user/viewprofilepage/user-id/664644) ,

this behavior is ok - there is a checkbox to also save the backup in backups dir.

So long

Thomas

comments: author: Thomas Deiler
body: See this from Confluence 6.15.6:

![conf-backup.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/60528iF8C8D767C0EFBF21/image-size/large?v=v2&px=999 "conf-backup.jpg")


author: Nick Reilingh
body: Is it actually communicated anywhere that backups are saved to \<homedir\>/temp? I can't seem to find it in any of the confluence documentation.


author: Thomas Deiler
body: I know this from experience - not documentation ;) The reason is to keep the confluence-home directory size low. All files in 'temp' are cleaned once a day. The one in backup not.


Tags: backup

confluence-server

server