youngmon/atlassian-qna huggingface dataset:
Setting Context Path for Confluence running in a docker container
Asked by zirnsak:

I'm trying to run confluence in a docker container using the official atlassian/docker-confluence image from dockerhub.

There are some working environment variables, for instance (ansible yaml):

{code}

- name: create confluence container  
docker_container:  
name: 'confluence'  
hostname: 'confluence'  
image: 'atlassian/confluence-server'  
state: started  
restart_policy: unless-stopped  
cacert_path: '/etc/pki/tls/certs/ca-bundle.crt'  
network_mode: host  
volumes:  
- '{{ confluence_docker__data_dir }}:/var/atlassian/application-data/confluence'  
env:  
JVM_MINIMUM_MEMORY: '512m'  
JVM_MAXIMUM_MEMORY: '4096m'  
JVM_SUPPORT_RECOMMENDED_ARGS: '-Djavax.net.ssl.trustStore=/var/atlassian/application-data/confluence/cacerts -Dhttp.proxyHost=...'  
CONFLUENCE_DB_HOST: 'localhost'  
CONFLUENCE_DB_PORT: '5432'  
CONFLUENCE_CONTEXT_PATH: '/confluence'

{code}

what I get is the following java process:

{code}

/opt/java/openjdk/bin/java -Djava.util.logging.config.file=/opt/atlassian/confluence/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -XX:ReservedCodeCacheSize=256m -XX:+UseCodeCacheFlushing -Dconfluence.context.path= -Datlassian.plugins.startup.options=-fg -Dorg.apache.tomcat.websocket.DEFAULT_BUFFER_SIZE=32768 -Dsynchrony.enable.xhr.fallback=true -Xms512m -Xmx4096m -Djavax.net.ssl.trustStore=/var/atlassian/application-data/confluence/cacerts -Dhttp.proxyHost ...

{code}

I would expect, that {{-Dconfluence.context.path=}} is not empty, but it is.

Do I use the wrong environment variable?

Thank you very much for your help!


Answers:
author: Diego
body: Hello there!

Looking at the Docker page for Confluence:
> **[Docker Hub - Confluence Server](https://hub.docker.com/r/atlassian/confluence-server/)**

We have this variable:
>
> ```
> CATALINA_CONTEXT_PATH
> ```

It's default value is none, so no context path is set. So you can try changing from CONFLUENCE_CONTEXT_PATH to CATALINA_CONTEXT_PATH.

Let us hear from you!


Tags: confluence-server

server
Confluence crashing on startup
Asked by elkrivertom:

I have been running Confluence v 6.6.0 for months now on CentOS 7 with no issues. Over the weekend I realized Confluence crashed on me and is leaving behind a number of processes.

I have tried to restart Confluence but after 1 min. the main java process crashed and these other ones come up. I have rebooted, patched the OS and still get the same issue.

Confluence runs on the same system as my JIRA instance and points to a PostGresSQL 9.5 DB on the same system. I only have 3 users so I have kept the setup simple.

The logs show:

2019-04-15 07:54:50,844 WARN \[Navlink Plugin Executor:thread-1\] \[confluence.impl.vcache.SynchronousExternalCache\] lambda$get$11 Failed to read entry from cache 'com.atlassian.bandana.BandanaPersister': Failed due to UNCLASSIFIED_FAILURE

Which I'm not sure is part of the problem.

This is what I see after the crash:

\[root@localhost logs\]# ps -ef \| grep confl  
conflue+ 16329 16327 0 08:10 ? 00:00:00 \[sh\] \<defunct\>  
conflue+ 16361 16327 0 08:10 ? 00:00:00 /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t -f confluence1  
conflue+ 16371 16361 0 08:10 ? 00:00:00 /usr/sbin/postdrop -r  
conflue+ 16389 1 86 08:10 ? 00:07:21 /boot/vmlinuz  
conflue+ 16434 1 0 08:10 ? 00:00:00 ./5D2o2OD ./AJFKJj3  
conflue+ 16435 1 0 08:10 ? 00:00:00 ./5D2o2OD ./6LaK2em  
conflue+ 16436 1 0 08:10 ? 00:00:00 ./5D2o2OD ./prot  
conflue+ 21157 16435 0 08:18 ? 00:00:00 sleep 5  
conflue+ 21177 16436 0 08:18 ? 00:00:00 sleep 1  
conflue+ 21185 16434 0 08:18 ? 00:00:00 sleep 10  
root 21187 8529 0 08:18 pts/0 00:00:00 grep --color=auto confl

I did find this in an older log entry:

2019-04-12 19:06:40,023 ERROR \[http-nio-9001-exec-8\] \[confluence.util.velocity.VelocityUtils\] getRenderedTemplate Error occurred rendering template: <ftp://46.30.43.72/cmd.vm>  
-- referer: [http://24.179.222.247:9001/pages/resumedraft.action?draftId=12345\&draftShareId=056b55bc-fc4a-487b-b1e1-8f673f280c23\&](http://24.179.222.247:9001/pages/resumedraft.action?draftId=12345&draftShareId=056b55bc-fc4a-487b-b1e1-8f673f280c23&) \| url: /rest/tinymce/1/macro/preview \| traceId: 1320a9700af9f77b \| userName: anonymous  
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'exec' in class java.lang.Runtime threw exception java.io.IOException: Cannot run program "/tmp/zz.sh": error=2, No such file or directory at [ftp://46.30.43.72/cmd.vm\[line](ftp://46.30.43.72/cmd.vm[line) 2, column 100\]

I have no idea what that FTP address is.


Answers:
author: elkrivertom
body: Looks like I got hit by this security vulnerability

<https://confluence.atlassian.com/doc/confluence-security-advisory-2019-03-20-966660264.html>

They had a cronjob shutting down my instance.

I have disabled it and am taking corrective measures.

For some reason I ignored the email when it came in -- Last time I do that.


Tags: confluence-server

server
How to Integrate Confluence Questions with a ServiceDesk Knowledge Base
Asked by Pat Ryan:

**How do we connect Questions to our ServiceDesk knowledge base and ServiceDesk portal?**   

How/When to incorporate Questions with the creation of Knowledge articles? Or do you even have to if you can leverage Answers content directly in Search?.   

Can you categorize the Q/A from Questions for display on a ServiceDesk portal?

Is there a way to embed a link to questions on portal such that all customers could access or is main access through search.  


Answers:
author: Shannon S
body: Hello Patrick,

Welcome to Community! It's nice to meet you.

In terms of integrating Jira Service Desk with questions, everything would need to be done on the Confluence side of things, so it would require the user to be anonymous or have a Confluence license.

We have two feature requests below for integration:

* [JSDCLOUD-35](https://jira.atlassian.com/browse/JSDCLOUD-35) *Allow JIRA Service Desk to search Confluence Questions*
* [CONFCLOUD-51774](https://jira.atlassian.com/browse/CONFCLOUD-51774) *Add questions to Service Desk's KB search results*

I recommend that you vote on each of those, and make sure to watch the issues in order to be informed of any changes.

I've also read that there are some add-ons that could help with this, but unfortunately the one I had read about is server only:

* [Refined - Structure and Theme JSD](https://marketplace.atlassian.com/apps/1216711/refined-structure-and-theme-jsd?hosting=server&tab=overview)

I'll also tag your question as part of the marketplace collection, in case anyone can recommend something for you.

Regards,

Shannon

comments: author: Pat Ryan
body: One of these items was created in 2013, Is it worth your and my time to recommend that our vote?


author: Shannon S
body: Hi Patrick,

Yes, it's definitely worth it! We have many feature requests that were created a few years ago, and they're still being implemented even today.

Regards,

Shannon


Tags: atlassian-marketplace

cloud

confluence-cloud

jira-service-desk

jira-service-desk-cloud

questions-for-confluence
unable to access confluence
Asked by Yasir Abbasi:

Hello

today i am not able to access confluence

and i am getting this error

refused to connect

any one please help


Answers:
author: Vero Rivas
body: Hi [@Yasir Abbasi](/t5/user/viewprofilepage/user-id/3037608)

I'm sorry, there was probably an incident at that time, next time, you can check the Atlassian status page and confirm it yourself

<https://status.atlassian.com/>

Cheers


Tags: cloud

confluence-cloud
Confluence crashed and now crashes when any Java process runs
Asked by Erwin Blomeyer:

Confluence crashed for no reason after running fine for 6+ months on a T3 Medium EC2 instance. We can start it up, but then crashes the Java process when it processes the first request.

AMI ID: ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20180912 (ami-00035f41c82244dab)

No obvious Confluence error logs.

Both Confluence instances Crashed on Sunday (two different servers) with the same problem.


Answers:
author: Daniel Eads
body: Hi Erwin,

What version of Confluence do you have installed currently? When you run **top** on the server, does it look like the CPU is running at 100% ?

The symptoms you described match an active exploit that attacks the CVE-2019-3396 Widget Connector vulnerability from March 20th ([see Confluence Security Advisory - 2019-03-20](https://confluence.atlassian.com/doc/confluence-security-advisory-2019-03-20-966660264.html)). We've seen attackers infect servers with malware that tries to mine bitcoin. The malware runs under the confluence system user account, consumes all the CPU, and relaunches itself every few minutes if you kill the process.

If you're on a vulnerable version, the first step in fixing this is upgrading Confluence. The latest releases are:

* 6.6.13 (6.6 is an [Enterprise release](https://confluence.atlassian.com/enterprise/atlassian-enterprise-releases-948227420.html))
* 6.12.4
* 6.13.4 (6.13 is an [Enterprise release](https://confluence.atlassian.com/enterprise/atlassian-enterprise-releases-948227420.html))
* 6.14.3
* 6.15.2

Secondly, the [LSD malware cleanup tool](https://git.laucyun.com/security/lsd_malware_clean_tool/blob/master/README.md) will be useful for removing the Kerberods malware. I would recommend executing cleanup *after*upgrading Confluence to a patched version so there's no possibility of re-infection while you work on the upgrade.

Please let me know if you have more questions!  
Daniel \| Atlassian Support

comments: author: Erwin Blomeyer
body: We installed 6.15.2 once we confirmed that the CPU profile had changed significantly on both Servers.

Just a bit disappointed that there was not a simpler process to patch and upgrade proactively from the console when there is such a massive threat / problem.


Tags: confluence-server

server
Confluence not stopping when killing its process
Asked by Peter Seger:

Confluence has recently starting running at a pegged 100% CPU utilization (with no traffic) even though it usually hovers around 20-40% even with heavy traffic. I went to stop Confluence to investigate, but can't.

When I try to stop Confluence gracefully, it fails with

```
PID file found but either no matching process was found or the current user does not have permission to stop the process. Stop aborted.
```

When I try to just for stop it by killing its process using \`kill -9 PID\`, it kills it but the process just restarts with a different PID seconds later. I don't have Conflunece auto re-start on or setup, so it should just kill it. Why is the process being recreated?!

Thank you!


Answers:
author: Daniel Eads
body: Hi Peter,

What version of Confluence do you have installed currently?

The symptoms you described match an active exploit that attacks the CVE-2019-3396 Widget Connector vulnerability from March 20th ([see Confluence Security Advisory - 2019-03-20](https://confluence.atlassian.com/doc/confluence-security-advisory-2019-03-20-966660264.html)). We've seen attackers infect servers with malware that tries to mine bitcoin. The malware runs under the confluence system user account, consumes all the CPU, and relaunches itself every few minutes if you kill the process.

If you're on a vulnerable version, the first step in fixing this is upgrading Confluence. The latest releases are:

* 6.6.13 (6.6 is an [Enterprise release](https://confluence.atlassian.com/enterprise/atlassian-enterprise-releases-948227420.html))
* 6.12.4
* 6.13.4 (6.13 is an [Enterprise release](https://confluence.atlassian.com/enterprise/atlassian-enterprise-releases-948227420.html))
* 6.14.3
* 6.15.2

Secondly, the [LSD malware cleanup tool](https://git.laucyun.com/security/lsd_malware_clean_tool/blob/master/README.md) will be useful for removing the Kerberods malware. I would recommend executing cleanup *after*upgrading Confluence to a patched version so there's no possibility of re-infection while you work on the upgrade.

Please let me know if you have more questions!  
Daniel \| Atlassian Support


Tags: atl-confsec

confluence-server

server
How to delete space permissions using Confluence API?
Asked by Lakshman:

How to delete space permissions using Confluence API?


Answers:
author: Shannon S
body: Hello Lakshmana,

Thank you for reaching out! Happy to assist you.

It's not clear to me what you need exactly, but I suspect you're looking to do one of two things:

1. Change which users/groups have permission to delete a space in Confluence *or*
2. Remove restrictions to a space in Confluence.

It should be known that it is not possible to set space permissions using the API, but we have a feature request for it:

* [CONFSERVER-44329](https://jira.atlassian.com/browse/CONFSERVER-44329) *Ability to set space permissions via REST API*

You can find some details from my colleague Stephen, below on updating page restrictions:

* [Is it possible to change Confluence space permissions via external integration?](https://community.atlassian.com/t5/Answers-Developer-Questions/Is-it-possible-to-change-Confluence-space-permissions-via/qaq-p/507131)

Let us know if you have any questions about any of this!

Regards,

Shannon

comments: author: Shannon S
body: I also found one more question that might help you:

* [How to add space permissions using Confluence API?](https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-add-space-permissions-using-Confluence-API/qaq-p/516789)

It appears there's a workaround that you might be able to use the old remote API. I haven't tested this myself but please be aware since it's an older thread, this may no longer work as expected.

Regards,

Shannon


Tags: atl-adm
Page properties don't work in some spaces
Asked by ????? ????????????:

I have spaces with documentation and two test spaces (one simple space and one with versions). The issue is that in my test spaces I define macro 'Page properties' and it works with my test viewport where I require the property via '$pages.home.properties.propertyName.asTest' but it doesn't work on real documentation spaces. I tried to use one viewport but it didn't help. So I want to know if there are some requirements for Page properties or could something prevent me to use them on viewport?

\*\*Update\*\*

Spaces are similar in settings, I took a look at them. And if I create a new space it works with page properties just as my existing test spaces


Answers:
author: Diego
body: Hello there!

?????, as I understand you are unable to fetch values from the Page Properties macro from a specific space in Confluence. Is that correct?

Could you clarify some points for us:
> 1. Has this worked at some point?
> 2. Are permissions different between a working space and a non-working one?
> 3. Is there any error thrown when you try to fetch those values
> 4. Is the viewport that you referred a third-party addon for Confluence?

Further, could you provide us with a screenshot of the settings from both a working and a non-working space? Just be careful to not disclose any sensitive information. Community is an open space and anyone can see what is posted here!

Also, are you able to try the following:
> 1. Create a new space
> 2. Set the exact same permissions as the non-working space
> 3. Copy pages to this new space
> 4. Try fetching the page properties values

Looking forward to your reply ?????!


Tags: cloud

confluence-cloud
How do you use Confluene to create release notes?
Asked by Surbhi Chattkara:

I am looking for a way to create release notes in Confluence using JIRA tickets/features. Please share your experience if you have done that.

Thanks

Surbhi


Answers:
author: Jack Brickey
body: Hi [@Surbhi Chattkara](/t5/user/viewprofilepage/user-id/3036140) , I realize that this is an old post and as such I expect you already have an answer. If so it would be great if you shared your final solution here. If you are still interested in a solution I would ask what sort of information you want in your release notes. I'm sure that you're aware that you can create release notes for a given version in Jira and that can be readily incorporated into a confluence document. Are you looking for something more than that?
Confluence HTTP/1.1 Unavailable after configuring anonymous access
Asked by Gus Johansson:

Hi,

This is my 3rd post. I havent received a reply yet and I have not yet been able to resolve the situation.

I am configuring public access (anonymous user access) according to: <https://confluence.atlassian.com/confcloud/setting-up-public-access-934718729.html>

Once I do so. The site crashes.

**Step 1:**

![image.png](/t5/image/serverpage/image-id/51487iB83BFF9C2ADAEDFE/image-dimensions/463x94?v=v2 "image.png")

**Step 2:**

![image.png](/t5/image/serverpage/image-id/51491iEA99BA7DE652C48F/image-dimensions/454x64?v=v2 "image.png")

**Result:**

![image.png](/t5/image/serverpage/image-id/51492iD564423B8D613F3F/image-dimensions/426x92?v=v2 "image.png")

Logs are not saying anything. Service/process for webbserver is still running.

Quick fix: Restore earlier image of database (prior to above adjustment).


Answers:
author: Gus Johansson
body: Netscaler configuration casued this.

comments: author: Tatyana Lukyanchikova
body: Hi!

I see that you faced that problem 5 years ago, but do you remember something more about that? Seems like I'm having the same issue


author: Tatyana Lukyanchikova
body: Figured out! The main reason was that Confluence started to return 302 on HTTP instead of 200, balancer F5 was configured like 302 is error status (i'm not very confident at terminology, but smth like that)
To monitor user activity
Asked by Buchari Muslim:

Dear Support Team,

As a team leader, I need to know what's my team doing in our team page or company space. Besides Audit logs, is there any tools to see whether my user downloaded a bunch of data or information from team page or company space? Thank you.

Regards,  
Buchari Muslim


Answers:
author: Tarun Sapra
body: Hello [@Buchari Muslim](/t5/user/viewprofilepage/user-id/3035586)

On your space home-page, you can add the macro called "Recent activity" which will list all the activity of all the users across that space and hence will give you a clear view of the changes being done by your users across the space.

comments: author: Buchari Muslim
body: Hallo [@Tarun Sapra](/t5/user/viewprofilepage/user-id/781576)

Thank you for your response. I am checking with my team to download the audit logs and check whether in the logs informed us details on people or user who download content form pages or our spaces.


author: Iago Docando
body: Hello there, and wellcome :)

Just a quick aside: this is not a support team but a community forum where other users as yourself try to help whenever they can and to the point they are able to.

Hopefully you can find the help you need.

Cheers.

comments: author: Buchari Muslim
body: Hello [@Iago Docando](/t5/user/viewprofilepage/user-id/726110)

Well noted on that. Thank you.  

Regards,  
Buchari Muslim


Tags: cloud

confluence-cloud
Confluence Upgrade
Asked by Hayden Johnston:

Hi Support,

We are currently running Confluence 6.1.3 and need to upgrade to 6.15.2. We've updated our market place add-ins but two remain when we perform the update compatibility check.

#### Code Macro Plugin
Support Tools Plugin {#toc-hId--739198079}

Both of these apps have the vendor as Atlassian, Inc. or Atlassian Support, whats the status of these applications now? We use the Code Macro in our documentation so need to retain this feature. I notice if I disable the add-in the code block doesn't display.  

How do we move forward and upgrade if this plugin isn't compatible?

Many Thanks


Answers:
author: Edwin Kyalangalilwa
body: Hi [@Hayden Johnston](/t5/user/viewprofilepage/user-id/602828) ,

Support Tools is replaced with [Troubleshooting and Support Tools](https://marketplace.atlassian.com/apps/1217697/troubleshooting-and-support-confluence?hosting=datacenter&tab=overview)

As for Code Macro Plugin, there is [Code Block Macro](https://confluence.atlassian.com/doc/code-block-macro-139390.html) which is built-in

comments: author: Hayden Johnston
body: Hi [@Edwin Kyalangalilwa](/t5/user/viewprofilepage/user-id/255918) ,

Thanks for the reply, I have a couple of follow-up questions I'm hoping you can help with.

If I disable Code Macro Plugin, can I make the inbuilt Code Macro Plugin take over these Macros? Because at the moment, when I disable the plugin I lose the ability to read the code.

Within Confluence / Find new apps i'm unable to find the [Troubleshooting and Support Tools](https://marketplace.atlassian.com/apps/1217697/troubleshooting-and-support-confluence?hosting=datacenter&tab=overview&_ga=2.93974484.816400700.1555301182-2138868815.1511480227)

However, i can download the jar from the link you provided, can i just copy this into the addins folder in the confluence installation directory and confluence will automatically find it? Is Support Tools Plug purely for getting log data for Confluence support? so it can be disabled with no impact to content on the confluence pages.

Many Thanks in Advance


author: Edwin Kyalangalilwa
body: [@Hayden Johnston](/t5/user/viewprofilepage/user-id/602828) ,

Unfortunately no. you'll have to move the code to the built-in macro. You can continue using Code Macro plugin, but it might cause issues later with Confluence.

If you're planning to upgrade a test environment first, then you can test the add-on in the new version.

After the upgrade is when you'll now see **Troubleshooting and Support Tools**
Hi I am getting a server error when I try to log into Confluence - please advise.
Asked by Heather Cunningham:

This is the error I am getting. Any thoughts? Thanks {#toc-hId--1440263377}
---------------------------------------------------------------------------

Service Temporarily Unavailable {#toc-hId-1047249456}
-----------------------------------------------------

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.


Answers:
author: Bastian Stehmann
body: Hi [@Heather Cunningham](/t5/user/viewprofilepage/user-id/3034860) ,

Welcome to the community.

This message just tells you, that the server just can not respond to your request.

Are you on server or on cloud?

If you are on server, you can reach out to the administrator to check if confluence is running properly.

If you are on cloud, you should reach out to the Atlassian Support.