youngmon/atlassian-qna huggingface dataset:
How can I migrate a large Confluence instance from Windows to Linux?
Asked by Doug McLean:

We have a large Confluence 3.2.1 instance (5 GB database, 65 GB attachments) running on Windows 2003 32-bit server and MSSQL 2005. We'd like to migrate to RedHat 5.x or 6.x, probably with Oracle database. Is there a supported method for this kind of migration aside from XML export/import? Thanks


Answers:
author: Gerri Urban
body: Atlassian has a page out there for migrating confluence between servers: <http://confluence.atlassian.com/display/DOC/Migrating+Confluence+Between+Servers>

For large instances you just need to make sure you get your database exported properly - not sure what the changes will be going from sql to oracle - in the brief search I did there are multi options for doing this - but please test to make sure it's all working.

The same applies for going from Linuz to confluence. I did that (long ago on version 2) but the same still applies - the first thing to do is get your new server set up for confluence 3.1.2 - make it the same version of everything you are running on the Linux side, then export your database, copy over your attachments and put them all on the new server - I would strongly recommend making a snapshot of your server prior to trying with your data - if I recall it took me several attempts to get everything working as expected - once you have your procedures, do the final backup, shutdown the old and bring up the new - don't forget to get your certs setup and tested - you will most likely have to get them reissued for the different OS.

Good luck!

Lirria

comments: author: Doug McLean
body: Thanks to all for the comments - I'm in the process of setting up a test instance of our Confluence production instance on a RHEL 5.4 VM. One wrinkle: we're initially going to try and keep MSSQL 2005 as the backend database (on a separate VM, obviously %\>}). I'll let you know how it turns out.


author: Gerri Urban
body: I'm sure it will be fine - once you get the database connected the rest should be cake.

Lirria


author: Doug McLean
body: Just to close this out - everything worked fine, Lirria, your answer had the link I needed with all the answers - thanks!


author: Ben Boucher
body: Any advice on how to go the other way, from an older existing Linux installation of Confluence 3.1.2 to a Windows based Confluence 4.0 install?


author: JamieA
body: The XML export/import will probably run out of memory, at least it did when I attempted a similar size migration. However it's the easiest option so give that a try first.

But you could move the instance to linux and get all the good stuff without actually moving the database, you could leave that on sql server. At least consider a phased migration where you do the database at a different time.

If the worst comes to the worst you might have to do what I did, which was a scripted space-by-space export and import. Slow.


Tags: confluence-administration

migration
How can I allow non-admin to keep a local mirror?
Asked by Rhyne Armstrong:

I can do a backup and restore onto a local copy of Confluence. The problem is that the user is the admin of their local copy, but not of the "master" copy. When the user logs back in to the local copy, their local credentials are gone and their "master" credentials are not able to log in to the admin console to do the restore the next time they want to do a local synch.

Is there something that I am missing, where you can back up certain spaces and only have them download the XML files to import locally?

I do not want to give out a system admin password for the entire Intranet.


Answers:
author: Rhyne Armstrong
body: I was actually able to figure this out. While you can't do what I described, you CAN give users permissions to export spaces and then have them import into their local copies. Then, they only need to be admin on their local box and they can limit what they have in there.

comments: author: Jo-Anne MacLeod
body: Just a minor heads-up.

It has been my experience that if the space that they are exporting is large it can basically kill confluence if they do it during normal working hours.


author: Rhyne Armstrong
body: Hopefully we will figure out how to do an automatic export of each space to a network directory so the user doesn't have to do this.

Thanks for the heads-up!


author: Randall Ward {Appfire}
body: Hi Rhyne,

Sorry to hear about your experience. Very interested in your feedback and would like to discuss if you have time. My email is randall \[at\] appfire \[dot\] com

Thanks!


author: Ajay Goel
body: Please feel free to reach out to [firestarter@appfire.com](mailto:firestarter@appfire.com). You can configure spaces for push or pull and you can asssign users with push/pull/both permissions on different spaces.

Thanks

comments: author: Rhyne Armstrong
body: We decided against Appfire. First, we didn't want to buy a minimum of 50 devices and second, the salesperson missed the appointment to contact me back. Very odd.


author: David at David Simpson Apps
body: As an alternative, you could try this out: <http://www.appfire.com/firestarter/>
Confluence 4.0 - Error when configuring the legacy JIRA database connector
Asked by Ray Hundley:

I am trying to configure confluence 4.0 to use our existing JIRA installation (version 4.2.2) for user managment. I'm following the instructions on this page: <http://confluence.atlassian.com/display/DOC/Connecting+to+JIRA+4.2+or+Earlier+for+User+Management>

In step #5 I hit the 'Test Settings' button and get the following error message:

*Connection test failed. Response from the server:*   
*org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar \[select count(\*) from userbase\]; nested exception is java.sql.SQLException: Invalid object name 'userbase'.*

This message looks like it is connecting OK to my JiraDS datasource (which is SQL Server 2005) but can't find the object 'userbase'. I've check the SQL server database and the table userbase exists under the schema 'jiraschema'.

Anybody have an idea of what might be wrong?


Answers:
author: vchoy
body: Hi Ray,

It looks most likely to be an [issue](http://confluence.atlassian.com/display/CONFKB/%27java.sql.SQLException+Invalid+object+name+userbase%27+when+Integrating+with+JIRA+for+User+Management) with the schema names being inconsistent between Confluence and JIRA configuration files.

As per the article:

1. In JIRA, check `atlassian-jira/WEB-INF/classes/entity-engines.xml`. Note the schema name. It is likely 'jiraschema'.
2. In Confluence, check `conf/server.xml`. Notice the schema name.
3. In SQL Server, check the schema name. It may be 'dbo' or other.

To fix:

Change the schema in SQL Server to match the settings in server.xml and entity-engines.xml

Hope this helps.

<br />

Regards

Vincent Choy


Tags: jira
TreeView on Top in Document Theme?
Asked by Aitor Elorriaga:

Hi

I'm using the Document Theme but the navigation tree appears on top, not on the left as it appears in the manuals. Any tip?

Thnx

Aitor


Answers:
author: GilesG
body: Hi Aitor,

The section towards the end of the [Configuring the Documentation Theme](http://confluence.atlassian.com/display/DOC/Configuring+the+Documentation+Theme) page in our Confluence 4.0 documentation more or less covers this.

To do what you want, when you configure the Documentation Theme for your Confluence space, clear the **Page Tree** check box but instead, add a Confluence Page Tree Macro (for your TOC/navigation tree) in the **Navigation** text box.

That way, you can add other content above the Page Tree Macro so that your TOC/navigation tree isn't the first thing that appears at the top of the left-hand navigation column.

This [screenshot](http://confluence.atlassian.com/display/DOC/Configuring+the+Documentation+Theme#ConfiguringtheDocumentationTheme-ScreenConfig) on the documentation page (which I've linked to above) shows how we configure the Documentation Theme on our <http://confluence.atlassian.com> site.

Hope this helps.

Cheers,

Giles.

P.S. While wiki markup was removed from the Confluence 4.0 page/blog editor (because from Confluence 4.0, page/blog content is stored as XHTML - not wiki markup), wiki markup is still used when configuring the Documentation Theme in Confluence 4.0 and later. For details on using wiki markup, please consult the [Confluence 3.5 Documentation](http://confluence.atlassian.com/display/CONF35/Confluence+Documentation+Home).


Tags: theme
Is it possible to copy an entire space template to another space?
Asked by Tim Milner:

Hi, I have developed a space, using a page template, consisting of many child pages from various parent pages. The space is for a particular project team to use, and is set up to reflect their processes.

My question is: is there a way I can replicate that entire space set up and apply it to another 9 spaces (for nine other project teams)? If so, what is the best way to do so? (I am aware that I could do this by copying code across, individually for each page, from the original space, but this is obviously long and drawn out when you're dong it for multiple spaces.)

Thanks,

Tim


Answers:
author: Ellen Feaheny [AppFusions]
body: Use Copy Space - have used it 100s of time and never a fail. <https://plugins.atlassian.com/plugin/details/212>

Each space needs its own Space Key of course.

comments: author: Tim Milner
body: Thanks Ellen, looks perfect. Only drawback is it seems to only apply to Confluence 4.0 and 4.0.1. I'm using 3.5.7 - have you found otherwise?


author: Mark Hrynczak
body: Tim, you can download a version of the plugin that matches your version of Confluence.

Just go to <https://plugins.atlassian.com/plugin/details/212> and click on "Compatibility with Confluence"

Cheers,  
Mark


author: Bob Swift (personal)
body: If your only need to copy portions of a space or to update pages from another space, [Confluence Command Line Interface](https://studio.plugins.atlassian.com/wiki/display/CSOAP) has actions for **copyPage** and **copyPageChildren**to copy page hierarchies with options to copy attachments, labels, or comments.

comments: author: Martin Moser
body: In this case we have successfully used the Copy Page Tree plugin, see <https://marketplace.atlassian.com/22929>


author: EPS Software Engineering AG
body: Hi Tim,

Our Add-on Space Tree Creator can copy spaces and works with the newest versions of Confluence.

**[Marketplace link: Space Tree Creator.](https://marketplace.atlassian.com/plugins/eps.focuspro.SpaceTreeCreator/server/overview)**

Regards,  
Stephan


author: Martin Moser
body: We are using the Copy Space Plugin as well, but have issues on 3.5.4 with backslashes in paths in code fragments getting removed, screwing up the path.

In the case of copying only parts of a space we have successfully used the Copy Page Tree plugin, see <https://marketplace.atlassian.com/22929>


author: Kevin Buchs
body: There is not a simple guaranteed solution to "clone" a space. See this page ( [https://answers.atlassian.com/questions/6524/cloning-a-space-key-conflict-upon-restore](/questions/6524/cloning-a-space-key-conflict-upon-restore) ) for discussion.


Tags: space
Does adding large attachments create problems (other than consuming storage space)?
Asked by Lars Sj?gren:

Hi,

There is a configurable upper limit to how large an attachment can be. We have a video presentation that we'd like to have in Confluence. It's roughly 800 MB. We have attached it to our test Confluence (we changed the size limit temporarily) and it works. But does any one know if this may cause performance issues if we do this in our live environment with 200+ users?

Regards,

Lars


Answers:
author: Lars Sj?gren
body: Thank you. And when we are "finished with" and I remove the attachment, is it physically removed from the server, or is it retained for traceability reasons?

comments: author: Jobin Kuruvilla [Adaptavist]
body: It is physially removed.


author: Jobin Kuruvilla [Adaptavist]
body: It shouldn't cause any issues other than storage space! Make sure you don't install any plugins that searches within the attachments ;)
List of Pages with broken links in a Space
Asked by Adolfo Casari:

I there any option to list all pages in a space that contain one or more broken links?

Thank you.


Answers:
author: Kay Brown
body: I created a report to do that. Here is the code.

{section}

{report-info:global:current date\|format=MMMMM-dd-yyyy}  
{section}

{section}

{report-block}  
{space-reporter}

{text-sort:space:name}

{space-reporter}

{report-body}

{report-info:space:name\|link=true}

{report-list}

{local-reporter:space:orphaned pages}  
{text-sort:content:title}

{local-reporter}

{report-body-1}{report-info:content:title\|link=true} (Created by)

{report-info:content:creator\|link=true} {report-body-1}

{report-empty}_No orphans in this space_{report-empty}

{report-list}

{report-body}

{report-block}  
{section}

comments: author: Dee Elling
body: apparently these macros are not available from Confluence out-of-the-box; there's some other plugin you have to get though I can't remember what it is right now


author: Kay Brown
body: You are welcome, Dee. I hope everything is working well for you now.

Regards,

Kay


author: Sorin Sbarnea (Citrix)
body: Seems not to be valid for newer Confluence 5.x+


author: Kay Brown
body: Hi Sorin,You need to have the reporting plugin.Kay


author: Dee Elling
body: THANK YOU Kay for posting the report code!


author: Dee Elling
body: here goes:

Customware Link Validator Plugin - only for external links

<http://wiki.customware.net/repository/display/AtlassianPlugins/Link+Validator+Plugin>

for internal links you need the Linking Plugin, though the description of it is not so obvious so you wouldn't know that it contains the undefined-links macro which helps find broken links

<http://wiki.customware.net/repository/display/AtlassianPlugins/Linking+Plugin>

and then you need the reporting plugin to create your own report of things you want to know

<http://wiki.customware.net/repository/display/AtlassianPlugins/Reporting+Plugin>

comments: author: Sorin Sbarnea (Citrix)
body: Irony, all links broken.


author: Kevin Buchs
body: Adolfo,

You can use these macros on a page to give you the broken and uncreated links:

{undefined-links}

{orphaned-links}
code-block in a bullit list does no longer indent after upgrading to Confluence 4
Asked by Andre van der Elst:

I'm trying out Confluence 4 to see if the new editor is indeed less buggy than the previous.

I used to have bullet lists with code blocks in some bullits (to detail steps to take, for example an SQL query)

Any page that I haven't edited in the 4.0 editor display fine, but if I edit a bullit with a code block it will indent to the left, no clicking on left/right in the menu bar will line-up the block as it used to be.

The screenshot shows my issue in editing mode, the top code block is neatly positioned beneath the text, the bottom one I accidentally edited and now I can't get it back to where I want it. It's not just misaligned in editing mode but also when viewing the page.

Can I align code blocks in a bullit list like I used to do in Confluence 3.x ?

![](http://download.finalist.com/indenting_issue.png)


Answers:
author: HuseinA
body: Try the following:

1. Click on the bottom code block icon to select the whole code block, then cut it (Ctrl + x).
2. Place the cursor to the end of the second bullet line (eg. '...database')
3. Pressh Shift + Enter
4. Paste it (Ctrl + v)
5. Voila?

As described [here](http://confluence.atlassian.com/display/DOC/Confluence+4.0+Editor+-+What%27s+Changed+for+Wiki+Markup+Users#Confluence40Editor-WhatsChangedforWikiMarkupUsers-Usingbulletedandnumberedlists), You can use 'Shift + Enter' to create a new line without having a new bullet or exiting from the bullet list.


author: Mike Cavedon
body: Excellent answer. Straight and to the point. Thanks.
Is there a limitation on the number of attachments for one wiki site?
Asked by C.Magoley:

Hi there,

I use one confluence page as a kind of media repository where I store all screenshots as attachements.

I integrate screenshots from this page inside the content pages.

I wondered if there is any limitation to the number of files you attach to a confluence page. Like e.g. 100 attachments, etc.

Thanks

<br />

Chris


Answers:
author: Cyrille Martin
body: Hi,

For a whole instance of Confluence I know there were issues on the index when there is lots of attachments.

I don't know if it is true today with the new version of lucene.

Hanis, any information ?

Regards


author: hsuhailah
body: Theoretically, there is no such limit. However, it may affect the performance to load the page, in the case where you display attached images in the page.
Multi-valued user RDN not working in Confluence 3.5
Asked by Manse Wolken:

Hello,

we are using LDAP as a backend for authorising our users.

The LDAP field, that we use to search for a username is multi valued e.g:

{code}

uid=e01010

ourPrincipalName=DOMA.username

ourPrincipalName=DOMB.username

givenName=User

cn=Name

{code}

Confluence did happily authenticate our users and found their groupmemberships (using the UID as user DN).

With Confluence 3.5 users are only authenticated using the last entry in the list.

Is there a way to reenable this undocumented/unknown feature in Conluence?


Answers:
author: Manse Wolken
body: I raised a feature request for this. <https://jira.atlassian.com/browse/CONF-23741>


Tags: ldap
Synchronise problem in Confluence
Asked by Kyung A Ko:

Hello,

Now in my project, we are using both of JIRA and Confluence.

Recently I have added new users and modified users' information via Crowd.

In JIRA the information was reflected successfully, not in Confluence.

The updated information didn't work out in Confluence.

For example, new user who I have made an account recently tired to log into Confluencem but a message display like "You are not permitted to perform this operation ". However the user can log in JIRA.

Is there anyone who knows what is the problem??


Answers:
author: Kyung A Ko
body: At frist, thank you for your answer.

The version of JIRA is V4.3.

As you suggested it, I have added groups to wiki application config in Crowd.

But, the synchronization is still not working out.

The new users can log in, but not permmited to access to confluence space.

Please advise if there is other suggestions.

Thank you


author: Ellen Feaheny [AppFusions]
body: Since you already did Global Permissions and User Directories synch - try restarting your servers.

Crowd, Confluence and while you are at it JIRA - forcing a manual synch.

Hopefully that will shake it loose, sorta speak.

==

You have not mentioned what versions you are using - which would also help.

If that does not work, my next question would be do you have these users in groups - and the group has been added to the wiki application config in Crowd?


author: Kyung A Ko
body: Yes, I already did it, but still not working out. It was used to working out, but from last week it has not been syschronized. Do you know any idea of the reason? BTW, thank you for your help.


author: Pankaj Jangid
body: User can log in into confluence implies that user accounts are synchronized. And the error "You are not permitted to perform this operation" appears when the user doesn't have permission to use (read/write) any space of confluence. Make sure the user belong to right group or has proper permission in "Confluence Admin \> Security \> Global Permissions".

comments: author: Kyung A Ko
body: Yes, I checked it and the user has a proper permission. That is the problem, which is that the user can login but no permission to access to confluence space. Also I changed a user's name via Crowd. In JIRA, her name was modified but not in confluence. In confluence the name is still not changed. Could you let me know what is the problem?


author: Pankaj Jangid
body: Did you try manual synchronization? Here -\> "Confluence Admin \> Security \> User Directories".
Easy way to add exact 'time stamp' to Status Update?
Asked by Todd McKnight:

Right now, Confluence uses a twitter-like time stamp for the Status Updates, things like:

* 29 minutes ago
* about two hours ago
* yesterday at 5pm
* October 14

Would like to add the actual time stamp to that so it would be like

* 29 minutes ago (1:45pm, Oct 16, 2012)

or something like that. Looks like the dbase has the time stamp, just need to find the code. Anyone have any ideas?


Answers:
author: Joe Clark
body: If you are comfortable customising the source code directly, the class you want to edit is **com.atlassian.confluence.core.datetime.FriendlyDateFormatter**.

comments: author: Todd McKnight
body: thanks Joseph. Will give it a shot and report back :)


author: Todd McKnight
body: Hmm, which file is it? Thanks!

```
root@host [/var/tomcat]# find . -exec grep "com.atlassian.confluence.core.dateti me.FriendlyDateFormatter" '{}' \; -printBinary file ./confluence/webapps/confluence/plugins-osgi-cache/transformed-plugins/confluence-rest-plugin-4.0_1316137166000.jar matches./confluence/webapps/confluence/plugins-osgi-cache/transformed-plugins/confluence-rest-plugin-4.0_1316137166000.jarBinary file ./confluence/webapps/confluence/plugins-osgi-cache/transformed-plugins/confluence-space-directory-4.0_1316137282000.jar matches./confluence/webapps/confluence/plugins-osgi-cache/transformed-plugins/confluence-space-directory-4.0_1316137282000.jarroot@host [/var/tomcat]#
```


author: Todd McKnight
body: found it, duh... I'm a php guy, this java stuff is new to me.

\\Confluence 4\\confluence-4.0\\confluence\\WEB-INF\\lib\\confluence-4.0\\com\\atlassian\\confluence\\core\\datetime

working on best way for edits now. more learning curve.


author: Joe Clark
body: Awesome, glad you found it (sorry I didn't reply straight away - was out of the office).

Just give a holler if you get stuck on anything!


Tags: status
Drag and Drop in Confluence 4.0?
Asked by Rhyne Armstrong:

I am using both IE 9 and Firefox 7.0.1 and am unable to drag and drop attachments into the attachment upload page. Anyone have this problem? Could there be a system setting I have turned off?

My OS is Win 7 64-bit.

Thanks,

Rhyne


Answers:
author: Matt
body: For the benefit of others, you can download older versions of browsers here:

<http://www.oldapps.com/firefox.php>


author: Joerg Bencke
body: As for installing Google Gears in IE8 : Here is the DL Link, that still worked as of tonight

[http://dl.**google** .com/tag/**gears** /**GoogleGearsSetup.exe**](http://dl.google.com/tag/gears/GoogleGearsSetup.exe)


author: Mark Hrynczak
body: Drag and Drop is not supported in IE9 - this is because IE9 does not support Google gears or HTML drag api. This is a limitation of the browser. See [http://confluence.atlassian.com/display/CONFKB/Drag+and+drop+does+not+work+in+Internet+Explorer+9+%28IE9%29](http://confluence.atlassian.com/display/CONFKB/Drag+and+drop+does+not+work+in+Internet+Explorer+9+%2528IE9%2529).


author: Matt
body: Hi Rhyne -- Firefox 7 was released after Confluence 4.0 (they are releasing like crazy these days) and the Firefox team has made changes in HTML5 drag \& drop handling since Firefox 7. This causes multiple web applications (including JIRA and Confluence) to loose their drag \& drop functionality. [We are tracking this issue here.](https://jira.atlassian.com/browse/CONF-23360)

comments: author: Rhyne Armstrong
body: Thank you for the reply. I was able to download an older version and it worked fine.