youngmon/atlassian-qna huggingface dataset:
Getting Internal Server Error 500 after updating a page
Asked by David Suchan:

Hello, I am trying to update our confluence page by inserting content of a file. I can update the page successfully with some simple "test message", but attempting to pass variable with content of cat file.md results in Internal Server Error.

Here is what I tried:

1.

```
content=$(cat xyz/README.md)
```

    curl -u login:pass -X PUT -H 'Content-Type:application/json' -d '{"id":"123","type":"page","title":"test","body":{"storage":{"value":"'"$content"'","representation":"storage"}},"version":{"number":19}}' https://xyz.com/confluence/rest/api/content/139793950

`$content has the correct content of the file i want to show, i tried to pass $content in multiple ways using ' and "` ( such as'$content', etc.) but all of them resulted in the error.

`2. Here i tried to write the curl command into > file in three stages: `

```
echo '{"id":"123","type":"page","title":"test","body":{"storage":{"value":"' > file
echo $content >> file
echo '","representation":"storage"}},"version":{"number":19}}' >> file
```

`Then i run curl:`

    curl -u login:pass -X PUT -H 'Content-Type:application/json' -d "$(cat file)" https://xyz.com/confluence/rest/api/content/139793950

`When i run`

```
echo $(cat file)
```

`, it shows that I am indeed passing `{"id":"123","type":"page","title":"test","body":{"storage":{"value":" ***my readme content*** ","representation":"storage"}},"version":{"number":19}}

Where am I making a mistake in passing the variable?

`I am going to repeat that I successfully put "test123" in the "value" and managed to update the page, meaning I am either passing things in "value" wrong or what I am trying to accomplish is not possible. `

I am running all this from a gitlab pipeline, trying to update the confluence page automatically every time we update our readme file located in our git repo, therefore it is out of question to do things manually. Another thing will be figuring out how to increment version number, but I will do that once I manage to at least pass the content of the file.

`I dont have access to logs, I would have to request it. Thank you for any knowledge that would help me get to the core of problem.`


Answers:
author: David Suchan
body: It would really make things easier to debug if I could see json validation error instead of Internal server error 500. Can we close this?


author: David Suchan
body: I found the problem to be characters below ASCII 32, I hope I can replace them.


Tags: bitbucket-pipelines

confluence-server

curl

linux

rest-api

server
Getting the "Basic authentication with passwords is deprecated" error.
Asked by naveenkumar_dp:

Using the token-based authentication for interaction with the confluence cloud.

auth_token="\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*"

basic_auth = HTTPBasicAuth("naveenkumar@abc.com", auth_token)

When we try running the above format in locally it was working fine if try to run the same code in Jenkins. I was getting the below error.

```
Basic authentication with passwords is deprecated.  For more information, see: https://confluence.atlassian.com/cloud/deprecation-of-basic-authentication-with-passwords-for-jira-and-confluence-apis-972355348.html
```

Someone, please help me on overcome this issue.


Answers:
author: Fabian Lim
body: Hi Naveenkumar,

I found a post that may assist users in the future: <https://community.atlassian.com/t5/Jira-questions/Basic-authentication-with-passwords-is-deprecated/qaq-p/1427287>

Regards


Tags: cloud

confluence-cloud
Full site restore from cloud backup to a local server (7+) in Docker
Asked by Alexander:

I've backed up our Confluence Cloud site, and decided to see whether this backup is working locally for DR purposes.

Using docker-compose to spin up a Confluence server (evaluation license) with Postgres DB I've performed full recovery, and was quite surprised to discover that only users and user groups were recovered.

I've used recovery_admin route, so the documentation is solid there.

I thought spaces and pages would be restored as well. What gives?

Backup file size is \~26MB.


Answers:
author: Alexander
body: Any leads? I am about to think 'Backup' function for Confluence is a hoax.

Would be nice to hit 'Backup' button and expect it to be useful after a 'Restore'.


Tags: cloud

confluence-cloud

docker
atlassian-confluence-6.15.2 when open 'co-editing' cpu 100%
Asked by odelia kong:

when open 'Co-editing' sometimes cpu will be "100%". when close cpu will be '0.3%'


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Please, review synchrony configs and check the draft pages in db, as that component like to save many draft in db


Tags: server
After changing base url of jira and some users cannot access to confluence
Asked by omorobot:

I recently changed my base url of jira and confluence as below

JIRA: http://local_ip:8080 --\> http://local_ip:8080/jira

CONFLUENCE: http://local_ip:8090 --\> http://local_ip:8090/confluence

to solve issues with user token.

After change, I checked connection between the two and I was able to login both service however some users only can log in to Jira but not to Confluence.

How to solve this issue?

I am currently running Jira Software 8.5.7


Answers:
author: Nic Brough -Adaptavist-
body: What errors do the broken users encounter when they're trying to use it?

comments: author: omorobot
body: They were unable to log in to their account.

Anyway, I solved this issue by changing entity in User Directories as I changed the jira user server path.

Thanks,


Tags: confluence-server

server
Cannot see the edit button
Asked by Moongee Cheung:

Hi, I have created a page on Confluence, and granted "can edit" right to my colleague; but she can't see the Edit button when she visit the page.


Answers:
author: Manon Soubies-Camy
body: Hello [@Moongee Cheung](/t5/user/viewprofilepage/user-id/4022678) and welcome to Community!

Your colleague may not have creation/edit permissions in this space, can you please check the space permissions? See this page: [Assign space permissions](https://support.atlassian.com/confluence-cloud/docs/assign-space-permissions/) (note that you need to be a space admin to access the space settings).

Hope this helps,

- Manon


Tags: cloud

confluence-cloud
???????????
Asked by kazuomi kono:

?????????

???????????????????Invite to edit??????????????????????/????????????????????2020/08/20?????????????????????????????????????


Answers:
author: Tomoko Suzuki
body: ????????????????????????

????????[???????](https://ja.confluence.atlassian.com/confcloud/confluence-cloud-editor-roadmap-967314556.html)???????????????????????????????????

* [CONFCLOUD-70674: Invite to edit feature is not working in new editor](https://jira.atlassian.com/browse/CONFCLOUD-70674)

??????????????? Start watching this issue ????????????????????????????????????????????????

??????????????????????????????????????????????????????????????????????????????[???????????????](https://ja.confluence.atlassian.com/support/atlassian-server-bug-fix-policy-201294573.html)?????????  
?????????[???????](https://jira.atlassian.com/secure/Dashboard.jspa)?????????????????????????????????????????????????????

comments: author: kazuomi kono
body: ???????????????CONFCLOUD-70674:Invite to edit feature is not working in new editor???????????????????CONFCLOUD-70681:Invite to Edit button no longer working????????????????????

??????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????


author: Tomoko Suzuki
body: ??????????????????

?????????????????????????????????????????????

* <https://jira.atlassian.com/browse/CONFCLOUD-70674>

?????????????????????????


author: kazuomi kono
body: ??????????????

???????????????????????????????????


Tags: cloud

confluence-cloud

language-ja
Detach my account from Confluence and JIRA Cloud
Asked by enderteszla:

Hi there. It happened to me that my account was added to <https://liquibase.jira.com> (JIRA \& Confluence Cloud), although I'm not a member of Liquibase community (my fault, of 'course).

Now there are two irrelevant options on the 'Switch' screen: Liquibase JIRA and Liquibase Confluence -- in addition to my own JIRA and Confluence.

I'd rather detach my account from Liquibase JIRA and Confluence Cloud, so that there would be only my two products on the 'Switch' screen.

How would I do that?

Thanks in advance,

Regards, L.B.


Answers:
author: Nic Brough -Adaptavist-
body: You will need to ask the Liquibase admins to remove you from it (or remove their application links in their application).


Tags: cloud

confluence-cloud
Is there any serious initiative at Atlassian to implement KCS?
Asked by Shashi Matha:

KCS has so many benefits for a service based organization. Is there any plan to provide tools within JSD to implement simplified version of KCS?

For those who are new to KCS, you can find more information about KCS here:

<https://www.thekcsacademy.net/kcs/>

Other providers such as Salesforce (Service Console) do provide ability to implement KCS using Salesforce. So this thread is to find out if JSD has any plans to do that. How customers of JSD have approached this? I saw a post from Atlassian about an article regarding KCS. But I am specifically referring to implementing KCS processes using JSD.

Thanks in advance!!


Answers:
author: Nic Brough -Adaptavist-
body: They already do a process of review and update on their docs and software.


author: Shashi Matha
body: Fair enough! I have added the link to KCS on the original post.


author: Nic Brough -Adaptavist-
body: I think you'll need to start by explaining what you think KCS is. Given that it means "Kings College School" or a stationary supplier to me, I think you can probably understand that most people don't know what you're talking about


Tags: cloud

confluence-cloud

knowledge-base
Bulk import doc and docx files into confluence
Asked by Zuheab Jamil:

Hi All,

We have trying to migrate from sharepoint to confluence by converting all our doc and docx files into Confluence pages and have been going thru webdav client like cyberduck for bulk import.   

Is that possible in the current Confluence 7.4 version or is there a better way to get this completed. An urgent reply will be highly appreciated.

Regards,

Mohd.Zuheab


Answers:
author: Daniel Eads
body: Hi Zuheab, welcome to the Community!

The process for importing Word documents to Confluence using the native tooling is done on a file-by-file basis in both Confluence Server and Confluence Cloud:

* [Import a Word Document Into Confluence (Server)](https://confluence.atlassian.com/doc/import-a-word-document-into-confluence-170493136.html)
* [Import Content into Confluence Cloud](https://support.atlassian.com/confluence-cloud/docs/import-content-into-confluence-cloud/)

While you can add documents as attachments via WebDav in Confluence Server, those documents won't be converted to Confluence pages. People trying to access the documents would see them as attachments they could download, preview, or edit in Microsoft Word (using either the "Edit in Office" functionality of Confluence or the Atlassian Companion). Generally we recommend converting documents that might be edited in the future to native Confluence pages if possible, as this will allow you more flexibility in maintaining the contents and using things like Confluence macros.

Doing a search on the [Atlassian Marketplace for alternative options for importing Word documents](https://marketplace.atlassian.com/search?product=confluence&query=word%20import) , I see one app currently:

* [All-in-one File Importer for Confluence](https://marketplace.atlassian.com/apps/1221333/all-in-one-file-importer-for-confluence?hosting=cloud&tab=overview) for Confluence Cloud by Bitwelt Software

Based on this app's marketplace listing, it appears to support importing in bulk. Checking that app out would be my suggestion for bulk importing Word documents as native Confluence pages.

Cheers,  
Daniel


Tags: cloud

import

bulk-edit

confluence-cloud

document

sharepoint

webdav
How to optimize multiple json call in a table to load the page faster?
Asked by srikanta sahoo:

On a single page, I have a table where each cell content a rest service result display using JSON table and table transformer macro. I gave wit 48 call takes around 5 minutes. Is thee a way to optimize the performance that takes less time. Like add a button the cell and once the user clicks the button, then only we call the macro to display the result.

Attached the current view of the page.

![HealthCheck.png](/t5/image/serverpage/image-id/107632iECC4A0E9AD34D53C/image-size/large?v=v2&px=999 "HealthCheck.png")


Answers:
author: Florian
body: It's hard to tell without knowing the underlying details. 48 calls does not look that much in my opinion.

<br />

Ask yourself the following questions:

- Is it possible that the answers are too big so that to much data needs to be transferred over the line?

- Do the calls cause some database request with a missing index so that the answers are small but it takes a long time to find the needle in the haystack?

- Can you make a single request that gives you all answers at once and then iterate over the data to fill you table?

- Is it possible to cache the data? Can you provide a server that periodically pulls the source system once an hour and then stores the results for your overview.


Tags: confluence-server

server

table-transformer
Confiforms API Import - Text area field with carriage returns no mapping properly
Asked by Jason Walsh:

Good evening,

I'm attempting to import a pipe delimited CSV into a confiform API. This CSV contains some Text Area field types with all kinds of special characters and line breaks. When examining the first record for import, it appears that the text field captures the data up until there was a carriage return.

Sample cell from my CSV. Note the new lines in the cell

![pic1.png](https://community.atlassian.com/t5/image/serverpage/image-id/107629iEB18D7B7D19DCD5C/image-dimensions/499x64?v=v2 "pic1.png")

Column on the API Upload UI when it looks like the record gets cut

![pic2.png](https://community.atlassian.com/t5/image/serverpage/image-id/107630i80909B1A359077FF/image-dimensions/162x170?v=v2 "pic2.png")

Looks like new lines are created for each carriage return from that cell

![pic3.png](https://community.atlassian.com/t5/image/serverpage/image-id/107631i73C74D942CC1DD22/image-dimensions/200x202?v=v2 "pic3.png")

Any help is appreciated, thanks!


Answers:
author: Alex Medved _ConfiForms_
body: At the moment we dont support new lines in Import API for text area fields. Each new line in the CSV is considered as new row to import


Tags: confiforms

confluence-server

rest-api

server
how to create a vertical chevron list (similar to in ppt)?
Asked by Venugopal Thirunagari:

how to create a list view using macros on a confluence page? i am looking for a vertical chevron list type to insert on a page and have hyperlinks to the text in there.


Answers:
author: Florian
body: Try draw.io or lucid chart from the marketplace. The fist allows you to store you data on premise the second one has a little better user experience but forces you to go into the cloud. We recently switched to draw.io for privacy reasons. Both work well and can replace PowerPoint or Visio in many cases.


Tags: confluence-server

server
Support for confluence free edition
Asked by Najith Melaka Perera:

Hi,

I have used confluence before and I know this is a very solid product as Knowledge DB.

I am planning to implement this with my current organization and I need to try the self-managed version of confluence. To continue with this I like to know the answers for my below questions,

1) How the self-managed version will install in our environment? Is it a separate appliance?

2) What kind of support we can get if we only planning to use this as a free version for the initial period? Will Atlassian provide installation and configuration support for free as well?

3) If not, how much it will cost to install this appliance in our environment and for licencing? (We are planning to test this using nearly five to ten users at the first stage)

4) When we are continuing after installation of the free version of Confluence at our environment, what are our possibilities for raise support tickets for our initial matters? Will it be free as well or what will be the cost for maintenance?

I really appreciate if you can help me with my matters as we need to start the project ASAP if satisfied.


Answers:
author: Nic Brough -Adaptavist-
body: 1. The server version of Confluence is available as a compressed installation, or as an installer for some operating systems. It's a totally independent application, with later versions of the distribution bundling almost all of its dependencies
2. Technically, there is no support. You only get support from Atlassian if you have got a commercial, educational or charitable licence for 25 or more users. But they do have people who will try to help while you evaluate the system. All the support assumes that you have the basocs though - you're able to follow the docs on installation and initial usage.
3. See <https://www.atlassian.com/software/confluence/pricing?tab=self-managed>
4. I think the answers to those are covered in the three above


Tags: confluence-server

server
What is the best way to make a blueprint for a space template
Asked by Steve Gibbons:

I am wanting to create a custom Space Template that becomes an option when creating a new space. The template should have preset pages and restriction based on how the space should be configured.

Has anyone done this, have a guide or reference that can help short circuit this learning?

Thanks -- Steve


Answers:
author: repi
body: [@Steve Gibbons](/t5/user/viewprofilepage/user-id/3833079)

<https://confluence.atlassian.com/doc/blueprints-323982376.html>

<https://developer.atlassian.com/server/confluence/write-a-simple-confluence-blueprint-plugin/>

<https://community.atlassian.com/t5/Confluence-questions/How-do-I-create-a-space-blueprint/qaq-p/195159>

<https://developer.atlassian.com/server/confluence/confluence-blueprints/>


Tags: confluence-server

server
How to export Confluence Pages as XML
Asked by niharkg:

I'm running on Confluence 5.4, and according to this link (<https://confluence.atlassian.com/doc/export-content-to-word-pdf-html-and-xml-139475.html>) it says that you go to Space Tools -\> Content Tools and you'll see something that says "Export." I don't see any such button. Is there a special permission you have to have?


Answers:
author: repi
body: [@niharkg](/t5/user/viewprofilepage/user-id/4059679)

Yes, there are special authorizations for the export of an entire space or parts of it.  
In the space permissions space export you must have the authorization as a user or as a group.
Confluence-server (docker) + reverse nginx + cloudflare = 502 bad gateway
Asked by Cedric Walter:

Hi All

Im struggling with this issue since a few hours... I keep getting "Bad gateway 502"

**/etc/hosts**

```
127.0.0.1?confluence
```

**Nginx**

```
server {
#ipv4
listen 80;
listen 443 ssl http2;
#ipv6
listen [::]:443 ssl http2;

server_name wiki.xxxxxx.xx;
proxy_read_timeout 600s;
  location / {
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-Server $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass http://confluence:8090;
    client_max_body_size 50M;
  }
}
```

**Docker**

```
docker run -e JVM_MINIMUM_MEMORY=2048m \
-e JVM_MAXIMUM_MEMORY=8192m \
-e ATL_PROXY_NAME=wiki.xxxxxx.xx \
-e ATL_PROXY_PORT=443 \
-e ATL_TOMCAT_SCHEME=https \
-e VIRTUAL_PORT=8090 \
-v /home/confluence:/var/atlassian/application-data/confluence \
--name="confluence" -d \
--network atlassian \
-p 8090:8090 -p 8091:8091 \
atlassian/confluence-server
```

**Cloudflare**

Running on free account, DNS is used beside CDN

**Tested**

* DNS point to right server
* ip address of wiki.xxxxxx.xx, https://ipadress:8090 let me access confluence (I did open firewall port 8090 on ipserver)

Any ideas what would be wrong?


Answers:
author: Daniel Eads
body: Hi Cedric,

Just curious if you'd sorted this out already or if it's still throwing 502 errors.

I did see something interesting between your test and configuration:
> **https**://ipadress:8090 let me access confluence

Not sure if that was a typo, but you've told nginx that it should forward requests to Confluence over HTTP, but if it's working with the address you mentioned, that means Confluence is serving HTTPS over that port instead. This would throw a protocol mismatch at nginx, and result in a 502.

If you're still stuck and that was in fact a typo (or you're seeing something else now), please let me know and we can work together to troubleshoot!

Cheers,  
Daniel


Tags: confluence-server

server
Adding URL to Footer for PDF export
Asked by ddimick:

Is there a way to add the URL of a document when exporting it to a PDF? Basically I am looking to be able to export the documents that I create and drop the URL into the footer, so that the people that use file structures in our department can start slowly migrating to the use of Confluence.

I am looking for something that is free of course. I am sure that there is a way to do this, but I am still learning Confluence myself so any help would be appreciated.


Answers:
author: Thomas Rough _K15t_
body: Hi [@ddimick](/t5/user/viewprofilepage/user-id/3686726), with the native Confluence exporter I'm not sure this is possible due to Confluence not rendering dynamic content, such as the Page URL, from the Confluence Admin \> PDF Layout page ( a another user had a [similar question here](https://community.atlassian.com/t5/Confluence-questions/Page-URL-in-exported-PDF-footer/qaq-p/167287)). We, K15t, develop [Scroll PDF Exporter](https://marketplace.atlassian.com/apps/7019/scroll-pdf-exporter-for-confluence?hosting=cloud&tab=overview) which allows users to add placeholders to reference content in their generated exports and this includes a placeholder for the Document URL. I know you mentioned you are searching for a free way to achieve this but in case this changes you can read more about the available placeholders that you can include in your exports with our app [here](https://help.k15t.com/scroll-pdf-exporter/latest/server/scroll-placeholders-132330937.html). Should this be of interest, you can also evaluate the app for free from the [Atlassian Marketplace](https://marketplace.atlassian.com/apps/7019/scroll-pdf-exporter-for-confluence?hosting=cloud&tab=overview). Hope this information helps, Thomas (K15t)


author: Maltavius
body: Yes

<https://confluence.atlassian.com/doc/customize-exports-to-pdf-190480945.html>

comments: author: ddimick
body: This is not quite what I am looking for as it does not allow for the URL.

The page numbers and customization in that article do work for what they talk about, but it does not utilize a dynamic url situation. There are other things that I could do to include this "url" on a page, but I would like it in the footer similar to what you can do in Word with the path to the document being put in the footer.


Tags: confluence-server

server