youngmon/atlassian-qna huggingface dataset:
Why do I lose HTML macro formatting when exporting to PDF?
Asked by Matt Treder:

Within a Confluence page, we have sections coded in HTML using the {html} macro. However, when we use the Scroll Wiki tool to export the pages to PDF, most of the html formatting is gone. Bolded text remains as such, but all the line breaks and spaces are not recognized, and that's the same for lists that contain sublists - everything looks to just run together.

Any idea why the scroll pdf tool is only recognizing some of the HTML in the macro but not all of it? Is there any simple fix to remedy this problem?


Answers:
author: Matt Treder
body: The line break code that was being used \</br\> was being recognized as HTML code, but the scroll tool did not accept it. Switching the line break to \<br/\>, which I believe is the more correct tag, fixed the issue and the scroll wiki tool now keeps the formatting. Simple solution.

Thanks for the input!


author: Matt Treder
body: Thanks for the input! It appears that the issue was the HTML line break code that was being used \</br\> worked with the HTML, but the scroll didn't recognize that code. Changing the tag to \<br/\> (which I believe is the correct HTML line break tag) fixed the issue.


author: Selcuk Savas
body: Hi Matt,

You may need to create a CSS for the pdf and include formatting elements in it.

I suggest to use classes and ids for them.

I hope this helps.

Cheers,

Selcuk


author: Bruna Griebeler
body: Hi Matt

I suggest you to check if there's any PDF stylesheet set that can be overriden your HTML code to cause this.

To do that, check this on Confluence Admin \> PDF stylesheet.

If that's not the case, check out your Confluence logs for any warning or errors regarding the scroll wiki tool.

Cheers!


Tags: confluence-cloud

cloud

export

html

html-macro

pdf
Importing Pages from Disk "The directory specified does not exist, or cannot be accessed"
Asked by wavey davey:

Trying to import plain HTML file.

I am following all instructions and all conditions have been met as far as I can tell as per Atlassian page:

<https://confluence.atlassian.com/display/DOC/Importing+Pages+from+Disk>

- it is a Global Space

- I am logged in as System Admin

However, it doesn't work. I get the message "The directory specified does not exist, or cannot be accessed"

I have tried putting file in different folders (network, on my local drive) and with and without trailing "\\"

What could possibly be missing or required to make this work?


Answers:
author: Ihor Tretyakov
body: In my case I export Confluence space into XML and want import this in anouther wiki.

Help this page - <https://confluence.atlassian.com/doc/restoring-a-space-152036.html>


author: LucasA
body: Hi Wavey,

Which value are you inserting in the "Import Directory" field? This field shall be filled with a server path. Confluence is unable to fetch files straight from your own computer (or a network location).

Best regards,  
Lucas Timm

comments: author: wavey davey
body: Aha, thanks, that is key information, though contrary to the instructions/info for this procedure:
> *"Confluence allows you to import text files from a disk or a directory on the Confluence server"*

The sentence seems to give the following understanding:
> *1. from a disk (eg a hard drive, presumed to be desktop computer)*
>
> *OR*
>
> *2. from a directory on Confluence server.*

But from your information, it appears it actually means:
> *1. from a disk (on Confluence server)*
>
> *OR*
>
> *2. from a directory on Confluence server.*

Though a directory is on a disk on a server so hard to understand why there is distinction made.

Can you indicate what type of url/path that Confluence is expecting?

Probably something like:
> *\\\\servername\\foldername\\*

Also, do I have to put file in to this?
> *\\\\servername\\foldername\\filename.txt*

Thanks

<br />


Tags: import
After upgrade to Confluence 4.3.3 attachments are missing
Asked by topher:

We completed the upgrade to 4.3.3 but most of our attachments and imbedded images are now appearing as broken links. I followed the instructions on the Atlassian support site: <https://confluence.atlassian.com/display/CONFKB/Resolve+Missing+Attachments+in+Confluence> and I have attached the output to this support request.

The attachments are still in subdirectories in the /opt/confluence-data/attachments/ver003 directory, but not in the subdirectories that the script seems to be looking for them. As an example - the report lists the following attachment as missing:

Missing attachment: /opt/confluence-data/attachments/ver003/179/156/12156929/28/170/32670278/33947681/1, filename: CREATE_INSERT_datawarehouse.rpt_JCPL_personIDs.sql, filetype: null

Looking in the /opt/confluence-data/attachments/ver003 directory I find the 33947681 directory:

root@arthur confluence-data # pwd

/opt/confluence-data

root@arthur confluence-data # find ./ -type d -name 33947681

./attachments/ver003/32670278/33947681

root@arthur confluence-data # cd ./attachments/ver003/32670278/33947681

root@arthur 33947681 # ls

1

I have verified that the path currently in place is the same path that works in the previous version of Confluence.

I need some help understanding how we can remap the attachments and images by either updating the metadata or creating the new subdirectories currently identified by the Find Missing Attachments Report.

<br />


Answers:
author: topher
body: I had to manually move all of the files from their original location to the location identified by the 'find lost attachments' script.

At a very high level - I took the output of the 'find lost attachments' jsp and put it in a file named 'wiki_missing_files.txt'

Then I stripped out the new filenames with: perl -pi -e 's/Missing attachment: (.\*), filename:.\*/$1/' wiki_missing_files.txt

Then I created all my directories and copied all the files from the old location (derived from the new location) to the new location:

for i in $(cat wiki_missing_files.txt); do NEWDIR=${i%/\*}; OLDPATH1=$(basename $NEWDIR); OLDPATH2=$(basename $(dirname $NEWDIR)); mkdir -p $NEWDIR; cp /opt/confluence-data/attachments/ver003/$OLDPATH2/$OLDPATH1/\* $NEWDIR; done

Following all of this I ran the 'find missing attachments' script again and had no missing files.


author: Harry Chan
body: Hi, have you tried to re-index Confluence[?](http://www.cloudshards.com) It was stated in your post[.](http://www.cloudshards.com/jirahosting.php) This might solve it. Give it a try first[.](http://www.cloudshards.com/confluencehosting.php)

comments: author: topher
body: I have rebuilt the indexes (and just did so again); the paths to the attachments are still inaccurate.


Tags: attachment
OnDemand Confluence ?Activity Stream? Macro generates an error instead of rendering
Asked by Guy L Winterbotham:

Front page of our Wiki contains the 'Activity Stream' Macro. It renders the following error:

Error rendering macro 'gadget' : The gadget at <https://icfironworks.atlassian.net/rest/gadgets/1.0/g/com.atlassian.streams.streams-jira-plugin:activitystream-gadget/gadgets/activitystream-gadget.xml> was not added to this Confluence instance yet.

OnDemand Page giving the error:

<https://icfironworks.atlassian.net/wiki/display/VAVRM/VA+VRM+Home>


Answers:
author: Bruno Rosa
body: Guy, I believe we have already solved this problem through our support website. Remember me? :)

Anyway, I just want to post here, so that everyone can know that this is a recently discovered BUG which is currently being tracked here:

- <https://jira.atlassian.com/browse/AOD-6250>

Fortunately, there is a workaround we can perform on our side to get the gadgets working again until this is fixed. So please, if you are reading this post and facing this problem, create a ticket at [support.atlassian.com](http://support.atlassian.com) informing the error message that Confluence is throwing. For example,
> Error rendering macro 'gadget' : The gadget at [https://YOURINSTANCE.atlassian.net/rest/gadgets/1.0/g/com.atlassian.streams.streams-jira-plugin:activitystream-gadget/gadgets/activitystream-gadget.xml](https://icfironworks.atlassian.net/rest/gadgets/1.0/g/com.atlassian.streams.streams-jira-plugin:activitystream-gadget/gadgets/activitystream-gadget.xml) was not added to this Confluence instance yet.

And we'll get it working again!

Hope it helps =\]

Cheers,

comments: author: Arthur Mack
body: We have the same issue, infact if I go and try and insert the activity macro in a new page the macro is missing and existing pages with this macro either error out or will not let you update the macro with new filters etc. I am guessing this is all related to the recent gadget issues in confluence cloud.


Tags: cloud

macro
Team Calendar will not enable after Upgrade to version 2.6.0
Asked by Melissa Dampier Gritz:

We are using Confluence v4.2.3 with The Universal Plugin Manager v2.7.8. and Team Calendar v 2.6.0

Yesterday one of our admins updated all the plugins that had updates available this included the Plugin Manager and the Team Calendar. Everything updated successfully (No Error messages) except for Team Calender will not enable for use now. When I try to enable it I get: This plugin could not be loaded by the plugins system. It has one or more errors which prevent it from being enabled.

When I check the logs I see this error message: 2012-12-06 09:24:17,057 ERROR http-8080-29 atlassian.plugin.manager.DefaultPluginManager enableConfiguredPluginModule There was an error loading the descriptor 'Upcoming events in mail summary' of plugin 'com.atlassian.confluence.extra.team-calendars'. Disabling.

-- url: /rest/plugins/1.0/com.atlassian.confluence.extra.team-calendars-key

If you could please give me some direction regarding this issue that would be great.

<br />


Answers:
author: Ryan Goodwin
body: Hi Melissa,

Not sure why this would be the case. We just released a new version of Team Calendars and the UPM. Can you have your admin upgrade these to the latest and let me know if that solves the problem? If possible, I would also suggest a restart of the application so you can clear the plugin caches:

\* Shutdown Confluence - ensure the process is stopped.

\* Delete the following directories in the confluence.home folder:

\*\* \<confluence-home\>/bundled-plugins

\*\* \<confluence-home\>/plugin-cache

\*\* \<confluence-home\>/plugins-osgi-cache

\*\* \<confluence-home\>/plugins-temp

\* Restart Confluence

The plugin caches will be rebuilt on startup.
Is it possible to change or remove the default avatar images for user profiles?
Asked by Sean King:

We have an enterprise instance of our confluence environment and we want to make sure there's consistancy with our users and their profile pictures. We'd prefer the default cartoon avatars weren't an option and instead we used corporate images. Is it possible to change these avatars? Or is it possible to remove them?


Answers:
author: LuizA
body: Hello Sean,

Actually you just can change the profile picture directly in the user profile by the user, please see below:

<https://confluence.atlassian.com/display/DOC/Choosing+a+Profile+Picture>

To change for all of the users as a default unfortunately is not possible and we also have an improvement request for this, please check here:

<https://jira.atlassian.com/browse/CONF-14368>

I hope this helps to clarify this topic, if you need more assistance please feel free to raise a support ticket at our [support.atlassian.com](http://support.atlassian.com) and we will be glad to help you.

Best Regards,

LJ.

comments: author: Sean King
body: Yeah I know user's can change their own pictures. I just wanted to limit the default options to either be something I specify specifically or 1 avatar option.


author: Sandro Herrmann [Communardo]
body: have you tried to replcae the default pictures in your confluence installation. They should be located in your confluence images directory.

Maybe this could be a solution

comments: author: Sean King
body: I've seen other people mention this option but I don't think our IT department would approve of us changing the installation files. Also, won't the next upgrade overwrite our changes anyways? Means we'd have to keep doing it over and over with each upgrade.


Tags: avatar

custom-field

profile

user
Confluence Dashboard - Welcome Message - How to include link to set up Personal Space?
Asked by Michele Grimm:

This is a question about customizing the Confluence Dashboard. I want to include a link in the "Get Started" Welcome Message: "Create Your Personal Space" so that users can click on this link to set up a Personal Space. (I know they can do this from their name \> Personal Space, but thought it would be a good item to include in the Welcome Message as well.)


Answers:
author: Daniel Borcherding
body: Hello Michele,

We have the following document on customizing login screens for Confluence

<https://confluence.atlassian.com/display/DOC/Customising+the+Login+Page>

As the article points out you will need to make changes to your login.vm with the set of instructions you wish to include. This file is a velocity template ad as such can run custom scripts and pieces of code. A primer on these changes are included below.

<https://developer.atlassian.com/display/CONFDEV/Velocity+Template+Overview>


Tags: personal-space
How to report currently active users?
Asked by Peter Binney:

Before taking down an application for upgrade or maintenance we like to check which (if any) users are currently active (ie: have explicitly accessed a page).

Is there some way to report this (ideally with an SQL query), other than grepping the access log using something like:

```
fgrep -v -e '"GET /rest/' localhost_access_log.2012-12-06.txt | tail
```


Answers:
author: Matthew J. Horn
body: We use a macro based on Andrew Frayling's work:

[https://answers.atlassian.com/questions/33385/macro-that-produces-a-list-of-users-last-login-date](/questions/33385/macro-that-produces-a-list-of-users-last-login-date)

You can tweak it to get users who have accessed pages within the last few minutes, for example.

Another thing we do is use Google Analytics, and check the real-time stats. That will tell you how many users are currently using the site (within the last 1 minute, I think), and what pages they are on.

hth,

matt

comments: author: Peter Binney
body: Many thanks Matthew, I'll try that when I get some time.

For now, since Atlassian confirm they have nothing (<https://support.atlassian.com/browse/CSP-92874>) I'm using a slightly more elaborate access log report:

```
awk '/ "GET \/rest/ { next }	# Ignore Ajax fetches{   userName = $3                    # $1: IP, $2: Hyphen usually   TS = $4                          # In form [dd/Mmm/yyyy:hh:mm:ss    $5: +0000] $6: $GET $7: /url/...   USERS[userName] = substr(TS, 2)  # Array key is name, value is timestamp}END {   for (userName in USERS)      print USERS[userName], userName}' `ls -t localhost_access_log.*.txt | sed -n 1,2p` | sort # Check last 2 days' logs
```


author: Peter Binney
body: Sorry - \`back-quoted\` command on last line above should have "\| tac" at end. ie:

```
' `ls -t localhost_access_log.*.txt | sed -n 1,2p | tac` | sort
```


author: AlysonA
body: Hi Peter,

This SQL query should be enough to retrieve all users that belong in a group which has global permissions:

```
SELECT DISTINCT u.lower_user_nameFROM cwd_user uJOIN cwd_membership m ON u.id = child_user_idJOIN cwd_group g ON m.parent_id = g.idJOIN spacepermissions sp ON g.group_name = sp.permgroupnameWHERE permtype='USECONFLUENCE' AND u.active = 'T';
```

Hope it helps!

comments: author: Peter Binney
body: Thanks Alyson - that's handy, but I want currently active users. eg: to see if I need to postpone down time and/or contact them when about to take Confluence down.


Tags: report

user-management
Webdav not working (Registry options set)
Asked by wcms:

I can't connect to Confluence using the native Windows WebDAV Connector. I have read the Troubleshooting section (<https://studio.plugins.atlassian.com/wiki/display/WBDV/WebDAV+Client+Setup#WebDAVClientSetup-WebDAVClientSetupMicrosoftWebFolders>) and set the 2 registry keys accordingly, but Windows still can't find the WebDAV share.

Is there anything more I could do? I have tried the WebDrive Client, shown in the supported software table, and it works. For testing purposes I'm trying to connect to localhost (which means I'm trying it on the server). I have read that, in order to use WebDAV as Windows Drive, I need to have non-secured connection (we're using http instead of http) and the listener port must be 80 (which is not the case). Due to this I'm trying to map web directory.

OS: Windows Server 2008 R2


Answers:
author: FernandoA
body: Hi!

I believe that this article from our Knowledge Base can help you with this issue:

* <https://confluence.atlassian.com/display/CONFKB/Unable+to+Authenticate+While+Mapping+A+WebDAV+Client+Network+Drive+in+Microsoft+Windows>

Let us know how it goes.

Cheers!

comments: author: wcms
body: Hi Fernando. I've set both of the registry keys already (and also restarted), but it still won't work. As I could see, mapping a regular network drive (like you'd do with **net use**) requires HTTPS off (it's turned on on our system) and listener port 80 (we're running on 8090). I guess I'll really have to use another client than the native windows client.


author: Norman Obry
body: Hi, did you succeed with webdav access?


Tags: webdav
I need to move my confluence to a new server. Is there a guide to doing that?
Asked by Robert Martin:

My server is going bad. Need to move Confluence to a new server. Is there a guide in doing that?


Answers:
author: Ryan Goodwin
body: Hi Robert,

The XML backup can be utilized but is often memory intensive. You will have more success with the XML backup/restore option if you allot more memory to the JVM. Instructions on altering the memory settings can be found here:

[https://confluence.atlassian.com/display/CONFKB/How+to+Fix+Out+of+Memory+Errors+by+Increasing+Available+Memory](https://confluence.atlassian.com/display/CONFKB/How+to+Fix+Out+of+Memory+Errors+by+Increasing+Available+Memory "Adjust memory settings")

If you run into any errors, please feel free to contact support by creating a support request at <http://support.atlassian.com>

Best Regards,

Ryan Goodwin

Confluence/Crowd Support

Atlassian - San Francisco

comments: author: Robert Martin
body: I followed the documentationand finally got it to work. So far so good. I appreciate all of the input.


author: PeterKoczan
body: Hi,

I believe this guide will help you: <https://confluence.atlassian.com/display/DOC/Migrating+Confluence+Between+Servers>

Cheers,

Peter

comments: author: Robert Martin
body: thanks, I'll give it a try.


author: Matthew J. Horn
body: Note, DONT do the XML backup. Follow the advice in most sections of that page and do a manual database backup/restore.


author: Robert Martin
body: I followed the documentation and finally got it to work. So far so good. I appreciate all of the input.
User creation when migrating from Confluence 2.8 to 3.5
Asked by St?phane Genin:

Hi,

I'm upgrading a Confluence instance from 2.8 to 3.5. The instance was configured to use LDAP in the osuser.xml file. Before migrated, we copied the osuser.xml file into WEB-INF classes, and we upgraded the instance.

The upgrade failed because the osuser.xml file was too complex. So we decided to remove it and continue the upgrade.

But now we have to recreate the users... We chose a delegated authentication LDAP because the groups are not configured in the LDAP.

I want to recreate all users in the relevant tables via SQL. In JIRA, there is a table called SEQUENCE_VALUE_ITEM, but I can't find the equivalent in Confluence. How can I set the relevant ids in the tables?

Thanks

St?phane


Answers:
author: Daniel Borcherding
body: Hello,

If your delegated connector has the "Copy User on Login" option selected all you will need to do to rebuild your user would be to have you users login. Having the default user group set to a permitted group is going to make sure that all of the users that are part of your LDAP will be able to access Confluence

Confluence 3.5.x has user information stored in the cwd_user and cwd_membership tables. It is going to be very difficult to try to write a query to insert users and their appropriate group memberships.

My best bet is that if you performed the upgrade without your osuser.xml that the cwd_\* tables will no longer contain the older user information. My suggestion is to have your users log in one at a time, or set up your connection to your LDAP as a full sync connector with Ready Only with local groups.

A full sync will actively propogate all of the users in your LDAP into Confluence. You should still be able to set up a default user group to allow everyone access. Ticking the Read Only with Local groups connector ensures that Confluence permissions can be administered directly from Confluence.
Can't get link to heading to work
Asked by Tom Symons:

I'm trying to link to a heading on another page, but the link only takes me to the top of the page.

I created the link in the Advanced tab of the link edit dialog. I typed the link as follows:

Page Title#DesiredHeading

Spaces in the heading, none in the title.

When I link to the page, the link displayed in the address bar of my browser looks like this:

.../Page+Title#PageTitle-DesiredHeading

This is exactly the same link displayed by the Table of Contents macro for the same heading.

But it doesn't link down into the page, it only links to the top of the page. I have to use the TOC link or page down to the desired link.

What am I missing ?

Thanks

Tom


Answers:
author: Tom Symons
body: Looks like this is a bug in Confluence. Fails in multiple browsers.

Workaround is to use explicit anchors instead.


author: PeterKoczan
body: Hi,

Please check this page on linking to anchors, this may help you to find out what should be done in a different way: <https://confluence.atlassian.com/display/DOC/Working+with+Anchors>

Cheers,

Peter

comments: author: Tom Symons
body: That's what I did. Under 'Linking to a Heading', it said to enter pagename#headingname, no spaces in headingname. So I did that. But it doesn't seem to work.

Looks like I could create an anchor, instead of using the heading. But it does say that using the heading will work. Not sure what I've done wrong there.


author: PeterKoczan
body: hi, I noticed that when using headings the page name is also appended in the heading. are you sure that the link generated with linking to the heading is *exactly* the same as the one in the TOC? can you copy here both of them separately?


author: PeterKoczan
body: Indeed it is weird. Since simply entering the two links in the browser should navigate you to the same place (since they are identical).

Can you try emptying browser cache or even better: try a completely different browser. Also be sure to try copy-paste the link from each source (TOC and link) and see how they act. I believe this might be a browser issue if the links are identical


author: Tom Symons
body: Here's the link from the address bar for the link I created:

.../RAPID+SOC+Environment#RAPIDSOCEnvironment-RAPIDEnvironmentSetup

And here's the link when I click on the TOC in the target page

.../RAPID+SOC+Environment#RAPIDSOCEnvironment-RAPIDEnvironmentSetup

The leading path is also identical.

When I created the link, I typed:

RAPID SOC Environment#RAPIDEnvironmentSetup

Seems kinda weird...


author: Tom Symons
body: I did try an explicit anchor. That seems to work OK.


author: Tom Symons
body: Well, doesn't work in Chrome or IE. Cleared cache and restarted browser. No effect.

But then I saved off the link created by the TOC, and when I selected that, it only went to the top of the page as well. So somehow the reference to the internal heading is only working when selected directly from the TOC.