youngmon/atlassian-qna huggingface dataset:
Confluence wont start up after fresh install
Asked by David Urquhart:

We have done a fresh install of 5.10.8 and Database restore on our test server, Confluence wont start up with errors in log

25-Oct-2018 17:15:23.477 SEVERE \[http-nio-8228-exec-2\] org.apache.catalina.core.StandardHostValve.custom Exception Processing ErrorPage\[errorCode=500, location=/500page.jsp\]  
org.apache.jasper.JasperException: java.util.concurrent.CompletionException: com.atlassian.confluence.tenant.VacantException: Confluence is vacant, a call to tenanted \[public abstract net.sf.hibernate.connection.ConnectionProvider net.sf.hibernate.engine.SessionFactoryImplementor.getConnectionProvider()\] is not allowed.

There is nothing wrong with our hosts file and I can connect to the database

Help requested

Oh and I have restarted confluence several times ...


Answers:
author: Santwana Sarangi {Appfire}
body: Hi David,

As this is the fresh install, here is an atlassian article which will be helpful in resolving the issue <https://confluence.atlassian.com/confkb/confluence-generates-confluence-is-vacant-error-on-install-779164449.html>.

If possible delete your home folder and start the setup once more.

The home folder path is located inside the confluence-init.properties file.

To find this file:  
\<conf_install\>/confluence/WEB-INF/classes/

Hope this helps.

Thanks,

Santwana
Confluence Randomly Not Connecting To Database
Asked by Richard King:

Hi Everyone,

An hour ago I tried to access our Confluence site and received this error message:  

"Could not open Hibernate Session for transaction; nested exception is net.sf.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection"

I tried restarting Confluence and PostgreSQL but now the connection to the Confluence site just times out.

Looking at the "atlassian-confluence" log, I can see:

org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "192.168.30.211", user "confluenceuser", database "confluence", SSL off

No configuration changes were made to Confluence or PostgreSQL, I did disable some unused network interfaces that didn't have cables plugged into them on the server.  

I've reset the "confluenceuser" password and updated it in "confluence.cfg", restarted Confluence and PostgreSQL.

I also tried multiple variations in "pg_hba.conf" to allow the connection.  
Latest attempt:  
host confluence confluenceuser 192.0.0.0/8 md5  
hostnossl confluence confluenceuser 192.0.0.0/8 md5  

How exactly should the entry look?


Answers:
author: Richard King
body: This eventually solved it:  

"hostnossl confluence confluenceuser 0.0.0.0/0 md5"

Any other range except "0.0.0.0/0" would not allow login to the database.
Change / customize default label for a given template
Asked by Onkarnath Pandey:

for e.g. when I create meeting minutes from "Meeting notes" template - it creates default label as "meeting-notes". When I create retrospective notes from "Retrospective" template - it puts default label as "retrospective". But I want to prefix project name before these labels - wanted to know how to do it.


Answers:
author: Victor Mutambuki
body: Onkarnath,

Create an additional label with the preferred label. My advice would to keep the "Meeting-notes" or "Retrospective" labels as they're useful in grouping/organizing content.

Victor
Confluence new installation - Will not start - The database driver (com.mysql.jdbc.Driver) was not f
Asked by Bennie:

I have installed confluence 6.12 and postgresql 9.6 on SLES12.

Confluence will not start, giving me this error:

BootstrapException: Unable to bootstrap application: The database driver (com.mysql.jdbc.Driver) was not found in the class path.\<br/\>This Confluence installation cannot be upgraded automatically. Please see Confluence documentation:\<br/\><https://confluence.atlassian.com/display/DOC/Database+Setup+For+MySQL>

A while ago I had a test install (with the build in database) on this same server, which I removed.

Could there be some leftovers, from that previous test, that is causing problems now?


Answers:
author: Vickey Palzor Lepcha
body: Hello - I'm sorry I mentioned MYSQL as your url pointed to MYSQL DB .

But yes , the driver issue is common among most of them , you need a jdbc driver and your error also points to the same issue.

Also - here is the link to Postgres section of the documentation. It also asks you to get the respective driver file in place.

[https://confluence.atlassian.com/doc/database-setup-for-postgresql-173244522.html](https://confluence.atlassian.com/doc/database-setup-for-postgresql-173244522.html?)![Capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/35997i83843330BE2036E0/image-size/large?v=v2&px=999 "Capture.JPG")

comments: author: Bennie
body: hello, I think I solved the issue. I thought uninstalling would remove everything, but the app data under /var was not removed. So I removed that manually, did a fresh install and it is running.


author: Vickey Palzor Lepcha
body: Are your mysql driver present ? If not , download and copy/paste it under /libs and restart.

comments: author: Bennie
body: Thank you for the reply.

Why would I need the mysql driver if I'm using Postgres?


Tags: confluence-server

server
Confluence for Public Product Documentation?
Asked by Andy Weeks:

We are testing Confluence cloud to use as a tool to create software user documentation and API / technical documentation. In our quick tests, it looks like you can make a Space public (anonymous access), but it seems to show all of the Confluence nav with the documents. We just want to show the documents themselves. Is this possible?


Answers:
author: Shannon Meehan _K15t_
body: Hi [@Andy Weeks](/t5/user/viewprofilepage/user-id/2085733) ,

I'm Shannon from K15t and our [Scroll Documents app](https://marketplace.atlassian.com/apps/1217608/scroll-documents-for-confluence?hosting=cloud&tab=overview) can help if you're trying to create a public documentation library on Cloud. Here's a [blog post that outlines this solution,](https://www.k15t.com/blog/2019/09/create-a-public-documentation-library-in-confluence-cloud)with a couple examples of live public sites and libraries to check out.

A great example is ThinkTilt's [ProForma documentation](https://thinktilt.atlassian.net/wiki/spaces/PF/overview#!spacehome). They're using [Scroll Documents](https://marketplace.atlassian.com/apps/1217608/scroll-documents-for-confluence?hosting=cloud&tab=overview) to author, version, and publish the docs and [Refined Spaces for Confluence](https://marketplace.atlassian.com/apps/1216056/refined-spaces-for-confluence-cloud?hosting=cloud&tab=overview) to style the look and feel.

If you have any questions, we'd be happy to help or show you a demo of the app. Just get in touch with us: hello@k15t.com.

Cheers,

Shannon (K15t)


author: Bill Bailey
body: You can do a lot to reskin Confluence BUT you must be on server version to have the ability to restructure that much. Cloud is very restrictive.


author: Victor Mutambuki
body: You can change the theme of your site to look differently?


author: Victor Mutambuki
body: Andy,

How and where would you place the documents that you want customers to see?

Victor

comments: author: Andy Weeks
body: We had expected there to be a hosted option, possibly private labeled. Either:

ourcompany.atlassian.com/docs, or preferably

docs.ourcompany.com

Of course, we could also iFrame them in.


author: Victor Mutambuki
body: You can restrict the pages and allow certain users ability to view or edit.  
<https://confluence.atlassian.com/doc/page-restrictions-139414.html>


author: Andy Weeks
body: We see those options. They just don't address the issue of not having the docs look like they are in an Atlassian website.


Tags: cloud

confluence-cloud
Restricting file upload with same name
Asked by Kalado:

Hello,

I would like to restrict uploading files with the same name across confluence, not only on one page.

I just want to make sure that the same file is not uploaded several times at different locations.

Any solutions?


Answers:
author: Shannon S
body: Hi Simone,

If someone has permissions to update the page, then they will be able to overwrite an existing file in order to provide an updated copy. There's not a way in Confluence built-in to provide this functionality.

I have found the following feature request which asks that there at least be some kind of warning so someone knows if they are overwriting a file:

* [CONFSERVER-55215](https://jira.atlassian.com/browse/CONFSERVER-55215) *Warning message on adding 2 files with same name*

There aren't yet very many votes on it, as it doesn't seem to be a popular request. To increase the odds of such a feature being implemented, I recommend voting on the ticket and comment there with your usage case.

Thank you for your understanding.

Regards,

Shannon

comments: author: Kalado
body: Sorry, this is not my question. I *want* the files to be overwritten on upload but not only in the page context it already existed but across the whole confluence instance.


author: Shannon S
body: Hi Simone,

Thank you for explaining.

This is not possible due to the way that Confluence permissions work, and the fact that filenames are only considered duplicates across the page. There is nothing that would prevent a user from uploading the same document to another page or space.

There may be some other method you can use with 3rd party solutions, so I am tagging the question appropriately in case anyone else has suggestions for you on how to do this outside of Confluence's offerings.

Regards,

Shannon


Tags: atlassian-marketplace

confluence-server

file

revision

server

upload
Error while generating placeholder. Is the server available?
Asked by prudhvi godithi:

Hey I am running confluence data center, does not show this error when using accessing confluence with server base URL and uploading objects seems to be fine, but when I access confluence from individual cluster node and try uploading objects, gets this "Error while generating placeholder. Is the server available?" message but objects get uploaded. Anything to change in server.xml file to make tomcat aware of this or any other better solution for this?  
Thank you


Answers:
author: Fabian Lim
body: Hi [@prudhvi](/t5/user/viewprofilepage/user-id/1179706),

Please refer to this post which has a detailed explanation of the issue: <https://community.atlassian.com/t5/Confluence-questions/Error-while-generating-placeholder-Is-the-server-available/qaq-p/980476>

Regards


Tags: confluence-server

server
New User can't login
Asked by Tschela:

A complete new user with permission to Confluence and Jira always gets the following message:

**"Your account has been deactivated.**

**Your organization has deactivated your account."**

**![Bildschirmfoto 2018-10-15 um 11.41.55.png](https://community.atlassian.com/t5/image/serverpage/image-id/35966i499328190E50B97D/image-dimensions/555x364?v=v2 "Bildschirmfoto 2018-10-15 um 11.41.55.png")**

I don't understand why.

Neither Google nor E-Mail login is possible.


Answers:
author: Tschela
body: I got the info that our company once already had a different account. where the user with this email address might have been deaktivated. but is this influencing the new company account?


author: Tschela
body: We have no Active Directory.

The new user has the default groups "confluence-users" and "jira-software-users".

I assume the user is active because I can just click "deactivate" or "delete".

Both Jira and Confluence are ticked.

But the user is in the "inactive" list. I guess because a login was not yet possible.


author: Thomas B
body: Hi - the first two things that come to mind:

1. If you run Atlassian Users from Active Directory, the user may be deactivated in your organizations Active Directory OR:
2. Go to JIRA ADMINISTRATION \> User management and find the user that is having issues. Click 'Edit' and make sure the 'Active' checkbox is selected.

Hope this is helpful!


Tags: cloud

confluence-cloud
Can you use an auto-numbered list inthe first column of a table?
Asked by Joseph Bach:

I want to use a multi-column table to list items and need the first column to be auto-numbered. Especially as how new rows will be added between existing rows.


Answers:
author: JP _AC Bielefeld Leader_
body: Hi Joseph,

when you create a table in a Confluence page, there is an option to automatically add a auto-numbered column.

Check:

<https://confluence.atlassian.com/doc/tables-136463.html>

Best

JP

comments: author: Joseph Bach
body: Thank you. It works.

Had trouble finding this icon as it looks like this on our system:

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

The auto-number is the third icon in. Really looks like it is for numbering, doesn't it.


author: Igor Baltiyskiy
body: Thanks [@Joseph Bach](/t5/user/viewprofilepage/user-id/2188070) , if it weren't for you I wouldn't find this in my Confluence!


author: Yanina
body: Very helpful, thank you!


author: Victoria Barrett
body: This doesn't seem to exist anymore in the cloud version - anyone know how to add the numbered column using the cloud configuration?

comments: author: Piotr Janik
body: You need to click anywhere in the table, then use the *Table options* pop-up (pop-under?):

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


author: Victoria Barrett
body: Thanks Piotr! It seems to be working on the new pages created but not the ones converted from our old version for some reason.

We can work with this though - so long as we can create them on the new pages, they already exist on most of the older pages.


author: navin.singh
body: I am using the cloud version and would like to do the automatic numbering where there are merged cells in some of the rows.  
Is that possible?  
![capture1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/248688i7A08E6CDF6F050BA/image-size/large?v=v2&px=999 "capture1.PNG")


author: Andr?s Mafla
body: Same issue here.


author: Andrey
body: same here - i want the 3rd row to be #1


Tags: confluence-server

server
Download a file without preview
Asked by Casper Roubos:

Hi,  

I would like to insert a attachment (XLSX-file) in a page. But when a user wants to read the file, I would like it to go directly to download and not to preview first.  

How can I give a option to my link, so that it will skip preview?  
E.g. !test.xlsx\|skipPreview=yes!


Answers:
author: Mirek
body: Well, I think you can open all Attachments page and choose your attachment name that you want to download or simply right click on the link on a page and choose "Open in new Tab". This should download without preview.

comments: author: Casper Roubos
body: I understand that as a page visitor I have a workaround available, by choosing a more difficult way.

But my question is as a page editor. As a page editor I want to make sure that my page visitors do not get a 'preview' when they want to download.


author: Guillaume Briand
body: This. Sometimes I have huge Excel file to download and the preview take 5 minutes to generate. And of course you cannot download the file until the preview is fully loaded...


Tags: attachment

download

preview
Information about username which can give me space permissions?
Asked by asalamon_rivet:

Story:

User A gets link to new space, where he do not have any permissions. He gets information about permission denied to this space.

User B is space owner, and he can set permissions for user A.

Is there any possiblity to give information for user A, that he should contact with user B for permissions?


Answers:
author: Mirek
body: Yes, when you hit page that you do not have permission or it does not exist you get a Page Not Found

![page_not_found.png](https://community.atlassian.com/t5/image/serverpage/image-id/35963i22DD874EB94F5BC1/image-dimensions/545x275?v=v2 "page_not_found.png")You simply need to modify that page with additional information (for example a link to a page where you list space admins).

For more information how to modify this page you can go to this KB article:

<https://confluence.atlassian.com/confkb/how-to-customize-the-page-not-found-404-page-720412489.html>

comments: author: asalamon_rivet
body: Ok, but still - if page / space exists, there is no information with who I can contact to obtain correct permissions.


author: Mirek
body: For that you can for example build a simple User Macro that list all space admins from all spaces or try to directly parse the URL and modify the Page Not Found to show admins dynamically.


Tags: confluence-server

server
Change description of Space in Plugin
Asked by Joel Suter:

Hello together

I am trying to change and read the description of a Space in my Plugin. I can't seem to find a way to change it with the Confluence Java API. How can i change it programatically? What do i need to use (Java API, database etc) and how do I need to use it (which class, which table etc).

Thanks for the help


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Joel Suter](/t5/user/viewprofilepage/user-id/1145379) ,

you should be able to do that using SpaceManager (save method) passing a Space object in which you edited the description through <https://docs.atlassian.com/ConfluenceServer/javadoc/7.12.0/com/atlassian/confluence/spaces/Space.html#setDescription-com.atlassian.confluence.spaces.SpaceDescription->

Hope this helps,

Fabio


Tags: app

atl-dev

java
OS update
Asked by Marat:

Hi!

We need to upgrade OS Red Hat 5.8 to 7.5. I wanted to get a best practice guide for updating the Confluence application server.


Answers:
author: Nic Brough -Adaptavist-
body: There's two parts to this.

The Confluence upgrade stuff, you need to start at <https://confluence.atlassian.com/doc/upgrading-confluence-4578.html>

The harder part is going to be the OS upgrade. Not because those are hard in themselves, but because they make the Confluence upgrades potentially more complex as you will be changing the foundations Confluence is running on.

So. I would start with a read through the Confluence upgrade doc and work out what versions you need to go through. Then look at the "supported platforms" for each version. Most important is the version of Java.

Hopefully, RH7.5 supports the version of Java you are currently on with Confluence, and I'm certain it will support more recent ones. If this is the case, then your upgrade is a doddle - take a backup, upgrade the OS, then upgrade Confluence.

If it is not that simple, you may need to step through Java versions.


Tags: confluence-server

server
Confluence rest request for attachments returns errors. log is posted
Asked by JY ?:

I got error when I sent addattachment request br rest api.  

service.content.factory.DefaultContentMetadataFactory\] makeMetadata API metadata provider module threw an exception attempting to expand metadata. Class : com.atlassian.confluence.plugins.recentlyviewed.cql.metadata.CurrentUserMetadataProvider provides properties \[label\].  

And after that exception, log said 401 erroe for next getAttachment request I sent.


Answers:
author: Fabian Lim
body: Hi Kim,

Take a look at this post. Someone had a similar error message like yours: <https://community.atlassian.com/t5/Jira-questions/401-error-in-downloading-attachment-contetn-through-RestAPI/qaq-p/1185989>

Regards


Tags: confluence-server

server
In confluence, Jira report gadget are not showing under external content macro. why?
Asked by syadav076:

When I was trying to insert the agile wallboard gadget as a macro into confluence and it was showing error. But now suddenly all the jira report macros are missing from the external list. Any clue on what has happened? Have they removed this capability in latest release?


Answers:
author: Shannon S
body: Hello Shashank,

Do you remember what kind of error you were seeing? When were you last able to add the Jira report macro to Confluence?

Regards,

Shannon

comments: author: syadav076
body: Hi [@Shannon S](/t5/user/viewprofilepage/user-id/510046)

error something like - '.....gadget was not yet added to confluence instance'

Also could you please explain why is it not showing the jira report gadgets now?

Regards,

shashank


author: Shannon S
body: Hi Shashank,

Can you recall when this last worked for you?

I believe it could be related to this bug:

* [CONFCLOUD-57804](https://jira.atlassian.com/browse/CONFCLOUD-57804) *JIRA Gadget macros fail to load*

However, I would want to have a look at your instance to check for sure, and I can't say why you aren't able to load any Jira gadgets at this time without having a look first-hand.

I've created a support ticket for you so we can have a look at your logs and instance and confirm exactly what the issue is.

Once resolved, please feel free to come back here and let us know.

Thank you!

Shannon


author: syadav076
body: Hi Shannon,

Thanks for the reply. Yes, it seems to be same problem as [CONFCLOUD-57804](https://jira.atlassian.com/browse/CONFCLOUD-57804?_ga=2.175236577.2143757306.1540766324-734749032.1537690418) . Anyways today morning I checked and it seems to be loading in the macros browser and working. I will let you know if the issue reoccurs.

Regards,

Shashank


author: syadav076
body: [@Shannon S](/t5/user/viewprofilepage/user-id/510046) Oops! it started to fail again. It loaded the first time but then started to fail by one or another.

Here's a screenshot:

![Confluence-macro loading failure-intermittent.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/36145i358DB8AC90D9E51B/image-dimensions/543x138?v=v2 "Confluence-macro loading failure-intermittent.JPG")


author: Shannon S
body: Hi Shashank,

I see that Janet was able to confirm that it is indeed the bug I mentioned, and had increased priority on it.

I see that the error in your screenshot is indeed the same error as Janet mentioned.

I've checked the bug and I'm happy to say the issue should have been resolved yesterday, since a fix was pushed out.

Could you please confirm if you're still having the problem?

Regards,

Shannon


Tags: cloud

confluence-cloud

gadget

jira