youngmon/atlassian-qna huggingface dataset:
On trying to load confluence page, I get the error as the connection was reset
Asked by Sanjay_L_B:

My system restarted and I tried to load the confluence URL which was working sometime ago.

Now I started the confluence service from /bin/ folder and even after that my confluence page fails to load. Please help understand the problem.

Thank you

Sanjay


Answers:
author: Diego
body: Hello there Sanjay!  
You could start by checking a few things in your instance:
> 1- Shutdown Confluence  
> - Make sure that the process is not running  
> - You can check that with ps -aux \| grep confluence in Linux and via the Process manager in Windows  
> 2- Check permissions for \<confluence-home\>  
> - The user running Confluence must have \*full read/write/execute permission on this folder  
> - You can use the following commands to set this. Keep in mind that the user confluence here is just a placeholder, you must use the user that exists in your system  
> - sudo chown -R confluence:confluence /path/to/\<confluence-home\>  
> - chmod -R u=rwx,g=rx,o=rx /path/to/\<confluence-home\>  
> 3- Check permissions for \<confluence-install\>  
> - The user running Confluence must have \*full read/write/execute permission on this folder  
> - You can use the following commands to set this. Keep in mind that the user confluence here is just a placeholder, you must use the user that exists in your system  
> - sudo chown -R confluence:confluence /path/to/\<confluence-install\>  
> - chmod -R u=rwx,g=rx,o=rx /path/to/\<confluence-install\>  
> 4- Start Confluence

Also, could you share with us a little bit more information about the error that you are facing? Would it be possible for you **post a screenshot** here? Be careful to **not disclose any sensitive information** about your instance in this screenshot.

comments: author: Sanjay_L_B
body: Hello Diego,

Thank you. I tried the steps you provided, the folders had root permissions and I however converted it to confluence user as suggested. I could not see the page loading even after these steps. Here is a screenshot of the UI . Please see as this used to work a few days back. It has not been up since the system was restarted. Let know. ![Capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/41349i3E17A1AAD0020C9C/image-size/large?v=v2&px=999 "Capture.JPG")
What's causing roadmap planner to not allow editing?
Asked by Paul Mulvey:

I searched the archive and found articles such as <https://community.atlassian.com/t5/Confluence-questions/Roadmap-planner-macro-broken/qaq-p/932914> but this doesn't solve the problem. I'm trying to edit the roadmap macro on a page, and when I go into page edit mode, then edit mode on the macro, the macro buttons (insert/cancel) are not on the screen. Also, clicking on an object doesn't show the edit options, so I cannot rename the bars, markers, etc. Anyone else experiencing this?


Answers:
author: Mandy Boyd
body: I am also having this issue so thank you for highlighting how I can edit the planner!

I also find that if you add something like a lane and when you click edit it doesn't work if you do something else like add a bar the edit for the lanes works and vice versa.

There are clearly some refresh issues with the editor.


author: Fadoua
body: [@Paul Mulvey](/t5/user/viewprofilepage/user-id/2052047)

Sorry that you are experiencing this issue. Since you are a Cloud user there isn't much you can do from your end. Please click [here](https://support.atlassian.com/contact/#/) then report the issue to Atlassian.

It could be a recent upgrade that triggered this unwanted behavior.

Best of luck!

comments: author: Paul Mulvey
body: Thanks - through the links I found another user having the same problem. <https://jira.atlassian.com/browse/CONFCLOUD-65229>. It looks as though once the roadmap planner loads, the user must refresh the browser. Following that, the roadmap planner loads correctly in edit mode.


author: Fadoua
body: Glad it is working for you!


Tags: cloud

confluence-cloud

roadmap
How can we restore backup from mysql database
Asked by Rakesh Kumar Srivastava:

I have sql file. I want to restore my data of confluence. How can we do that? When i import all tables and data from sql file, it gives error.


Answers:
author: Rafael Pinto Sperafico
body: Hi [@Rakesh Kumar Srivastava](/t5/user/viewprofilepage/user-id/2133868),

Thank you for your inquire.

It is important to notice that there is a dependency between database and filesystem, meaning that if you have created content on Confluence, creating a database dump may not be enough, resulting in data loss (because you no longer have data stored in \<confluence-home\> directory. Further information can be found in [Restoring Data from other Backups](https://confluence.atlassian.com/doc/restoring-data-from-other-backups-148627.html "Restoring Data from other Backups")

For reasons above mentioned, I would kindly suggest you on reviewing [Site Backup and Restore](https://confluence.atlassian.com/doc/site-backup-and-restore-163578.html "Site Backup and Restore") documentation for further information.

Regarding on the issue you are experiencing, would be possible for you to share the error you have mentioned - *When i import all tables and data from sql file, it gives error.*If you consider this as confidential information, then I would suggest you raising a Support Case with Atlassian Support so they can provide you with the assistance you need.

Kind regards,

Rafael


Tags: confluence-server

server
Is it possible to restrict the access to a page but see the reference by Excerpt link in other page?
Asked by Jose Antonio Gonzalez Trejo:

I restrict the access to certain pages, nevertheless I have Excerpt macro which reference to the restricted page as a macro content into other page.

I would like to see the content into Excerpt section even when the source page has been restricted.

Thank you


Answers:
author: Adri?n Plaza [DEISER]
body: Hi [@Jose Antonio Gonzalez Trejo](/t5/user/viewprofilepage/user-id/2483484),

<br />

You can find similar question [here](https://community.atlassian.com/t5/Confluence-questions/Excerpt-include-restricted-by-Permissions/qaq-p/778308), I hope this help,

Adri?n.


author: Nic Brough -Adaptavist-
body: No, because when you can't see a page, you can't see parts of it.

There are some apps on the marketplace that allow you to bypass your permissions and security, but I can't recommend them as they compromise the permissions.
SMTP Connection Timeout?
Asked by Vinay Gupta:

I am use WHM , all mail not send, all mail show error "Connection timed out", "retry time not reached for any host for 'gmail.com'"


Answers:
author: Nic Brough -Adaptavist-
body: That means what it says - the server is trying to reach the email server, and it's timing out. You'll need to read the full error message, and correct either the connection settings, or fix the network path from the server to email service.


Tags: email
How to find how many pages were added this year
Asked by Roi Haskel:

Hi,

I'm trying to figure out how many pages were added to my website ([BigCoreWiki](https://securewiki.ith.intel.com/display/BigCoreValidationMethodologies)) during the last year.

I found how to know how many pages I have in total, by using the Export option, but I'm not sure how to know if the page was created this year or not?

Thanks,

Roi.


Answers:
author: Ollie Guan
body: Hi [@Roi Haskel](/t5/user/viewprofilepage/user-id/2480847),

In the page query function, you can add a filter to query the page created this year.

![year.png](https://community.atlassian.com/t5/image/serverpage/image-id/41135iFA53E72932097257/image-size/large?v=v2&px=999 "year.png")

comments: author: Roi Haskel
body: Hi - thanks for replaying.

Do you know how do I get to the page shown in your screen shot ?

I'm a bit new to the confluence system, and I'm not very familiar of where everything can be found.

Thanks again,

Roi.


author: Ollie Guan
body: Hi [@Roi Haskel](/t5/user/viewprofilepage/user-id/2480847),

Here's an overview of Confluence search, and a few tips to help you find things more easily.

<https://confluence.atlassian.com/confcloud/search-724765412.html>
CodeBlock export to PDF problem
Asked by OIT PKRV:

Hello,

There is a problem when we try to export to pdf a page which contains a CodeBlock (any syntax) with cyrillic letters.

Cyrillic letters are not exported to pdf, and there are blank spaces instead. Export to Word document is performed correctly.

Is there any way to explicitly use another font for cyrrilic, which will be exported to pdf?

Thank you.


Answers:
author: Diego
body: Hello there!  
The situation we ran into is listed here, under these reports:

**[Confluence Cloud - CONFCLOUD-42748](https://jira.atlassian.com/browse/CONFCLOUD-42748)**

**[Confluence Server - CONFSERVER-42748](https://jira.atlassian.com/browse/CONFSERVER-42748)**

The workaround currently given there is to **remove the Cyrillic code from the code block** , insert it into a **normal paragraph** and then**export to PDF** . A good course of action would be to vote and watch this report.  
Voting will increase the issue visibility of this and watching will keep you up to date with anything posted there!


Tags: confluence-server

server
Table of Contents macro - how can I exclude a header *and all its subheaders* in the TOC?
Asked by Linus W:

I see how I can use regexs to exclude arbitrary lines, but I would like all subheadings to be excluded as well, if a parent header is excluded. However, I only want my Heading 1s to differ by name, while all sub-sections of each Heading 1 to use the same naming structure. So if I had something like:  

\* Phase 1 - master the kraken  
\* step 1  
\* step 2  
\* Phase 2 - deploy the kraken  
\* step 1  
\* step 2  
\* step 3  

and only wanted to show "Phase 1" items for now, is there a way to get the TOC Macro to also exclude "Phase 2" and everything below it, without having to rename all the sub-sections with a string unique to phase 2 so a regex can find them all?


Answers:
author: Bill Bailey
body: Not sure what your use case is (why you want to do this), but I cannot think of any way to do what you want to do with the ToC macro without adding some constant text to headings you don't want to appear.

The only other way I can think of is the wrap the ToC macro in a user macro, then apply CSS to hide what your don't want (nth child selectors). Or just create a custom user macro.


Tags: macro

table-of-contents
Delete a space takes too much time
Asked by Masato Naka:

I tried to delete a space, but it's been more than 10 hours, but still in progress, and time elapsed does not change. Has anyone had this problem? Or Does anybody know a solution?

Thank you

![Screen Shot 2018-12-25 at 8.27.48.png](/t5/image/serverpage/image-id/41121iD5AE5F04F39B713A/image-size/large?v=v2&px=999 "Screen Shot 2018-12-25 at 8.27.48.png")


Answers:
author: Vasiliy Zverev
body: Masato, hi!

We also faced the same trouble.

To speed up process we deleted pages with all child pages.

So, we delete not all space at once, but step by step.

Best regards.

comments: author: Nathaniel Miller
body: Even after more than doubling the RAM and CPU on my VM I am getting timeouts that are necessitating reboots. I will try removing some child pages first.


Tags: cloud

confluence-cloud
create a new child page using confluence rest api
Asked by Abhijit Thotas:

I have tried to create a child page with an ancestor page id using confluence rest api, in C#.

I have tried to post json data with auth header as well but still the response from the API is not authorized.

While with the same credentials, I am able to create a child page manually, so this definitely might not be authentication issue.

Any help would be highly appreciated.


Answers:
author: Mallmann
body: Hi, Abhijit.

Based on our documentation, the REST call to create a child page would be as the example below:

```
curl -u admin:admin -X POST -H 'Content-Type: application/json' -d '{"type":"page","title":"new page","ancestors":[{"id":456}], "space":{"key":"TST"},"body":{"storage":{"value":"<p>This is a new page</p>","representation":"storage"}}}'http://localhost:8080/confluence/rest/api/content/ | python -mjson.tool
```

\* <https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/>

Based on your description it seems that you're trying to create it through C#, so I believe it would be a good idea to try the mentioned rest call through your terminal or even through an external REST API client (like postman) and check if you are able to create this page before trying in your C# code.

If it works using an external client, please share your C# code with the API call so we can have a better idea of what you're trying there.  

Best,

Mallmann
How to add tahoma font to pdf export?
Asked by Shiva Kumar:

i tried adding tahoma font to pdf export by CSS and few other ways but it isn't working.

could anyone help me on this?


Answers:
author: Stephen Sifers
body: Hello Shiva,

Customizing a PDF export can really give your content a distinct and original feel. When editing the PDF export Stylesheet to change the font type, there is a simple CSS to apply:

```
body,p,li,td,table,tr,.bodytext,.stepfield
{ font-family: "Tahoma"; }
```

Using the above CSS stylesheet will transform your PDF export into a new font family. This was confirmed on Confluence Server 6.13.0.

Here is the before and after on the export:

* Before:
  * ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/41167i5097E8125FFD42BC/image-dimensions/582x344?v=v2 "image.png")
* After:
  * ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/41168i5FE10FC58C187F81/image-dimensions/588x344?v=v2 "image.png")

I hope this helps you to adjust the font family of your exported PDFs, please let us know if we can be of any more assistance.

Regards,  
Stephen Sifers

comments: author: Shiva Kumar
body: Hello [Stephen Sifers](https://community.atlassian.com/t5/user/viewprofilepage/user-id/2145523),

My organisation currently uses Confluence 6.4.1 server.

The CSS given is not working in this version.

Could you please help me to get Tahoma font for pdf export on Confluence 6.4.1 server?

Thank You!

Warm Regards,

*Shiva Kumar*


author: Stephen Sifers
body: Hello again Shiva,

For Confluence 6.4.1 there are only a few included fonts (Times New Roman, Helvetica or Courier). In order to bring in more fonts, you will need to reference the front file (ttf) within the stylesheet. Here is more about [Incorporating Other Fonts](https://confluence.atlassian.com/conf64/advanced-pdf-export-customizations-936510557.html#AdvancedPDFExportCustomizations-IncorporatingOtherFonts) for Confluence 6.4.
> By default, Confluence provides Times New Roman, Helvetica or Courier fonts for use in PDF exports. You can use your own fonts for PDF exports by declaring them in a @font-face CSS rule in your PDF Stylesheet.
>
> The following CSS rule example shows how to declare the Consolas font and apply it to some elements for your PDF export:
>
> **CSS - PDF STYLESHEET**
>
> ```
> @font-face { src: url(file:///usr/share/fonts/Consolas.ttf); -fs-pdf-font-embed: embed; } .code pre, .preformatted pre, tt, kbd, code, samp { font-family: Consolas, monospace; font-size: 9pt; }
> ```
>
> The font path specified in the CSS must be the path to the font on the Confluence server.

Confluence 6.13 does allow you to reference a font type without needing the font file.

I hope this helps clarify the functionality of adding a PDF export stylesheet for Confluence 6.4.

Regards,  
Stephen Sifers
Is there a way to Bulk delete confluence comments in confluence?
Asked by Sid:

Is there a way to bulk delete comments from the page? but need to be able to add comments after delete. Any plugins or macros available?


Answers:
author: Priyanka Lavania
body: Hi There,

You can use built in scripts from script runner plugin to bulk delete comments from one or more pages, you can also specify comment age or delete all. Hope this helps.

See this for more details: - <https://scriptrunner.adaptavist.com/5.0.5/confluence/builtin-scripts.html>

Regards,

Priyanka Lavania

comments: author: Priyanka Lavania
body: Hi There,

Thanks for voting, if it helped, you can also accept it as an answer :)

Regards,

Priyanka


author: Diego
body: Hello there!  
We have a third-party tool that is capable of deleting all comments on a given page:

**[Delete All Comments - Atlassian Marketplace](https://marketplace.atlassian.com/apps/1212938/delete-all-comments?hosting=server&tab=overview)**

Further, we also have other threads here that deal with the same problem:

**[How do I delete many or all comments on a Confluence page](https://community.atlassian.com/t5/Confluence-questions/How-do-I-delete-many-or-all-Comments-on-a-Confluence-Page/qaq-p/329123)**

**[Bulk delete Comments](https://community.atlassian.com/t5/Jira-questions/Bulk-Delete-Comments/qaq-p/368877)**

Let us know if this helps you out!


Tags: confluence-server

server
installing confluence with 504 gateway error
Asked by lali bird:

install confluence 6.13 on Centos 7.5

database test connection is ok

an error occurred when database setup, redirect to a 504 page write "504 Gateway Timeout nghttpx"

atlassign-confluence.log details as following:

2018-12-24 15:39:22,799 INFO \[http-nio-8090-exec-7\] \[atlassian.plugin.manager.DefaultPluginManager\] earlyStartup Plugin system earlyStartup begun  
2018-12-24 15:39:23,752 WARN \[http-nio-8090-exec-7\] \[org.twdata.pkgscanner.ExportPackageListBuilder\] logDuplicateWarning Package Scanner found duplicates for package 'javax.annotation' with different versions. Files: jsr305-3.0.1.jar and javax.annotation-api-1.3.2.jar  
'/home/work/atlassian/confluence/confluence/WEB-INF/lib/jsr305-3.0.1.jar'  
'/home/work/atlassian/confluence/confluence/WEB-INF/lib/javax.annotation-api-1.3.2.jar'  
-- referer: http://127.0.0.1:8090/setup/setupdbtype-start.action \| url: /setup/setupdbtype.action \| traceId: 00baf26f9ff42a79 \| userName: anonymous \| action: setupdbtype  
2018-12-24 15:39:25,146 WARN \[FelixStartLevel\] \[extender.internal.support.ExtenderConfiguration\] addDefaultDependencyFactories Gemini Blueprint extensions bundle not present, annotation processing disabled.  
-- referer: http://127.0.0.1:8090/setup/setupdbtype-start.action \| url: /setup/setupdbtype.action \| traceId: 00baf26f9ff42a79 \| userName: anonymous \| action: setupdbtype

2018-12-24 15:39:50,301 WARN \[ThreadPoolAsyncTaskExecutor::Thread 33\] \[spring.scanner.util.ProductFilterUtil\] detectProduct Couldn't detect product, will use ProductFilter.ALL  
-- referer: <http://127.0.0.1:8090/setup/setupdbtype-start.action> \| url: /setup/setupdbtype.action \| traceId: 00baf26f9ff42a79 \| userName: anonymous \| action: setupdbtype  
**2018-12-24 15:39:58,637 ERROR \[http-nio-8090-exec-5\] \[atlassian.confluence.util.AbstractBootstrapHotSwappingFilter\] doFilter Could not get swap target filter**   
-- referer: http://127.0.0.1:8090/setup/setupdbtype.action \| url: /favicon.ico \| traceId: 00f9c72afc3bcc0a  
2018-12-24 15:40:12,368 INFO \[http-nio-8090-exec-7\] \[atlassian.plugin.manager.DefaultPluginManager\] logTime Plugin system earlyStartup ended  
2018-12-24 15:40:31,241 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


Answers:
author: Itamar Ben Sinai
body: Same here.

Added useSSL=false to DB URL

DB is MySQL 5.7

comments: author: Shannon S
body: Itamar,

We'll need to know your Confluence version. Is it the same as the original poster's version of 6.13?

Is this a fresh install?

Please show us exactly what changes you made to the configuration files as they appear currently.

Shannon


author: Shannon S
body: Hello,

This is a brand-new installation, correct? Can you confirm with us your database version?

Have you amended your configuration XML files and if so, what changes did you make?

Regards,

Shannon
How to add an excel file so I can edit (Confluence Cloud)
Asked by Lucia:

I have been tasked with uploading lot of file into our confluence cloud on one page... but then can not edit the ms office files - or I can edit - but can only save to another location.

Help. thank you :)


Answers:
author: Stephen Sifers
body: Hello Lucia,

There are a few things to be aware of with the Excel Macro and Confluence Cloud;
> A note on the Excel macro
>
> We've received feedback that the Excel macro doesn't meet expectations in some cases. There are some known issues with it right now, which are detailed below. So why are we proceeding with the rollout? We're making infrastructure changes for the overall benefit of Confluence users, but they mean that we can't keep the old Office and PDF macros working much longer. We need to proceed with the rollout so we can move forward with the infrastructure changes that have a much wider impact than this macro.
>
> In saying that, we, of course, genuinely care about every user's experience with Confluence, and always want it to be the best. If you're having real trouble with the new file viewer in the Excel macro, comment on [this issue](https://jira.atlassian.com/browse/CONFCLOUD-54876) and let us know. There unfortunately isn't a short-term fix, as we do need to move off the old Excel macro, but we'll keep working on a better solution for the Excel macro.

As far as editing Excel document within Confluence, you will need to use the native Excel application to edit the files stored within Confluence. You will not be able to edit them directly within the Confluence UI.

Additional details:
> **Edit files with your desktop apps**
>
> Use the apps on your computer to edit files stored in Confluence. Click on the file, then hit **Edit with** at the top and download the Atlassian Companion app. After that, you can edit and automatically re-upload edited files to Confluence. Check out [Edit files](https://confluence.atlassian.com/confcloud/edit-files-724765124.html) for all the details.

Source Document: [Office Excel Macro](https://confluence.atlassian.com/confcloud/office-excel-macro-724765234.html)

I hope this clarifies the functionality of the Office Excel Macro along with how to edit documents stored within Confluence.

Regards,  
Stephen Sifers

comments: author: Lucia
body: Stephen

Thank you so much this is really helpful.

I have downloaded the companion app and that worked well on my personal computer.

I'll be in the office Friday and can test it on my company secured computer to see if I'm allowed to download. I don't know if this download is impacted by company security if so I'll holler back on the site.

Thank you very much and Happy holidays.

Lucia


author: Ian Mitchell
body: Are we any closer to a working solution on this?


Tags: confluence-cloud