youngmon/atlassian-qna huggingface dataset:
Configuration of Confluence with MySQL
Asked by Aitor Elorriaga:

The SystemInformationService could not be retrieved from the container. Therefore very limited information is available in this error report.

The SystemInformationService could not be retrieved due to the following error: java.lang.IllegalStateException: Spring Application context has not been set

Cause

com.atlassian.config.ConfigurationException: Couldn't save confluence.cfg.xml to /home/mysql directory.

at com.atlassian.config.xml.AbstractDom4jXmlConfigurationPersister.saveDocument(AbstractDom4jXmlConfigurationPersister.java:77)

caused by: java.io.IOException: Permission denied

at java.io.UnixFileSystem.createFileExclusively(Native Method)

Stack Trace: hide

com.atlassian.config.ConfigurationException: Couldn't save confluence.cfg.xml to /home/mysql directory.

BR

Aitor


Answers:
author: HuseinA
body: > com.atlassian.config.ConfigurationException: Couldn't save confluence.cfg.xml to /home/mysql directory.

explains that the user running Confluence doesn't have enough read/write permission to /home/mysql. You will need to grant all access to /home/mysql to the user who runs Confluence. This is covered in [this KB](http://confluence.atlassian.com/x/5wDeC) as well.
How can I delete the page without visiting it?
Asked by Kate:

Hi,all!

I can't go to the page (i guess it has some mistakes). How can I delete this page without visiting it?

Thnx :)


Answers:
author: Bob Swift (personal)
body: You can use the [Confluence Command Line Interface](https://studio.plugins.atlassian.com/wiki/display/CSOAP) **removePage** action. Another option is to go to another page and look at the link that is produced for tools -\> remove page. Copy/paste and replace the page id with the page id of the page you want to delete. You need the page id of the bad page - query the contents table to get that or run something like:

**--action getPageList --space spacekey --title "bad page" --children --outputFormat 2**

By the way, you might want to use **getPageSource** first to save the page data.

comments: author: Kate
body: Good advice! thank you!


author: Shreya Rawal
body: I found a much easier way of doing this in case anyone else is looking for it. Create a new Dummy page under the same space and using Page Reorder under Content Tools move the page to be deleted under the newly created Dummy page. Delete the Dummy page and the child page.

comments: author: Jonathan Miller
body: Thanks, that really was easy.


author: Richard Fenton
body: Clever :)


author: mahdi_hosseinali
body: In the new update, the parent page adopts the child pages


author: Bob
body: [@mahdi_hosseinali](/t5/user/viewprofilepage/user-id/3540245)

Possibly even easier solution:

Go te reorder pages, drag the to-be-deleted page to the same level as the "home" page.

Go to orphaned pages, remove the page with the bin button.


author: David Peterson
body: Another option is to use the {link-to} macro from the Linking Page. In that case, you just need the page name. Just add it to another page somewhere in Confluence (in the same Space is the simplest) like so:

{link-to:page remove\|page=Name Of Page I Want To Remove}Remove Bad Page{link-to}

Then, just follow the link, and it will ask you to confirm you want to delete the page. Say 'Yes', and you're good to go.


Tags: page
PDF Export Customisations doesn?t works
Asked by Derwing Medina:

I tried to change the PDF export of a space so that the top place a logo and even though I try, it seems that confluence does not see any of my modifications, the code I'm using is identical to the example on page of documentation.

PDF Space Export Title Page

<br />

<br />

![](/download/attachments/6553602/VenezolanadeSistemasPequeno.png)

<br />

Planning for Confluence 4.0

<br />

<br />

<br />

PDF Export Stylesheet

.fsTitlePage

{

margin-left: auto;

margin-top: 50mm;

margin-right: auto;

page-break-after:always

}

.fsTitle

{

font-size: 42px;

font-weight: bold;

margin: 72px 0 4px 0;

text-align:center;

}


Answers:
author: Remo Siegwart
body: Did you do it like this?

Go to **Browse =\> Space Admin =\> PDF Layout =\> PDF Space Export Title Page** and insert the following code:

```
&lt;div class="fsTitlePage"&gt;  &lt;img src="/download/attachments/590719/titlepage.png" /&gt;  &lt;div class="fsTitle"&gt;Planning for Confluence 4.0&lt;/div&gt;&lt;/div&gt;
```

Then go to **Browse =\> Space Admin =\> PDF Stylesheet =\> PDF Export Stylesheet** and insert the following styles:

```
.fsTitlePage {  margin-left: auto;  margin-top: 50mm;  margin-right: auto;  page-break-after: always;} .fsTitle {  font-size: 42px;  font-weight: bold;  margin: 72px 0 4px 0;  text-align:center;}
```

To export the space go to **Browse =\> Advanced =\> PDF Export** and click **export**.

The custom styles defined in the PDF export stylesheet will be applied to all pdf exports, but the customizations of the PDF layout only take effect when exporting in the **Browse Space** section. They won't be applied when you export a single page over **Tools =\> Export to PDF**.


author: Derwing Medina
body: Thanks Buddy.

I like this works over **Tools =\> Export to PDF =(**
Can the default text in the Confluence search box, Search Confluence, be changed?
Asked by Dan Moran:

I want to change "Search Confluence" to "Search All Documents" because our customers won't know what Confluence is, they'll only know that they've accessed our online documentation.

(We're using the Documentation Theme.)


Answers:
author: Remo Siegwart
body: Duplicate of: <https://answers.atlassian.com/questions/20506/change-the-default-text-in-the-search-box>
Change the default text in the Search Box?
Asked by Dan Moran:

The default text in the Confluence Search Box is : Search Confluence.

How can I change this text?

I'm using the Documentation Theme.


Answers:
author: Sandro Herrmann [Communardo]
body: Hello,

and javascript again iss your friend.

Insert the following code in the Confleunce Administration \> Custom HTML \> "At the end of the BODY" - part

```
&lt;script type="text/javascript"&gt;AJS.toInit(function ($) {        var search = jQuery(".quick-search-query");        search.each(function() {            searchBox = jQuery(this);            searchBox.data("quicksearch", {                placeholder: "My Test Value",                placeholded: true            });            searchBox.trigger("focus");            searchBox.trigger("blur");        });       });&lt;/script&gt;
```

The Placeholder Vlaue "My Test Value" should be set. Testet it with a Confluence 4.0.4. Hope that works for you.

comments: author: Dan Moran
body: Thanks, Sandro - this script works great in my version of Confluence!

Sorry about the duplicate questions - I wasn't aware that the first one was accepted. Then this weekend I began receiving answers for both. And different answers at that! But yours was the simplest and it worked.

Thanks again,

Dan


author: Victor Prasad
body: Any chance this will work with Confluence 6.8.2?

Thanks,

V


author: Stanislav Kalianov
body: I think it might be easier to follow the Confluence documentation regarding changes to interface text:

<http://confluence.atlassian.com/display/DOC/Modify+Confluence+Interface+Text>

comments: author: Dan Moran
body: Hi Stanislav,

Thanks for your reply. I got a lot of great answesr from everyone, but for me, Sandro's was the easiest to apply. I didn't have to leave the UI - just plug in the script and it's done.

Dan


author: HuseinA
body: removed to the original question <https://answers.atlassian.com/questions/18196/can-i-change-the-words-search-confluence-in-the-confluence-search-field/20587>


author: Remo Siegwart
body: Duplicate of: <https://answers.atlassian.com/questions/18196/can-i-change-the-words-search-confluence-in-the-confluence-search-field>
Must email addresses in Confluence be unique?
Asked by JT:

Must email addresses in Confluence be unique or can mulitple users have the same email address?


Answers:
author: Remo Siegwart
body: We have some users which have the same email address, no problems so far.

comments: author: JT
body: What happens if one of these users selects the 'Forgot My Password' function and enters the email address instead of their user id?


author: Remo Siegwart
body: In our case, it looks like Confluence just takes the first user it finds by the email address and creates a reset link for that user. The same happens in our other Confluence using Crowd.


author: Nic Brough -Adaptavist-
body: The password goes to the email address, so whomever is reading the email address gets the password. If it's a shared account, then many people have access. Not a lot you can do about that - it's the organisation's decision to use shared accounts. (If you are, then you may want to think it through - in some cases, it's such a bad idea, it's illegal)
after upgrade confluence edit page only shows the page title.
Asked by Brendon Baumgartner:

Upgraded from 3.4.x to 4.0.4. After the upgrade now when editing a page, the edit page shows only a title. The editor isn't there as well as the rest of the page.


Answers:
author: Brendon Baumgartner
body: <http://confluence.atlassian.com/display/DOC/Wiki+Markup+to+XHTML+Migration#WikiMarkuptoXHTMLMigration-Re-runningMigration>

Rerunning the migration fixed it.
How do you create drop down menus from the header field in Confluence?
Asked by Ruchi Sheoran:

How do you create drop down menus from the header field in Confluence?


Answers:
author: Brent Lewis
body: The best way I have found to do this so far is using the Adaptavist Theme Builder plugin, but I would also like to do this in a native Confluence theme as I've had a hard time maintaining a lot of what I like in the core layouts with the theme builder app (it seems very powerful, but I am not knowledgable enough with CSS and web page/browser interactions to re-create a great theme in it).


author: Brent Lewis
body: The best way I have found to do this so far is using the Adaptavist Theme Builder plugin, but I would also like to do this in a native Confluence theme as I've had a hard time maintaining a lot of what I like in the core layouts with the theme builder app (it seems very powerful, but I am not knowledgable enough with CSS and web page/browser interactions to re-create a great theme in it).


author: David at David Simpson Apps
body: You could add another menu next to the Browse and username field quite easily.

Take a look at the code behind @Stefan Kohler's Favourites Speakeasy Extension:  
http://codegeist.atlassian.com/entry/164784


Tags: select-list
Pages whose tittle has a '&' character problem
Asked by miguel.silva:

I'm using confluence 4.0

And when I try to create a page whose tittle has a '\&' character, that page is rendered normally but the URL of those pages is something like "http://\<server\>/pages/viewpage.action?pageId=5636721" insted of the normal http://\<server\>/display/\<space\>/\<page_name\> .

Is this a known issue? Is it correctable? Does anybody knows how?


Answers:
author: MinC
body: This is still a feature request at the moment: <https://jira.atlassian.com/browse/CONF-11285>. Feel free to cast a vote to increase the popularity of the feature request or add yourself as a watcher to be notified for the future updates.


author: Sander Brienen [Avisi]
body: This is by design and afaik not configurable.

The whole issue is that the '\&' character has special meaning in a URL. Therefore, Atlassian took it on the safe side to render the url for these pages by pageId. It happens to all pages with titles that give problems when the title is added to a URL.


Tags: display

page
Is it possible to export the watchlists if I export a space to XML?
Asked by Norman Schemel:

I've exported a space with many page watchers to XML. When I import it in another or the same confluence installation all watchlists are gone. Is there an option to export the watchlists too?


Answers:
author: Rodrigo Girardi Adami
body: Hi there!

That's strange. I've just performed a test here exporting a space XML with a page watcher and when I imported this same space the watcher remains in the list.

This might be some other problem. I suggest to open a ticket for atlassian support so we can investigate.

Regards,

Rodrigo


Tags: export

watcher

xml
External links to Confluence (e.g. requirements)
Asked by Sebastian Ljungberg:

Hello,

I am using an external Test management system and I wonder if it is possible to get an external link to a anchor/heading in a specific page/space in Confluence that I can use in my test cases so the tester can look at the requirement if needed. (By clicking on the link, possible log in, and then get directed to the specific anchor/heading)?


Answers:
author: Remo Siegwart
body: Headers (h1, h2, etc.) in Confluence usually should have an anchor already. You should be able to link to a specific header like this:

<http://www.example.com/display/SPACEKEY/YourPageTitle#YourPageTitle-YourHeader>

You can also insert custom anchors with the anchor macro:

{anchor:YourCustomAnchor}

And then link to them like this:

<http://www.example.com/display/SPACEKEY/YourPageTitle#YourPageTitle-YourCustomAnchor>

Hope this helps

comments: author: Andrew Karandjeff
body: I have tried both adding an anchor (named acronyms) via the macro and then creating an external link as well as using the Header 2 name for the section (Acronyms) and neither seem to work. I am just taken to the page itself and am positioned at the top, not at the Acronyms section.

Anchor link

<https://atlassian.mysite.com/confluence/display/myApp/My+Title#My+Title-acronyms>

Section link

<https://atlassian.mysite.com/confluence/display/myApp/My+Title#My+Title-Acronyms>

I've also tried:

<https://atlassian.mysite.com/confluence/display/myApp/My+Title#acronyms>

and

<https://atlassian.mysite.com/confluence/display/myApp/My+Title#Acronyms>

to no avail.

We're on version Confluence v4.1.4 and I've tried with IE9 and FF v10 and v14. Thanks.


author: Remo Siegwart
body: Try to replace **#My+Title-XXX** with **#MyTitle-XXX**. Spaces in page titles are getting removed in the anchors, so you don't need to write the plus (+) signs.

Hope this helps


author: Andrew Karandjeff
body: Yahtzee! That did it. Thank you very much!


author: Stefan
body: Hey guys, what century does Atlassian's Confluence live in?

I have to:

copy and paste the (tiny) link,

then I have to add the "#",

copy and paste the standard link,

strip the https-header in order to have MyPageTitle isolated,

delete all "+" that were inserted due to the spaces,

add the "-",

copy and paste the Heading,

delete all "+",

then test if it really works,

debug the mistakes from the above procedure

and then I have a link to a header on a confluence page!!!!!

Has Atlassian heard about a context menu macro yet?


Tags: external

link
No "Add Gliffy document" under Issue > Other Actions
Asked by Richard Grove:

I've checked the plugins, disabled and re-enabled Gliffy without success. Any guidance would be appreciated. Thanks.

RG


Answers:
author: NikE
body: With Gliffy there are two different plugins: Gliffy for JIRA (Issues) and Gliffy for Confluence (Wiki) which can make it a bit confusing. Depending on what you signed up for, the plugin can be under plugins for Issues and/or plugins for wiki.

If you have the plugin enabled for application in mention and it is not showing up, I would recommend entering a support ticket ([support.atlassian.com](http://support.atlassian.com)) so we can take a look over your instance to check everything out.


Tags: cloud

gliffy-cloud
How to add a serial / issue number to a page in Confluence 4.0?
Asked by Robert Lauriston:

I want to build a simple knowledge base. How can I automatically add a unique ID number to each page name?


Answers:
author: David at David Simpson Apps
body: Browse to **Confluence Admin \| Look \& Feel \| Custom HTML**

Paste this in **At the end of the HEAD**:

```
&lt;script&gt;AJS.toInit(function(){  if (AJS.params.pageId != 'undefined') {    AJS.$('#title-text a').prepend(AJS.params.pageId + ' ');  }});&lt;/script&gt;
```

It will prepend the pageId to the page title.

comments: author: Robert Lauriston
body: Thanks! Is page layout development documented in any one place or will I have to piece it together myself?

```
&lt;script&gt;AJS.toInit(function(){  if (AJS.params.pageId != 'undefined') {    AJS.$('#title-text a').prepend('KB-' + AJS.params.pageId +' ');  }});&lt;/script&gt;
```


author: Robert Lauriston
body: That's close to what I need, except the number does not seem to be searchable.


author: Fabian Lopez
body: I faced the same problem while I was creating the KB and when we need to send a reference to the page that was not going to be changed (so I was not able to use the page name). The tiny url is the unique ID that I used.

I added the following on the top of the page just in case they need to send the link

Right-click this link and choose "Copy Link Location" to reference this KBA: {page-info:tinyurl}


author: Bob Swift (personal)
body: Each page already has a unique page id assigned by Confluence. Would that work for you?

comments: author: Robert Lauriston
body: Yes, the unique page ID would be great. So I want to add something to the main-header div in the main layout for the KB space?


author: Bob Swift (personal)
body: You have to figure out how you want it displayed but something like: PAGE_ID: ${page.id} in the layout.


author: Brent Lewis
body: I am also interested in doing this, but my understanding is that the Page ID is not completely stable. The ID may chagne as updates are made to the page or if the Confluence instance is upgraded. Can anyone comment on how persistent page IDs really are on Confluence?


author: Bob Swift (personal)
body: The pageId is stable, the page title can change (obviously).


Tags: page
Sql plugin not running
Asked by Ryan Payne:

We are having issues with the sql plugin. we are running confluence version 4.0 and have tried both sql plugin versions 4.2.1 and 4.2.0 with no success. The datasource we are is located at java:comp/env/jdbc/confluence. The table I am trying to access is called schedule_cal

even going of of the simple example statement from the plugin homepage does not run

{sql:datasource=confluence}

select \* from schedule_cal

{sql}

we have also tried with the {sql-query} macro

if entered in the page body through the page editor the sql statement text will simply be displayed in the page once saved, if entered by inser\>wiki markup the error: Unknown macro:'unmigrated-inline-wiki-markup' is displayed

what are we doing wrong? I have tried every combination I can think of but it is not recognizing it as a macro but plain txt instead


Answers:
author: Philippe Robichaud
body: Same here, any progress on this?


author: Matthew J. Horn
body: RPAYNE, did you ever resolve this? I am experiencing the same issue. Am using Confluence 4.1.2.


author: Bob Swift (personal)
body: Currently, you can only use sql macro on Confluence 4 via insert wiki markup. See/watch [Confluence 4.0 compatibility for Table and other plugins](https://studio.plugins.atlassian.com/wiki/display/TBL/2011/09/19/Confluence+4.0+compatibility+for+Table+and+other+plugins) for information on that. Regarding the unknown macro part - that is Confluence, check the plugin is properly installed and all macros enabled. Check the logs for related problems. If you still have problem, you can open a plugin issue with more details, but I suspect it is a installation issue.

comments: author: Ryan Payne
body: Thats what I am confused about, can you explain the process for adding the sql macro through the insert wiki markup? I though you opened it, entered the sql macro statement in the wiki markup window and pressed insert, that simple. Am I missing something? Instalation stated successfull and plugin admin page shows 9 of 9 modules enabled, I dont understand why it is not running. Also I opended an issue and am waiting to hear back on that as well.


author: Bob Swift (personal)
body: That is all. It is no different than any other wiki markup added that way. Suggest restarting Confluence to see if problem occurs after a fresh start.


author: Ryan Payne
body: Restarted with no change, it will run any of the included macros such as {column} but will not run any of the ones I have installed such as {sql} {table} or {run} for all three it produces the same unkown macro error. Do you have any other suggestions or ideas why it would not work with any of them?


author: Bob Swift (personal)
body: Will have to see what Atlassian support says. What specific version of Confluence 4 are you at? Mine is 4.0


author: Ryan Payne
body: system info page just lists 4.0


Tags: app

macro
Confluence CLI stopped working suddenly
Asked by Richard Yale:

Last month it worked fine, this month it is giving us errors and we didn't change anything. What could have caused it?

C:\\CLI\\confluence-cli\\release\>java -jar confluence-cli.jar --server http://\*\*\*\*\*\*\* --user \*\*\*\*\*\* --password \*\*\* --space "\*\*\*" --parent "\*\*\*" --title "\*\*\*" --action storePage --content "TEST"

Unable to log in to server: http://\*\*\*/rpc/soap-axis/confluenceservice-v1 with user: \*\*\*\*\*.  
Cause: ; nested exception is:  
org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages

\* = replaced content


Answers:
author: Bob Swift (personal)
body: Simplify by trying **--action login** with the same user info. Next try login with a different user. Log in the server job log for any related error messages.

comments: author: Richard Yale
body: I get the same error with a few different logins using the login action and there are no errors in the logs.


author: Bob Swift (personal)
body: And the different user failed as well? And the same user can login via UI? Any changes in how users authenticate? Is this a user defined directly to Confluence? If not, try with such a user.


author: Richard Yale
body: All users have failed both confluence internal and LDAP accounts. All users can login through the actual site. No changes were made to authentication. No changes were made period, which is why this is weird.


author: Bob Swift (personal)
body: Restart Confluence is the next thing to try.


author: Bob Swift (personal)
body: See <https://answers.atlassian.com/questions/159410/confluence-cli-is-not-working>


Tags: cli
How do you configure the JIRA Issues Icon Mappings in Confluence 3.5.13?
Asked by Lisa Estrella:

I have a user that sent me this link requesting that I configure the JIRA Icon Mappings. <http://confluence.atlassian.com/display/CONF34/Configuring+JIRA+Issues+Icon+mappings>

However, I this pertains to confluence 3.4 and we are running 3.5.13. Does anyone know if this is still required? I couldn't find any documentation for version 3.5.

Thanks,

Lisa


Answers:
author: Guilherme Nedel [Atlassian]
body: This feature was discontinued in Confluence 3.5.1 as per tests.


author: Nic Brough -Adaptavist-
body: It's the same process in 3.5

comments: author: Lisa Estrella
body: In the instructions it says to go the admin console and select 'Jira Issue Icon Mappings' in the left side panel. I don't see that option. That is why I thought maybe the process was different.