youngmon/atlassian-qna huggingface dataset:
Empty confluence.cfg.xml
Asked by Vjekoslav Dalic:

Hello,

we had issues with our VM on which Jira Confluence is running, and after we have recovered from that failure, Confluence is throwing error when we try to access it, error is on pastebin:

<https://pastebin.com/EyMxmMzW>

I have searched web and found out that my confluence.cfg.xml file located in /var/atlassian/confluence is empty.

I have tried using confluence.cfg.xml file located in /var/atlassian/confluence/shared-home that I believe is generated by installer and should be same as the one used by application.

From what I could see, database is OK and healthy.

Any suggestions?

Database in question is MySQL.


Answers:
author: Javier T?vara
body: It happened to me too. I was wondering what was the issue and saw the confluence.cfg.xml was empty!

I just restored the file from backups and restarted confluence.

Something weird is happening.


author: AnnWorley
body: Wow, sounds like an ordeal, but I think we are close to getting Confluence up again.

Confluence uses the confluence.cfg.xml in the root of the directory defined in the following file: \<confluence_install\>/confluence/WEB-INF/classes/confluence-init.properties.

If that file is blank it could cause "Spring Application context has not been set" as in your pastebin post.

Please refer to these guides for resolutions: [How to Generate a New confluence.cfg.xml](https://confluence.atlassian.com/confkb/how-to-generate-a-new-confluence-cfg-xml-425461512.html) and [Confluence does not start due to Spring Application context has not been set](https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html)
Error when Updating Confluence 6.3.3 to 6.6.1 - Cannot update schema
Asked by Alan Levine:

I ran the installer file (x64) on an x64 server. The installer says the installation completed. When opening the web page I get this error:

Database is MSSQL 2012 sp3.

Any suggestions?

Thank you,

Alan

![conferror.JPG](/t5/image/serverpage/image-id/12432iE7FD957251B1E11C/image-size/large?v=v2&px=999 "conferror.JPG")


Answers:
author: Gonchik Tsymzhitov
body: Hi Alan,

Kindly let's show the error log from catalina.out.

Cheers,

Gonchik Tsymzhitov

comments: author: Alan Levine
body: Hello Gonchik,

sorry i am new here so i'm not sure what is happening but when i paste the log data here and hit the reply button i get an Error

Your message was not accepted. Check for invalid HTML or try reposting as plain text.

Any suggestions

Thank you,

Alan


author: Gonchik Tsymzhitov
body: Good morning Alan,

Let's check here

<https://confluence.atlassian.com/doc/working-with-confluence-logs-108364721.html>

Or you can click on UI the link "this logs".

Cheers,

Gonchik Tsymzhitov
Add restrictions when creating a blog post using the html macro
Asked by Patrick Vanhoof:

In a html macro following code will put a button on a Confluence page to create a blog post:

    <button class="create-dialog-create-button aui-button aui-button-primary" tabindex="100" onclick="javascript&colon;location.href='/wiki/pages/createblogpost.action?spaceKey=SPACE_KEY';">Create Blog</button>

Can I add some extra code so that the blog post created is restricted to group my_group?


Answers:
author: AnnWorley
body: We cannot add restrictions to pages using HTML but we may be able to come up with a workaround that will satisfy your use case.

I am guessing you want the blog posts restricted to one group so they can review the blogs before publicly publishing them. In that case you could use the same button but with **createpage.action?** which will create the page as a child of the designated space's landing page. You could apply view restrictions to that landing page, which would be inherited by all the child pages. When the blog is ready for prime time, it could be re-published as a blog. You could have a space dedicated just to reviewing blog posts.

If my guess is wrong about your use case, please let me know more and I will research further.

comments: author: Patrick Vanhoof
body: Hi Ann,

Thanks for your answer.

Our use case: we have a departemental space that is now restricted to our team. We want to open the space for the whole company, but do not want that everyone can see our internal blog posts.

Therefor we would need a way to create a blog post restricted to our team, preferrably automatically so that setting restrictions is not forgotten.

Regards,

Patrick
how to connect to Confluence via C#.net code
Asked by Swati Jha:

Can any one help me in connecting to confluence via C#.net

I have tired a bit via adding Dapplo reference ..but im getting unauthorized error.Not sure about the reason , I dont directly login to confluence it is via Okta I login .......I m providing the username and password I use to login to OKTA.

Can some one suggest me _I m very very new to C#.net coding probably first time ever trying my hand on .net coding

"internal static async Task\<string\> GetConncetionToConfluence()  
{  
var confluenceClient = ConfluenceClient.Create(new Uri("https://confluence"));  
confluenceClient.SetBasicAuthentication("\*\*\*\*@\*\*\*\*.com", "\*\*\*\*\*\*\*\*");  
var query = Where.And(Where.Type.IsPage, Where.Text.Contains("Test Home"));  
var searchResult = await confluenceClient.Content.SearchAsync(query, limit: 1);  
foreach (var content in searchResult.Results)  
{  
Console.WriteLine(content.Body);  
}

<br />

return "Connected!";  
}"


Answers:
author: Thomas Deiler
body: Please have a look at <https://community.developer.atlassian.com/?> for this kind of questions.


Tags: development
How to Generate Dummy Data
Asked by Jack Nolddor _Sweet Bananas_:

Hi all,  
As part of my development process, I need to simulate a Large Instance to ensure the quality of my products.  

Is there any way to generate dummy data in Confluence or Bitbucket?  
I'm looking something similar to [Jira Data Generator](https://marketplace.atlassian.com/plugins/com.atlassian.jira.plugins.jira-data-generator/overview)

Regards


Answers:
author: Shannon S
body: Hi Jack,

There's test data for developers here:

* [Confluence Test Data](https://developer.atlassian.com/server/confluence/confluence-test-data-for-plugin-developers/)

I can't tell if you can generate an instance of a specific size, but perhaps that can help you?

Regards,

Shannon

comments: author: Jack Nolddor _Sweet Bananas_
body: Better than nothing but what about bitbucket?


author: Shannon S
body: Hi Jack,

For Bitbucket I don't see that there is anything similar. We do have the [Performance Testing Framework](https://confluence.atlassian.com/enterprise/performance-testing-framework-for-bitbucket-935577045.html) that you could use, otherwise, I would recommend downloading a public repo from somewhere and uploading that for testing.

Regards,

Shannon


Tags: bitbucket
"Confiforms field" Macro Missing
Asked by LostChild:

Hi guys, I can't seem to find this "Confiforms field" Macro in the system.

Is it removed?

![confiform.PNG](/t5/image/serverpage/image-id/12409iF6A7E09F247342D7/image-size/large?v=v2&px=999 "confiform.PNG")

I am trying to build a macro that sends an acknowledgement/notification along with the attachments of my form.

<https://wiki.vertuna.com/display/CONFIFORMS/Sending+an+email+with+attachments+from+ConfiForms>


Answers:
author: Alex Medved _ConfiForms_
body: [@LostChild](/t5/user/viewprofilepage/user-id/1176650), what do you mean is missing? All the other ConfiForms macros are present, but not the ConfiForms Field? Could you check if all the plugin modules are enabled, please?

It is in Confluence Manage add-ons, then looking at ConfiForms add-on on the list and checking the modules enabled on the right


Tags: atlassian-marketplace
Would it be possible for us to maintain a page with the status of Confluence installation & plugins?
Asked by Lakshman:

Hi all,

Would it be possible for us to maintain a page with the status of our Confluence installation and its many plugins?


Answers:
author: Nic Brough -Adaptavist-
body: Yes, your admins are free to write such a page.

I'm guessing that you want to automate it though? If so, you should be able to write a user macro that can read through the add-on list and display information.

However, either way, I'm not sure it's a lot of use. The only people who really need to care about this are your admins, who can go visit the "manage add-ons" page when they need to know.
Labesls creation - Who can create them and how ?
Asked by Iuliana Burgi Jurj:

Hello,

I would please have 2 questions related to the creation of labels in Confluence.

I read your article on how to create them and I was able to do it myself in the settings, but I am admin.

My questions are:

1. Can all users (and by this I mean the category confluence users) create labels for their Spaces by modifying the settings of the space ?

2. If we do not modify the setting and we do not create a label, will a part of the name of the space or description be automatically taken and added as a label ?

I am asking the 2nd question because I created a space yesterday, just for trial. I did not added any label, but yet I saw a label to my space.

Thank you in advance for your help.


Answers:
author: Stephen Deutsch
body: Hello Iuliana,

I will try to answer your questions:

1. Space Categories/Labels are only able to be changed by space Admins: <https://confluence.atlassian.com/doc/use-labels-to-categorize-spaces-136647.html#UseLabelstoCategorizeSpaces-addcategoryCategorizeaspace>

2. Space labels are added automatically also based on the type of space that is created. For example, if you create a space of type "Documentation", then the "documentation" label will be applied automatically. If you choose to use a blank space, then no label should be added. Of course, you can always go and remove the space label after the space has been created if you wish.


author: Steven F Behnke
body: Please post a screenshot or two so everyone can understand what you're referring to.

comments: author: Iuliana Burgi Jurj
body: Hello,

Sorry, for sure with print screens it's easier.

![Point 1 Screenshot.png](https://community.atlassian.com/t5/image/serverpage/image-id/12391iF79D59CF294ABE56/image-size/large?v=v2&px=999 "Point 1 Screenshot.png")![Point 2 Screenshot.png](https://community.atlassian.com/t5/image/serverpage/image-id/12392i87C90DE33702F299/image-size/large?v=v2&px=999 "Point 2 Screenshot.png")

![Point 2 Screenshot.png](https://community.atlassian.com/t5/image/serverpage/image-id/12392i87C90DE33702F299/image-size/large?v=v2&px=999 "Point 2 Screenshot.png")
What just happened to Confluence Cloud?
Asked by Steven F Behnke:

I run a lot of instances so I visit a lot of vendor Confluences.

1. It's horrifyingly annoying that I get this same UNSKIPPABLE modal for each and every dang Confluence I visit. Why can't I skip it? Why can't I escape the modal? Who the hell approved this? The customer base has complained openly about these stupid unskippable "what's new" modals. Jira did it and people got pissed (now you can skip it.) CONFLUENCE ALREADY DID THIS MULTIPLE TIMES, including forcing users to WATCH an entire space. It's as if Atlassian doesn't actually use the tools internally anymore.
2. I literally cannot close the modals anymore. The final **Get Started** button seemingly does nothing what-so-ever. Specifically I am on bob swift's site, I see this error:

   ```
   Access to Font at 'https://bobswift.atlassian.net/wiki/s/6.1.0/_/download/resources/com.atlassian.auiplugin:aui-experimental-iconfont/fonts/atlassian-icons.ttf' from origin 'https://master-advanced-tables.bobswift-addons.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://master-advanced-tables.bobswift-addons.com' is therefore not allowed access.?
   ```

   And I can't close the dialog. I guess it's time to treat it like spam and write a script to remove it.


Answers:
author: Shannon S
body: Hi Steven,

We do have a feature request in Cloud to be able to disable the Welcome Module, since in Server it requires you to disable a System Add-on, which is not possible in Cloud:

* [CONFCLOUD-41550](https://jira.atlassian.com/browse/CONFCLOUD-41550)

Please vote on that to help show your interest, and comment on the case with your feedback. If you watch it, you will be updated of any progress.

As for the issue on Bob Swift's site, I haven't seen this particular error before. Could you let us know exactly how you replicate the error? Did you have to sign up for a new account?

Regards,

Shannon

comments: author: Steven F Behnke
body: I was referring to the unskippable modal provided by the "New Experience" that I'm forced to click through on each and every instance.

It appears that the javascript on the final button is just flakey if you try to skip it too fast. The bob swift font error is unrelated.


author: Shannon S
body: Steven,

Thank you for your patience.

I'll need to create a support ticket for you to continue this, so you should be getting an email shortly.

Regards,

Shannon


author: Steven F Behnke
body: I believe the point has been missed. I do not want this disabled on my instance. What I am saying is that the unskippable visual garbage is stupid and should be removed since I interact with dozens of Confluence Cloud instances.


author: Shannon S
body: Steven,

I understand your point; support will be able to submit your feedback as a Feature Request, but you can also submit it on your instance as well using the Feedback feature.

If you do not want the module disabled for your instance, you can let the team know on the ticket, and they can leave it on for your new users.

Regards,

Shannon
Paste external link with text label
Asked by Kristina Durivage:

I'm looking to be able to paste text with some sort of formatting that would auto-format to a link with a label. For example, \[label\|<http://test.com>\] would go to [label](http://test.com) in confluence with out having to click a menu. Is this possible?


Answers:
author: Alex Medved _ConfiForms_
body: Developer's approach :-)

By developing a small custom plugin to extend the editor's auto convert rules :-)

<https://developer.atlassian.com/server/confluence/extending-autoconvert/>
Developer License with Community License
Asked by Samuel Carlisle/Nidhi Kalra:

Hi,

I've been informed that you can't get a developer license when you have a community license. This leaves us unable to have a test or developer environment. What other options do we have to create another environment while still retaining a community license?

Thanks


Answers:
author: AnnWorley
body: We will work with Community license holders to provide a license you can use for a test environment. From: [How to get a Confluence Developer license](https://confluence.atlassian.com/confkb/how-to-get-a-confluence-developer-license-152044449.html)
> Community and Open source license holders please use our [Contact form](https://www.atlassian.com/company/contact/purchasing-licensing) to reach out if you need a license for your development environments.


Tags: licence
Is it possible to encrypt the traffic between the node and load-balancer?
Asked by Vishnu Samavedula:

Currently, in the middle of implementing Confluence Data Center.

In regards to implementing SSL using the SSL termination methodology, the traffic looks like:

User --https--\> Load Balancer --http--\> node1

Has there been a use case where the data interaction has been over https even between the load balancer and Node(s):

User --https--\> Load Balancer --https--\> node1

The current instructions is only for running the Confluence over SSL and doesn't say much about encrypting the data interaction among the nodes and load-balancer  

\[Question has been updated\]


Answers:
author: DanaC
body: Our setup is exactly this.

https -\> LB -\> \[https (Apache ) -\> http (local) Node1\]

Where \[ \] is all running on each server node..

So before we ever went to Data Center, or using Load Balancers our best practice was to run apache as a reserve proxy on every server running an Atlassian product (or pretty much any application container) as the front door. We then proxy to the instance running the product.

We also set the node to only response to localhost traffic for http, but allow direct https for maintenance of node.

The trick so much you have to have your load balancer and your node all have the appropriate certs and keys so they all handle the SSL.


author: Davin Studer
body: You could setup IPsec between your load balancer and your Confluence nodes. So the load balancer would still access the nodes over http, but the http access would be inside a secure tunnel.

comments: author: Matt Doar
body: True.


author: Matt Doar
body: Do you mean the traffic between the Confluence nodes within gthe same physical data center? That's all cache syncs I think. And not visible to external users anyway.

comments: author: Vishnu Samavedula
body: Apologies Matt, I had to correct my question. I am looking at a use case where the traffic between node and load balancer is encrypted as well, if I were to choose the SSL Termination method.


author: Matt Doar
body: "doesn't say much about encrypting the data interaction among the nodes and load-balancer" yes, the DC docs don't go into details about specific load balancers.

But a good guideline is to never leave traffic unencrypted. And have the reverse proxy running on the same server as its Jira app


author: Matt Doar
body: Erm, Confluence


Tags: data-center

encryption

ssl
confluence and outlook
Asked by sugandha dhawan:

Hi,

I am able to see confluence's internet calendar into my outlook.

But I want to know if i share same link with other outlook users, would they also be able to connect to it?


Answers:
author: Shannon S
body: Hi Sugandha,

The .ics link you can get from the Subscribe option in the calendar are privately listed, but if you were to share it with someone, then they will be able to see your events.

For this reason, we recommend to only share the URL with users you want to see your events.

If you're having any issues, please let us know!

Regards,

Shannon
Base URL does not match due to 8443 redirection
Asked by David Dellinger:

I recently upgraded our Confluence from 6.0.4 to 6.5.2. It seems that during the upgrade, a redirect was introduced to port 8443, causing the URL to not match our base URL.

How do I either remove the redirection to 8443 or the need for port 8443.

Thanks,

David


Answers:
author: Nic Brough -Adaptavist-
body: An upgrade won't introduce any redirects, but it will update the config files (it should tell you which ones are going to change). So, I'm not sure what has changed here.

Could you have a look at the differences between the new server.xml and the old one?

comments: author: David Dellinger
body: Nic, Thanks! That worked. I had first had scheduled downtime on Saturday, and when I replaced the new server.xml file with the old one, it worked great. I originally tried just putting the old parts into the new xml file, but could not get that to work. I had to just replace the entire new file with the original old file. Anyway, thanks for your suggestion and help.
Confluence REST API token authentication
Asked by Kait Moffatt:

I'm trying to get an API Token for an app that I log into using OneLogin, and I run into a screen that says I simply can't get an API Token.

Is this a permissions thing?


Answers:
author: Paulo F_
body: Hi Kait,

If you're looking to get an API Token, they are generated from:

* <https://id.atlassian.com/manage/api-tokens>

Scripts or other process can use an API token to perform basic authentication with Jira Cloud applications or Confluence Cloud. For more information on API Tokens check out the [API Tokens](https://confluence.atlassian.com/cloud/api-tokens-938839638.html) page.


Tags: cloud

confluence-cloud

rest-api

token
Why is page tree missing when viewing a page from a mobile device?
Asked by Don Segien:

I have a page with a properly functioning page tree. If looks fine and functions as expected with IE, Chrome, and Firefox.

However, when the pages is viewed on an iPad or iPhone, the page tree is missing.

What am I missing?

Thanks...


Answers:
author: Shannon S
body: Hi Don,

It looks like this is a known issue with the mobile view:

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

It will help us if you vote on that issue to help show the number of users who have noticed this issue, and you can watch it for future updates.

Please let me know if you have any questions.

Regards,

Shannon
We are getting setupcluster.action page while configuring the confluene first time
Asked by Mahesh Maheshwari:

We are getting setupcluster.action page while configuring the confluence first time although as per manual we shouldn't get this page and directly move to site creation after providing the license key. we are using AWS and confluence 6.5 and following the Atlassian AWS cloud formation script.

even on this page when we select AWS and IAM role and prvide required information and click on create new cluster it doesn't do any action. in logs we are getting Invalid AWS configuration but no detail what is invalid.

Please suggest.


Answers:
author: AnnWorley
body: I opened a support request on your behalf so that we can exchange files and take a deeper look. You will get an email from our support portal.

When we find an answer we can circle back with the Community to share our results.


Tags: aws
Anyone noticed that Indent/Outdent buttons in confluence are no longer usable?
Asked by Alan McDermott:

Used to be able to use these to format your text easily, but both buttons don't seem to work any more...?

![indentoutdentbuttons.PNG](/t5/image/serverpage/image-id/12338iBDFD76FF1B56FAEF/image-size/large?v=v2&px=999 "indentoutdentbuttons.PNG")


Answers:
author: Shannon S
body: Hi Alan,

A few users have noticed this indeed, and it has been reported here:

* [CONFCLOUD-58647](https://jira.atlassian.com/browse/CONFCLOUD-58647)

It would help out if you could please vote on the issue, so we know how many users are noticing the issue, and comment with your usage case as to how you were using it in your instance.

Thank you!

Regards,

Shannon
Images not getting migrated over
Asked by Teresa Tan:

My team recently got an enterprise account and migrated all of our confluence pages from our old account into this new one. I noticed a lot of images on existing pages did not get transferred over and displays the broken image icon.

Shouldn't images automatically transfer over? Is this a bug? Migration seems meaningless if I have to manually copy and paste things over from the old instance.

![Screen Shot 2018-01-10 at 9.54.56 AM.png](/t5/image/serverpage/image-id/12337iF34E9B608A38AF7D/image-size/large?v=v2&px=999 "Screen Shot 2018-01-10 at 9.54.56 AM.png")


Answers:
author: Shannon S
body: Teresa,

They should indeed have migrated over.

Can you let me know what you mean by **enterprise account** and the source and destination Confluence versions?

What process did you use to migrate?

Regards,

Shannon


Tags: migration