youngmon/atlassian-qna huggingface dataset:
Setup Database Failed for Confluence
Asked by Roxana:

Hello,

I installed Confluence version 5.4.9 as a service, on a Windows Server 2012 R2.

I have a Microsoft SQL database installed on the same server and i made the setup i found here <https://confluence.atlassian.com/doc/database-setup-for-sql-server-9258.html>.

When i went to the setup wizard of Confluence database, i choose Direct JDBC:

net.sourceforge.jtds.jdbc.Driver

jdbc:jtds:sqlserver://localhost:1433/\<insert_database\>

The port should be 1433?

I also downloaded the jTDS 1.2.2 driver and copy jtds-1.2.2.jar file in confluence "bin" installation folder path (is this the right location?).

When i enter my database name and credentials, i receive this error:

image2016-2-18 11:33:55.png

I tried some tricks i found on forums but nothing worked (TCP-IP enabled on port 1433 in the SQL server configuration manager, I reinstalled it - nothing worked)

Firewall is disabled.

Is there another way to test the connection with the database?

Can you, please, advice what should be done in this case, or if i should perform other steps in the installation?

Best regards,

Roxana

[](https://community.atlassian.com/t5/Confluence-questions/Setup-Database-Failed-for-Confluence/qaq-p/201552?attachment-id=3295){#link_11874eff496a91}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/33887/1/image2016-2-18%2011%3A33%3A55.png){#display_11874eff496a91_0}


Answers:
author: Boris Georgiev [Appfire]
body: * First try to connect outside of Confluence i.e. using the SQL Management Studio via TCP on localhost:1433
* Check on which IP you've enabled the TCP connections if it's 127.0.0.1 or the actual IP of the host - SQL server might not allow connections on 1433 on different than the configured IP
* Before going back to Confluence first ensure you're able to connect to the MSSQL server with another tool (like the SQL Management studio) using TCP on the spcified port and the user/pass you intend to use with Confluence

comments: author: Roxana
body: Hello,

Thank you for your reply!

I could connect to the MSSQL with SQL Management studio with the user i used for Confluence and it worked, but didn't for Confluence.

The Port 1433 was configured for the IP of my server.

I solved the problem by leaving blank the TCP Dynamic Ports in the IP configuration.

Now, i manage to connect and all works well.

Thank you,

Regards


Tags: confluence-administration
How to add a drop down list to every page
Asked by BenC:

Hi,

I need to add a drop down list to the top of every page in Confluence where people can select from a list to indicate the sensitivity of the page (eg Sensitive, Staff in Confidence, Everyone etc).

I have looked at the current questions/answers and I can't see any easy answer to this.

Can anyone help me solve this simply?

Thank you


Answers:
author: Nic Brough -Adaptavist-
body: This is adding metadata to pages, outside the body of the page. You'll need to find or write an add-on that inserts a new menu option and adds to the page properties.

comments: author: BenC
body: OK thanks but I would want the item selected to be visible on each page


author: Nic Brough -Adaptavist-
body: Your add-on should be able to read the current page setting and render that in the menu. Might be a bit harder to get it on the page, but you could store it as a page property.
How do I remove a user from Viewtracker stats?
Asked by Evgeny Victorov:

Hi,

I want to remove specific users (i.e., admins and developers) from the Viewtreacker page stats report.

Is there a way to do it?

Thank you in advance. Evgeny.


Answers:
author: Oliver Str??er
body: Hi Evgeny

That stats report could be configured in the Confluenc admin \> Add-ons \> Viewtracker \> configure.

The markup there is the markup for the Reporting Add-on and maybe you could filter it with an reporting filter like the <https://docs.servicerocket.com/display/REP/collection-filter>

A second possibility is, that you don't track the admin and developers requests \> you could use the visibility addon and hide the viewtracker macro from the admin and developer groups.

Greetings

oli

comments: author: Evgeny Victorov
body: Hi Oli,

Thank tyou for the reply, amazingly detailed!  
I should have stated my issue in a more specific way: I'd like to remove a person from the on-page report. This is the 2nd case in your reply.


Tags: addon-ch.bitvoodoo.confluence.plugins.viewtracker

confluence-administration

viewtracker
better picture/pdf viewer for Confluence
Asked by Michal Svoboda:

Hello,

In our company we use Confluence 5.6. (server) Is there any plugiun or way to install better picture and pdf viewer?

The media viewer in Confluence 5.6.3 not support image zoom in/out and also does not display pdf.


Answers:
author: Ross Lindell _Information Officer Pte Ltd_
body: The PDF preview in Confluence 5.9.4 might meet or exceed your preview/view requirements. It includes zoom in/out, etc.

As to which version(s) started to include a better PDF viewer, you might consult the release notes:

<https://confluence.atlassian.com/doc/confluence-release-notes-327.html>


Tags: confluence-administration
frequent Confluence crashes
Asked by Kris W:

Our Confluence instance crashes several times a week. About half of the crashes happen in the middle of the night when the system is running an automatic daily backup of the MySQL databases.

Is there a way to keep Confluence from crashing when the database is being backed up?

Is there a way to monitor Confluence, and restart it if it crashes?

I can't find any clues in the logs. atlassian-confluence.log doesn't show any entries at the times of the crashes.


Answers:
author: Guilherme V.
body: Maybe Confluence is running out of connections. Maybe increasing the connection pool can resolve the issue: <https://confluence.atlassian.com/doc/performance-tuning-130289.html#PerformanceTuning-Databaseconnectionpool>.

comments: author: Kris W
body: Thanks, Guilherme.

I'll try the thread dumps mentioned in that tip to see if that gives me some better data.

It seems like that wouldn't be the problem, though, since the crashes that are happening in the middle of the night are at a time when I don't think anyone is actually using Confluence.


author: Kris W
body: It's an 8GB cloud server. It's also running MySQL, as well as Apache. It's also running Crowd and Jira.


author: Ross Lindell _Information Officer Pte Ltd_
body: Tell us a bit more about your environment. Is MySQL running on the same server as Confluence? Are there other processes, such as backups (in addition to MySQL backups) running at the same time?


Tags: confluence-administration
Use a portion of Page Title in a User Macro
Asked by Adam Jacobson:

We have some pages being created from templates where the title comprises a customer name and variable length ID separated by a hyphen. For example:

ACME Widgets - ABC123

I would like to use the ID portion of the title in a user macro. I'm not a developer but I do know that I can use the page title with $content.getTitle(). What would be the syntax used within the user macro for isolating the ID from that title?

Thanks!


Answers:
author: Milo Test
body: No guarantees, but you can try these methods:

```
var getID = str.substr(str.indexOf("- ") + 1);
```

```
IDVar.split('- ')[1]
```

```
[^- ]*$
```

comments: author: Adam Jacobson
body: Thanks you put me on the right path. This is probably not as elegant as what a developer could do, but seems to work:

```
#set ($idRegex = "^.+-\s")#set ($pageTitle = $content.getTitle())#set ($custID = $pageTitle.replaceAll($idRegex, ""))
```


Tags: confluence-administration

user-macro
Is there a way to insert the current user in the task report
Asked by Kurt Krummel:

I'm using the Cloud version of Jira/Confluence and I want to edit the default personal space so that it includes both the JIRA Task List and Task Report (action items) for whatever current user is viewing the page(s). Is there a way to do this?


Answers:
author: Richard Woodmansee
body: If you are using the server version you can create a user macro to enable this feature. It is not available in the Confluence Cloud because it does not support user macros. see <https://jira.atlassian.com/browse/CONF-34597>


Tags: cloud

confluence-cloud
Modifying menu style
Asked by Najeeb Shaikh:

I would like to know if there is some way that we can modify the menu style in Confluence. Currently my menu looks like this:

flockapipage.png

It is collapsed by default and has to be explicitly expanded by the user; owing to this, many a times users tend to miss sub-menu pages. I would rather have my menu like so (taken from the HipChat site):

hipchat.png

I would also like to add headings to each menu group, as in the HipChat image above.

Any kind of pointer would be great. Thanks.

[](https://community.atlassian.com/t5/Confluence-questions/Modifying-menu-style/qaq-p/23338?attachment-id=9786){#link_11910c48d612e5}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/3835/1/hipchat.png){#display_11910c48d612e5_0}  
[](https://community.atlassian.com/t5/Confluence-questions/Modifying-menu-style/qaq-p/23338?attachment-id=9787){#link_11910c48d612e5_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/3835/2/flockapipage.png){#display_11910c48d612e5_2}


Answers:
author: Dario B
body: Hi Najeeb,

The way to customise how the links on your sidebar are displayed depends on which theme you are using. Specifically:

* If you use the Default theme, then the instructions are in the [Configure the Sidebar](https://confluence.atlassian.com/display/ConfCloud/Configure+the+Sidebar) documentation, 'Change the navigation display options' section  

* If you use the Documentation theme, then the instructions are in the [Configure the Documentation Theme](https://confluence.atlassian.com/display/ConfCloud/Configure+the+Documentation+Theme), [Customising the Documentation theme](https://confluence.atlassian.com/display/ConfCloud/Configure+the+Documentation+Theme#ConfiguretheDocumentationTheme-CustomisingtheDocumentationtheme) section.

Cheers,  
Dario


Tags: cloud

confluence-cloud
How can I see ALL spaces?
Asked by Alicia Pena:

*This question is in reference to Atlassian Documentation: [Confluence 5.9 Release Notes](https://confluence.atlassian.com/pages/viewpage.action?pageId=785333580)*

I can only see a space if it was recently modified. I don't want to search for spaces, I want to see them all listed so I can browse them and choose from a list. I was planning an upgrade to 5.9 this weekend in production but after upgrading in the lab I don't like 5.9 at all. Maybe if we could view the list of spaces as we did before it wouldn't be so bad.


Answers:
author: Nick Reilingh
body: This page on your confluence instance lists all spaces:

https://confluence.example.com/spacedirectory/view.action

[](https://confluence.example.com/spacedirectory/view.action)You can access this through the interface in two ways:

1. In the header bar, click the spaces menu, and select "Space directory" at the bottom of the menu.
2. From the 5.9 dashboard, look at the "My Spaces" section of the sidebar, and click the "All" link next to the heading.


author: Alicia Pena
body: I did that and it doesn't show any spaces at all. If I click the ALL next to my spaces (as in step 2), it takes me to Space directory; All Spaces, Site Spaces, personal spaces, my spaces, archived spaces all show "No spaces found." The only way I can confirm it can get to any page is if I click on Discover, All updates and then click on something that has been recently updated. It then takes me directly to that page only.

comments: author: Alicia Pena
body: I found a way to switch back to my old dashboard. Will this set the old dashboard default for everyone? If not, how can I as administrator set the old dashboard as a default for everyone?


author: Nick Reilingh
body: Well, you're definitely in the right place -- I'm on 5.9.3 and this works as expected. Your issue isn't that 5.9 is missing an "all spaces" display, it's that something is wrong with your particular instance or configuration. I would first double-check the permissions that are applied to the user account that you are using. Make sure your user account is a member of the "confluence-users" group, and/or that your Global Permissions are configured properly. If you can't figure it out you should open a support ticket.


author: Alicia Pena
body: I'm logged in as a administrator and as soon as I changed the dashboard back to the old one I see all spaces.


author: Nick Reilingh
body: Ah, I didn't see that. I'm using the new dashboard with my entire team without issue. You should contact support, which you can do from the Support Tools page inside your confluence admin pages.
Report on Attachment Download
Asked by Roy Lu:

*This question is in reference to Atlassian Documentation: [Downloading Attachments](https://confluence.atlassian.com/pages/viewpage.action?pageId=658737037)*

Is there a way to report on which users download the attachment to a page in Confluence?

Thanks,

Roy


Answers:
author: Milo Test
body: I'm pretty sure that Google analytics can, and I would love a step-by-step. I've gotten GA to report on space use, but can't seem to get page and attachment stats to work.


Tags: confluence-administration
Import text file - special characters not supported
Asked by Nicolas Casel:

Hi all,

When I use the '[Import a text file](https://confluence.atlassian.com/doc/import-a-text-file-139492.html)' feature, I get **wrong symbols** instead of special characters like letters with accent:

wiki-wrong-char.png

However, **the file is encoded in UTF8**, according to "Tools / Page Info" in Firefox.

Any idea to display special characters?

[](https://community.atlassian.com/t5/Confluence-questions/Import-text-file-special-characters-not-supported/qaq-p/324279?attachment-id=3152){#link_11875088c80936}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/54682/1/wiki-wrong-char.png){#display_11875088c80936_0}


Answers:
author: chucktalk
body: I would recommend opening the file in Notepad ++ to verify the file encoding (as a secondary measure for what Firefox is reporting) and then I would also check the file encoding in your Confluence as described in [Troubleshooting Character Encodings](https://confluence.atlassian.com/doc/troubleshooting-character-encodings-167194.html) to insure that Confluence itself is setup correctly as UTF-8 (recommended), as it may not have the correct character encoding set in the environment.

I do hope that information is helpful.

Sincerely,

Chuck

comments: author: Nicolas Casel
body: Thanks for your feedback.

Notepad++ confirms the file is in UTF8.

I've run the encoding test in /admin/encodingtestrun.action and everything is ok except the last part: for "Detect whether the file system is mangling the file name when it is saved", I get this result:
> The file name has been mangled


Tags: bulk-edit

encoding

import

special-character

utf
How to enable RSS feed Macro?
Asked by Brian K Govanlu:

Hi Answers -

I can't actually find this setting. Where was it moved?

<https://confluence.atlassian.com/doc/rss-feed-macro-139431.html>

**Enabling the RSS Feed macro**

The RSS Feed macro is disabled by default.

**To enable the RSS Feed macro:**

1. Go to \> **Add-ons**.
2. Select **System** from the drop down and search for the **Confluence HTML Macros**add-on.
3. Expand the add-on and enable the **rss (rss-xhtml)** module.


Answers:
author: Brian K Govanlu
body: Hi Chander -

We are a cloud user. I now see that it is not available. UUGH.

<https://confluence.atlassian.com/confcloud/rss-feed-macro-724765278.html>

RSS Feed Macro {#toc-hId-1818160643}
====================================

For security reasons, the RSS Feed Macro is not available in Confluence Cloud.


author: Chander Inguva
body: Hi Brian,

Which version of Confluence are you having this trouble ? I am having no issues with Confluence 5.8.10

rss-xhtml.PNG

Regards

Chander Inguva  
[](https://community.atlassian.com/t5/Confluence-questions/How-to-enable-RSS-feed-Macro/qaq-p/165583?attachment-id=12696){#link_11910ca48ec7b9}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/170394/1/rss-xhtml.PNG){#display_11910ca48ec7b9_0}


Tags: rss
How can I add a livesearch field to the sidebar
Asked by Tom Birch Hansen:

I've tried adding the livesearch to the sidebar of the default theme but it doesn't render well. The search field is too wide using the 'medium' size and too large using the 'large' size.

How can I fix this?

I'm using confluence ondemand


Answers:
author: maytho
body: Hi,

i changed the Page Layout Decorator (under Space Tools -\> Look and Feel) and added a small piece of code

```
&gt;#if ($mode == "view")&gt;    #requireResourcesForContext("pagebanner")&gt;    &lt;content tag="page-metadata-banner"&gt;&gt;        #skiplink("page-banner", &gt;$i18n.getText("assistive.skiplink.to.banner.start"), &gt;$i18n.getText("assistive.skiplink.to.banner.end"))&gt;            #webPanelForLocation("atl.page.metadata.banner", {"action": $action})&gt;#end&lt;!-- Here goes the livesearch-macro  --&gt;&lt;div id="any_id"&gt;  $helper.renderConfluenceMacro("   {livesearch:spaceKey=your_space_key|size=small|placeholder=Search...}")&lt;/div&gt;
```

In the same decorator-File i added a small javascript to change the possition of the Searchbox like this:

```
&lt;script type="text/javascript"&gt;AJS.toInit(function(){      AJS.$('div.acs-side-bar-space-info').append(AJS.$('div#any_id'));&lt;/script&gt;
```

Then use some CSS styles to change the look of the searchfield.

So this solution works for me. Maybe there are some better "not-so-dirty" - hacks.

Thomas

comments: author: Helen Griffith
body: Hi Thomas... It looks like this isn't available in OnDemand (I am using OnDemand, as is Tom who is the original poster). Can you see the Page Layout Decorator, Tom?


author: Helen Griffith
body: Hi Tom, I have a similar issue so I am interested in any responses you get!


Tags: confluence-cloud

live-search

side-bar
Is there a way to organize favourite pages by category, similarly to browser bookmarks?
Asked by Serge Boivin:

*This question is in reference to Atlassian Documentation: [Favourite Pages](https://confluence.atlassian.com/pages/viewpage.action?pageId=136552)*

Is there a way to organize favourite pages by category, similarly to browser bookmarks? My list of favourites is getting pretty long, and organizing them would be very helpful.


Answers:
author: Milo Test
body: I don't think so. You would likely have to either use multiple labels on the pages and sort them or manually create a list of links on your personal page.

Then again, there's no reason why you can't just bookmark the pages with your browser, then organize them any way you want. (Well one reason would be if the page title is changed or moved, the browser bookmark will no longer work. But other than that ...)

comments: author: Serge Boivin
body: Thanks. That's what I thought. Yes, I can simply bookmark the pages in my browser, but it's nice to have the built-in "favourite" option.

Thanks!
Can I link it with a JIRA project?
Asked by carmenperez:

*This question is in reference to Atlassian Documentation: [Activity Stream Gadget](https://confluence.atlassian.com/pages/viewpage.action?pageId=771892615)*

Ask your question here...


Answers:
author: Udo Brand
body: You can add a filter for your project within the Activity Stream Gadet. So only activities within this project is shown.

Hope that was your question.
After the change to the user to change the 25 to 50 annual user payment and settlement How is progress
Asked by ???:

After the change to the user to change the 25 to 50 annual user payment and settlement How is progress


Answers:
author: Nic Brough -Adaptavist-
body: I'm not sure what the question is here. At a guess, you want to upgrade to more users - if that is the case, you can do it in your my.Atlassian account, and it will give you a new licence key to paste in (for Server) or allow more users (on Cloud) in a few minutes. If you think you've made a payment in order to upgrade, check what the account says you are licenced for in the my.Atlassian account. If it's still 25, then your payment has not been credited and you need to contact support. If it's 50, but your Cloud account will not let you add more users, then contact support to see what the disconnect it.

Note that you have not given us any information on who you are, what the payment is, or what system it's for - you'll need to give that to support (we're not support, just end users like yourself and have no access to the accounts)
link that opens url in different browser
Asked by Bryan Ruppel:

*This question is in reference to Atlassian Documentation: [Working with Links](https://confluence.atlassian.com/pages/viewpage.action?pageId=701434771)*

I am trying to setup confluence documentation links. I am using Chrome, but would like the link to open a specific website in a different browser(Fire Fox). Is there a way to setup a link to do this? Open url link in a different browser type than what you are currently viewing with?


Answers:
author: Boris Georgiev [Appfire]
body: I don't thinks this is possible and this is not a restriction of Confluence but for any HTML link. You can only create a link that opens new tab or browser window, but within the same browser.

comments: author: David Wagner
body: I think the question might really be how to open in a new tab/window, so as not to lose the current page. Is there a way to do that? I can't find one.


Tags: link
Word Export: Images not displayed when using include page macro
Asked by Steffen Heller:

Hello,

when I do an "Export to Word" with a page that has other pages included, the images from included pages do not show. Instead there is an error message:
> The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location.

I am aware that there have been other problems with images in Word exports but haven't found a bug report for exactly this one.

Does anybody have the same problem or (even more interesting) does anybody NOT have this problem and/or knows any trick to solve this?

.........................................

I am using Confluence 4.3.7.  
Images directly attached to a page do show correctly when exporting to Word.

.........................................

This is how it looks in the exported Word file:

2016-02-16 11_53_31-EM+-+Produktbeschreibung+-+EM+powerLED+PRO_ST+-+Exportdatei.doc - Word.png  
[](https://community.atlassian.com/t5/Confluence-questions/Word-Export-Images-not-displayed-when-using-include-page-macro/qaq-p/7268?attachment-id=6289){#link_1187513733104c}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/1209/1/2016-02-16%2011_53_31-EM+-+Produktbeschreibung+-+EM+powerLED+PRO_ST+-+Exportdatei.doc%20-%20Word.png){#display_1187513733104c_0}  
[](https://community.atlassian.com/t5/Confluence-questions/Word-Export-Images-not-displayed-when-using-include-page-macro/qaq-p/7268?attachment-id=6290){#link_1187513733104c_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/1209/2/2016-02-16%2011_51_35-EM+-+Produktbeschreibung+-+EM+powerLED+PRO_ST+-+Exportdatei.doc%20-%20Word.png){#display_1187513733104c_2}


Answers:
author: Thomas Schlegel
body: Hi Steffen,

with Confluence 5.9, exporting to Word is running fine with images from included pages.

Maybe you should consider updating to a newer version.

Thomas

comments: author: Sandy Johnson
body: I just came across this as I'm having the same problem. I'm using the server version 5.8.13 and when I export to Word or PDF I get what you see below. It simply displays the macro rather than the content.

Any ideas how to fix this?

Thanks, Sandy

![Include Error.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/8715i2DF3A0EE8028E882/image-size/large?v=v2&px=999 "Include Error.PNG")


Tags: export

image

ms-word