youngmon/atlassian-qna huggingface dataset:
Synchrony is slow
Asked by DerivcoITServer:

We have been experiencing slow performance when updating/saving pages with synchrony. We often the following snippet in the logs:

```
2017-03-28 14:18:38,565 WARN [http-nio-8443-exec-56] [confluence.util.profiling.DurationThresholdWarningTimingHelperFactory] logMessage Execution time for publishing event com.atlassian.confluence.event.events.content.page.synchrony.ContentUpdatedEvent@3c17e0a5 took 18707 ms (warning threshold is 5000 ms)-- referer: https://confluence/pages/resumedraft.action?draftId=34587494&amp;draftShareId=73035f53-587a-4859-bc7b-09a3089e6f7d | url: /rest/api/content/34587486 | traceId: d734339b1217336c | userName: Altonx@abc.com2017-03-28 14:18:38,566 WARN [http-nio-8443-exec-56] [confluence.util.profiling.DurationThresholdWarningTimingHelperFactory] logMessage Execution time for post-commit task com.atlassian.confluence.pages.DefaultPageManager$$Lambda$1189/1118956715@3bc26a6c took 18708 ms (warning threshold is 5000 ms)-- referer: https://confluence/pages/resumedraft.action?draftId=34587494&amp;draftShareId=73035f53-587a-4859-bc7b-09a3089e6f7d | url: /rest/api/content/34587486 | traceId: d734339b1217336c | userName: Altonx@abc.com2017-03-28 14:18:38,579 WARN [http-nio-8443-exec-56] [atlassian.confluence.cache.TransactionalCacheFactoryCleaner] lambda$cleaner$2 Forcibly unbound thread-local transactional caches prior to request execution: [com.atlassian.confluence.core.CachingInheritedContentPermissionManager.getInheritedContentPermissionSets(), com.atlassian.confluence.user.crowd.CachedCrowdUserDao.USER_CACHE, com.atlassian.confluence.user.crowd.DefaultApplicationCache]-- referer: https://confluence/pages/resumedraft.action?draftId=34587494&amp;draftShareId=73035f53-587a-4859-bc7b-09a3089e6f7d | url: /rest/api/content/34587486 | traceId: d734339b1217336c | userName: Altonx@abc.com
```

How do we stop this and increase the performance?


Answers:
author: DerivcoITServer
body: This has been resolved by adding the following index for postgres.

CREATE UNIQUE INDEX e_h_p_s_idx ON "EVENTS" (history, partition, sequence);

<https://jira.atlassian.com/browse/CONFSERVER-45745>


author: DerivcoITServer
body: We see times exceeding 45 seconds and we get these messages exceeding its threshold on every page update.


Tags: confluence-administration
How do I edit the left Nav display
Asked by Greg Della-Croce:

I hope that this will be a real easy question. I have an old Space, and the prior owner is no long available to work with the Confluence Wiki. There is a line at the top of the left Nav display and at the bottom of a list of links that says "Unknown Macro {{`align`}}" . I would like to get rid of it. But I can not seem to find a way to edit this part of the display.

Any suggestions?


Answers:
author: Anne EQS
body: What about getting rid of the unkown macro {{`align`}} instead?

comments: author: Greg Della-Croce
body: I have looked for that align macro and I can not find it. It is not an Add-on. I was thinking it must be one from Confluence, but I can not find it.

Frustrated. But it is a cosmetic problem that isn't causing any problems with the function of the Space.
Disable users from Confluence database
Asked by DevOps:

Hello,

I want to disable the users that haven't logged lately in Confluence from the Database. Since there are too many users that I have to disable, I was looking to disabled them from the database. I saw that the ACTIVE column from CWD_USER table is set to "F" if the user is inactive and with "T" if the user is active.

I set ACTIVE to "F" but when I've checked in Confluence, the users are not disabled.

Can you please explain what represent ACTIVE column from CWD_USER table and how can I disabled the users from the database?

Thank you


Answers:
author: Chip Smith
body: David,

What was the command line string that you used from the mysql prompt to do this? I am running into the same issue that you have, perhaps this is still fresh on your mind or you have documentation for it.

Thank you for you help.


author: Nic Brough -Adaptavist-
body: Do not make changes to an Atlassian application's database. You need to know **exactly** what you are doing (depending on the version, you've started in the right place, but I suspect, missed things), and you should **always** have the system offline, and backed-up with a proven restoration before you attempt it.

You might want to try a restart, but I suspect you really want to undo what you've done and then de-activate the users properly, through the UI.

comments: author: DevOps
body: Hi Nic,

Thank you for your answer.

I have created a Confuence test instance and I've attached a copy of the production database . At the moment I'm testing this in a separate instance than production where I have the same configuration and a copy of the production database.

I have to deactivate more than 200 users and deactivating them one by one from UI it's not an option :smile:


author: Nic Brough -Adaptavist-
body: Good, I was hoping you were in test.

I've said "use the UI", but what I really mean is "use the API" - your database approach is poor and broken (there really should be a banner across every Atlassian site saying "don't touch the database"), but the UI sits on top of an API which is safe to use. The API is also accessible via plugins and REST calls from external systems. This is the sort of thing I'd be scripting.


author: DevOps
body: Thank you, but after I've restarted Confluence all the changes that I did on the database had effect. All the user with ACTIVE set on "F" are now disabled in the Confluence UI. I'll keep in mind the option with API in order to avoid database changes.

Thank you for your help.


author: Ann Kristin
body: But is there any way to disable or deactivate users from REST or SOAP-API for Confluence?   
For Jira it can be done with REST, but it seems to me that Confluence don't offer this solution... (<https://jira.atlassian.com/browse/CONFSERVER-54928>)
Wiki and JIRA link
Asked by Greg Della-Croce:

First I will state that as the admin for the Wiki I have not spent any time learning how JIRA manages projects (Classic or Agile). However, we have a question from a user that needs to use a Wiki page to create and manage a JIRA project.

I have understood that the JIRA can update a Wiki page. But is it possible to run the other way?


Answers:
author: Greg Della-Croce
body: Doug and Nic thank for answering. Nic I am going to have to ask my user exactly what he wants to be updated by the Wiki to the JIRA and back to the Wiki.

Doug, I "know" of Run CLI Actions but I have no hands-on experience with it. Any good way for me to get up to speed on this tool?

comments: author: Doug Swartz
body: Greg,

For a high level view, this page has a list of all the JIRA actions you can do from the CLI product.

To do the kinds of things you're talking about, you would be issuing those commands from the

[Run CLI Actions in Confluence](https://bobswift.atlassian.net/wiki/display/CCLI/Run+CLI+Actions+in+Confluence) plugin.

To be honest, heading down this route is doable, but whoever sets it up would need programming skills.


author: Doug Swartz
body: Out of the box, I don't know of any way to create or manage a JIRA project from Confluence.

If you had the [Run CLI Actions in Confluence](https://marketplace.atlassian.com/plugins/org.swift.confluence.acli/server/overview) you could create pages in Confluence to perform many of the JIRA project administrative functions.

There are more options to create and update JIRA issues from within confluence:

* [This page](https://confluence.atlassian.com/doc/use-jira-applications-and-confluence-together-427623543.html) shows how to create JIRA issues from Confluence out of box.
* Using the JIRA issues macro, you can link dirctly from Confluence to an issue in JIRA. This, of course means you are really editing the issue in JIRA, not in Confluence.
* The Run CLI actions in Confluence plugin allows you to do updates, deletes, and creates of JIRA issues
* The Confiform plugin supports several kinds of actions against JIRA issues.


author: Nic Brough -Adaptavist-
body: Yes.   
What do you want from these "updates"?


Tags: application-link

integration

jira
Confluence Space ReadOnly permission
Asked by DerivcoITServer:

How do we go about giving read only permission to spaces to confluence groups?

In the space permissions we enable only the View permission, but this means read and write permission to existing content, if there are no page restrictions.

To allow read only permission we need to go to the highest page level on the space and enable edit restricts, so that Everyone that has access to the space can view but only specific users/groups can edit. Pages lower in the page tree inherit this permission.

Is there no other way to do this?


Answers:
author: Nic Brough -Adaptavist-
body: \>In the space permissions we enable only the View permission, but this means read and write permission to existing content

No, that statement is incorrect. View and add/edit are **separate** permissions.

comments: author: DerivcoITServer
body: Thanks for this clarification.

It seems like the Anonymous permission set was coming through.

Example: Only User A has full permission to a space. User B has no permission to the space, but is a logged in user. Anonymous permission was set to View and Add Pages for the space.

Anonymous permission is disabled in the global permission. The following message is displayed in the space permissions. "Anonymous users can't view this space because global anonymous 'Use Confluence' permission is currently turned off."

User B got there permission from the Anonymous section therefore they could still edit. Is this correct?


author: Nic Brough -Adaptavist-
body: You should **never** set anonymous access for anything other than read. Anonymous writes open you up to all sorts of untraceable problems.

User B did **not** get permissions from the anonymous section. They can't because you've disabled it.


author: Avinash Singh
body: Thanks. The problem is that users can create their own spaces with their own permissions so they can easily give anonymous users greater privileges.

I have confirmed that User B that has no direct access to the space by group or user permission and is getting its edit permission from the Anonymous user permission. Im using confluence version 6.0.2.


author: Nic Brough -Adaptavist-
body: Right, so educate your users not to use anonymous permissions. And then understand that view and create/edit are separate.


author: Avinash Singh
body: Yes we understand that view and add/edit are separate now. The anonymous permissions created the confusion.


Tags: permission
Archive spaces from Confluence database
Asked by DevOps:

Hello,

I would like to clean up the spaces from Confluence that haven't been used in the last 3 months. Taking into consideration that are too many spaces that haven't been used lately (200+) , it will be difficult to archive one by one.

There is a possibility to archive the unused Confluence spaces from the database?

Thank you,


Answers:
author: Thomas Schlegel
body: There is an API call for that: <https://answers.atlassian.com/questions/16883568>

Maybe you can try that solution.

comments: author: DevOps
body: Hi Thomas,

Thank you for your answer.

I managed to archive one space in Confluence using JSON RPC, but I'm still struggling to archive more than one space. From Atlassian documentation the Confluence method setSpaceStatus have parameters(String token, String spaceKey, String status).


Tags: confluence-administration
Does the Activity graph in Confluence account for anonymous views?
Asked by Shelby Spangler:

Hello,

I need to provide a metric for a Confluence page that is going to mainly be viewed by anonymous (non-logged in) users. Can I use the activity graph to provide me with metrics or does the graph only account for logged in registered users?


Answers:
author: Shelby Spangler
body: Running v6.0.2


Tags: confluence-administration
How many Application Links to JIRA allowed?
Asked by Don Donzal:

We have multiple instances of JIRA and one instance of Confluence. All have the same user base coming from our internal directory. Can we have multiple app links? Are there user sync issues?


Answers:
author: Branno
body: You can link as many JIRA instances as you would like to Confluence. If you have more than one JIRA application link you will notice that Confluence adds a dropdown for any macro that uses JIRA data to select the right instance to connect to.

For clarification purposes, Confluence and JIRA do not sync users through Application Links. This would be done through the JIRA User Server instead. Please see [Allowing connections to JIRA for user management](https://confluence.atlassian.com/display/AdminJIRAServer073/Allowing+connections+to+JIRA+for+user+management) for more information on the JIRA User Server.


Tags: application-link

confluence-administration

jira-administration
Do not have options for creating template variables
Asked by Esther Strom:

I'm trying to add a variable to my template in Confluence 5.4. I go to the Template button, then click Add Variable. This is what I see:

first.png

second.png

According to the screenshot [seen here](https://confluence.atlassian.com/download/attachments/296093779/Template_edit.png?version=4&modificationDate=1363747479635&api=v2), I should have variable type options under the variable placeholder, rather than just Variable Suggestions (nothing happens when I click on that except that it deletes the variable name text I had previously entered on the line above.

This is the first time I'm trying this. Am I doing something wrong? Are there settings that I've misconfigured (or missed configuring)?

Updated to add that I am following the step-by-step instructions from the [Confluence documentation](https://confluence.atlassian.com/conf54/confluence-user-s-guide/creating-content/working-with-templates/adding-a-template#AddingaTemplate-Variablesusedasformfields). Step 4, "hit enter", does not create a single line text field, it deletes the variable name entirely.

[Here's a little video](https://www.dropbox.com/s/t8xlj6h0g3hincj/2017-03-22_1710.swf?dl=0) of what happens.  
2017-03-22_1710.swf  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/43020/1/2017-03-22_1710.swf){#display_11859035f4e1a8_0}  
[](https://community.atlassian.com/t5/Confluence-questions/Do-not-have-options-for-creating-template-variables/qaq-p/253959?attachment-id=4716){#link_11859035f4e1a8}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/43020/2/first.png){#display_11859035f4e1a8_2}  
[](https://community.atlassian.com/t5/Confluence-questions/Do-not-have-options-for-creating-template-variables/qaq-p/253959?attachment-id=4717){#link_11859035f4e1a8_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/43020/3/second.png){#display_11859035f4e1a8_4}


Answers:
author: Esther Strom
body: This is apparently a [known issue](https://confluence.atlassian.com/confkb/adding-variable-to-templates-does-not-work-with-google-chrome-693895430.html). I was working in Opera, which is a Webkit browser like Chrome. It works correctly in Firefox.
How do I send email notifications for an event on the calendar?
Asked by Evan Travers:

I would like confluence to send an email notification 30 days prior to an event set up on the calendar to the appropriate resources. I am able to set up an event and set when to send the notification(30 days prior to event) however the notification never gets sent out to the appropriate users when it should. I have tested many times and have not been able to get it to work.


Answers:
author: Steffi Frank
body: Hi Evan,

what we found out is, it does not work with an "all day event".

Steffi

comments: author: paulresiga
body: I have the above problem as well. It doesn't work at all in my case (All day event or not). I tried sending emails through confluence 5' prior to an 30' event, apparently those emails are never received by the mentioned users.
When I select the Create button in Confluence, I want it to use the "How-To Article" template instead of a "Blank Page" template. How can I achieve this?
Asked by Thomas B:

[](https://community.atlassian.com/t5/Confluence-questions/When-I-select-the-Create-button-in-Confluence-I-want-it-to-use/qaq-p/67828?attachment-id=4057){#link_118590704476bf}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/11478/1/image2017-3-22%2010%3A55%3A11.png){#display_118590704476bf_0}


Answers:
author: carolyn french
body: Do you mean you would like it to default to "Page" template? The How-to article template option exists within the Create prompt- just another click away.

comments: author: Thomas B
body: I would like to have a different page template open when I click create instead of having to click the 3 dots. Clicking Create automagically creates a new blank page from a blank template

image2017-3-22 10:55:11.png


author: carolyn french
body: Got it- yeah, that would be nice and I don't know of a way to do that (globally). Can you log it as a suggestion in the Atlassian JIRA?

<https://jira.atlassian.com/issues?jql=filter=allopenissues>


author: carolyn french
body: For Knowledge Bases, I put a "Create from template" macro on the How-to articles page, so that users can go directly into creating a How-to article. Same with Troubleshooting articles. But the create button is embedded in the page itself.


Tags: confluence-administration

confluence-app

questions-for-confluence
Page access in Confluence
Asked by Allan Pedersen:

Does Atalassian employees/supporters have page access to pages in our Confluence site?


Answers:
author: Nic Brough -Adaptavist-
body: It depends.

If you are on Server, then no. Unless you have granted them access.

If you are on Cloud, then yes. Atlassian Cloud support are your system administrators, so they can give themselves whatever access they need to do support work.


author: Daniel Tombs
body: no one can access your system unless you open it up or invited/add users.

when asking for support they will ask for zip of the logs to see where the problem may lie.

this is from my understanding

comments: author: Allan Pedersen
body: Interesting - the reason for me asking is that i just received a screenshot of my *actual* pagetree from Atlassian support team.

If the supporters can see the *actual* pagetree ... can they see the pages too?

I would like a clear confirmation of this matter, covering both supports/employees of Atlassian.
Script Runner for Confluence.
Asked by Kunle Kuteyi:

Looking purchase to Script Runner for Confluence.  
Please can you provide us with the following information.  
With our current infrastructure are they going to be performance issues?  
Installation problems?  
Any known issues/bugs?  
What's the security impact?   
How does it impact our infrastructure ?  
Vulnerabilities


Answers:
author: Nic Brough -Adaptavist-
body: I'd have a read through <http://www.adaptavist.com/w/products-plugins/adaptavist-scriptrunner/scriptrunner-for-confluence/> and then get in touch with Adaptavist to ask more questions.

(I don't work in the SR team, so I'm not qualified to answer your questions in any detail beyond "no performance impact unless you write a bad script, there are issues logged in the issue tracker for it, and on security and impacts, you need to trust your admins)
User list for each space Access
Asked by Akash:

Hi All,

I am currently working on generating a single window where i will get list of all spaces and it Admins \& user who have access to each spaces.

I have currently looked at few articles where i can get SPace Name, Space Key, Space Administrators and Space Group level access. but i would need users list too who an view or edit in these spaces.

Can someone please help on same.


Answers:
author: Rodney Hughes
body: Have you looked at the standard \<\<User List\>\> macro?

Putting \<\<Confluence Users\>\> as the group name gives you everything, or if you have groups based on your Spaces then it can show Space-by-Space


Tags: confluence-administration
custom templates
Asked by Robert Karlepalm:

How do I create a custom template in draw.io for Confluence? I don't want the users to start from scratch when creating a chart that we use.


Answers:
author: David Benson _draw_io_
body: [This is now possible in 6.5.0](https://desk.draw.io/solution/articles/16000057705-how-to-define-custom-templates-for-draw-io-in-confluence-server)


author: Robert Karlepalm
body: Sure.


author: David Benson _draw_io_
body: Robert, could I ask you to submit this question to [support@draw.io](mailto:support@draw.io) please?


Tags: draw.io
Where can I get "The Handy Guide for Confluence Space"?
Asked by Sven Richard Mager?y T?nnessen:

Hi,

At work, we just registered a Confluence Cloud which came with a pre-installed Space called "The Handy Guide for Confluence". This was a really helpful space.

I have another Confluence Could account, and would really like that Handy Guide space there as well. How can I get it?


Answers:
author: Thomas B
body: Since there isn't a macro for "include space", I only see to viable options.

1. Use the {Space List macro to allow the users to link over to that space or;
2. Copy the contents of "The Handy Guide for Confluence Space" into a page and use the {include page macro on your other account

I hope this is helpful!


Tags: cloud

confluence-cloud
While Starting Confluence 6.1.0 i am getting error : [Fatal Error] server.xml:1:1: Content is not allowed in prolog.
Asked by Sumit Sumit:

Below is snip of logs while starting confluence 6.1.0 :

===============================

\[confluence@localhost bin\]$ sh start-confluence.sh

To run Confluence in the foreground, start the server with start-confluence.sh -fg  
executing as current user  
If you encounter issues starting up Confluence, please see the Installation guide at <http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide>

Server startup logs are located in /opt/atlassian/confluence/logs/catalina.out  
---------------------------------------------------------------------------  
Using Java: /opt/atlassian/confluence/jre//bin/java  
\[Fatal Error\] server.xml:1:1: Content is not allowed in prolog.  
\[Fatal Error\] server.xml:1:1: Content is not allowed in prolog.  
Content is not allowed in prolog.  
\[Fatal Error\] server.xml:1:1: Content is not allowed in prolog.  
Content is not allowed in prolog.  
2017-03-22 11:40:25,159 INFO \[main\] \[atlassian.confluence.bootstrap.SynchronyProxyWatchdog\] The Confluence context path is empty. No further action is required.

==========================

catalina.out logs :

\[confluence@localhost logs\]$ cat catalina.out  
Error: Could not find or load main class is  
\[confluence@localhost logs\]$

================================================================


Answers:
author: Sumit Sumit
body: By restoring the same version with backup file, error is resolved


Tags: confluence-administration