youngmon/atlassian-qna huggingface dataset:
Confluence system error after setup
Asked by Anthony Fox:

I've attempted to set up a confluence server 3 times. Each time resulting in the same system error. Not really sure what is the root cause for this problem.  

I am able to successfully set up the server. I even was able to create users and surf around to make sure everything works. A few mins later someone attempted to access confluence from their terminal, they encountered a system error. When I reload the page I was on, it now has a system error.  

Anyone seen this before?

java.lang.RuntimeException: Error rendering template for decorator root  
at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:161)

caused by: java.lang.RuntimeException: Error rendering template for decorator global  
at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:161)

caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'get' in class com.google.common.collect.Lists$TransformingRandomAccessList threw exception java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at /decorators/global.vmd\[line 47, column 30\]  
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:342)

caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0  
at java.util.ArrayList.rangeCheck(ArrayList.java:657)


Answers:
author: Nic Brough -Adaptavist-
body: Quite a few times I'm afraid. There are several things that can cause it, and the best starting point to troubleshoot is <https://confluence.atlassian.com/confkb/java-lang-runtimeexception-error-rendering-template-for-decorator-root-in-a-page-217743738.html>


Tags: confluence-server

server
Pointing confluence to new database (postgres)
Asked by Mike St. John:

I am having an issue locating the config file in confluence for the database. we created a copy of our confluence app server as a test environment (did similar for JIRA) so that we can test software updates, etc.

I have created a test database (postgres) on the same database server as the production environment. But I'm just trying to locate the file i can update the database info. From what I've read, it would be in this file *confluence.cfg.xml*. but when i do a search for it on my confluence app server.....the file is not present either on my test env. or on my production box.


Answers:
author: Nic Brough -Adaptavist-
body: The file should be in the "confluence home" directory. For example, I have

```
charlie@zen:/opt/data-conf$ ls -l
total 92
drwx------ 2 charlie charlie 4096 Sep 18 01:22 analytics-logs
drwx------ 3 charlie charlie 4096 Jan 7 2019 attachments
drwx------ 2 charlie charlie 12288 Sep 18 02:01 backups
drwx------ 2 charlie charlie 4096 Jan 7 2019 bundled-plugins
-rw-r----- 1 charlie charlie 5707 Aug 26 20:19 confluence.cfg.xml
drwx------ 3 charlie charlie 4096 Jan 7 2019 imgEffects
drwx------ 3 charlie charlie 4096 Aug 26 20:20 index
```

Note that I'm logged in as charlie, as that account owns (and can hence see) the Atlassian installs on that box

comments: author: Mike St. John
body: below is my results (i did this on the production app server which confluence is currently running on) and this is just what i got.

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


author: Nic Brough -Adaptavist-
body: Sorry, I was not clear - /opt/data-conf is just where I happen to have put Confluence's home directory on that machine, I can't tell you where it is on yours.

Depending on how you installed it, you might have a pointer to the home directory in \<confluence install\>/confluence/WEB-INF/classes/confluence-init.properties


author: Mike St. John
body: i even tried to do a locate with just the .cfg.xml and nothing returned![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/66728iA1839FD5C1547011/image-size/large?v=v2&px=999 "Capture.PNG")


author: Nic Brough -Adaptavist-
body: Ok, what do you have in the confluence home directory?
Where does the keytool place the key and csr?
Asked by Dolev Sall:

Hi,

I was following the procedure <https://confluence.atlassian.com/doc/running-confluence-over-ssl-or-https-161203.html>. I used the keytool which is place in confluence directory: */confluence/jre/bin/keytool* to generate a local certificate and CSR however, i can't find the place where my certificate from the first step (Option 1 "Create a self-signed certificate") and not the CSR which is been generated. I am running on linux rhel 7.2.

Would love assistance from someone who did it before.

Thanks


Answers:
author: Dave Theodore [Coyote Creek Consulting]
body: Check my [answer](https://community.atlassian.com/t5/Jira-questions/Problems-with-JKS-and-SSL/qaq-p/1182114) for another user. To generate the cert, just use [openssl](https://www.linode.com/docs/security/ssl/create-a-self-signed-tls-certificate/).


Tags: confluence-server

server
How do I add templates to the sidebar menu?
Asked by Alicia Hill:

In the space settings it only allows me to add overview or blog into the settings.


Answers:
author: Michael Kuhl _Appfire_
body: Hi [@Alicia Hill](/t5/user/viewprofilepage/user-id/3560578) - You cannot add templates to the sidebar menu, but you could create a page with the [Create from Template macro](https://confluence.atlassian.com/confcloud/create-from-template-macro-724765187.html) on it and add a shortcut to that page on the sidebar menu.

comments: author: Alicia Hill
body: Thank you!


author: Michael Kuhl _Appfire_
body: You're welcome! Could you take a moment and accept my answer?


Tags: cloud

confluence-cloud
Date format on Confiform import API
Asked by C:

I have a CSV file with 100's of rows ready to import to a new confiform.

I am trying to import the data using the Import API and the dates are not importing

When I used dd-mm-yyyy or MMM-dd-yyyy as the format then the date all come through as 1st Jan 1970

I have tried MMM dd, yyyy - but this throws the C of the CSV file

I have tried "dd/MMM/yy h:mm a" and "dd/mmm/yy h:mm am/pm" but they both throw errors...

Any ideas?


Answers:
author: C
body: Solved this myself using MMM dd, yyyy

You need to make sure there are no commas in the excel file except in the date which is in the format MMM dd, yyyy

Then Find and Replace the commas with "\|"

The save the CSV and open it in word

Now Replace All commas with tilda ("\~")

and then replace the "\|" with commas - save the CSV file

Then when you use the import make sure you change the Delimiter on the API to \~

I think it would have been easier if the Import API worked with dates from an excel file


author: Alex Medved _ConfiForms_
body: The format is the same as you have defined in your Confluence or the timestamp (numeric value)

comments: author: C
body: Hey Alex,

The date format in the Confiform is MMM dd, yyyy

The date format in my excel file is MMM dd, yyyy

But it wont upload correctly unless I do the steps I called out - should the API be able to work with Excel?


author: Alex Medved _ConfiForms_
body: Yes, Import API works with excel files


author: C
body: HI Alex

That's great - but would you be able to post an excel file with dates in MMM dd, yyyy that would work? Mine still dont work.

Thanks!!


author: Alex Medved _ConfiForms_
body: I dont quite understand what is the issue... here is my quick test <http://recordit.co/JRs8bvfiLZ>

(community does not allow me to upload anything but the images, so I cannot give you the excel file - but you can see it in the screencast)


author: C
body: I did exactly what you did - but I get this result.![date import 2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/145682i060D30CD09967FC9/image-size/large?v=v2&px=999 "date import 2.PNG")![date import.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/145683i1DBD8F87A4A6BDBE/image-size/large?v=v2&px=999 "date import.PNG")


author: Alex Medved _ConfiForms_
body: But your date in excel file **does not** match the formatting pattern you have - MMM dd, yyyy

Don't you see that?


author: C
body: Hi

On that one yes - I did a quick example - here are other

![Test 2.2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/145986i75C43B74A982ECE4/image-size/large?v=v2&px=999 "Test 2.2.PNG")![Test 2.1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/145984i3F9B5257F4008F14/image-size/large?v=v2&px=999 "Test 2.1.PNG")![Test 2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/145985i959DBA2BAD5B052F/image-size/large?v=v2&px=999 "Test 2.PNG")

I have entered the customer format in excel as MMM dd, yyyy, but it saves it as mmm dd, yyyy


Tags: api

confiforms

import
Awards for Confluence (for the Cloud)
Asked by Nick Power:

Hi,

I noticed that on your marketplace, you have an app called Awards for Confluence (Karma), is something like this available for our cloud confluence? We want to gamify our instance and we feel it's important for engagement with our team.

Thanks! Nick


Answers:
author: Darryl St_ Pierre
body: Nick,

It's very possible that the vendor is monitoring the Community forums and will have a response for you, but I would suggest contacting them directly to see if they have plans to offer a Cloud version. I can't post a direct link here, but their main page is at www dot moewe dot io. (Note: the top level domain is io, not com)

Darryl

comments: author: Andy - PTC Redundant
body: [@Nick Power](/t5/user/viewprofilepage/user-id/3563268) , A great question!   
To elaborate on [@Darryl St_ Pierre](/t5/user/viewprofilepage/user-id/1757592)'s answer, on the Marketplace you can always see if the App in question has a version for Server, Cloud or DC (top right).  
I guess you've already seen that hence the request for a "similar" app.  

This is a Vendor App - not made by Atlassian themselves. If you click on the vendor name top left you'll see all available apps by that Vendor (right) plus their contact details (left).  
Do contact them, because maybe they are in the midst of building the Cloud version and they can tell you more - you never know!  

Sadly though, that seems to be the only Confluence Gamification app available in the Marketplace.   
[@Martin Suntinger](/t5/user/viewprofilepage/user-id/781662) : is someone in your team able to provide some more guidance on this please? "Confluence Gamification for ++Cloud++"

![Untitled.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/66684i2F6E498D0D42C9CA/image-dimensions/604x683?v=v2 "Untitled.jpg")


author: Darryl St_ Pierre
body: And the thoroughness of this answer is why you're a Community Leader [@Andy - PTC Redundant](/t5/user/viewprofilepage/user-id/1182002) !


author: Andy - PTC Redundant
body: Hahaha! Indeed ?? I just love to share knowledge. Mega nerd.  

Also once [@Nick Power](/t5/user/viewprofilepage/user-id/3563268) Accepts the answer, you get the credits, I was just merely elaborating on your perfectly acceptable answer ;)


author: Nick Power
body: Thanks all for the advice! Let's hope somebody makes a cloud version :=) We might have to come up with a manual approach for now...


author: Andy - PTC Redundant
body: Welcome Nick! We'll see what the Marketplace ecosystem team from Atlassian come back with. Otherwise may have to manual.  

Or.... you guys develop your own Gamification App for Confluence Cloud and place it on the Marketplace...?? ???

(That's how most vendors get going... solve a problem with their own app and later discover others have the same problem!)


Tags: cloud

confluence-cloud
Can't login to confluence after upgrade to 7.01!
Asked by Sade Durmaz:

The upgrade went well so far, yesterday. This morning I come to office and the server shows Bad gateway. I restarted the server and the server comes up normal (no problems in catalina.out).

Now I am facing the problem that I can't login anymore, the login dialog appears but then after login nothing happens, just flipping back to the startscreen without logging me in.

What can I do?


Answers:
author: Andy - PTC Redundant
body: I've asked fellow more-knowledgeable Community Leaders to chime in, but I have't heard of anyone with this problem yet.

I recommend already logging a Bug with Support team:

[Atlassian Support](https://support.atlassian.com/?_ga=2.43124642.682717335.1562103480-1445252486.1540800682 "Atlassian Support")


Tags: server
Can we apply any logic in confluence data calculation?
Asked by Promantia:

Hi Team,

I have multiple number of rows , each time the raw numbers will be changed

see the example

No Product name quantity Price total

1 A 10 2 20

2 B 20 3 60

Net Total 80

**\* In this form can we able to create a template. Based on the inputs total and net total have to be displayed in the forms.The number of items will also vary in each forms. Is it possible to create template with this functionality??**

**\* Is it possible to automatically generate sequence number whenever the user is creating a new form??**


Answers:
author: Andrey Khaneev _StiltSoft_
body: Hello Promantia,

**[Table Filter and Charts](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview)** can do data calculations in tables:

1. Table Filter macro can output [Total column and row](https://docs.stiltsoft.com/display/public/TableFilter/Managing+Look+of+the+Table+and+Filtration+Pane#ManagingLookoftheTableandFiltrationPane-OutputtingtheTotalcolumn).
2. [Pivot Table](https://docs.stiltsoft.com/display/public/TableFilter/How+to+use+Pivot+table+macro) macro aggregates and calculates data.
3. [Table Transformer](https://docs.stiltsoft.com/display/public/TableFilter/Custom+Transformation+-+use+cases+with+advanced+SQL+queries#CustomTransformation-usecaseswithadvancedSQLqueries-Usingformulas) can perform complex calculations using formulas.

Is it what you are looking for?


author: Shannon S
body: Hello Promantia,

Nice to hear from you again!

While Confluence is not capable of making these calculations, you might also find an add-on for this functionality in [Atlassian Marketplace](https://marketplace.atlassian.com/) as I mentioned in your other thread.

If you have any questions about any of the add-ons listed there, please let us know.

Regards,

Shannon


Tags: atlassian-marketplace
Any free option to highlight JSON in Confluence?
Asked by Jose M.:

Is anyone aware about an easy way to highlight JSON in Confluence? And it should be for free, if possible.


Answers:
author: Davin Studer
body: You should have a syntax highlight option in the code macro for JSON.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/66742i494A8A69B786C2F1/image-size/large?v=v2&px=999 "image.png")

comments: author: Jose M.
body: Hi Davin and thanks for your answer.

Do you mean something as discussed here: like [JSON syntax highlighting in confluence code block](https://community.atlassian.com/t5/Confluence-questions/JSON-syntax-highlighting-in-confluence-code-block/qaq-p/105419), specially [Json Brush for SyntaxHighlighter](http://donovanbrown.com/post/Json-SyntaxHighLigther)?


author: Davin Studer
body: Silly me. You know what, I forgot that I did add JSON as a custom syntax highlighter. It doesn't come by default. And I actually did get the brush from the second link you provided. Once you have that you can upload it into Confluence in Confluence Admin -\> Configure Code Macro.


author: Jose M.
body: Thanks a lot for your help, Davin. It works!


author: Davin Studer
body: Glad that helped.


author: Denis Kuznetsov (tmp)
body: May be it was in past - but now I don't see JSON in list :

![Screenshot 2020-09-04 at 12.49.09.png](https://community.atlassian.com/t5/image/serverpage/image-id/109217iE84690679E7A44B0/image-size/large?v=v2&px=999 "Screenshot 2020-09-04 at 12.49.09.png")


author: Davin Studer
body: You have to add the JSON highlighter brush. it is not there by default. See the comment by [@Jose M_](/t5/user/viewprofilepage/user-id/853296) on Sep 19th, 2019 above and my reply below it.


author: gysin
body: You really have to wonder... why the hell does Jira support formatting for Erlang, Delphi and other obscure things but not plain old JSON?? What's wrong with you Jira, get your act together, it's 2021 for heavens sake...


author: Richard Cross
body: I also wonder why they've never supported JSON... it's been around for a decade.


author: yogesh_devi
body: Thanks all. Adding the [Json Brush for SyntaxHighlighter](http://donovanbrown.com/post/Json-SyntaxHighLigther) from DONOVAN BROWN tech blog did the trick for me and now the code block macro allows json syntax highlighting . I was oblivious till day that confluence allowed adding syntax highlighting so easily provided you can get a "brush".

I have an additional question though - Where can I see notes/guidelines on creating my own "brush" for syntax highlighting or modifying an existing one - if I needed to do so ?


author: e_baum
body: Hello,

does anyone has an opportunity to add Cobol and/or Natural Code?

Thanks


Tags: code-block

confluence-server
Trial is coming to an end, what do I do with the database?
Asked by Andy:

Hello,

I use Confluence at work and love it, Jira too. Anyway I now use it at home and have installed the trial on a Centos VM and have been using only lightly.

I will be getting the 10 user license so my family can use it and was wondering what happens when the license expires and what do I do about the database?

Thanks


Answers:
author: Jens Kisters //SeibertSolutions
body: Hi Andy,

your instance will continue to work, but when its expired you can't upgrade jira any more.

By the way: Atlassian has recently announced to give small (i think 3 user) instances of jira and confluence cloud for free, maybe thats also an interesting option for you.

Cheers

Jens

comments: author: Andy
body: This cloud option is very interesting has this gone live?

Internally I've not installed Jira yet, so will my Confluence continue as normal once I but the license key for the year? (?10).

What database does it use?

Thanks


author: Jens Kisters //SeibertSolutions
body: Hi Andy,

i dont know if its already available,

i suggest you check out the corresponding blog post by Atlassian:

<https://www.atlassian.com/blog/platform/cloud-premium>

I dont know which database they use internally, with the cloud hosting option you dont need to know because its all managed for you. You just sign up for the site and you get a working confluence / jira you can use.

kind regards

Jens
Conditional Formatting of cell background color based on checkbox
Asked by Ux Design:

Hi there,

I know the topic of conditional formatting was already discussed several times. However, would someone please assist me in achieving the following automatic formatting:

I have a table with several line items and a column named "Result". It contains three checkboxes in every line item as per attached picture. The background color of the cell containing the checkbox shall be set automatically. (I don't know if it creates a problem when more than one checkbox is ticked off. If several checkboxes are ticked off then this would we nonsense but technically possible. Whatever solution the macro has in this case will be fine \[no color, color of last ticked, etc.\] as long as the correct color is set for the single checkbox.)

![ResultFormatting.png](/t5/image/serverpage/image-id/66632i2C989B4593E9003F/image-size/large?v=v2&px=999 "ResultFormatting.png")


Answers:
author: Sedera Randria
body: Curious to read suggestions this post can receive.

According to my experience, this is not a native feature.


Tags: confluence-server

server
Unable to attach and display images or pdfs
Asked by Juan Bau:

Hello there,

We are using Confluence Cloud.

Since yesterday's outage, the button with an image icon to add images or other attachments to a page has disappeared and there is an emoji instead.

Also, when I try to add any doc to a page using the drag \& drop, the browser will just read the doc rather than attach it as it used to.

What should I do to solve it?

Thanks,

Juan


Answers:
author: Juan Bau
body: It's back now.


author: Inan Hira
body: +1. We can't add images.

Image icon is missing, and **/** shortcut can't add images.


author: Fr?d?ric Gay
body: Same problem here


Tags: confluence-cloud
Calculation of the variables is possible, based on the input we are giving??
Asked by Promantia:

Hi all,

Basically i have two inputs , whenever i enter a value the calculation have to be happened. Is it possible to create two variables for accepting the input and calculate the values without using macros macros.

How i will define two variable in a template to accept the input values do the calculation??

Is it possible without using macro?


Answers:
author: Shannon S
body: Hello Promantia,

Thank you for contacting us.

This is not possible in Confluence; it would require you to use a 3rd party add-on from [Atlassian Marketplace](https://marketplace.atlassian.com).

I would recommend having a look there and see if you find any add-ons that would suit you. I've included your question in the Marketplace Collection. Other users who have solved this requirement will be able to let you know how they were able to do it.

Regards,

Shannon


Tags: atlassian-marketplace
New editor making a picture a link
Asked by Christian Rogers:

In the new editor, my images just show up as a grey box with a 'page' symbol in the middle. I want to make this picture a link but can't see the option for doing that. Selecting the grey box just allows align \| wrap \| trash options. Can someone advise whats going on as I'm new to this editor. Many thanks.


Answers:
author: Darryl St_ Pierre
body: Christian,

Not sure what's going on with the image issue itself, but it is not currently possible to add a link to an image in the new editor. There have been several posts about this lately, and I believe there's an open issue with Support about it. If I can find a link to the issue I will post it.

Darryl

comments: author: Darryl St_ Pierre
body: ...and here it is:

<https://jira.atlassian.com/browse/CONFCLOUD-65640>


author: Fr?d?ric Gay
body: Hello,

seem there is a bug in the Confluence Cloud version since yesterday.

Adding an image was working perfectly before.

The icon to add an image has also been removed since the yesterday.

I hope this will be solved today !


Tags: cloud

confluence-cloud