youngmon/atlassian-qna huggingface dataset:
Steps to Upgrade the Confluence Version from 6.4.1 to Latest Stable Confluence
Asked by Raj Prajapati:

Dear Team,

We need to upgrade our existing confluence version 6.4.1 setup which we hosted in our local environment as we are installing the new version but not able to restore our existing data which we have MySQL dump as well as confluence backup file.

Hence need solutions to upgrade the existing system on our local environment without any loss of data.

Please Note - We are windows 10 to use confluence.

Thanks

Raj Prajapati

Mob + 91 9892668573


Answers:
author: Andrew
body: Hi [@Raj Prajapati](/t5/user/viewprofilepage/user-id/3063327) ,

I recommend You make fresh install conf 6.4.1 to new server. Then clone attachment and database of the current instance. Start conf make smoke test. After that You can upgrade cloned instance to latest version. If new instance URL not differ from old it should work fine.

<https://confluence.atlassian.com/doc/system-requirements-126517514.html>

<https://confluence.atlassian.com/doc/upgrading-confluence-4578.html>

<https://confluence.atlassian.com/doc/confluence-security-advisory-2019-04-17-968660855.html?_ga=2.254762440.1119616481.1555313086-115832795.1554099184>


Tags: confluence-server

server
Add lables to all pages resulting from a search in Confluecne
Asked by Alberto Tarantino:

Hello,

is there a way to add labels in bulk to a set of pages returned from a search in confluence?

Thank you

Alberto


Answers:
author: Tarun Sapra
body: Hello [@Alberto Tarantino](/t5/user/viewprofilepage/user-id/1166096)

It's not possible out of the box, please see possible duplicate here

<https://community.atlassian.com/t5/Confluence-questions/Add-a-label-to-multiple-pages-how/qaq-p/112644>

comments: author: Alberto Tarantino
body: I know, we are currently testing the Label Manager app but still it works only on actual spaces and pages not on search results.

We would like to add about 5000 attachments to our confluence server and labeling them one by one it's not an option...


Tags: confluence-server

label

search

server
where can I find 'backup and Restore' of confluence on cloud?
Asked by xzhu:

I found the follow step to restore site:

<https://confluence.atlassian.com/conf69/restoring-a-site-950285457.html>

But I can't find the 'backup and Restore' button on cloud.


Answers:
author: Ollie Guan
body: Hi [@xzhu](/t5/user/viewprofilepage/user-id/3056571) ,

The backup manager lets you create a backup of all your Confluence Cloud data that you can then import into other Confluence sites.

[Create a site backup](https://confluence.atlassian.com/confcloud/create-a-site-backup-724765526.html)

![??.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/52028i7D2A8ABC90BEF6EE/image-dimensions/672x331?v=v2 "??.JPG")

comments: author: xzhu
body: Hi Ollie Guan,

Thanks for the reply.But in the 'Backup Manager',I can't see the **Choose File** function. In this page of backup manager, I can find 'Site import' link to 'import a confluence site' ,and everything end here with no import site function.

![QQ20190419-222924@2x.png](https://community.atlassian.com/t5/image/serverpage/image-id/52088i7B2940CD41AE291F/image-size/large?v=v2&px=999 "QQ20190419-222924@2x.png")The context said that import confluence should use 'cloud migration assistant for confluence',but it is a add-on used for living confluence server.If I only have a backup zip package,how can I import a full site to the confluenct cloud?


author: xzhu
body: BY checking the documents I found site backup can't restore environment include jira and confluence.

The problem is described as follows:

1. The existing backup file is a full site automatic backup, including attachments

2. The original site has been unable to start, cannot use cloud migration assistant for confluence, and cannot directly perform space-based backup.

3. The current cloud to be restored has both Jira and confluence, and does not support confluence site level recovery.

4. Can I restore to the Confluence cloud through a full backup of the confluence site?


author: Ollie Guan
body: Hi [@xzhu](/t5/user/viewprofilepage/user-id/3056571) ,

I don't have two environments, cloud and server, to do this test. You can refer to

[Plan your Confluence Server to Cloud migration](https://confluence.atlassian.com/confcloud/plan-your-confluence-server-to-cloud-migration-724765529.html)

Hope that he will help you.

BTW:

If you are a partner from China , pls add me Wechat (id: guanqun1982), the Chinese partner has a WeChat group of more than 500 people, we have also set up AUG and user conferences recently, expect more Chinese companions to join!


author: xzhu
body: Hi Ollie Guan,

I had solve it by add a middle step.first I run a confluence only environment,then import full site into this confluence,and export every space on it.Finally, import each space to cloud.

Thank you.


Tags: cloud

confluence-cloud
Page versioning in Confluence?
Asked by Alan Oehler:

Hi all,

I just spent about fifteen minutes fruitlessly searching the Confluence docs for something about how one reverts to a previous version... is it really possible that there is no page versioning?


Answers:
author: Dave Theodore [Coyote Creek Consulting]
body: In Atlassian nomenclature, this is called "page history." Yes, it has this built in.

[Here's the doc](https://confluence.atlassian.com/doc/page-history-and-page-comparison-views-139379.html) on how things work. I hope that helps!

comments: author: Alan Oehler
body: Ah yes, thanks! I was looking for it within the context of the page editor, like the way Zendesk presents it if you are familiar with that.


Tags: confluence-server

page

server
Fix for "cannot add user, all the user directories are read-only" issue.
Asked by Tim Fluhr:

Hi.

I'm trying to configure my confluence instance to my JIRA server which has many user accounts. The goal is to have users be able to login to confluence with the accounts already in JIRA.

I can't get this configured properly because the configuration form requires proxy information. I have no proxy server configured and am not using a proxy. Can someone please help point me in the correct direction?

I've attached a screenshot of my config screen. The proxy username field keeps populating by itself and I can't remove it and save. ![jria.PNG](/t5/image/serverpage/image-id/52015i504A66F1B8F542AC/image-size/large?v=v2&px=999 "jria.PNG")


Answers:
author: Venugopala Naidu
body: Hi [@Tim Fluhr](/t5/user/viewprofilepage/user-id/1178094)

You can allow other applications to connect to your JIRA Server for management of users and groups, and for authentication (verification of a user's login).

Please go through the below documentation, I hope you will understand.

<https://confluence.atlassian.com/doc/connecting-to-crowd-or-jira-for-user-management-229838465.html#ConnectingtoCrowdorJiraforUserManagement-jira>

<https://confluence.atlassian.com/adminjiraserver073/allowing-connections-to-jira-for-user-management-861253193.html>


Tags: confluence-server

server
Unable to use macros and upgrade apps
Asked by George alpizar:

I have updated Confluence and have new license keys for apps; however, I cannot upgrade these apps.

Also, I cannot:

Insert macros into a document

Insert images and files into a document

Cannot move or delete documents

Users cannot click and enlarge already-embedded images and files


Answers:
author: Nic Brough -Adaptavist-
body: When you say "cannot \<something\>", could you explain what happens? Are you not offered the option of doing something? Are you offered it, try and it fails? What are the error messages?

comments: author: George alpizar
body: Hi Nic!

For example, if I attempt to add a 'note' macro, I receive the following error message: You are not permitted to perform this operation.

Additionally, when I attempt to upgrade apps with current licenses, I receive the following error message: An unexpected error occurred. Refer to the logs for more information.

My initial thought is that since I cannot upgrade the universal plugin manager for Jira, consequently, every thing else is breaking.

(And just to clarify, I am an admin for this Confluence instance, so permissions should not be the issue here.)


author: Nic Brough -Adaptavist-
body: This sounds like something is broken on the server side. The "not permitted" should not happen for macros (and shouldn't be related to permissions either), and "unexpected error" means something bad has gone wrong.

I'm afraid we need to see what the log file is saying when these things are happening. \<confluence home\>/logs/atlassian-confluence.log is the main one I'd expect useful errors to go into.


author: George alpizar
body: Hi Nic,

Here's the log file for the upgrade:

    2019-04-22 16:58:37,378 WARN [http-nio-8080-exec-13] [atlassian.upm.pac.MarketplaceReviewsAndNotificationsServiceImpl] getReviewInternal Marketplace returned error 401 when getting review at https://marketplace.atlassian.com/rest/2/addons/org.swift.confluence.cache/reviews/mine -- referer: https://docs.armor.com/plugins/servlet/upm?source=side_nav_manage_addons | url: /rest/plugins/1.0/available/org.swift.confluence.cache-key/review | traceId: XXXXXXXX | userName: XXXXXXX


author: George alpizar
body: And we're also seeing a lot of these errors:

    2019-04-22 17:06:36,080 ERROR [http-nio-8080-exec-24] [plugin.redirection.license.LicensedConfluenceFilter] doFilter License Certificate has expired! -- url: / | traceId: XXXXXXXX | userName: XXXXX | action: index


Tags: confluence-server

server
Confluence @mention lists users in disabled user directory
Asked by Trudy Claspill:

Using Confluence Data Center v6.1.3 with just one node, we have recently disabled a User Directory.

When somebody uses the @mention functionality or tries to add users to Space Permissions or Page Restrictions, suggested matches from that disabled user directory are still listed.

Why, and how do we make that stop?


Answers:
author: Diego
body: Hello there!

Trudy, as I understand you are still able to mention users who are no longer part of Confluence. Is that correct?

If this is the case, the issue could be related to browser cache!

With this in mind, you can try this:
> 1. Open your browser in incognito mode
> 2. Login as your Confluence users
> 3. Create a new page
> 4. Try to mention a removed user
> 5. Check if the user comes up

If the user does not show up, we can try to clear your browser cache and then try again, with a normal browser window.

Here is our article about this situation:

**[Disabled Users Can Be Mentioned In Confluence](https://confluence.atlassian.com/confkb/disabled-users-can-be-mentioned-in-confluence-909770865.html)**

Looking forward to your reply Trudy!

comments: author: Trudy Claspill
body: Hello Diego,

Thank you for your reply.

That did not resolve the issue. I tried an Incognito Chrome window and a Firefox window where a I cleared my cache. In both cases the users in the disabled directory are still showing in the @mention suggestions.

I currently have a ticket open with Atlassian Support concerning Confluence performance issues, and they have suggested rebuilding the index from scratch. I'm hoping that will resolve the issue.


Tags: confluence-server

server
Confluence WIKI 7.x release date
Asked by Kanwar Singh:

Does anyone know the estimated release date of Confluence server 7.x?

Thanks


Answers:
author: Daniel Eads
body: Hi Kanwar,

Confluence 7.0 is currently in Early Access. We don't publish release dates for our Server products, but you can see the history of our release cadence for Early Access versions on [the page that has info about the Early Access Program](https://confluence.atlassian.com/doc/confluence-development-releases-8163.html). I hope that helps!

Cheers,  
Daniel \| Atlassian Support


Tags: confluence-server

server
Moving from Postgres 9.3 to 9.4
Asked by Dovid Bender:

Hi,

<br />

A client is running an older version of Confluence, Jira, crowd etc. with Postgres on RDS 9.3. Because of the CVE's in Confluence we are looking to upgrade. As per <https://confluence.atlassian.com/doc/supported-platforms-207488198.html> the oldest version supported is Postgres 9.3. I am reviewing amazons docs on upgrading major versions <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.PostgreSQL.html#USER_UpgradeDBInstance.PostgreSQL.MajorVersion.Process>

Some questions:

1. Do Atlassian products have any custom parameter groups?
2. Has anyone simply tried using a snapshot and selecting a newer version of Postgres?
3. Any other thoughts on moving between these versions?


Answers:
author: Stephen Sifers
body: Hello Dovid,

Upgrading Postgres to a new version can always seem daunting and concerning. Outside of the default user used to create and own the database, there is generally no other additional application configuration that is done. When moving a database, it should be as simple the following:

1. Stop Confluence.
2. Take a backup of the PostgreSQL database.
3. Restore the backup of the database to the new PostgreSQL instance.
4. Adjust the Confluence configurations to point to the new instance, also ensure the drivers are correct.
5. Start Confluence up

Always do these types of tests within a staging or developer instance to avoid disruption within Production.

The good news on this is there is a rather detailed KB which covers database migration. This KB covers most of the items you need for a default application install. You may find this article at [Migrating to Another Database](https://confluence.atlassian.com/doc/migrating-to-another-database-148867.html).

If you do find yourself running into an issue while testing this migration, please do reach back out to use with any errors or logs you're able to find.

I hope this proves helpful and you're able to migrate to a new Postgre version soon!

Regards,  
Stephen Sifers


Tags: crowd

jira
recent security vulnerability
Asked by Philippe C?t?:

Concerning <https://confluence.atlassian.com/doc/confluence-security-advisory-2019-04-17-968660855.html> security problem, does anyone know if the same problem exists on any platform (specifically on Linux)?

Thanks,

Ph


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

The advisory is not platform-specific. No matter what operating system Confluence is installed on, the path traversal vulnerability in the downloadallattachments resource exists as described in the advisory.

Our advice for ***all users*** running on affected versions of Confluence (no matter the operating system) is to upgrade as described in the advisory. Thanks for double-checking!

Cheers,  
Daniel


Tags: atl-cve3398
Get macro output via REST API
Asked by Brad Glinkerman:

I have a confluence page that has a macro that runs an SQL query. The query outputs a table with the results when the page is rendered in a browser.

However, if I fetch: .../confluence/rest/api/content/128437000?expand=body.storage

It just returns the macro body (e.g., the SQL)--the macro is not executed.

How can I execute a macro via the API and get the macro output? Also, is there a way to get the output in json or csv instead of an HTML table?

Thanks in advance!


Answers:
author: Markus Huber
body: Hello,

same question, i use pocketquery and whant to get the result over rest.

i already tried :

#### `/rest/content/{id}/history/{version}/macro/id/{macroId}` {#toc-hId--626469870}

get the macroid over :  
/rest/api/content/1481615325?expand=body.storage

get version as field number under lastupdated:  
rest/api/content/1481615325/history  

In my case i get a answer but the result is not in!

comments: author: Sven Schatter _Lively Apps_
body: While I wouldn't consider this an officially supported feature, you could probably use the "load dynamically" REST endpoint of PocketQuery to execute a Query. This however will also only give you the HTML.

We'd love to hear what your exact use case is! Could you maybe [raise a ticket at our PocketQuery ServiceDesk](https://go.livelyapps.com/support?utm_source=atlcom&ref=atlcom) and tell us more about it? (e.g. in what format would you expect the response, what users would need to use this endpoint, i.e. would it be okay if this was restricted to Confluence/PocketQuery admins, etc.)

Cheers,  
Sven


author: Markus Huber
body: Ok thanks, i will rise a ticket


author: FURNARI SAMUELE
body: Hi, I have a similar issue but in my case the macro to Expand is a *Page property summary* . I resolved invoking the *content* endpoint and asking to it to expands the *body.export_view.*

eg: .../wiki/rest/api/content/138772481?status=draft\&expand=body.export_view

It returns an html with the result of executed macro.

I hope this can help.


author: Dirk Baumbach
body: I don't have a solution, but i am also interested if there is any, because i have the same problem.


Tags: api

confluence-server

macro

rest

server
Using snapshop of confluence instance from postgres DB that is newer
Asked by Dovid Bender:

Hi,

A client has an instance that had an issue and they want to go back a few days. We are using AWS and have daily snapshots of the system. We are using Postgres on AWS RDS as well. Say the last working snapshot was taken at 2019-04-15 at 01:00 and users made changes, updates etc. on 219-04-15 at 09:00 (created pages, uploaded files etc.) will that work or do I need to use a database snapshot form before the snapshot of the system? I know that the pages are stored in Postgres. I am just wondering if there any files or anything else that are stored on the machine its self that can make an issue?

TIA.


Answers:
author: Stephen Sifers
body: Hello Dovid,

Having snapshots and database backups are always a great practice, very glad to hear you have them in place for Confluence. When restoring Confluence to a previous point in time there are a few things to consider. First, you want to ensure the database backups you have are good a valid before you restore the file system itself. Secondly, you want to ensure the snapshot you have to revert are aligned with your database backups (If you Database application is on another host from your Confluence server).

When restoring Confluence you need to ensure your Application Directory and Database are in alignment. If you restore a file system snapshot that is out of alignment from the database you run the risk of losing file attachments within the system to include versions.

In theory, you should be able to roll your Confluence back to a snapshot version and restore the database and all should be well. In practice, you should always test these types of abrupt changes within a staging or developer instance to avoid data loss or interruption to production. With every server version of the Atlassian products, you are provided with a developer license to use for staging or development. More about this may be found at [Create a staging environment for upgrading Confluence](https://confluence.atlassian.com/doc/create-a-staging-environment-for-upgrading-confluence-866094180.html).

More along this is the KB about Confluence backups and restoring. While it is not the most exciting read, it is suggested to review this when implementing and testing your recovery process (such as you're doing now). More about this may be found at [Site Backup and Restore](https://confluence.atlassian.com/doc/site-backup-and-restore-163578.html).

I hope this proves helpful and you're able to test and restore your Confluence instance without issue.

Regards,  
Stephen Sifers

comments: author: Dovid Bender
body: [@Stephen Sifers](/t5/user/viewprofilepage/user-id/207310) So in theory the only thing I risk if use a snapshot that is from BEFORE the DB snapshot is files uploaded?


author: Stephen Sifers
body: Hello, again Dovid,

You're correct in that file attachments to pages may be at risk if the database backup is not in sync with the snapshot completion time.

You should also ensure you test this before "testing in production" to avoid any actual data loss or downtime.

Regards,  
Stephen Sifers
Automatically Update Existing Pages
Asked by Adam Kurland:

Hello- I'm using the "Page Properties" and "Page Properties Report" macro summarize the status's of certain products. The table has a separate column for each product. But the overall list of products may expand. Is there a macro I can use to automatically the table in each page after I've created them? I'm using templates to create pages, but can start over.


Answers:
author: Tyler Brown
body: Hey Adam,

What information are you looking to share about each product?

Can you share a screenshot of how our information is laid out?

Thanks,

Tyler

comments: author: Adam Kurland
body: Hi- this is company internal information, but image a table where the header row has columns like "Product 1, Product 2, etc", and the second row has the RAG status. The challenge is that may have to add products. Does that make sense?


author: Tyler Brown
body: Mo worries, I was mainly curious about how you are adding the information to the pages and the structure.

Can I assume that you have a page for each RAG status and those pages have information about each of the products?


author: Adam Kurland
body: Sort of- there's a page for each account, and each page will have a table listing the RAG status, at that account, for each product. But I can start from the beginning and recreate the pages


author: Tyler Brown
body: The best way to structure it would be to have each Product as it's own row, rather than a column.

That way when you add a new product it will have all the same information as the others and you won't have to go through an exercise to edit all of your previous pages to add in a new column to all of your existing tables.

Alternatively you could look at layering in Excerpt macros into your templates. That way if you need to add information into your tables you can edit the Excerpt and all of your tables will be updated


Tags: cloud

confluence-cloud
Changing Confluence Base URL issue
Asked by Steve Watts:

I'm trying to change the base URL on confluence but from my ip address to the domain name of the server. After making the base URL change and restarting confluence the server the webpage gives a HTTP STATUS 404 error. Is there something else I'm missing?


Answers:
author: Thomas Bowskill
body: [@Steve Watts](/t5/user/viewprofilepage/user-id/2930450) not sure if this helps, but we've just changed base URL and the stumbling block we had was in the server.xml file, where our context path was incorrect.

[This guide by Atlassian](https://confluence.atlassian.com/doc/configuring-the-server-base-url-148592.html) gives details on where the file lives / how to change:

FYI worth noting that some older Confluence versions get issues with links on pages becoming self-recurring after base URL change (we're on 6.2.3, and had this). Details an workaround are on the [JIRA for the bug](https://jira.atlassian.com/browse/CONFSERVER-55267)

comments: author: Steve Watts
body: Thanks! I'll look into this.


author: Davin Studer
body: Is your Confluence server behind a reverse proxy at all?

comments: author: Steve Watts
body: It's not behind a proxy.