youngmon/atlassian-qna huggingface dataset:
I cannot upload an image file to page.
Asked by Jonghyuck HONG:

When I tri to upload image file in "insert image" window, there comes error message like this:

"Could not upload the file to Confluence. The server may be unavailable."


Answers:
author: FernandoA
body: Hi,

This issue can be caused by the configured base URL that is not matching the URL you use to access Confluence via the browser. For example, you access Confluence via <http://atlassian.net:8090> while the configured base URL from Confluence Admin \> General Configuration is <http://atlassian.net/confluence>.

As a resolution please ensure that the configured base URL must match the URL you use to access Confluence via the browser. Update the base URL from Confluence Admin \> General Configuration.

Hope this helps.

Cheers!


author: David at David Simpson Apps
body: Try dragging the image onto the page -- see whther that works -- or gives the same error.

comments: author: Jonghyuck HONG
body: I found that there is something wrong with attachment storage.

In Admin page, file system shows "$action.getLocalAttachmentDirectory()"

How can I fix this.


author: Josh
body: Still doesn't work.

Apparently Jira continues to struggle to support basic features and instead crams their UI with less important clutter.

<https://community.atlassian.com/t5/Jira-questions/Image-paste-works-in-Edit-Issue-but-not-Create-Issue/qaq-p/212266>

<https://community.atlassian.com/t5/Jira-questions/Can-t-attach-image-when-creating-new-issue/qaq-p/655632>


author: TechTime Initiative Group
body: I just had the same issue at the customer with Confluence 5.1.3 while migrating from Hypersonic (the embedded database) to MySQL.

The process used was - export to XML, stop, rename the home directory, create new home directory, create an empty MySQL schema, start, go through the initial steps of the setup wizard, point to MySQL, import XML.

At first I exported into XML *without* including attachments hoping to just copy the directory over to the new home.

Imported just fine, but as reported above - in the Administration/Attachments Storage while saying "File System" the page shows "$action.getLocalAttachmentDirectory()" as the path. No "attachments" directory got created under the new home immediately after import.

Access to all attachments fails with NullPointerException even after copying the files over to the location where they should be. Re-indexing fails with NPEs.

Re-running the process, exporting with attachments and then importing - helped.

I wonder if there is some variable that didn't get set when export/import without attachments was performed.


author: David Olszewski
body: I am having same issue...if I drag a file in there it says null. I have full system and everyone permissions in the confluence folder.

I am not sure if there is something I need to do in mysql?

Thanks, Dave


author: hsuhailah
body: Most probably, you are encountering an issue as mentioned in this KB: <https://confluence.atlassian.com/display/CONFKB/Upload+attachment+function+does+not+work+in+Editing+mode>.
Trying to create a list and then including specific row information in several pages
Asked by rutinerad:

Hi,  

We have a space for all our hosts, with one page per host. On each host page there should be a list of all applications, to which we add items manually. Then I would like to be able to have a list for each application (in their own spaces) of all the hosts on which it is running. So for the host Host1 in host space, there would be a list with App1 and App2. For host Host2 there would be a list with App2 and App3. In the space App2 I would have a page "Hosts" which lists Host1 and Host2.  

The only manual work would be adding applications and labels to host (for testing/staging/production environments).  

What is the best way of doing this?  

Right now what I am doing is creating a list of links for each application on the host page with environment label and then using incoming-links on the application hosts page. But then I can't link to other hosts on the host page, without them appearing in the wrong host list. In short, it's a hack with flaws and I'm trying to find a better solution.


Answers:
author: rutinerad
body: Since I don't want to get any more "\[Atlassian Answers\] Open question reminder" spam emails even though I don't consider this question answered, I am accepting my own answer.


author: PeterKoczan
body: Hi Samuel,

Sorry for the late reply on this. I know the answer may be outdated for you, but for future reference, I believe the excerpt include macro should do the trick for you: <https://confluence.atlassian.com/display/DOC/Excerpt+Include+Macro>

Cheers,

Peter

comments: author: rutinerad
body: Thanks for the reply, but could you be more specific on how I would use that macro for this particular scenario?


Tags: macro
Can you transfer an OnDemand to a Download solution?
Asked by Lukas Jezler:

I am currently experimenting with Confluence (inetwork). In order to make it attractive to my co-workers, I uploaded quite some content already. We are now going to evaluate Confluence for our Company. It would be great not to loose the effort already invested in the OnDemand side. Is it possible to transfer content from OnDemand to Download?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Yes, you can raise a support case with Atlassian to get the backup XML from OnDemand. And use that to restore the data to download version.

comments: author: Michael Knight
body: Note that evaluators are not eligible for this.

Eventually we will have an automated backup manager in place that will be available for everyone to use, which won't involve manual intervention by Support.


Tags: cloud

confluence-cloud
Editing Velocity Files
Asked by Rosalyn:

I need to set up a Confluence site without child pages showing. I understand this is done via the Velocity files. Does anyone know how to edit velocity files?


Answers:
author: Andrew Frayling
body: Hi Rosalyn,

If it's just the child pages displayed at the bottom of a parent page that you don't want to show you coud hide them with jQuery without needing to edit any Velocity templates or install any plugins.

Log in as an administrator and select Browse -\> Confluence Admin -\> Look and Feel -\> Custom HTML and insert the following code in the "At end of HEAD" section:

```
<script>AJS.toInit(function() {   AJS.$("#children-section").css("display","none"); });</script>
```

Andrew.


author: Andy Brook [Plugin People]
body: notepad? :) Veolcity templates are text, syntax available at <http://velocity.apache.org/engine/devel/user-guide.html> , Im not clear on the exact files you need to modify, but an alternate approach may be to use a theme engine, eg Adaptavists ThemeBuilder <https://plugins.atlassian.com/plugins/com.adaptavist.confluence.themes.sitebuilder> or Zen Foundation <https://plugins.atlassian.com/plugins/com.zenfoundation>. YMMV
Webdav SSO login issues
Asked by Jaime Romaguera:

Hi,

We are running confluence 3.5.13 with a custom made SSO.

Users are having issues access our wiki via webdav clients.

I have turn on the webdav loggining and are receiving error messages (log file has been attatched).

We did not experience this with our old wiki server.

We don't experience WebDav issue when I have disable the SSO.

Wondering if there is configuration I need to add to web.xml or seraph-config.xml file.

Unfortunately I am not a expert with SSO and the programmer who created the custom made SSO say it has nothing to do with the custom SSO he created.

I can access the webdav via a web browser.

Hopefully someone give me some light why might be causing our WebDav issue

(webdav-confluence-error.txt)

Many Thanks

Regards

Jaime


Answers:
author: Scott Brown
body: So how do you do that (specifically)


author: Betsy Walker
body: When my company upgraded to v3.5, we had to adjust the custom Seraph authenticator to check for the URL pattern that indicated WebDav was making the request, and bypass the SSO logic. We had to do the same for the [Atlassian Command Line Utility](https://studio.plugins.atlassian.com/wiki/display/ACLI/Atlassian+Command+Line+Interface) URL.
Ignore Home and Title page if entire hierarchy is to be exported to pdf.
Asked by KrupeshD:

When I export entire hierarchy, pdf includes home page which contains detail about what changes are made, by whom and when. I want this home page to be ignored when space is exported to pdf. Please guide me on this. Second problem I am facing is with Introduction page. I have placed our company logo and document title through \<img\> tag for the title page, it works fine if a particular section or few pages are exported to pdf. But when the entire hierarchy is exported which already has title page with company logo and other images, It looks weird as now there are two title pages. I want this first page under Home to be ignored for PDF generation. Please help. Any pdf stylesheet code for this?


Answers:
author: DavidH
body: I don't know of an automated way to do this.

You probably know that you can deselect certain pages for PDF export. When you click the Export button, a list of all pages appears. I clear the checkmark from the Home page, then click the next page down in the hierarchy (which selects all pages below it).

Other than deselecting the page manually, you might also be able to use custom CSS to make the home page invisible, if you can isolate a div block based on the page name. Sorry I don't know the right class or ID to target. CSS {display=none} works with block-level elements.


Tags: cloud

confluence-cloud
Installation issues trying to host two copies of Confluence on the same machine
Asked by Keith Whittingham:

I'm trying to cohost 3 copies of Confluence on the same machine. I have set up Tomcat with three virtual hosts had lots of problems with configuration.

The signature of the problem I see now is below.

Question: Am I banging my head against a brick wall here? Is this configuration possible? I don't want to go to three copies of Tomcat because it will require much more memory on the machine and that costs.

----

: org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean com.atlassian.confluence.jmx.RequestMetrics@1af9e82 with object name Confluence:name=RequestMetrics ; nested exception is javax.management.InstanceAlreadyExistsException: Confluence:name=RequestMetrics

at org.springframework.jmx.export.MBeanExporter.registerManagedResource(MBeanExporter.java:484)


Answers:
author: Andrew Frayling
body: Hi,

I think multiple instances of Confluence in the same Tomcat container is going to be a non-starter. Even if it's possible to get it working it would be unsupported and you would be asked to split the instances into separate containers before troubleshooting any issues you may get.

As a rule Atlassian do not recommend, nor support, running more than one copy of any of their products in the same container and even go as far as to recommend that you do not run any other applications at all in the same container that one of their products is running in.

For details on Atlassian's one app per container recommendation have a look at <http://confluence.atlassian.com/display/DOC/Installing+Confluence+and+JIRA+Together> and  
<http://confluence.atlassian.com/display/DOC/Deploying+Multiple+Atlassian+Applications+in+a+Single+Tomcat+Container>

Not what you wanted to hear, but I hope that's of some help?

Andrew.
Modify hosted wiki stylesheet
Asked by Andrey Zakharov:

Is it possible to override default CSS styles in hosted confluence? How should I do it?

If possible I would like to change CSS styles on per-space basis.


Answers:
author: Kim Hirschman
body: We are also using the hosted version. I want to make the text in the footer smaller but have not managed to do it yet. I'm a wiki markup newby but am also a fast learner!

Thanks.


author: Andrew Frayling
body: Hi Andrey,

Is there something specific you wanted to achieve by overriding the default CSS? Customising the look and feel is very limited in the OnDemand version of Confluence and you are restricted to:

\* Adding your own header and footer to the Documentation Theme for a Space  
\* Changing the colour scheme for a Space  
\* Adding a custom logo to a Space

All of these are available under Browse -\> Space Admin -\> Look and Feel in the Space(s) you wish to customise.

Similar options are also available to be configured globally via Browse -\> Confluence Admin -\> Look and Feel.

For overriding CSS you would normally do this via one or more of the following:

\* Adding your own CSS to Browse -\> Confluence Admin -\> Look and Feel -\> Custom HTML  
\* Installing your own Theme Plugin  
\* Adding CSS to a page using the {html} macro

Unfortunately none of these options are available with the OnDemand version of Confluence.

If you just want some sort of visual distinction between spaces then you could do this by changing the colour schemes and/or adding a custom logo to each space as outlined above, but complete control over the CSS is only available in the download versions and not with OnDemand.

Hope that's of some help?

Andrew.

comments: author: Andrey Zakharov
body: The ultimate goal is to change appearance of the headers so they are more distinct from each other. I'll try to play with recolouring, but changing size and other text properties would be prefferable.


author: Andrey Zakharov
body: It is not possible to change it through recolouring. Any other suggestions how to make headers more distinct from each other?


author: Andrew Frayling
body: Incredibly ugly, but if you're using the Documentation theme you can select Browse -\> Space Admin -\> Themes -\> Documentation Theme -\> Configure and add wiki markup to the header. Something like:

{panel:bgColor=#ff0000}

h1. My Space

{panel}

will give you a big red block just below the breadcrumb navigation in the main body of every page in a Space. As it's configured on a Space by Space basis you could have different blocks for each Space.

If that sort of works, have a look at <http://confluence.atlassian.com/display/CONF35/Panel+Macro> for the parameters you can tweak to make it look a bit better.

Andrew.


author: Larry Talley
body: Does anyone know if Zen Foundation or RefinedWiki or similar styling tools are likely to ever be available in OnDemand?


Tags: cloud

confluence-cloud
Confluence log error - Socket accept failed - Too many open files
Asked by stuartu:

I recently upgraded a copy of our Confluence 3.2.1 and upgraded to 4.1.6. This morning I installed the Plugin License Manager (plugin) and the Essentials Plugin Pack (from Adaptavisit) + licensed it.

I am now seeing the below message in our catalina.out file. I have bounced Confluence a few times, but still seeing these repeatedly. Is this a configuration parameter in my setenv.sh that needs to be tweaked, or perhaps a Linux issue (we are on RHEL 5.7). I can not see any errors in /var/log to show it is an o/s issue. Any suggestions appreciated.

12/03/2012 12:18:11 PM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run  
SEVERE: Socket accept failed  
java.net.SocketException: Too many open files  
at java.net.PlainSocketImpl.socketAccept(Native Method)  
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:408)  
at java.net.ServerSocket.implAccept(ServerSocket.java:462)  
at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:261)  
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:178)  
at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:352)  
at java.lang.Thread.run(Thread.java:662)  


Answers:
author: BernardoA
body: Actually this error could be a bunch of errors, but please check this KB that may help you:

<https://confluence.atlassian.com/display/JIRAKB/Loss+of+Functionality+due+to+Too+Many+Open+Files+Error>


author: RoBo
body: We experience exact this issue after having upgraded from Confluence 4.3 to 5.1.3. No real strange things to see with lsof, ulimit is unlimited. maximum allowed open files is 800k (and this limit doesn't seem to be reached).

When this happens, then Confluence seems 'hanging'.

Solution not (yet) found... Idea's are welcomed...  
Maybe [this](http://edmund.haselwanter.com/en/blog/2009/03/13/tomcat-too-many-open-files/) is a solution?

comments: author: Andrei [errno]
body: have you tried to update a number of open files per process? (bump it up from 1024)


author: Janet Albion
body: you might want to check what is the size of the maxThread in your tomcat's server.xml


author: JamieA
body: You can check how many files are opened with lsof, and tweak your ulimit accordingly.


author: stuartu
body: No, unfortunately that is all there is.


author: stuartu
body: No, unfortunately that is all there is.


author: David at David Simpson Apps
body: Is that the full stack trace? Or are you missing soem of it?
RSS macro in user macro
Asked by Matthew New:

Hello all you guru's... I am trying to embed the RSS macro in a macro that I have created. If a user is part of the admin group, they should see the macro, otherwise they should get an error saying they do not have access. Forgive my lack of skills, and thank you in advance!

## @noparams

#if($userAccessor.hasMembership("confluence-administrators", $action.remoteUser.name))

RSS:

{rss:url=http://ihost3a.engin.umich.edu/iweb-open/servlet/iweb-open/template/rssIUterm.vm?uniqidscript=272\&uterm=20123\&iuser=true}

#else

You do not have access to this RSS feed.

#end


Answers:
author: Andrew Frayling
body: Hi Matthew,

If you're on Confluence 4.x try this User Macro:

```
## Macro title: User RSS## Macro has a body: N## Body processing: No macro body## Output: Selected output option#### Developed by: Andrew Frayling## Date created: 10/03/2012## Installed by: <your name>## Macro to display an RSS feed to administrators only## @noparams#if ($permissionHelper.isConfluenceAdministrator($action.remoteUser))  <ac:macro ac:name="rss">    <ac:parameter ac:name="url">http://feeds.bbci.co.uk/news/rss.xml</ac:parameter>  </ac:macro>#else  <strong>You do not have access to this RSS feed.</strong>#end
```

Use $action.remoteUser to get the currently logged in user and for permissions there's $permissionHelper which gives you access to <http://docs.atlassian.com/atlassian-confluence/latest/com/atlassian/confluence/security/PermissionHelper.html> to check for the various permissions a user may or may not have.

If you're on Confluence 3.x the macro is the same, but instead of:

\<ac:macro ac:name="rss"\>  
...  
\</ac:macro\>

you use the old style wiki markup:

{rss:url=http://your_rss_feed.com/feed.xml}

Hope that does what you want?

Andrew.

comments: author: Matthew New
body: Andrew, you are the man!!!!! Thank you so much :)


author: Andrew Frayling
body: You're welcome. Glad it was what you wnated.
Confluence Edit Link - add title attribute
Asked by mark bullock:

I'd like to be able to add a tooltip for links.

Thanks, Mark


Answers:
author: MatthewC
body: You can use a user Macro, there is already an example at Atlassian

<http://confluence.atlassian.com/display/DISC/Add+Tool+Tip+to+Normal+Text>


author: mark bullock
body: That sort of works for plain text. It doesn't work at all for links.


Tags: anchor
Remove label editor from template
Asked by Emile Petrone:

I am trying to remove the label editor from all pages. In the Page Template, I've removed :

#if ($mode != "edit" \&\& $mode != "edit-preview")

#parse("/labels/labels-dialog.vm")

#parse("/labels/labels-editor.vm")

#end

But the Labels editor is still visible for anonymous \& logged in users.

What else do I need to do to remove the labels from my layout?


Answers:
author: Matthew J. Horn
body: Should work. The only thing I can think of is that you edited a page layout file in a different space that what you're viewing.


Tags: label
Viewing inline video on iPhone
Asked by Aleeda Crawley:

I'm inlining video in my Confluence pages using the !video.mp4! syntax. I'd like the video to be playable on the iPhone/iOS as well as a desktop browser.

The problem I'm running into is that the iPhone won't recognize the video. It puts up a big play icon with a cross through it. This happens both in the Confluence page and when I navigate to the video directly at the /download/attachments/ URL.

At first I thought that the video was encoded improperly for iOS so I double checked my export settings and exported it again. Then, I hosted the file from an Apache web server just to make sure that the iPhone could play it. And indeed it can. But the very same file after being uploaded to Confluence is not playable.

So, I looked at the HTTP response headers from each server.

Here are the Confluence headers:

> HTTP/1.1 200 OK  
> Server: Apache-Coyote/1.1  
> Cache-Control: no-cache, must-revalidate  
> Expires: Thu, 01 Jan 1970 00:00:00 GMT  
> X-Confluence-Request-Time: 1331313896053  
> Last-Modified: Fri, 09 Mar 2012 17:22:51 GMT  
> ETag: "1331313771000"  
> Content-Disposition: inline; filename="video1.mp4"  
> **Content-Type: video/mp4;charset=UTF-8**   
> Content-Length: 20391097  
Date: Fri, 09 Mar 2012 17:24:56 GMT  
And the Apache headers:  
> HTTP/1.1 200 OK  
> Date: Fri, 09 Mar 2012 17:27:41 GMT  
> Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 with Suhosin-Patch  
> Last-Modified: Fri, 09 Mar 2012 17:21:20 GMT  
> ETag: "cecfe9-13724b9-4bad29efb2400"  
> Accept-Ranges: bytes  
> Content-Length: 20391097  
**Content-Type: video/mp4**  
So is the problem with charset in the Content-Type header? And if so is there a way to suppress that? I checked and the Confluence attachment content type is set to just "video/mp4".


Answers:
author: John Masson
body: Hi Jesse,

You might want to raise this as a New Feature request in the Confluence project on <http://jira.atlassian.com>. I'll keep an eye out for it.

Thanks,  
John

comments: author: Aleeda Crawley
body: Ok, here it is: https://jira.atlassian.com/browse/CONF-24928


Tags: ios

video
How to redirect a requests to a whole space to a whole new Confluence instance?
Asked by Thomas Fritz:

We have exported one of our spaces and imported it then in a new confluence instance. Is it possible to redirect request to the space in the "old" confluence instance to the new one from within confluence?

Otherwise i thought of creating the redirect rules directly in the reverse proxy of the old confluence instance. What do you think?

Kind regards


Answers:
author: MatthewC
body: I'd also go with the re-direct rules in reverse proxy, it's the only way the capture everything. Just like Andrew said.

if for some reason you can't do that, you could delete all the pages in the old space \& leave a redirect on with a message but only if you won't want to do the re-write rules.

Easiest way to to inline redirect is

<https://www.adaptavist.com/display/AtlassianConfluence/redirect+macro>


author: Andrew Frayling
body: Hi Thomas,

Personally, I'd create the redirect rules in the reverse proxy.

Just my 2 cents.

Andrew.