youngmon/atlassian-qna huggingface dataset:
How to change count of sessions established from Confluence to database?
Asked by Aleksandr Timchenko:

We have 200 sessions always established from Confluence to database.

Confluence's max number of connector threads is 150. (Tomcat standalone)

```
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
```

As I understood Confluence have internal pool of connections to database.

How to change count of established sessions in this internal pool?

We want minimize them to 150.

Thanks


Answers:
author: FelipeA
body: Hi Aleksandr,

You can do this by editting your \<install dir\>/confluence.cfg.xml, and change the value on the line:

\<property name="hibernate.c3p0.max_size"\>30\</property\>

to a value that better suit your needs, after that just restart Confluence and you're good to go.

Kind Regards,

Felipe Alencastro

comments: author: Aleksandr Timchenko
body: Thank you for explanation,

I try change and check count of sessions after Confluence restart,

but now we have following values:  

|-----|--------------------------------------------------------------------------------------------------------------------|
| 1 2 | `<property name="hibernate.c3p0.max_size">150</property>` `<property name="hibernate.c3p0.min_size">50</property>` |

The value 150 is not match with 200 sessions in database.

So I don't see relationship between max_size and count of sessions in database.


author: Ryan Dunn
body: Did you ever figure this out? We are having exact same issue.


author: Aleksandr Timchenko
body: I got it, I changed property hibernate.c3p0.min_size to 20 in confluence.cfg.xml:

```
&lt;property name="hibernate.c3p0.min_size"&gt;20&lt;/property&gt;
```

After restart of Confluence I saw 80 number of sessions.

So my resolution: Number of sessions in database calculate by formula hibernate.c3p0.min_size multiply to 4 times.

Thats why when I had c3p0.min_size equal 50 then number of sessions were 200.


author: Aleksandr Timchenko
body: Thank you for explanation,

I try change and check count of sessions after Confluence restart,

but now we have following values:

```
&lt;property name="hibernate.c3p0.max_size"&gt;150&lt;/property&gt;&lt;property name="hibernate.c3p0.min_size"&gt;50&lt;/property&gt;
```

The value 150 is not match with 200 sessions in database.

So I don't see relationship between max_size and count of sessions in database.
What happened to "what did you change"?
Asked by Susan Parker:

When I enter a comment into the "what did you change" box that you're supposed to fill out when saving changes to a Confluence page... the comment is no longer appearing anywhere - not on the dashboard, not at the top of the page, not in page history and not when I click "view change." What happened to it?


Answers:
author: Susan Parker
body: The problem resolved itself. I really don't know what happened. Perhaps I imagined I had entered comments. Who knows. Anyway, thanks you for your tip.


author: Susan Parker
body: Atlassian has confirmed this is a bug. Please vote fore a solution. Thanks.

[](https://jira.atlassian.com/browse/CONF-32979)<https://jira.atlassian.com/browse/CONF-32979>


author: Susan Parker
body: Atlassian is investigating.


author: Susan Parker
body: The problem reoccurred. Hah - I knew I was not imagining this. Fortunately this time I was more aware of what I was doing. After conducting some simple tests, I concluded that the "what did you change" comment is not saving when a change is made to page title (with or without changes to the body of the page!)

If all I do is make edit to body of page, then the comments do get saved and are appearing where they should.

This seems to be a bug. It would be useful to have comments captured when we're saving page w/new name - with or without edits to the body. At the very least, it is odd and unexpected to have the comment box appear to function, allow you to enter comments etc., then not do anything w/those comments. (Cross-posted with Atlassian Support.)


author: Susan Parker
body: The problem resolved itself. I really don't know what happened. Perhaps I imagined I had entered comments. Who knows. Anyway, thanks you for your tip.


author: Mick Davidson
body: I've no idea why you can't see it, but one way of finding it might be to edit a page and put a very specific word (or a character sequence such as xxzzzccc6868686) in the what did you change box. A word that is extremely unlikely to be in Confluence at all. Then run a global search for that word and see what comes back.


Tags: cloud

confluence-cloud
Why label list macro does not displays label applied to attachment?
Asked by S.M.:

Why label list macro does not displays label applied to attachment?

<https://confluence.atlassian.com/display/CONF50/Labels+List+Macro>


Answers:
author: Davin Studer
body: Unfortunately attachment labels are handled a bit wonky in Confluence. For instance when you go to apply a label to a pge as you type it will give you suggestions that match what you are typing. Not so for attachments. Basically, all I could say is that they have not given as much thought to attachment labels as they have to page labels.
Need information about permanently running SQL from Confluence which load CPU
Asked by Aleksandr Timchenko:

We catch following SQL from Confluence:

```
SELECT NULL AS table_cat, o.owner AS table_schem, o.object_name AS table_name, o.object_type AS table_type, NULL AS remarksFROM all_objects oWHERE o.owner LIKE :1 ESCAPE '/' AND o.object_name LIKE :2 ESCAPE '/' AND o.object_type IN ('xxx', 'TABLE') ORDER BY table_type, table_schem, table_name
```

Bind variable values is:

```
:1 = '%':2 = 'PROBABLYNOT'
```

Could you provide information about this query, it place and how to disable similar SQLs or minimize quantity of runs?

Thanks!


Answers:
author: Steve Gerstner [bridgingIT]
body: I would suggest going into safe mode -\> [](https://confluence.atlassian.com/display/UPM/Disabling+and+Enabling+Add-ons)<https://confluence.atlassian.com/display/UPM/Disabling+and+Enabling+Add-ons>

If all works fine then, you should enable one plugin after the other and check which one is causing your problem.


author: Nic Brough -Adaptavist-
body: That is very odd - none of the Confluence systems I've got access to are running anything like that (or, if they are, it's infrequent and I'm simply not getting it in the logs)

You probably need to examine the add-ons you're using to see if one of them is causing it

comments: author: Aleksandr Timchenko
body: Thanks for the your hint. We will investigating all add-ons and keep posted here.


author: Aleksandr Timchenko
body: Thanks for the your hint. We will investigating all add-ons and keep posted here.
Confluence disable captcha for logins
Asked by trmv12 trmv12:

We upgrade confluence to 5.0.3 and we reset the admin password but is asking for login confirmation with a captcha that doesnt work. How we can disable the captcha login in the config files? Captcha images are not working, we confirm the passwords are correct with different users and in the database.

any help is appreciate.


Answers:
author: Patrice Rompas
body: Hello,

You can check [this documentation](https://confluence.atlassian.com/display/CONF50/Configuring+Captcha+for+Spam+Prevention) to achieve that.

Best Regards,  
Samuel


Tags: captcha

login
Is is possible to recover a deleted page in Confluence?
Asked by DI2E Licensing:

I have a user that inadvertently deleted a child page. Is there anyway to recover that page?


Answers:
author: Mick Davidson
body: I'm working in 4.5 but am not at work now, so can't check our test instance of 5.3. The remove option is under Tools, one of the last entries.

The space admin/trash area is accessible from the Browse menu. Not sure if that's the same in v5.

However, if you can't see them, perhaps it's a permissions issue. Are you the space admin?


author: DI2E Licensing
body: Got it. Thanks gentlemen.


author: Davin Studer
body: You have to be a member of the space admin group to see the trash. Space admins can purge (permanently delete) pages from the trash. Until that happens though they just sit in the trash and can be recovered. If you don't see it you are probably not a space admin and will need to have a space or system admin recover the page.


author: DI2E Licensing
body: How does one go about "removing" a page? I've only ever seen the option to delete a page using the Gear "Tools" icon dropdown.

I also can't find Space Admin/Trash. There is no trash option in the Space Tools options.

Thanks for you help. If it's relevant, we're running Confluence 5.4.2.


author: Mick Davidson
body: D12E,

Do you mean 'deleted' or 'removed'?

If it's the latter then you have to go into the Space Admin/Trash and look for the page there.

If they've really deleted it then it's gone. However, it might be possible it find it in your last backup.

Cheers.
Override Confluence/Jira quick search?
Asked by todor kolev:

I would like to override Confluence/Jira search using my own logic, sorting and type of results returned... Any ideas how this could be designed?

I could probably leverage SearchPerformedEvent to listen for search events and then get the input from the "Quick Search" box and run my plugin code and redirect the user to another page where I am displaying the results. My only concern here is if Confluence is still going to search the index for the originated user search query and thus two searches to be performed... overwhelming the system?

What do you think?

EDIT:

...or looking at the class API there is a method getNumberOfResults which means this event is triggered after the the actual index search has been performed.

**So do you guys know of a way to intercept the search before the index is searched?**


Answers:
author: EddieW
body: Sorting the results can be done with a Lucene Booster, [](https://developer.atlassian.com/display/CONFDEV/Lucene+Boosting+Strategy+Module)<https://developer.atlassian.com/display/CONFDEV/Lucene+Boosting+Strategy+Module>

You can also use the Extractor module to enhance page's searchable indexes. [](https://developer.atlassian.com/display/CONFDEV/Extractor+Module)<https://developer.atlassian.com/display/CONFDEV/Extractor+Module>which will let you update/insert the indexes based on content creation and updates.

Based on your comment I will assume you know about the Search API, [](https://developer.atlassian.com/display/CONFDEV/Searching+Using+the+V2+Search+API)<https://developer.atlassian.com/display/CONFDEV/Searching+Using+the+V2+Search+API>

If you truly want to implement your own search, and own it all, you need to tear out the built in search. Which means modifying the templates to remove the internal search fields, and supply your own.

[](https://confluence.atlassian.com/display/DOC/Setting+Up+Confluence+to+Index+External+Sites#SettingUpConfluencetoIndexExternalSites-ReplacingtheConfluencesearch)<https://confluence.atlassian.com/display/DOC/Setting+Up+Confluence+to+Index+External+Sites#>[SettingUpConfluencetoIndexExternalSites-ReplacingtheConfluencesearch](https://confluence.atlassian.com/display/DOC/Setting+Up+Confluence+to+Index+External+Sites#SettingUpConfluencetoIndexExternalSites-ReplacingtheConfluencesearch)

comments: author: EddieW
body: Hey @todor I'm not sure if you were able to make progress, but I see you upvoted my answer ( a good sign ?) If you're satisified be sure to mark the answer "correct" so other users looking for unanswered questions can help other users.


Tags: search

jira
Confluence Converter
Asked by AKASH BHARDWAJ:

Hi All,

I am looking out for some automated tool to convert documents which are currently not supported by Universal Wiki Converter. So any Suggestions on this would be greatly appreaciated.


Answers:
author: Davin Studer
body: The WebDav plugin for Confluence will let you interact with Confluence as if it were folders and files on a file system. This opens up a huge range of auttomated possibilities.
Showing complete URL in Search Results - How?
Asked by Mick Davidson:

Hello everyone,

When you run a search within a space the URL info displayed under each result is limited to:

* \<space name\> \<date\>

Which is very uninformative and pretty useless as I already know where I am searching. Is there any way of showing the complete URL? For example:

* \<space name\> \<home page\> \<sub-page name\> \<sub-page name\> \<actual page name\> \<date\>

This would make recognising where the page is located much easier.

Cheers.


Answers:
author: Matthew J. Horn
body: You should be able to edit the SERP processor that renders the search results. I would start by looking at the /decorators/search.vmd file and see if there's a way to get the full URL into the results list.

comments: author: Mick Davidson
body: Matthew, thanks. I've sent the info to our tech team to see what they can do with it. :)

Cheers.


Tags: search

url
Alternative for Confluence Search and Replace Plugin?
Asked by Munteanu Mihai-Ovidiu:

Can someone tell me what alternatives do I have for Confluence Search and Replace Plugin? Confluence v.5.x

Is it still necessary, for this version of Confluence?


Answers:
author: Lukas Knoch -Rumpelcoders-
body: There is a new plugin now, take a look if it fits your need if you are still looking for a solution: [Global Search and Replace](https://marketplace.atlassian.com/plugins/at.rumpelcoder.confluence.search-and-replace)


author: Davin Studer
body: There are no alternatives right now ... unfortunately. You can still use it though. You just need to wrap it all in a wiki markup macro.


author: rambabu patina
body: Have a look on similar question [](/questions/45473/global-search-and-replace-plugin)<https://answers.atlassian.com/questions/45473/global-search-and-replace-plugin>

Hope this helps you,

Patina

comments: author: Munteanu Mihai-Ovidiu
body: Not exactly! But thanks!


Tags: confluence-administration
Unable to do a fresh install of Confluence
Asked by iris blackburn:

I am trying to do a clean install of confluence over our older version. I have tried to uninstall following these instructions [](https://confluence.atlassian.com/display/DOC/Uninstalling+Confluence+from+Linux)<https://confluence.atlassian.com/display/DOC/Uninstalling+Confluence+from+Linux>

And then re-installed, but that just results in all the customizations we've made still come up.

I have also tried to drop the database and then recreate following these instructions to set up the new database

[](https://confluence.atlassian.com/display/DOC/Database+Setup+for+PostgreSQL)<https://confluence.atlassian.com/display/DOC/Database+Setup+for+PostgreSQL>

I then uninstalled confluence and reinstalled. When attempting to run it, the logs produce a lot of psql errors about tables not existing in the database. I am not fining anywhere that tells me to set up these tables and I would assume the confluence install would have done that beforehand or else the instructions would have told me otherwise.

Is there a different way to set confluence back to a vanilla version?


Answers:
author: William Zanchet [Atlassian]
body: Hi Iris,  

In order to have Confluence under a vanilla version, you just need to rename the home-directory of Confluence, that way Confluence will not find its home-directory and then start it from scratch.  

I hope this helps.  
WZ
Confluence on demand calendar
Asked by Jonathon Conant:

Looking for a free calendar/ track deadline solution for Confluence on demand.


Answers:
author: William Zanchet [Atlassian]
body: Jonathon,  

Since we are running Confluence OnDemand we have some restrictions on adding third party plugins. I don't believe that we have a free calendar solution, only Team Calendars.

<br />

Cheers,  
WZ


author: Jonathon Conant
body: As I thought WZ. Thanks. Any chance you would know of a software that tracks and reminds for deadlines?


Tags: cloud

confluence-cloud
Why don't my page exports include comments?
Asked by david williams:

When I export a page, the comments don't appear in the export, but they did yester day. I can't find what setting I might have tweaked to get them to export as well


Answers:
author: Stefan Baader
body: I created a user macro which does the job: <https://web-seitig.de/page-comments-user-macro-for-confluence-to-include-page-comments-in-pdf-export-and-in-print/50/>

comments: author: Jeff Takle
body: Stefan, how does one add a macro in Confluence Cloud...is that even possible? Am quite lost on how to implement the workaround. Any advice is welcome.


author: Stefan Baader
body: Jeff,

<br />

sorry, I have no experience with the Cloud Version of Confluence.   

I found a hint in <https://community.atlassian.com/t5/Confluence-questions/Creating-a-User-Macro/qaq-p/200876>  
"User Macros are a feature available in Confluence on-premise.

In Confluence Cloud you create custom macros (and other custom functionality) using the [Atlassian Connect framework](https://developer.atlassian.com/static/connect/docs/latest/index.html)."

So just try or ask Atlassian. I hope that helps.  
Good luck.

Cheers,

Stefan


author: Nikolai Ruban
body: [@Stefan Baader](/t5/user/viewprofilepage/user-id/609464), many thanks for a script provided. I've created similar one for inline comments. Works on Confluence Server v.7  
<https://gist.github.com/nikolayr/271a4ee16a83240602f2fd7a3dada339>


author: Sven
body: We would really appreciate if there was a feature like this for cloud instances. Currently exporting pages to doc is not really working and crucial for us.


author: Stefan Baader
body: We have the same issue, same question. Using Confluence 6.9  
Page export to PDF does not contain the comments.  
Any idea?


author: david williams
body: this function may added in the future. At this time, if you want to export comments, it can only be done in XML


author: Steffen Heller
body: There is another thread with information about different PDF exports with and without comments. Have a look at [](/questions/222441/export-to-pdf)<https://answers.atlassian.com/questions/222441/export-to-pdf>

comments: author: david williams
body: that does not answer my question and reinforces my statement that there appears to not be a function to export comments. The guideance states "Generates a PDF file of all pages and blog posts in this space, including **comments** and attachments" but it does not! If I can't export or create a report of comments, then the app does not meet my needs.


Tags: cloud

confluence-cloud
Edit in Office does not work in FireFox when file name has an em-dash (long dash) -
Asked by Kevin Murphy:

We have on trouble using this in IE - but in FireFox when we try to open a file /w an em-dash (the long dash) it errors out - and the file name will show a !! where the em-dash should be (and the logs show an a /w a character above it in the file name).

Any ideas on a work around? We've updated the FireFox plugin and tried changing the font/ect - no luck there.

Confluence (download) version 4.3.7

Office connector version 14.0.4761.1000


Answers:
author: AnnWorley
body: Hi Kevin,

You may be running into this bug - it names 4.3.7 as an affected version:

[](https://jira.atlassian.com/browse/CONF-21932)<https://jira.atlassian.com/browse/CONF-21932>

Cheers,

Ann Worley

Support Engineer

Atlassian
How can I search for content from deleted users?
Asked by Alastair Bain:

We're using active directory integration, so when a user leaves they are deleted from AD (and before anyone suggests it, AD is managed by another group so I can't change their policies), this also deletes the user from Confluence.

Any content they have written is still there, but it is longer possible to find that content based on author it seems. The page will show [Unknown User (original_user_id)](http://cdnz-eng1/confluence/display/~garethm "") as author. Even just being able to search by Unknown User would be helpful.


Answers:
author: Rick Marshall
body: Did you ever find a solution?


author: Sergey Svishchev
body: You could change user directory integration mode to "Delegated LDAP Authentication" and then deleted users would still remain in Confluence until manually disabled or deleted.

comments: author: Alastair Bain
body: I didn't want to have to manually maintain the user list.


Tags: confluence-administration
UNC links in confluence
Asked by Barry Stewart:

UNC links do not work.


Answers:
author: Barry Stewart
body: Sorry, I had already typed all the details in, then was confused by your support site, clicked a link and lost it all.

I don't know much about this software, I was asked to install it. Everyone says that links to our file server (Windows) don't work. Have tried creating links myself with the confluence editor with "insert link". I have tried this myself with:

file://server/pathtofile

file:///server/pathtofile

file://///server/pathtofile

There are several folks asking about this but I see no answers. We have similar UNC links on our Intranet site so we know all about the browser issues, our links work with IE and with Firefox with a modified preferences file.

comments: author: Nic Brough -Adaptavist-
body: Confluence doesn't do links any differently to any other application - if you've put file://server/pathtofile into it, it's up to the client machine and browser to have the unc path mapped correctly and know how to follow it.


author: Nic Brough -Adaptavist-
body: You might be doing something wrong.

Ok, that is a bit of a blunt answer, and very very vague, but you hae not given us anything to go on at all. "it doesn't work" is not a useful report of a problem if you want it solved. You'll need to tell us more.
Finish Deleting a Space
Asked by William Yeack:

I had to manually delete a space from Confluence recently (cf. [this article](https://confluence.atlassian.com/display/CONFKB/How+to+Manually+Delete+a+Space)). For the most part, this process worked, however, te'hre seems to be some remnants. For instance, in the permssions page the old space still shows up (called "documents") and it still thinks that one of the user is the owner.

<http://screencast.com/users/wyeack/folders/Jing/media/914f46ea-08d0-4bf1-84f1-fa1ca7d87856>


Answers:
author: Patrice Rompas
body: Hi William,

Please ensure all the queries are executed successfully. You might need to drop some table constraints if the Deletion failed because of Constraint, and add it again. (**don't forget to backup the database before this** )  
If you're sure that every queries in that documentation have been executed successfully, you need to firstly *[flush all the caches](https://confluence.atlassian.com/display/DOC/Cache+Statistics),* [rebuild your index from scratch](https://confluence.atlassian.com/display/CONFKB/Rebuild+the+Content+Indices+from+Scratch) and [Rebuild the ancestor table](https://confluence.atlassian.com/display/DOC/Rebuilding+the+Ancestor+Table).

Best Regards,  
Samuel


Tags: confluence-administration