youngmon/atlassian-qna huggingface dataset:
Configure SQL Plugin in Confluence
Asked by l:

Hi All

We recently upgraded the confluence version to 5.4.4 and upgraded the SQL plugin but we are facing issues.

Plese help me to configure the

Configure SQL Plugin {#toc-hId-1844938658}
==========================================


Answers:
author: Davin Studer
body: The SQL connections are stored in the server.xml file. The changes to the file must be put back in when you upgrade as the file is overwritten during the upgrade process. Any changed files should be backed up by the upgrade process, so you should be able to see what you had in there prior to the upgrade.

comments: author: Bob Swift (personal)
body: Davin's answer is the most likely scenario if you have just done an upgrade. Any custom configuration you do in Confluence (including adding datasources to your server.xml file) need to be remembered in your upgrade process documentation and then re-applied after the upgrade.

And if you are still having problems [open a support issue](https://bobswift.atlassian.net/browse/SQL) with us.


author: Nic Brough -Adaptavist-
body: It helps if you tell us what the issues are, what you have configured and what is and isn't working.

For all we know from your question, a penguin could have invaded your office and pecks you every time you try to click "configure"

comments: author: l
body: Hi Nic

we are getting "Error rendering macro 'sql' : dataSource: XXXXX not found."

Please help me the syntax i can configure in the plugin  

<br />


author: Nic Brough -Adaptavist-
body: Ok, that's clear. What data sources have you made available in the Confluence configuration? If it was working on a previous version, then my best guess is that you have lost/overwritten the datasource configuration the plugin is using when you upgraded. You'll need to look at the config you had before.


author: l
body: Hi Nic. I think dataSource is working as the application works fine, But some configuration is needed for the plugin. please suggest the syntax need to be add in configuring the Bob SQL plugin


author: Nic Brough -Adaptavist-
body: I don't have any more access to documentation than you do. You'll need to read that to establish what you should be doing.


Tags: addon-org.swift.confluence.sql
LaTeX export PDF and export word fails, confluence 5.5.2 LaTeX 1.8.3
Asked by Paul DeSousa:

Using version confluence 5.5.2 LaTeX 1.8.3 inside of confluence the formulas work fine, but every time I try to export them to another format (word or PDF) on the the exported document I get this:

LaTeX Math rendering error (show error message).

With the show error message containing a hyper-link that and no URL?!?


Answers:
author: Paul DeSousa
body: I was able to fix it by yum install dvipng texlive, rebooting confluence and then going in and pointing to the correct dvipng executabe thanks!

comments: author: MilanCiti
body: Hello Robert

Would you be so kind to give us more details regarding last part 'going in and pointing to the correct dvipng'. I was able to upgrade Confluence from 3.5.7 - 5.5 , but only problem I have at the moment is with latex plugin. Where we can get version LaTeX 1.8.3 ? Appreciate your help. Thank you.

Regards,

Milan Stakic


author: Paul DeSousa
body: LaTeX is a plug in so in confluence just go to \* (admin) add-ins and if LaTeX is there it may need to be updated to said version, if not just add it through find new plugins. Other than that I had to do a manual grab of dvipng and texlive, the way to tell is from the command line run: # yum (or apt) install dvipng texlive (of cousre that is assuming your server is \*nix and not windows or something else) Also you should have under confluence admin a Latex Math under configuration in the admin list on the left.


author: MilanCiti
body: Hello

Thanks for prompt feedback.

I managed to find Configure the Latex Plugin, so I suppose that was the place where I need to add path. Trying to find those paths.

Regards,

Milan


author: Paul DeSousa
body: Yeah that is under the LaTeX math configuration under "external png Renderer" for us as we use the external one for PDF exports


author: MilanCiti
body: Hello

It's working now.

Regards,

Milan


author: Gonchik Tsymzhitov
body: Hi!

Sorry, I have met with problem in exporting into PDF on 6.10.1 version of Confluence, and Latex Math version is 3.7.7.

Cheers,

Gonchik Tsymzhitov

comments: author: Gonchik Tsymzhitov
body: Hi!

I have fix it by writing own solution.

Cheers,

Gonchik


author: Paul DeSousa
body: Unfortuneately that did nothing. I did a yum install dvipng texlive. There is a latex on the new system as well. Any other thoughts?


author: Paul DeSousa
body: Great point we were just asked to switch from debian to redhat and so I have not updated texlive and dvipng. I hope that is the problem. I can only restart confluence in the wee hours so I will update with whether or not this is the problem. Thanks!


author: Guilherme Nedel [Atlassian]
body: Hello Robert, there is [another thread about](/questions/87101/latex-math-rendering-error) this error, where it appears to contain a fix. Maybe it can help in your situation too.


Tags: addon-com.tensixtwo.conf.latexmath
How to add macro in welcome page
Asked by Cedric DEVAUX:

Hi,

I create a little macro to count pages by spaces and I would like to share the result with all Confluence users.

I think to add this macros in Welcome page but I' don't find how.

Someone can help me?

Thanks


Answers:
author: Kirstin Seidel-Gebert
body: Hello Cedric,

you can edit the welcome page in **Confluence Admin \> Look and Feel \> Layouts \> Global Layout** . It's a Velocity script and you can add your macro call there.  
Add the macro call in the same format it's displayed in the **View Storage Format** window of a Confluence page.

Cheers,  
Kirstin


author: Cedric DEVAUX
body: Hi Kristin,

I found the solution last week ;)

Thank You :)


Tags: confluence-administration
Wiki administration page fails to load (CODE: ERR_TOO_MANY_REDIRECTS)
Asked by William:

Hi,

I recently got an error when trying to access my Wiki Administration page. See the error below:

**The page can't be displayed!**

**Error CODE: ERR_TOO_MANY_REDIRECTS**

On the chrome browser the error description is: Too many redirects!

Does anyone know what's happening?

I didn't change anything on my browsers recently.

Version: OnDemand instance

William


Answers:
author: Paul Greig
body: Hi William,

The behaviour you described may occur if you have recently changed permissions on your Confluence instance.

Is your profile a member of 'administrators' group and was this group removed from the 'Confluence Administrator' permission in [Global Permissions](https://confluence.atlassian.com/display/DOC/Global+Permissions+Overview) ? If yes, updating the Global Permissions should address the issue.

Cheers,

Paul

comments: author: William
body: Hi Paul!

Thanks for your answer.

I did not change anything in Global Permissions, but even if someone did, how could I access the Global Permission page without accessing the administration page?

I was thinking about it and maybe there's a reason for this issue, but I'm not sure if it makes sense. I'm accessing Atlassian website by using my 3G internet connection, once I out of the office. I asked someone in the office, with less privileges than I, to access the administration page and everything is normal. Does it make sense for you?

Cheers,

William


author: Paul Greig
body: Hi William,

Considering you are using a 3G connection is it fair to assume you were viewing the site from a mobile or tablet device? If so I'd mention [Confluence Supported Platforms](https://confluence.atlassian.com/display/DOC/Supported+Platforms) to confirm your browser is a supported platform.

Cheers,

Paul


author: William
body: Hi Paul! Actually, I'm using my laptop. The cell phone is only for the connection.

You were right! The problem was in Confluence Administrator permission. The other administrator had deleted my user from there.

Everything is working ok now!

Thanks :)


author: Paul Greig
body: Great news, glad we could get you back on track!


Tags: cloud

confluence-cloud
Trac wiki to Confluence Migration
Asked by AKASH BHARDWAJ:

Hi All,

I am performing Migration from Trac wiki to Confluence using UWC tool.

I went through UWC Documentation, there is a portion which says to Export the Trac wiki's.

<br />

Can anyone please help me out from where am i supposed to fire these command and how to generate the pages along with attachments from trac wiki to local system in order to migrate.

Please help me on this.

Thanks,

Akash


Answers:
author: Guilherme Nedel [Atlassian]
body: Hello Akash, if you have been through the steps in the initial [UWC setup](https://migrations.atlassian.net/wiki/display/UWC/UWC+Quick+Start) the firing the command into the prompt with UWC running should trigger the export, using the [syntax from Trac module](https://migrations.atlassian.net/wiki/display/UWC/UWC+Trac+Notes#UWCTracNotes-Exporter):
> Export your wiki pages using trac-admin:
>
> trac-admin /path/to/your/trac/installation wiki dump /target/directory
>
> For example:
>
> trac-admin D:\\trac\\myProject wiki dump F:\\dumps\\myProject
>
In case that does not work, please post your next queries to this thread.


Tags: trac

universal-wiki-converter
Merging confluence user accounts
Asked by Sunil Patel:

Currently, some users have created content using more than one account. Is it possible to amend the content so that it has been created by the same person?

In the database, I can see that the user_key field in the user_mapping table is used to determine the username, creator and lastmodifier in the content table -- is it just a case of changing this to the correct user's key?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: You can have only one user account mapped to one userkey. userkey is used for renaming purposes.

The second user will have a different userkey as well. You will have to modify all the tables with the correct userkey and the appropriate cwd_user with the correct user name. My recommendation would be to test this firsting in a staging environment.


Tags: confluence-administration
How can I give full admin rights to a user?
Asked by Daniel Licciardi:

How can I give full admin rights to a user?  
I need them to be allowed to create, modify, edit oder delete anything - and don't know how to access those settings...


Answers:
author: Daniel Licciardi
body: Thanks.  
I have added them to the Admin groups, but there has to be something different - in any user list it reads '\[Administrator\]' next to my name and I cannot edit that by adding people to any group (for that matter, deleting existing Admins them from all groups doesn't seem to remove that label...).


author: Ale? La?ar
body: You can do it via app admin :)

confluence.com/admin/permissions/globalpermissions.action


author: Daniel Licciardi
body: Hosted ('on demand') version ... I don't think there is a version number for that, is there?


author: Nic Brough -Adaptavist-
body: Put them in the admin group.

But, that only gives them Admin rights. There's no such thing as a blanket can-do-anything account in Atlassian products (and rightly so - it's a dreadful security model). Even your administrators will still need to be added to the spaces to enable their access. The usual trick is, of course, to use the Admin group(s) in permissions by default.


author: Ale? La?ar
body: And version of Confluence?


Tags: administration

cloud

confluence-cloud

permission
New Pages Not Created Alphabetically
Asked by Mick Davidson:

Hello,

Does anyone know why new pages are not shown alphabetically in the treee when they're created?

All ours are added to the bottom of the tree, which creates extra work as we then have to move them to the correct place. The majority of our pages should be listed in alphabetical order, so that's where they should be.

We're running download 5.4.3.

Cheers.


Answers:
author: Kirstin Seidel-Gebert
body: Hello Mick,

we don't have this (Confluence 5.5.2 download). In our version, pages only are added to the bottom of the tree, if the order of pages of this part of the tree has been manually changed from alphabetical.  
Just FYI.

Cheers,  
Kirstin

comments: author: Mick Davidson
body: Kirstin,

Thanks for the info. Do you mean that new pages are added at the bottom **IF** the tree, at the point you're adding the new page, has been manually re-structured by moving other pages?

I still don't expect this to happen as it is counter-intertuitive and more like a bug than a feature.

Cheers.


author: Kirstin Seidel-Gebert
body: Yes.  
Once you have changed the order of pages manually, this part of the tree is no longer concerned as to be ordered alphabetically.

Nevertheless, you can re-apply alphabetical order. Go to **Space Admin \> Pages** and navigate to the master page (whose childrens order you want to change). Then, click the A-Z icon next to the page title of the master page.  
All child pages will be rearranged to alphabetical order.


author: Mick Davidson
body: Kirstin,

Well knock me down with a dead fish, I didn't know you could do that.

I'm not sure I agree with the logic, but if that's the way it works, I can adjust my thinking. :)

Thanks for the info.


Tags: page-tree
Bulk delete attachments
Asked by Consu:

Hello all,

apologies if it is something obvious but I am missing on this...

Is there a way I can delete multiple attachements from a space without doing one by one? I have ca. 300 images I need to remove from a few pages and I dread the idea of deleting one by one...

thanks for the help!


Answers:
author: Consu
body: No matter what I tried I had issues connecting on Windows 7, this seems to be caused by security features, however worked perfect on XP  

As a workaround I used Bitknex ( [](http://www.bitkinex.com/ftp/client/bitkinex323.exe)<http://www.bitkinex.com/ftp/client/bitkinex323.exe>)  
I tried it on my local machine under Windows 7 it worked without any issues :D!!


author: Alexey Matveev
body: Hello,

You could also use the Power Scripts for Confluence add-on:

[https://marketplace.atlassian.com/apps/1219507/power-scripts-for-confluence?hosting=server\&tab=overview](https://marketplace.atlassian.com/apps/1219507/power-scripts-for-confluence?hosting=server&tab=overview)

It is a free add-on. I've found Power Scripts for Confluence really handy for Confluence admins who want to automate their work and apply bulk actions to Confluence.

You could write a script like this:

    number pageId = 123456;
    deleteAttachment(pageId, "attachmentToDelete.txt");;

comments: author: Richard Cross
body: This doesn't solve the OP's problem. What you've suggested is only going to delete a single attachment. What if you have hundreds of attachments to delete?

I looked through the docs for this plugin, but there's no "routine" that gets all attachments for a page, or even a partial list based on a regex.


author: Davin Studer
body: Look into the WenDAV plugin for Confluence. It will allow you to work with Confluence as f it were a file system ... which will give you the ability to select multuiple files at once and delete them en mass. Be careful though. With great power comes great ability to mess up everything.

comments: author: Consu
body: thanks David, I will try WebDav.  
It seems to me that the documentation about the plugin is really bare. Have you by any chance heard of any other source where I can learn more about WebDav? (ehmm, I never used it before, I am afraid...)

thanks


author: Davin Studer
body: First of all I'm using Windows, so I only know what I've done. If you are using Linux or a Mac, then I'm not sure what to do there. But if you are on windows you can map Confluence to a drive letter. I chose "O" for "Oh my goodness, this is so cool." :) This is the UNC path to map it to a drive letter. Replace {sever} with your sever name. Be very careful with it though. You could easily delete more than what you want.

**\\\\{server}\\DavWWWRoot\\plugins\\servlet\\confluence\\default\\**

**![](../../upfiles/Capture1_16.PNG)**

**![](../../upfiles/Capture2_20.PNG)**


author: Consu
body: Thanks, this is great, I will try it out! (LOLing about the O drive :D)!


Tags: attachment

bulk-edit

confluence-administration

delete
insert current time macro
Asked by Uththira pandi:

how to insert current time macro?


Answers:
author: David at David Simpson Apps
body: Try creating a user macro called **current-time** like so:

```
## @noparams&lt;span class="current-time"&gt;$action.dateFormatter.formatGivenString("dd-MMM-yyyy hh:mm:ss", $content.currentDate)&lt;/span&gt;
```

More details here:

* [](https://docs.atlassian.com/atlassian-confluence/latest/com/atlassian/confluence/core/DateFormatter.html)<https://docs.atlassian.com/atlassian-confluence/latest/com/atlassian/confluence/core/DateFormatter.html>
* [](/questions/266126/how-do-you-display-current-date-and-time-in-confluence-using-user-macro-and-how-do-you-add-it-like-a-date-and-time-stamp)<https://answers.atlassian.com/questions/266126/how-do-you-display-current-date-and-time-in-confluence-using-user-macro-and-how-do-you-add-it-like-a-date-and-time-stamp>


author: Davin Studer
body: What is the use case for this?
Resolve Jira issue from Confluence
Asked by Sebastian Wolter:

Is there a way to resolve an listet Jira issue in a Confluence page without opening Jira? Kind of checkbox -\> resolved?

The background:  
Our project managers would like to use the power of Jira issue tracking, but the employees with no technical background don't accept to-do lists more complex than the tasks in Confluence.  
For each project the manager sets up a Confluence page with the relevant jira filter widgets for all members and everyone is in the loop. So far so good. But the members don't like to work with Jira, the don't understand it and I must admit that opening the Jira issue to mark if as done interrupts your workflow.

If only the members could check a Jira issue in Confluence with one click, than it would be the perfect project management tool for non-developers.


Answers:
author: Sebastian Wolter
body: Hey Wayne, many thanx for your answer!


author: Wayne Wong
body: Hi there,

I am sorry to inform you that currently we don't have such function.

However, I had created a feature request [here](https://jira.atlassian.com/browse/CONF-34485) for you

we recommend our users to comment and vote on the feature request, and customer's feedback is one of the things that the developers decide to work on next as mention in the [Implementation and new features policy](https://confluence.atlassian.com/display/DEV/Implementation+of+New+Features+Policy),do leave some comments if you have any suggestion for improvement.

Thank you  
Regards.  
Wayne Wong

comments: author: Josie Salcedo
body: Has this been implemented yet?
Best way to have 3rd party project spaces?
Asked by Eric Sara:

We recently started to use Confluence internally and loving it. It has allowed us to share knowledge like never before and better yet we can then find it afterward. Yea J.

To understand our next requirement let me explain a little on what we do.

We implement a software solutions for our clients. These are not small implementations and can take a team of people from both our organisation and from our clients.

There are many different facets to these implementations, such as, IT infrastructure and set up, software installation, workshops, training, testing, and so on.

To aid the communication between us and our clients we are looking at using Confluence to create an implementation/project management site where we can all communicate and store key data.  
The issue here is that the 'we' includes out clients.

My theory was that we could create a space specifically for each client. Then grant out clients permissions to this space and not our internal ones.

So I guess what I am asking is...

* Do people agree that this would be the best way to go about it?
* Can anyone share any learnings where they have had to do a similar thing?
* Can you have someone login and land directly on a space (this would avoid the need to teach them about the Dashboard and they would land directly in the area of importance to them)?


Answers:
author: Alexey_Rjeutski__Polontech_
body: If you watch to grant access to third party - you should remove the group that has access permission to confluence from all existing spaces and from default settings for new space. This practice is common, so you are moving in the right direction. The dashboard is not a problem because your clients will see only one their space on the dashboard. The welcome message on the dashboard is the same, so either put something common either write or order plugin with needed functionality


author: Eric Sara
body: Does anyone have Confluence and sue it internally and then give access to a 3rd party (e.g. their client)?

How do you control things like the welcome message being different for them to your internal users?


Tags: confluence-administration
Move Confluence from Rackspace to AWS (Amazon Web Services)
Asked by AKASH BHARDWAJ:

Hi All,

We are planning to move our Confluence PROD instance from Rackspace to AWS (Amazon WebServices).

Can you please help me on this to start and precautionary steps that needs to be taken before moving the Instance.

I haven't found any tutrial on the same . Please let me know the links any if there are.

Thanks,

Akash


Answers:
author: Pavel Korsukov
body: Hi Akash,

The easiest way to so it is to setup a new environement and then restore the Confluence from backup to get your PROD data. The steps:

1. Deploy a new environment in a couple of minutes using Deploy4Me: <https://deploy4me.com/en/install/jira.html>
2. Make a backup from PROD environment
3. Restore the backup to a new AWS environment
4. Create AWS elastic IP for your new instance
5. Map DNS to your elastic IP

This is much easier than the manual transitioning of the system.


author: Nic Brough -Adaptavist-
body: Moving servers is covered at <https://confluence.atlassian.com/display/DOC/Migrating+Confluence+Between+Servers>


Tags: migration

move
Physical Server location for OnDemand Confluence hosting
Asked by Joshua Joshua:

If we migrate our Confluence setup to use OnDemand hosting, for security considerations, will the physical servers be located in the US?


Answers:
author: Tiago Comasseto
body: Hi Joshua, our data center is located in Ashburn, Virginia. You can find more details about our physical structure [here](https://www.atlassian.com/hosted/security).

Cheers


Tags: cloud

confluence-cloud