youngmon/atlassian-qna huggingface dataset:
Degraded performance after reinstallation on new server - slow loading macros
Asked by Luk?? Soukup:

After installig Confluence on new server and restoring database and Confluence home, the bare pages are loaded almost instantly, but page macros, like Page tree, is loaded wither instantly, or takes ages, like 20 second. Page Edit macro, when not loaded instantly, is fully loaded in about 40 seconds.

The Confluence instance is configured to run over https using self-signed certificate. Confluence version is 6.3.3. Database is MS SQL server 2014 Express. Total number of users is under 10, concurrently works at most 2, typically 1. Server is virtual Windows Server 2012 R2 with 8GB RAM. Except Confuence and JIRA hosts just two other asp.net apps with low-to none usage.

I've tried performance logging, but cannot find any sign of slow performance (maybe I was looking incorrectly or not configured the logging properly)

JIRA, installed on the same server, works just fine. The odd Confluence behavior manifests whether JIRA is running or not.

Thank you for any advice where to look or what to try.

Lukas


Answers:
author: Luk?? Soukup
body: Thank you all, guys, for your tips. Results:

- cleared the cache, plugin cache and done reindexing. We don't have any other plugins than those standard ones.

- checked the Java VM Heap memory - out instance has default 1GB, but was utilized from 50 to 70 % - no issue here (no memory exceptions in log)

- looked into http traffic during page load - the page itself loaded fast, but dynamic content served as REST functionality or actions took their time, it looked like some component get choked for several tens of seconds, and then everyting missing popped in.

- I also suspected https/SSL configuration, but the problem manifests on plain http together on localhost, too

- no CPU spikes, no MS SQL server problems (all tracked queires took under 5ms)

So I installed 2nd, clean test instance, that runs smoothly, so I impoterd spaces (5 spaces of total cca 100 pages) and users (10) and everything is OK (importing users was not straighforward though).


author: Lars Olav Velle
body: Use the browser developer tools to see what's taking so long.

-Lars


author: Roman Kirilenko
body: Did you check java memory settings? Out-of-the-box Confluence has only 1Gb for java heap. [Increasing of java heap memory](https://confluence.atlassian.com/confkb/how-to-fix-out-of-memory-errors-by-increasing-available-memory-154071.html) is a good start for fixing performance issues.


author: Christo Mastoroudes _Adaptavist_
body: Sounds like it could maybe be some add-on causing the issue. Perhaps try disabling some of the add-ons that have macros on the pages that loads slow, and see if you can narrow down the cause.

You could also try clearing the cache and reindexing.
PDF export select between multiple stylesheets in a space
Asked by Markus Raab:

Do you have any idea if or how it is possible to define multiple PDF Stylesheets for a single space?

<br />

I want that we can select the respective stylesheet before exporting selected pages of a space.


Answers:
author: Vero Rivas
body: Hi [@Markus Raab](/t5/user/viewprofilepage/user-id/256837)

Look at this posts, maybe can help you

<https://community.atlassian.com/t5/Confluence-questions/Define-different-page-layouts-for-PDF-export/qaq-p/1333945>

<https://support.atlassian.com/confluence-cloud/docs/customize-exports-to-pdf/>

Cheers


Tags: export

pdf

stylesheet
Discard everyone's changes is so dangerous
Asked by HongChao Song:

When 2 guys edit the one page on the same time, and one click the close button on the right-bottom of page, then system will popup a confirmation dialogue box as the attachment. In case of selecting **Discard everyone's changes by misoperation**, it will be a disaster, so is there alternative for that throuh some configurations? For example, only discard current user changes.

Please give us some advice, thanks a lot.

![discard.PNG](/t5/image/serverpage/image-id/5831i86159037BFC40CAE/image-size/large?v=v2&px=999 "discard.PNG")


Answers:
author: AnnWorley
body: One way to keep people from discarding other people's changes is to disable collaborative editing for your instance by setting the mode to Off; here are the instructions: [Change the editing mode](https://confluence.atlassian.com/doc/administering-collaborative-editing-858772086.html#AdministeringCollaborativeEditing-Changetheeditingmode)

We have a suggestion open to add an option to just discard your own changes:[Allow users to discard their own changes with Collaborative Editing](https://jira.atlassian.com/browse/CONFSERVER-45721)

Please comment or vote on the suggestion. Doing so will communicate directly with our development team, and cause you to be notified when there is progress on the suggestion.

comments: author: HongChao Song
body: Thanks for your answer
automatically rotate inserted pictures
Asked by Florian:

Most todays smartphones do not rotate the picture in a file but just store an information what the correct rotation is. Modern image viewers (macOS preview or photos app for example) read this stored information and show the picture in the correct rotation.

When such a picture is imported to Confluence (in a page or a comment) it's displayed in wrong rotation. It would be nice to have Conflunce "understand" those files and display them corretly.


Answers:
author: Shannon S
body: Hello there,

It appears you might be referring to this bug:

* [CONFSERVER-32762](https://jira.atlassian.com/browse/CONFSERVER-32762)

It mentions the same problem you are explaining. Can you let me know what version of Confluence you're using? It appears a fix was released for this in Confluence 6.2.2.

Kind Regards,  
Shannon
how to add a column showing whether pages are restricted or not using Page Properties Report macro?
Asked by Dmitry Ree:

see question


Answers:
author: Shannon S
body: Dmitry,

What information exactly are you trying to display? Can you please describe it to us and provide examples?

Thank you.

Kind Regards,  
Shannon

comments: author: Dmitry Ree
body: Shannon, there are retristricted and unrestricted pages shown using the Page Properties Report macro, so I need to display, for example, the red/grey locker in a column.


author: Shannon S
body: Hi Dmitry,

There's no current way to do this within the macro, but I created a feature request for it:

* [CONFSERVER-53436](https://jira.atlassian.com/browse/CONFSERVER-53436)

I've discovered a few users have come up with [User Macros](https://confluence.atlassian.com/doc/writing-user-macros-4485.html) that would allow you to [display restricted pages](https://community.atlassian.com/t5/Confluence-questions/Confluence-macro-for-getting-the-restricted-pages-for-any/qaq-p/219401#) if you would like to give that a try.

Let us know if you have any trouble.

Kind Regards,  
Shannon
i have a html file, i want to upload it over a confluence page using curl
Asked by Shalabh srivastava:

the html text in file should get converted


Answers:
author: Shannon S
body: Hi Shalabh,

Are you trying to have the HTML file be turned into a Confluence page?

There's a feature request for this:

* [CONFSERVER-1072](https://jira.atlassian.com/browse/CONFSERVER-1072)

However, [someone has developed a script](https://confluence.atlassian.com/disc/integration-and-utils/html-to-confluence-converter) that could help you with that. Have a look at that and let us know if that helps you.

Kind Regards,  
Shannon

comments: author: Shalabh srivastava
body: Thanks for replying!

Below is my requirement:-

I have a text file, say confluence.txt which contains html tags.

I have created a dummy page say "Testing" on confluence. I want the contents of confluence.txt to be visible on this page.


author: Nic Brough -Adaptavist-
body: Best bet is to drop the html onto a web server, and copy and paste the view of it from a browser
Permission revoked for a page that I created. I can no longer access the page
Asked by Chris Mackey:

I created a page on my personal Space yesterday. Today Confluence showed a message that said I needed to get permission to view the page. When I asked for Permission, it said to contact the Admin. I am the Admin - does anyone have any idea what is going on here?


Answers:
author: Shannon S
body: Hi Chris,

Are you able to [view the restricted pages in that Space](https://confluence.atlassian.com/doc/page-restrictions-139414.html#PageRestrictions-Viewallrestrictedpagesinaspace)? If so, you can click the lock icon as the admin to remove any restrictions that might have been accidentally applied to that space.

Kind Regards,  
Shannon

<br />
Which Dashboard interface is correct?
Asked by Chris Riley:

We are gearing up to upgrade from Confluence 5.5.2 to 6.2.3. When we run a standalone install of 6.2.3, we get a different Dashboard than when we run the upgrade against 5.5.2.

Which is the correct one? And how do I switch the wrong one to the correct one? Sorry for the large images... Thank you in advance, as this forum editor is very wonky when you add large images! :/

This is the Dashboard after running an upgrade from 5.5.2 to 6.2.3:

![6.2.3-upgrade-from-5.5.2.PNG](/t5/image/serverpage/image-id/5796i4AA9C9069A3816AC/image-size/large?v=v2&px=999 "6.2.3-upgrade-from-5.5.2.PNG")

Here is the Dashboard after installing 6.2.3 alone - we like this one!:

![6.2.3-standalone.PNG](/t5/image/serverpage/image-id/5797iC7693FC96E4181D0/image-size/large?v=v2&px=999 "6.2.3-standalone.PNG")


Answers:
author: Davin Studer
body: I had an issue like this as well. Turns out in Confluence Admin -\> Look and Feel -\> Layouts we had a custom Global Layout ... I believe. I think the upgrade made the custom layout because I don't think I ever did. Anyway, setting it back to default fixed it for me.

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

comments: author: Chris Riley
body: Davin, thanks for the reply. Seems you are correct. The Global Layout did have "Reset Default", as if somebody had edited it. We're back to the appropriate dashboard template.

Much thanks,

Chris
Inject database output into Confluence via scripting?
Asked by Forrest Aldrich:

We have a series of data points that I would like to keep up to date in a Confluence page that could be stored in a MySQL database. Is there a way I can code something via a script or otherwise that would populate a Confluence page with a formatted table containing this data, that wouldn't be manual copy and paste design? What about scripting the creation of a page, etc.

Thanks.


Answers:
author: Shannon S
body: Hi Forrest,

It sounds like you want to have a table on a Confluence page that displays data from a MySQL database.

You could use [Bob Swift's SQL for Confluence](https://marketplace.atlassian.com/plugins/org.swift.confluence.sql/server/overview?_ga=2.166902589.227340334.1504771901-116406192.1504172592) to accomplish this. Have a look at that plugin and let us know if you have any questions about it.

Kind Regards,  
Shannon

<br />

comments: author: Forrest Aldrich
body: This is great, thank you for the pointer. I also found another that handles this differently, but this looks more complete. I will check it out.


author: Shannon S
body: Great! Just let us know if you're able to resolve your issue from this or if you have any questions about it.

Kind Regards,  
Shannon
Confluence REST API, creating a new page with large excel data does not work
Asked by Praveen:

Hi,

I am trying to create a new page with large excel data using REST API i get the following error, but it works for smaller sized excel files

{message: Response too large. request for this response can be at most 5242880 bytes, statuscode:413)

Tried setting MaxPostSize="-1" in server.xml still gives the same error

code:

import requests;  
import json;  
import pandas as pd;  
import xlrd;

def read_excel():  
x=pd.read_excel("/exceldata.xls");  
return x.to_html();

<br />

def new_confluence_page(space_key,title,body):  
url='http://localhost:8090/confluence/rest/api/content/'  
data = {"type":"page","title":title,"space":{"key":space_key},"body":{"storage":{"value":body,"representation":"storage"}}}  
return requests.request('POST',url,auth=('admin','admin'), json=data)

def test_module():  
table=read_excel();  
resp=new_confluence_page('TEST1','TEST PAGE HOME-2',table)  
print(json.loads(resp.text))

test_module()


Answers:
author: Shannon S
body: Praveen,

Can you increase the maximum size your server accepts? Have a look at the following for information on where you can update that:

* [HTTP Error 413 request entity too large - failure when attaching files](https://confluence.atlassian.com/jirakb/http-error-413-request-entity-too-large-failure-when-attaching-files-693900009.html)

Kind Regards,  
Shannon


Tags: ms-excel

page

rest-api
how can I turn off preview?
Asked by martinwyser:

I really really really really really really really really really want to turn off preview, for my user account, without admin rights (I don't have those).

How can I do this.

Preferrably, I could turn that misfeature off for all file types at once.


Answers:
author: AnnWorley
body: As a user, you should be able to right click and choose to download the attachments.

To disable the preview functionality for the whole instance, you do need to have admin permissions, as described in: [Disable document file preview](https://community.atlassian.com/t5/Confluence-questions/Disable-document-file-preview/qaq-p/610685)

There is a request open to make the preview feature more configurable - I edited it to include a user profile setting so admin permissions would not be necessary: [Selectively Disable Attachment Preview.](https://jira.atlassian.com/browse/CONFSERVER-36736) You may communicate directly with the development team by commenting on that ticket if you like.

comments: author: martinwyser
body: Thanks a lot for creating ticket, much appreciated!
Missing artifacts in Eclipse
Asked by Jon Schaubhut:

I create a Confluence Add-on that worked in Confluence.

But now that I've upgraded to Confluence 6.4.0 and Atlassian SDK 6.2.15. I get a lot of errors using eclipse.

I've added the AMPs to maven in eclipse but no luck.

The errors I get in Eclipse Oxygen are;

1. Project build error: Unknown packaging: atlassian-plugin

2. Missing artifact com.atlassian.plugin:atlassian-spring-scanner-annotation:jar:1.2.13

3. Missing artifact com.atlassian.plugin:atlassian-spring-scanner-runtime:jar:1.2.13

4. Missing artifact com.atlassian.plugins:atlassian-plugins-osgi-testrunner:jar:1.2.3

5. Missing artifact com.google.code.gson:gson:jar:2.2.2-atlassian-1

Any help appreciated.

Atlas-version

\<confluence.version\>6.0.1\</confluence.version\>  
\<confluence.data.version\>5.10.7\</confluence.data.version\>  
\<amps.version\>6.2.6\</amps.version\>  
\<plugin.testrunner.version\>1.2.3\</plugin.testrunner.version\>  
\<atlassian.spring.scanner.version\>1.2.13\</atlassian.spring.scanner.version\>


Answers:
author: Young Ha Kim
body: Have you had any success withi this?


author: NabilB
body: Hi [@Jon Schaubhut](/t5/user/viewprofilepage/user-id/384519)I am having similar issues, were you able to find a solution?


Tags: eclipse
Can I delete old comments automatically after a fixed time for a whole space or page?
Asked by Florian:

I have a space with several pages where pictures in comments are collected. They take a huge amount of disk storage on the server and I don't need them anymore after - let's say one year. It would be nice to have an option to get them deleted automatically when the comment is one year old. And it would be nice to have this feature working for all (future-)sub-pages.


Answers:
author: Christo Mastoroudes _Adaptavist_
body: ScriptRunner has a script specifically just for such a use case, but you need to purchase the add-on. You could try it for free as a short term solution. <https://scriptrunner.adaptavist.com/latest/confluence/builtin-scripts.html#_bulk_delete_comments_from_one_or_more_pages>
Get notifications of deleted/moved pages
Asked by IT Service Desk:

I would like to receive a notification when a page is deleted/moved in one of the spaces where I have rights to.  
For some reason this does not work.

The things I've checked:

- All modules in the Confluence Content Notifications Plugin are enabled. This means that de module page-trashed-notification and page-moved-notification is also enabled

- mail server has been configured(other notifications are working)

- in My Profile \> Settings \> Email, I've checked Subscribe to daily updates and Notify on my actions(I also want a notification when I delete/move a page).

I don't get a specifik mail about the page deletion or that a page has moved.  
I also don't see it in my daily overview mail.

Does anybody know how this can be enabled(if possible)?

Thanks!


Answers:
author: Igor M.
body: Hello,

There is a bug logged for this missing functionality under [CONFSERVER-56271](https://jira.atlassian.com/browse/CONFSERVER-56271).

Please vote and add yourself as a watcher.


author: IT Service Desk
body: Hi Bhushan,

The link you provided shows how to disable it.  
I want to enable it. As mentioned, all the modules are enabled in my case. Even so, I don't get a notification when a page is deleted/moved.

Richard

comments: author: Bhushan Nagaraj
body: Ah sorry. Misunderstood your question :)

Have we ruled out the possibility of any email filters that might have been applied in the past?

Here is a doc with more troubleshooting guidance that you might find helpful.

<https://confluence.atlassian.com/confkb/mail-troubleshooting-180847235.html>

Thank you

Bhushan


author: IT Service Desk
body: The only topic that I could rely on is the one from the Core Listeners.  
I've checked that and all modules are enabled.

Which email filters are there or where can I find them?

Regards,

Richard


author: Bhushan Nagaraj
body: Hi Richard,

I was referring to rules set to filter your emails. For example, <https://support.google.com/mail/answer/6579?hl=en>

Thank you

Bhushan


author: IT Service Desk
body: Hi Bhushan,

We have an exchange server with no mail filters.  
We get everything except the notifications about deleted and moved pages.  

Kind Regards,

Michael


author: Rachael Huston
body: Hi Richard,

Did you ever receive an answer to this issue? I am looking to receive notification when a page has been deleted as well, and have been unsuccessful in my search for a solution.

Thank you,

Rachael


author: Hogir Habasch
body: Hi [@IT Service Desk](/t5/user/viewprofilepage/user-id/1056427) and [@Bhushan Nagaraj](/t5/user/viewprofilepage/user-id/853441),

do you have an update on this issue?

I am in the same situation as Richard. Confluence Content Notification are enabled but our users do not get an update if content is moved.

Thanks!

Best,

Hogir


author: Bhushan Nagaraj
body: Hi Richard,

Please refer to the documentation at <https://confluence.atlassian.com/confkb/how-to-globally-disable-e-mail-notifications-with-page-content-718670714.html>

You will need to be a system administrator to perform these changes.

Thank you

Bhushan


Tags: notification
Issue in view PSD file
Asked by Keyur.Patel@SmartMoneyMatch.com:

Hello Support,

When I am try to view of any psd files on confluence, Its going to download. Previously it was open in View mode where i can see the psd without donwload.

Could you please help me on this and sortout this issue?

Look forward to hearing from you soon.

Thanks


Answers:
author: AnnWorley
body: I understand you were able to preview .psd files in the past but now they have to be downloaded. Are you using Confluence Cloud or Confluence Server?

I found a support case where .psd files could not be previewed on a Confluence server instance because it took too much memory. If you are using a server version of Confluence please let me know how much memory is allocated to the JVM. This can be seen as Maximum Heap Size on the Confluence Admin\>System information page under the heading, "Java VM Memory Statistics".


Tags: connect
Issues Setting up Confluence
Asked by Daniel Cuthbert:

We have installed a fresh copy of confluence and are trying to connect it to a Microsoft SQL server 2014  

The database has been set as SQL_Latin1_General_CP1_CS_AS and Read Commited Snapshot set to true  

a user account has been setup with full DBO rights to the database,  

the sql server details have been set as follows:   
Driver Class: com.microsoft.sqlserver.jdbc.SQLServerDriver  
Database URL: jdbc:sqlserver://GPSDB003:1433;database=ConfluenceData  
the database username and password have been checked and tested. yet when we hit next we keep getting a HTTP500 error:  

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


Answers:
author: Shannon S
body: Hello Daniel,

If your database is up and running, it could also be that it doesn't have enough resources.

Can you take a look at the following documents and troubleshoot using the steps from there:

* [Unable to start due to net.sf.hibernate.exception.GenericJDBCException Cannot open connection](https://confluence.atlassian.com/confkb/unable-to-start-due-to-net-sf-hibernate-exception-genericjdbcexception-cannot-open-connection-128843899.html?_ga=2.156924984.227340334.1504771901-116406192.1504172592)
* [Confluence slows and times out during periods of high load due to database connection pool](https://confluence.atlassian.com/confkb/confluence-slows-and-times-out-during-periods-of-high-load-due-to-database-connection-pool-146407630.html)

Let us know if you have any trouble or questions.

Kind Regards,  
Shannon

comments: author: Daniel Cuthbert
body: Thanks Shannon,

Is there a mimimum spec requirement for the Database server?

the server doesnt seem to be under any considerable load when trying to setup confluence.

I've confirmed via SQL managment studio that the credentials are correct and i know the Server can reach the Database server as we have installed JIRA on the same server pointing at the same DB server.


author: Daniel Cuthbert
body: Thankyou Shannon.

Can you confirm the mimimum spec for the Database Server?

The credentials have been verified using SQL Managment studio.

We know the server that runs confluence can contact the databse server as JIRA is ruiing on the same machine.


author: Shannon S
body: Hi Daniel,

The system requirements can be found here :

* [Server hardware requirements guide](https://confluence.atlassian.com/doc/server-hardware-requirements-guide-30736403.html)

Do you happen to have any other errors in the logs that surround the 500 error that could give us further clues on what might be causing this? You can look for an **ERROR** statement or **Caused By**.

Kind Regards,  
Shannon
Atlassian proxy/.x.x.x- 413 Request Entity Too Large
Asked by eastek_claire:

My confluence cloud website

```
Attachment Maximum Size 1,000.00 MB
Allows you to set the maximum size for each attachment uploaded to the site.
```

I use api to upload files but failed from message

```
Atlassian proxy/.x.x.x- 413 Request Entity Too Large
```

Where can I modify the limit size?

I guess the current limit is 120MB because I stuck in the 122MB when the break.


Answers:
author: Shannon S
body: Hi there,

Looks like you're being affected by the following bug in Cloud:

* [JRACLOUD-67223](https://jira.atlassian.com/browse/JRACLOUD-67223)

At this time they are working on a fix, so please watch the case in order to be updated when there is one released.

Thank you for your understanding.

Kind Regards,  
Shannon

comments: author: eastek_claire
body: Thank you for your reply!!


author: Shannon S
body: No worries! Hope to see a resolution soon.

Kind Regards,  
Shannon


Tags: confluence-cloud

rest-api