youngmon/atlassian-qna huggingface dataset:
Is there a fail over Document for Confluence
Asked by Dave:

Jira has a document outlining possible Failover solutions. (<https://confluence.atlassian.com/display/ATLAS/Failover+for+JIRA>)

Is there one for confluence?

Clustering is not supported on Virtual Machines so this is not an option.

The Confluence server is running on a Virtual machine


Answers:
author: Dave
body: Answered by Atlassian as part of a comment to a the first answer

"We do support clustered on a VM now. See update at [https://jira.atlassian.com/browse/CONF-19559?focusedCommentId=342271\&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-342271](https://jira.atlassian.com/browse/CONF-19559?focusedCommentId=342271&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-342271)

\[...\]" \[Bill Arconati \[Atlassian\] \[Atlassian\]\]

<https://confluence.atlassian.com/display/DOC/Running+Confluence+in+a+Virtualised+Environment>

So using his answer I will anser this question that it ios supported and the documentation is "use clustering docs"

comments: author: BillA
body: One thing to note is that clustering won't provide you with failover which I think is your intent. I'd be happy to talk more about your failover needs if you email me at bill at atlassian.


author: Dave
body: This question has been brought to the attention of Atlassian, no answer yet :(


author: Dave
body: Got the following from Atlassians Automated BOT

My response to these are included as sub-bullets

Please consider one of the following actions:

* Accept an answer (click the grey check mark)
  * OK, no valid answers currently Exist
* Answer your own question, then accept your answer (find the 'Answer my own question' link underneath your question)
  * I don't have the answer (hence why I asked the question)
* Edit your question for clarification
  * How can I clarify further? The question is simple
* Add a comment for more information from an existing answer
  * If I can't clarify, how can I add more info?
* Close the question, if it's invalid
  * Its still a valid question

So I am still left with a question unanswered.

Is there a suitable failover document similar to teh jira documentation (linked in teh question) that applies to Confluence running in a VM?????


author: St?phane Genin
body: Hi,

You can setup Confluence for High Availability. See this document : <https://confluence.atlassian.com/pages/viewpage.action?pageId=154633658>.

St?phane

comments: author: Dave
body: Ok but what if I don't want to use clustering?

Clustering is not supported on Virtual Machines so this is not an option.

Rob


author: BillA
body: We do support clustered on a VM now. See update at [https://jira.atlassian.com/browse/CONF-19559?focusedCommentId=342271\&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-342271](https://jira.atlassian.com/browse/CONF-19559?focusedCommentId=342271&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-342271)


Tags: failover
Uploading 3.x markup using CLI to 4.x
Asked by Lis Riba:

We're still running Confluence 3.x and are looking into the issues involved in upgrading to 4.x.

We have several pages where other programs create files in wiki-markup on our fileservers. Then, as a scheduled task, CLI will StorePage to update them in the wiki.

Now, I know that 4.x has the new editor, but it supposedly can still read markup.

So what will happen with these pages? Will the formatting be translated so they continue to work, or will we have to revise the formatting in these reports?

Anybody else have experience with this kind of automation? How was your upgrade?


Answers:
author: Bob Swift (personal)
body: Good question! [Confluence Command Line Interface](https://bobswift.atlassian.net/wiki/display/CSOAP) defaults to wiki markup for any content that is provided whether it is targeting 3.x or 4.x. When targeting 4.x, it uses Confluence service to automatically convert the wiki markup to native 4.x format. [noConvert](https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-noConvert) is a new option that also allows 4.x storage format to be used in the CLI. So, your automation should continue to work provided it is producing valid wiki markup with all macros defined - undefined macros can cause the converter to flag errors preventing a page update.

comments: author: Lis Riba
body: Thank you. That's WONDERFUL news and will save some work when we upgrade..


Tags: cli

markup

upgrade
Installing a Plugin
Asked by Richard S:

I have just installed the 'Tracking' and 'Send Email to Page' plugins successfully (apparently) on a stand alone version of Confluence 4.1.4.

When I edit a wiki page and go to insert a macro from the 'Other macros' option, neither of the plugins appear within the list.

Am I missing something or doing something stupid?


Answers:
author: Joerg Bencke
body: 1) Check the plugin-management page, are the plugins listed as "activated" as well ?

2) if so, check the installation manual - do you have to complete some configuration steps (usually in the space-administration oder confluence-administration section)

3) last - check the usermanual for code-examples, which keywords you would have to include into the wikimarkup to use the macros. Maybe they are not integrated into the macrobrowser ?

comments: author: Richard S
body: Thanks for the advice. Had already checked 1 \& 2. 3 Hadn't occured to me. ;-)

I've just found out that one of the Plugins is the wrong version. Have now uploaded the correct version and it works fine.

The 'Send Email to Page' plugin though seems to be buggered. It installs, but I can't get to the admin screen for it - keeps saying the page doesn't exist. =(


Tags: app

macro
Deletion of calendar events on updating title
Asked by Sourish Ghosh:

Hi,

* There is a calenndar named GBI WW Emp Vacation Calendar.
* If we rename it as GBI WW Employee Vacation Calendar, all the calendar events disappear.
* But if we rename it to some other name like GBI WW Employees Vacation Calendar , all events are intact and successful update occurs.
* Please see the images attached.

I would want to know why this happens.

Thank you,

Sourish.


Answers:
author: Bruna Griebeler
body: Hi Sourish,

I believe you are still using the Calendar plugin for Confluence. This plugin is no longer maintained. So I strongly recommend you to use Team Calendars since it's a more stable and resourceful tool.

Cheers
attachment stubs present in xml space export without attachments
Asked by David Vo?ka:

Hello,

when I xml-export a space without attachments and then import it in another instance, the attachments are still visible in the target. All the metadata is present (like the creator of the attachment), the only thing missing is the content. I've unpacked the zip of the export file and indeed, I can see the attachments in the big xml file.

We have confluence 3.5.16.

What am I doing wrong ?

Thanks for any answer,

David vonka


Answers:
author: David Vo?ka
body: when I say 'export a space without attachments' i mean that I check-off the with attachment checkbox when exporting. The space does have (many) attachments that I do not want to include in the export.
How to display all macro options in the macro placeholder
Asked by Adolfo Casari:

In Confluence 4.X is there a way to display all macro options in the editor?

For instance I am using the Page Tree macro with several options set, but it shows root and excerpt (partially) only (see screenshot).

![](../../upfiles/Macro.PNG)

Thank you,


Answers:
author: Paul Curren
body: I'm afraid the number of characters permitted is fixed at a set length. There is no option for showing the full set.

If you are happy "hacking" JAR files you can do the following.

1) Extract the confluence-tinymce-plugin jar from confluence-bundled-plugins.zip

2) Extract all files from the JAR

3) Open the atlassian-plugin.xml and look for this entry -

```
&lt;servlet name="Macro Placeholder Servlet" key="macro-placeholder" class="com.atlassian.confluence.tinymceplugin.placeholder.MacroPlaceholderServlet"&gt;        &lt;description&gt;Generates a placeholder image for macros&lt;/description&gt;        &lt;url-pattern&gt;/confluence/placeholder/macro&lt;/url-pattern&gt;        &lt;init-param&gt;            &lt;param-name&gt;maxParameterTextLength&lt;/param-name&gt;            &lt;param-value&gt;30&lt;/param-value&gt;        &lt;/init-param&gt;        &lt;init-param&gt;            &lt;param-name&gt;placeholderType&lt;/param-name&gt;            &lt;param-value&gt;inline&lt;/param-value&gt;        &lt;/init-param&gt;    &lt;/servlet&gt;
```

You can set the maxParameterTextLength to a larger size.

4) Zip the extracted files back into the tinymce jar.

5) Install this "hacked" jar into Confluence.
Styling a single page with CSS
Asked by Harley Flanagan:

Hi!

I thought i've already read something about the possibility to customize even single pages.   
Unfortunately a can't find the info anymore if i am not even wrong at all.  

So here's the humble question:

- Is there a possibility to style single or special pages in Confluence Wiki (Version 4.0)?  
- Where can i find documentation on this special topic?

What i want to achieve:

In my case i would like to place a background picture into the Blog-Summary-Page. But i can't find any special page IDs or something to let this happen.  

Now i created a DIV-Container inkl. ID within the custom HTML-Section. But of course this picture shows up on every wiki-page now when i don't have something unique to connect with.  
Or is this something I need to solve via Javascript? (hopefully not \^\^)

thanks in advance  
(sorry for my buggy english)


Answers:
author: Davin Studer
body: An easier way would be to add the html macro to your page and then you can put in some CSS only for that page. Be default the HTML macro is turned off, so you would need to enable it.


author: Steffen Heller
body: @KP11:

Use {span} or {div} macro, define a background colour and put the one word inside the macro.


author: Harley Flanagan
body: I've never seen docs that relate to styling a single page like that (which is not to say they don't exist, just that I've never seen them :)

You can certainly create CSS that works over an entire space - <https://confluence.atlassian.com/display/DOC/Styling+Confluence+with+CSS>

You could also edit all the stylesheets that Confluence uses and insert some special stuff of your own, but

(a) they're cascading stylesheets and are really complex

(b) you absolutely need to know what you're doing before you attempt anything like that

(c) do it in a test version, not your production wiki

(d) you need to have access to the server where they're stored -- (edited note): Sorry, just noticed that you're talking about On Demand - you won't be able to do any of that stuff. My bad!

comments: author: Harley Flanagan
body: Hi, just for people that might search for the same question.  

I solved my question above with Javascript in the html head section.

```
		<SCRIPT type="text/javascript">			<!-- 			URL = document.URL;			list = URL.split('/');			candidate = list[list.length-1].split('.')[0];						if (candidate == 'yourdesireduniquewordinyoururladressbar') {				document.write('HelloWorld');				document.write('<link rel="stylesheet" type="text/css" href="yourstlye.css">');			}												-->		</SCRIPT>

the script is looking for a unique keyword in the addressbar. if its there your css will be loaded.

```

as for single pages.. depends on your user-rights.. you can insert a html-macro within the page.


author: KP11
body: Is there code to just highlight the background of one word in the sentence?


author: Peter J. Kootsookos
body: One minor speeling errur \[sic\] : "yourst**ly** e" --\> "yourst**yl**e". Otherwise, nice script!


Tags: blog

cloud

confluence-cloud

css

page
Did you mean index not building??
Asked by Steve Johnson:

My "did you mean" index is not allowing me to create it. In place of the "build" option, it states:

For Did You Mean both the [indexing language](http://172.19.1.125:8090/admin/viewgeneralconfig.action) and the [global default language](http://172.19.1.125:8090/admin/configurelanguage.action) must be set to English.

But both indexing language and global default are english_US. I just installed the plugin and I've also restarted confluence. Does anyone know of a bug with this functionality?

Thanks!


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: It has to be English UK.
> In addition, the 'Did You Mean' index requires the built-in UK-English locale (**en_UK**). If your Confluence site uses a different language pack, such as English (US), the 'Did You Mean' feature will not work

comments: author: Steve Johnson
body: awwww.. Ok. Thanks. We can't use UK as the mispellings become aparent. That's too bad this is not supported. The languages are so similar.


Tags: index
Convert to HTML
Asked by V:

In Confluence 3.5.13, i used convertWikiToXHtml (WikiStyleRenderer class) method to convert Confluence page content into HTML.

Confluence 4.x uses XHTML-based storage format (ac:macro). What is the equivalent method to convert Confluence 4 page content into HTML?


Answers:
author: Dennis Kromhout van der Meer
body: I would take a look at the DefaultRenderer class and the Render interface in com.atlassian.confluence.content.render.xhtml. This should help you render the html for displaying: [Atlassian Docs - DefaultRenderer](http://docs.atlassian.com/atlassian-confluence/latest/index.html?com/atlassian/confluence/diff/renderer/StaticHtmlChangeChunkRenderer.html)
Empty Page after saving
Asked by Andr?W:

After a lot of changes on a page in confluence i have clicked the save button. Then confluence has shown me an empty page. All the content of the page has been lost. I found no draft page and no hint in the history of the page.

Has anyone an idea for my problem?

Best regards,

Andr?


Answers:
author: Matthew J. Horn
body: Do you have access to the database? If you're concerned about getting the data back, I would start there and look for rows with a matching page ID in the BODYCONTENT table.
How Do I get the Documentation Sidebar to not Default to Hidden?
Asked by Arieze Kanji:

For some reason in Confluence, the documentation theme Sidebar is always hidden until the user hits the button at the top of the page. How do I get it to default to being showed upon login?


Answers:
author: David at David Simpson Apps
body: Edit the **Custom HTML** in the Confluence Admin section. In **At the end of the HEAD** add:

```
&lt;script&gt;  AJS.toInit(function(){    AJS.$('#splitter-button.collapsed').click();  });&lt;/script&gt;
```

comments: author: Arieze Kanji
body: Thanks! This got the job done!


author: CharlesH
body: The default behaviour as far as I know is for the sidebar to be shown, not hidden. I'd suggest seeing if any JavaScript errors occur during page load, which may relate to the sidebar. Are you seeing the same behaviour in all browsers? What version of Confluence / Documentation theme are you using?

comments: author: Arieze Kanji
body: Yep. It's in both Chrome and Firefox, and it's something that's affecting all of my users. Using Firebug, I'm not seeing any JS errors. So, I don't know what it could be. Do any of you know what it could be, or potentially any way to force the system to show it?

I'm using confluence 4.2.2 and Documentation version 4.2.2


author: Andrew Cooper
body: I'm having the same issue, I think. I'm running versino 4.2.4 of Confluence and the Documentation theme. The theme works fine in IE8, but it looks like the initialisation script is not running in Firefox. I can see the Documentation Theme header and footer, but not he sidebar or the menu-bar button to turn the side-bar on and off. This is in Firefox 10.0.5. In the Firefox web console I can see the doc-theme.js script being loaded, but no errors from it.
How can I tell which page an attached file is attached to?
Asked by Matthew J. Horn:

I have a link to an attachment, but don't know which page it is attached to. For example, a month or so ago, I added a PDF to a page, and copied the hard-wired link somewhere else:

<http://myserver/confluence/download/attachments/8880142/install.pdf>

How can I tell which page this file is actually attached to?


Answers:
author: Joerg Bencke
body: Hi Matthew,

the number at the end "8880142" is the page ID. So you can do two different things:

1) Search for the filename in the wiki-global-search

2) call up following url : \<yourserver\>/confluence/pages/viewpage.action?pageId=\<pageid\>

Josch


author: Nica Huestegge
body: If you search for the Filename or some Keywords of the file, you'll find the file in the search. In the search you'll be given the path to the file which shows you the page it's attached to. See picture.![](../../upfiles/Bildschirmfoto_2012-06-27_um_09.21.54.jpg)


author: Thomas Schlegel
body: Hi Matthew,

have a look at <https://confluence.atlassian.com/display/DOC/Viewing+Attachment+Details>

Maybe you can find your attachment in the attachment list

Cheers

Thomas


author: Thomas Schlegel
body: Hi Matthew,

search after special keywords from the pdf. PDFs are indexed also. If the word is special enough, you should find it.

Cheers

Thomas

comments: author: Matthew J. Horn
body: that's a great idea if I didn't know where the attachment was... I have the link to it, just no idea what page it's attached to. The search results show the PDF but not it's associated page.


Tags: attachment
How to prepare users to pass from Confluence 3.4 to 4.2.2 ?
Asked by Michael Regelin:

Our wiki is used mainly with lots of scaffold formulars. They are mostly bound with the macro live-template, so the code comes from templates directly.

When moving to Confluence 4.x the wiki markup will just disappear. So users will be confronted with pages to resave with html code and no wikimarkup anymore.

I'm not familiar with this and would know what are the bests practices for this situation.

Normaly, we will pass from 3.4 to 3.5.13 (really shortly) and at last, with 4.2.2 in the same week.

People want a zero effort transistion, so please some advice will be really appreciate.

Michael


Answers:
author: Alejandro Conde Carrillo
body: As you know, the bigest change in Confluence 4.x is that whr wiki markup editor is no longer available. You can find some reasons of why Atlassian decided to abandon the wiki markup editor in this [link](http://blogs.atlassian.com/2011/11/why-we-removed-wiki-markup-editor-in-confluence-4/).

For the normal user, the new rich text editor is easy to use for everyone who has used a text processor. For the wiki markup die-hards, the rich text editor actually parses all wiki markup tokens and fortmat the text as you write. You can find more information in this [link](https://confluence.atlassian.com/display/CONF42/Confluence+4+Editor+-+What%27s+Changed+for+Wiki+Markup+Users "Confluence 4 Editor - What's Changed for Wiki Markup Users").

Hope you find this information useful.

Alex.

comments: author: Michael Regelin
body: Hi Alex,

sorry for the delay.

thanks for the link. Was really helpfull to prepare a new migration plan.

SIncerly,

Michael
Crash recovery
Asked by Massimo Bertozzi:

Unfortunately the server that is running our confluence system has crashed (never trust a RAID5). Files seems to be ok but I need to reinstall confluence and to recover (if possible) tha data. Few questions:

1. where I can find in file the version of confluence we are using (originally we installed 3.5.9, I am pretty sure we upgraded to 4.0.4 but I would like to prove it)?  
2. the /opt/atlassian directory holds all data or there are other files I should recover?  
3. what is the more appropriate procedure to recover data from files?

Thanks,  
Massimo


Answers:
author: Matthew J. Horn
body: 1) If you have access to a backup of the server, it should be in the /decorators/includes/footer-content.vm file (for 4.x).

2) The following directories contain data that we typically back up:

* confluence/data/attachments/\*
* confluence/data (this is the "home" directory)
* plus other directories that contain images and custom code (see #3)
* confluence/conf -- configuration of tomcat
* confluence/WEB-INF -- configuration of the confluence web application

3) We do nightly backups of the confluence database. We have recovered by restoring the database itself on a clean Confluence install. There are a few things about our implementation that are not stored in the database itself, so they must be backed up/restored separately. These include, but are not limited to:

* - Custom CSS files
* - Custom VMD files
* - Images (that are not attached, such as images used by macros and plugins, and images used in HTML landing pages)
* - Some tweaking of the plugins might be required (for example, after a clean install, you might need to reenable the HTML plugin or reinstall third-part plugins)
* custom favicons and breadcrumb images
* web.xml and urlrewrite.xml files


Tags: crash

restore
How can the space key format (regex) be changed?
Asked by Martin N. S?gur Cabanac:

Hi,

we use Confluence spaces for projects (connected to JIRA projects). In JIRA, it is possible to change the project code format through regex. Can this also be done in Confluence? Our project code format contains dash ('-') characters, but Confluence per default doesn't allow them in space keys.

Thanks,

Martin.


Answers:
author: Alejandro Conde Carrillo
body: Hi Martin.

The space key cannot be changed (more info in[Editing Space Details](https://confluence.atlassian.com/display/DOC/Editing+Space+Details)).

Also, the key can only contain letters and numbers (more info in [Setting up a New Global Space](https://confluence.atlassian.com/display/DOC/Setting+up+a+New+Global+Space)).

comments: author: Martin N. S?gur Cabanac
body: I know, too bad. I'm using the space key together with CustomWare's reporting and scaffolding plugins as a key to use in sql queries to automatically display information from several databases on a "Dashboard" page per project. All the PMs need to do is copy a template space and enter the project code as space key.

As a workaround, we now use lower-case "x" instead of "-" in the space key and replace it with "-" in the sql queries to return the correct data. Dirty solution, but works.
Why is Confluence 3.5.16 prompting me to install Google Gears?
Asked by David A:

Hi

We have just upgraded to Confluence 3.5.16. I am testing it with IE9. When I try to drag 'n drop an attachment to a page, Confluence prompts me with:

> "To enable drag-and-drop, you need to install Google Gears. Confluence has detected that you do not have it installed. Would you like to proceed to the website to install it now?"

I understood that Google Gears was deprecated in Confluence 3.5 and that drag 'n drop should work through Html5.

Please can anyone explain this?

David


Answers:
author: Thomas Schlegel
body: Some themes do not support HTML5 (<https://confluence.atlassian.com/display/CONF35/Using+Drag-and-Drop+in+Confluence>)

Maybe you use one of them ?


author: Andrew Frayling
body: Hi David,

The Google Gears requirement is browser dependent rather than Confluence version dependent. Have a look at <https://confluence.atlassian.com/display/DOC/Using+Drag-and-Drop+in+Confluence> for details, basically Internet Explorer 9, Firefox 3.5 and Safari 4 don't support HTML drag and drop and therefore require Google Gears.

Hope that helps?

Andrew.

comments: author: David A
body: Well it sort of helps ;-)

Google Gears is no longer available. So the answer, I guess, is that drag and drop is not supported by Confluence for IE9.