youngmon/atlassian-qna huggingface dataset:
CLOSE_WAIT
Asked by Giovanni Tirloni:

Our self-hosted Confluence instance becomes unresponsive and the only solution is to restart it. There's barely any CPU usage and the logs don't show errors, besides the usual (macros and stuff).

There's a large number of connection in CLOSE_WAIT state:

```
tcp6 775 0 ::1:8090 ::1:32970 CLOSE_WAIT 
tcp6 794 0 ::1:8090 ::1:33048 CLOSE_WAIT 
tcp6 16787 0 ::1:8090 ::1:60580 CLOSE_WAIT 
tcp6 994 0 ::1:8090 ::1:60404 CLOSE_WAIT 
tcp6 16787 0 127.0.0.1:8090 127.0.0.1:36412 CLOSE_WAIT 
tcp6 428 0 127.0.0.1:8090 127.0.0.1:38934 CLOSE_WAIT 
tcp6 703 0 127.0.0.1:8090 127.0.0.1:37592 CLOSE_WAIT
```

I believe this could indicate an issue in Confluence itself. How should we proceed?

This issue just happened with v6.7.0 but we faced it on earlier versions too.


Answers:
author: AnnWorley
body: Based on the symptoms, I am guessing that Confluence could be running out of database connections. To diagnose and resolve this, please see [Confluence slows and times out during periods of high load due to database connection pool](https://confluence.atlassian.com/confkb/confluence-slows-and-times-out-during-periods-of-high-load-due-to-database-connection-pool-146407630.html)

The article recommends taking thread dumps during the performance issue. If you don't find the database connection issue described in the article, please see [HOW TO: Analyse Thread Dumps](https://confluence.atlassian.com/confkb/how-to-analyse-thread-dumps-788039144.html) in case the thread dumps can point you to another diagnosis.

If that doesn't turn out to be the issue, please also check for errors in the \<Confluence_home\>/logs/atlassian-confluence.log and let us know what you find during the unresponsive times.

comments: author: Giovanni Tirloni
body: Thanks for the pointers. The DB pool was indeed too low (at 30) and I've increased it. If that ends up being the root cause, I just wish there error messages but maybe I've missed something. Thanks again!


author: AnnWorley
body: There is usually, but not always, an error in the \<Confluence_home\>/logs/atlassian-confluence.log that reads something like "cannot open connection". My guess was partly based on the line in your description "This issue just happened with v6.7.0 but we faced it on earlier versions too."  
The database connection pool default for new installs of Confluence 6.7 is 60 and that line made me think yours was an upgraded instance. :)

I hope the performance issue is resolved. We shall see in time.
How to find out how many Knowledge Base Articles you have?
Asked by Andrea Aznar:

I am trying to report to the managers how many knowledge base articles we have. One of our goals for 2018 is to increase our KB repository, so I just wanted to measure how many we have right now, so we can compare it.


Answers:
author: Guilherme V.
body: Hi Andrea,

You can use a DB query in order to find how many pages you have in Confluence:

```
select count(*) from content where contenttype = 'PAGE' and content_status = 'current'
```

You can also use plugins: <https://marketplace.atlassian.com/plugins/com.addonengine.analytics/server/overview>

comments: author: Andrea Aznar
body: Hi Guilherme,

Can you please walk me through the process? I tried it and it didn't work for me.

thank you,

Andrea Aznar


author: Guilherme V.
body: what kind of issues you had with the query? Were you able to access the database? depending the database(mysql,oracle..), the query needs to be uppercased


author: Andrea Aznar
body: So I went to the Confluence page, and then where do I perform the search?


author: Andrea Aznar
body: How do I access the database?


author: Guilherme V.
body: What's your confluence's address? If you are using Confluence Cloud, then you'd not have access to the DB. If you are using the standalone version, then the Confluence admin would be able to access the database.


author: Andrea Aznar
body: I am using Confluence Cloud. Is there a workaround it?


author: Renata Bueno
body: Hello, Andrea!

Since the information you're requesting is confidential to your company, we've proceeded to open a support ticket on your behalf to assist you in this matter: [JST-370093](https://getsupport.atlassian.com/browse/JST-370093). In case you have any questions, please feel free to contact us as well!

Best Regards!

Renata Bueno \| Atlassian Support
Confluence - How to disable "NEW FEATURE" pop-up?
Asked by Alexandre Bosserelle:

Dear Confluence users and friends,

Would you know how to disable the pop-up "NEW FEATURE" displaying in the top and left bars?

I followed the following resources:

\* <https://community.atlassian.com/t5/Questions/How-to-turn-OFF-new-features-notification/qaq-p/225232>

\* <https://confluence.atlassian.com/confkb/how-to-turn-off-what-s-new-window-315326493.html>

... but none worked.

I also tried to disable the module "Whats New Resources (whatsnew-resources)" of the plug-in "Forms for Confluence" but it didn't help.

Thanks a lot for your help,

Best regards,

Alexandre

![confluence - disable annoying popup new feature in left menu.png](/t5/image/serverpage/image-id/15129iC719C3D5DC066F62/image-size/large?v=v2&px=999 "confluence - disable annoying popup new feature in left menu.png")![confluence - disable annoying popup new feature in top menu.png](/t5/image/serverpage/image-id/15130i1EC64CFFE9500716/image-size/large?v=v2&px=999 "confluence - disable annoying popup new feature in top menu.png")


Answers:
author: Shannon S
body: Hi there,

I've looked into this, and it doesn't appear that pop-up is from Confluence, but an Adaptavist add-on called "Forms for Confluence Blueprints". Can you confirm if you have this add-on installed?

If so, you can disable this by going to *CONFLUENCE-URL/admin/darkfeatures.action* and add the following: *com.adaptavist.confluence.forms.disablepopups* using the submit form at the bottom of the page.

Can you try that and let me know if you have any trouble?

Regards,  
Shannon

comments: author: Alexandre Bosserelle
body: Dear [@Shannon S](/t5/user/viewprofilepage/user-id/510046)

I cannot say thank you enough for your precious help.

This solved the issue. It's amazing, we can finally get rid of this annoying popup.

Thank you, thank you, thank you!

![thank-you-flowers.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/15264iA10A82A57E7FEAAE/image-size/large?v=v2&px=999 "thank-you-flowers.jpg")

Kind regards,

Alexandre


author: Shannon S
body: Aww, thanks Alexandre! Glad I could help :)

Regards,

Shannon


author: Dave Long
body: Thank you so much for this Shannon! We were having the same problem with these notifications appearing, and had I've been banging my head against the wall for some time on how to solve this issue.

We have the Community Forums Plugin and the Forms for Confluence plugins from Adaptavist installed, and this change has stopped those messages from appearing.


author: Shannon S
body: Hi Dave!

Glad to hear it helped you as well :)

Shannon


author: Honeywell
body: Also on our side, this article literally saved an upgrade window that was going straight into rollback.

Thanks a ton!

Fabrice.


Tags: adaptavist

disable

pop-up
Jira Issues Macro. Displaying info for single issue
Asked by Vasilisk:

Hi! How can I manage displaying fields using Jira Issues Macro for single issue?  

![2018-02-16 19-00-18 ?????? ????? - iSandBox - iSandBox - Google Chrome.png](/t5/image/serverpage/image-id/15121i09A6E00BC67211FA/image-size/large?v=v2&px=999 "2018-02-16 19-00-18 ?????? ????? - iSandBox - iSandBox - Google Chrome.png")

By default macros displays Issue Type, ID, Name and Status. I need to have ID, Assignee and Status for example. Is it possible?  

Thanks in advance!


Answers:
author: g
body: Hi Max,

At the moment this is not possible. Please watch and vote on the feature suggestion for it [CONFSERVER-35403](https://jira.atlassian.com/browse/CONFSERVER-35403).

Cheers

comments: author: Vasilisk
body: Thanks, Gojko! Will see.


Tags: issue

jira
Access to imported spaces
Asked by Clemens Woelfinger:

Hi,

I have imported a space from my Server Version of Confluence into the Cloud. All worked without error messages. However the access rights have been imported as well with the user names from the server version. This resulted in no or limited access to several pages of my space as my username from the server is not recognized as my user in the cloud.

Any idea how to solve this?

Thanks in advance for your help

Clemens


Answers:
author: Max Foerster - K15t
body: Hi Clemens,

you can manage the permissions as administrator in the Settings of your Cloud Instance (Security -\> Space permissions) and then remove restrictions from pages in the Space tools.

Best, Max

comments: author: Clemens Woelfinger
body: Hi Max,

thanks for the quick answer. This is waht I tried and I can set permissions for existing users. However on the Restrictions side as soon as I try to remove restrictions I get an error message that I am not allowed to do so and I should contact my space admin. As I am the space admin this does not make any sense to me.

Am I doing anything wrong?

Best Clemens


author: Max Foerster - K15t
body: Hi Clemens,

can you please check if you got the Add/Delete Page Restrictions permission in that space in addition to the Space Admin permission?

Edit: If the problem persists although you got all permissions necessary, please reach out to the support as I think they can be of better help on a Cloud instance :)


author: Clemens Woelfinger
body: Hi Max,

yes I have all permissions.

ok I will reach out to support

Thanks a lot for your help

Best Clemens


author: Max Foerster - K15t
body: Hi Clemens,

was the support able to solve this problem for you?

Best, Max


author: Clemens Woelfinger
body: Hi Max, yes they were very supportive and solved the issue. Thanks for asking.
How can I edit a Confluence page that has tabs on it
Asked by Chris Weston:

A colleague created a page with several tabs on it and I want to edit a page that is one of these tabs. I have write access to the whole page, but when I click on "Edit" I get a small rectangle with "Childtabs" and a red square. If I click on that I get a new window showing the tabbed page, but asking questions I don't understand.

I don't want to "break" the page, so can anyone tell me how I can edit a page that is one of the tabs?


Answers:
author: Max Foerster - K15t
body: Hi Chris,

to help you here I think we need some more information. There are a lot of ways to get tabs on a page (user macros, bough apps etc.) so we don't know for sure HOW they got on your page and if the content is embedded from another page (so you would have to edit a different page) or created within the macro. Could you provide some more details please? Or screenshots of the questions you don't understand? Thanks!

Best,

Max

comments: author: Chris Weston
body: Max,

Many thanks for your reply. Talking to colleagues over the weekend, one of them had the answer. On the left hand side instead of selecting the page that contains the tabs, select the actual tab you want to edit and press "Edit" and you can update that page. Simple really, just needed someone to point this out.

Regards,

Chris


author: Max Foerster - K15t
body: Okay, great Chris! Glad you could solve that :)
Is there a way to include the attachments of confluence page to the word export?
Asked by Chedomir_Dimitrovski:

There is requierment to include the attachments as object, not just as links in the page export to word or PDF. I've searched the market place but could not find an addon for this.

Is there a posibility for this?

Thank you in advance.


Answers:
author: Shannon S
body: Hi Cheodomir,

There's not currently a feature for this, but I did find a few feature requests that are suggesting the same. I would recommend voting on each of these, and comment there with your usage case.

* [CONFSERVER-13375](https://jira.atlassian.com/browse/CONFSERVER-13375)*Feature Request: Option to print attachments with page*
* [CONFSERVER-44246](https://jira.atlassian.com/browse/CONFSERVER-44246)*Provide an option to include attachments inside PDF instead of linking it*
* [CONFSERVER-41532](https://jira.atlassian.com/browse/CONFSERVER-41532) *Include Attachments when exporting a page to PDF*

I am tagging your question in the Marketplace collection, in case any vendors can suggest an add-on for you.

Regards,  
Shannon


Tags: app

atlassian-marketplace
Updating a page title results in error message
Asked by Shimrit Janes:

Editing a page title and clicking 'update' has suddenly started to result in the below error message showing

![Error message.png](/t5/image/serverpage/image-id/15119i6EC60836B19B205D/image-size/large?v=v2&px=999 "Error message.png")

Additional findings:

- This is affecting wiki pages only; not blog posts

- It's a site-wide issue

- It's only affecting the live environment, not dev

- The URL shown for the error message is the URL that the wiki page should have with the updated title.

Eg:

1. Original page title is /spacekey/This+page
2. Edit page
3. Change page title to This page 1
4. Click update
5. Page loads with above error message, and URL /spacekey/This+page+1

Anyone seen this before, and now how to resolve it? We're on Confluence v6.4, IE11. We can't use another browser.


Answers:
author: Danyal Iqbal
body: it looks like you don't have to permission to update the title. A new permission scheme might have been implemented in PROD. Contact your admin.

comments: author: Shimrit Janes
body: I \*am\* an admin :) Have admin rights at global level and also space level. Nothing's changed that I'm aware of for permissions
Notification on a part of a page
Asked by Arno van Hemert:

Is it possible to get a notification when only a part of a page changes?

Is it furthermore possible to disable the notify watchers checkbox? So watchers are always notified at changes?


Answers:
author: Shannon S
body: Hi Arno,

We've had a request specifically to notify when text within the {include} macro changes, but have decided not to pursue it:

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

I'm not sure if that's the type of change you were referring to, but regardless, a notification will go out when any native part of a page is changed. There isn't a way to specify notifications for only certain sections.

As for your question about Notify Watchers, I am not sure what you are asking.

By default, the Notify Watchers checkbox is marked, causing watchers to be notified. If a user wants to uncheck it, they can do so, and watchers will not be notified. Once a user unchecks this, Confluence 5.8 and above will remember this setting.

If you want to disable it globally, you can do that using a script:

* [How to uncheck notify watchers checkbox on Confluence editor by default](https://confluence.atlassian.com/confkb/how-to-uncheck-notify-watchers-check-box-on-confluence-editor-by-default-314449908.html)

Do note that if you have Confluence Cloud, then it's not possible to use this workaround.

Let me know if you have any questions.

Regards,

Shannon

comments: author: Arno van Hemert
body: Hi Shannon,

Thank yiu very much for your reply.

This request is indeed what I was looking for. Unfortunately this is not going to be picked up, so I can inform the user this is not possible.

Kind regards,

Arno van Hemert
Page editor does not work
Asked by Christian Neise:

We have a brand new confluence installation, but the page editor does not work.

When opening the page editor, it shows this rotating loading icon forever.

Also it states a message like (translated from German): The page needs longer to load than usual. Please give it a moment, then try to refresh the page. Still got problems? Contact your confluence admin.

This problem was confirmed for the current versions of Chrome, Firefox and Edge.

In the developer tools in the network tab, it shows that every http request succeeds, except this one:

(404 - not found): <https://confluence.mycompany.com/heartbeat?_=1518707502587>

(I changed the domain name for privacy reasons)

We cannot file a support ticket, because we got the starter version. We will not buy the "real" thing, unless it works.

Any ideas on how to proceed?

Best regards,

Christian Neise


Answers:
author: Nic Brough -Adaptavist-
body: This is usually a problem with Synchrony, the system that provides the collaborative editing function.

Before we start on a long essay based on that assumption, you should test this.

* Go to Admin -\> Collaborative editing
* Turn the collaborative editing OFF
* Try to edit a page

If you still can not edit a page now, then we need to start looking at your Confluence log for errors when people click "edit".

If you can edit a page, then it is a Synchrony problem and we need to look at it to make sure that it is running, and that it can be reached by Confluence (the usual error is a misconfigured proxy for it)


Tags: editor
Page 'jumping' in edit mode when trying to edit links
Asked by Shimrit Janes:

While editing a page (confluence v6.4, IE11) that has a long table with hyperlinks in it, the page 'jumps' to the top of the page and then back to where your cursor is when you click a link to try and edit it. Additionally, the context menu doesn't show as it should.

Has anyone else experienced this? How can it be resolved?


Answers:
author: Nic Brough -Adaptavist-
body: Are you using compatibility mode in IE? If so, turn it off and try again.

comments: author: Shimrit Janes
body: It's a client's setup, so we'll need to ask their IT department. Shall raise the question; it may be that there are wider ramifications to turning off compatibility mode, if it's in use.


author: Shimrit Janes
body: Hi Nic - I can confirm that compatibility mode isn't switched on. Is there any other reason the page could be 'jumping'? The layout uses sections, and the content is also in a table of contents zone; could that be causing issues?


author: Amit - Blue Sheen
body: [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454) if it's not compatibility mode, what else would be the possible reasons?


author: Nic Brough -Adaptavist-
body: A bug in Confluence (although that would be affecting everyone), a bug in the IE you are using (not unlikely, as IE is known to be a poor browser), or an add-on injecting something into the javascript which has a bug.

I'd try turning off all the add-ons (temporarily) and seeing if the problem still occurs.


author: Peter Kearney
body: I use Chrome and I am getting the same problem. It's so frustrating.
Filtered Table not Exporting to PDF in Confluence Cloud
Asked by Chris Hill:

Hi,

I am using Confluence Cloud and have a large table that is being filtered using the Table Filter macro.

I have applied the filters as needed on the page however when I export to PDF, the unfiltered table is exported.

I have read that the macro should be exporting only the filtered information, so have I done something wrong, or maybe it doesn't work like this in Confluence Cloud?

Thanks

Chris


Answers:
author: Andrey Khaneev _StiltSoft_
body: Hi Chris,

Export of the whole Confluence page does not export filtered table in Cloud version. But you can use [Table Filter export](https://docs.stiltsoft.com/pages/viewpage.action?pageId=11666726#ExportingTableData-ExportingFilteredData/PivotTables/ChartstoWordandPDF) to export filtered tables.

comments: author: Chris Hill
body: Thanks for your answer Andrey, I was afraid you might say that! Do you know if the whole Confluence page can export filtered table in the Server version?

Unfortunately I need the whole page to be exported to PDF with the filtered table as the table is not a standalone document.

Any suggestions if this is possible on Confluence Cloud?


author: Andrey Khaneev _StiltSoft_
body: Yes, it works fine in Server version and it is even compatible with Scroll PDF Exporter and Scroll Office add-ons.

But in Cloud version I can suggest to export whole page to PDF, export filtered table, then use some tools to edit page PDF export and replace the table with the filtered one. Or you can export page and filtered table to Word, edit it and save Word as PDF.


author: Katerina Rudkovskaya [Stiltsoft]
body: Hello [@Chris Hill](/t5/user/viewprofilepage/user-id/1183281) ,

Please notice that you can export data wrapped with the [**Table Filter and Charts**](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=cloud) macros via the standard **Export to PDF** option now.

Best regards,   
Katerina


Tags: confluence-cloud

pdf
Date Picker can't allow date and time?
Asked by Paul Craven:

We are using Confluence Cloud and would like to use the Date Picker to choose a date and a time. We cannot seem to find an option for this.

Is it possible?

Currently we type // and Date Picker appears but cannot choose a time??


Answers:
author: Shannon S
body: Hi Paul,

It is not possible to choose a time via the Date Picker.

It does appear to have been requested in the past as a feature, but we do not have plans to implement it:

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

I have tagged your issue for the Marketplace collection in case any vendors could suggest to you an add-on that will help you to accomplish your requirement.

Let us know if you have any questions about that.

Regards,

Shannon


Tags: atlassian-marketplace
Trying to write a user script to return a unique ID
Asked by Allan Parsons:

I am new to confluence and user macros.

I have managed to create a simple user script as follows -

**## @noparams**   
**$content.getIdAsString()**

Which works fine and returns the page id.

However I want to extend the functionality here to only return the last x characters in the string.

How would I do this?


Answers:
author: Allan Parsons
body: I tried the below and it gave me what I wanted.

**## @noparams**   
**$content.getIdAsString().substring(4)**

Hopefully this helps somebody else also.

Thanks to Danyal for the tip.


author: Danyal Iqbal
body: **$content.getIdAsString().split()**

**#Velocity is just a fa?ade for real Java objects, so you have access to all the [public methods of the `String` class](http://docs.oracle.com/javase/6/docs/api/java/lang/String.html), including [`indexOf`](http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#indexOf%28java.lang.String%29) and [`substring`](http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#substring%28int%29).**

comments: author: Allan Parsons
body: Hi,

Thanks for taking the time to respond.

I have no experience in Java, so am googling everything I am trying here (I found the code above after a bunch of googling also.)

Will also google this Velocity stuff and hopefully figure out how to manipulate the string to return what I want.

Any tips?
confluence crashes after upgrade from 32 bit 5.4.2 to 64bit 5.10.1
Asked by scott_fagg:

I have an aging 5.4.2 install running on 32 bit linux and want to upgrade it and move to a newer server.

I've tried upgrading to 5.10.1. The install ran smoothly, confluence starts and is usable, but it will eventually crash. I've browsed logs, but haven't spotted anything obvious. Where should i be looking and what should i be looking ? Happy to post snippets of logs here if that's useful.


Answers:
author: Danyal Iqbal
body: search for "exception" in the logs and post the snippets here.