youngmon/atlassian-qna huggingface dataset:
Unable to configure confluence as a service linux war
Asked by Tech Support:

Hi All,

I downloaded Confluence and was able to configure it properly with the Confluence installation instructions; I was also able to get to the setup wizard page using localhost:8080... my problem started when I used the recommendation of making confluence to start automatically (as a service)

I follow the following document:

<http://confluence.atlassian.com/display/DOC/Start+Confluence+Automatically+on+Linux>

I was able to complete all the steps, but not step 8 (starting confluence), I got this error:

\[root@vhostxxxx confluence\]# //etc/init.d/confluence start

Starting confluence  
This account is currently not available.

The confluence user exist in the system, it was succesfully created in step 1

Help with be kindly appreciated


Answers:
author: LuizA
body: Hi There,

To provide a better help to you with this problem I would like to suggest you to raise a support ticket at our [support.atlassian.com](http://support.atlassian.com) and attach to the ticket your atlassian-confluence.log, so we can perform a better investigation and provide you a better assistance.

Cheers,

Luiz.


Tags: ear-war

linux

password
Network error on Confluence login
Asked by CCCP Admins:

I've a server on which both Confluence and Jira are running. When a registrated user tries to login on Confluence, it gives the following error:

*Sorry, a network error occurred trying to log you in. Please try again, and contact your administrator if the problem persists.*

Confluence's error log gives the following 'explanation':

```
2012-04-25 20:52:12,782 ERROR [http-8080-2] [crowd.manager.application.ApplicationServiceGeneric] authenticateUser Directory 'Crowd Repository' is not functional during authenti$
2012-04-25 20:52:12,783 WARN [http-8080-2] [atlassian.confluence.user.ConfluenceAuthenticator] authenticate CommunicationException caught while authenticating user <bob>
com.atlassian.crowd.exception.runtime.CommunicationException
[...]
Caused by: java.net.ConnectException: Connection refused
```

each time a person tries to enter the confluence wiki on my server. The userdata is retrieved from a LDAP database.  
This whole problem appears to come out of the blue: this one moment everything was working, the next Confluence decided to gives this anoying error.  


Answers:
author: CCCP Admins
body: Crowd was indeed the problem. Upgrading crowd from version 2.2.4 tot 2.4.0 helped to solve the problem. Probably a file (or multiple files) of Crowd became corrupted for unknown reason.


author: Thomas Krug
body: The error shows you are using Crowd. Does Crowd contact the LDAP then? Can you reach the Crowd server?  
Even though I may sound queer, did you try and restart Confluence?

Errors comming out of the blue are often results of inconsistent caches, buffers etc.

comments: author: CCCP Admins
body: I'm indeed using Crowd to make contact with the LDAP and it is installed on the same server as Confluence. The LDAP however is located on another server, but Crowd would be the only program to have trouble with the connection, if this is the source of the error.  
Restarting Confluence is a good idea, but I've thought of that already and have restarted it (many times), just like I've restarted Crowd (also many times).


author: CCCP Admins
body: Research of the Crowd errorlogs shows that Crowd didn't produce any errorlogs since the time Confluence gave the error. For this, I think Crowd is the problem.   
Well, checking the processes on the server, I've concluded that Crowd won't run at all. Everytime Crowd restarted, it did essentially nothing. Appearantly Crowd is so broken, it won't even say anymore it IS broken. Question remains: why is Crowd broken? Or more important: how can i fix it?
How do i move blogposts from 1 space to another? Is there a script where i can use?
Asked by Kyle:

Answers.Atlassian.com's search feature sucked badly.

Well anyways,

How can i actually move blogposts from a space to another? I read it's not possible and there's probably a feature request somewhere. Has anyone done this using some magic way? Thanks.


Answers:
author: Kyle
body: I found a way to do it, by exporting the entire space, then rename all the space key of 2 files in the exported zip file, then reimport it again.

Thanks to this post: [https://answers.atlassian.com/questions/3034/how-can-you-modify-the-space-key-of-a-space](/questions/3034/how-can-you-modify-the-space-key-of-a-space)


author: Thomas Schlegel
body: You cannot move a blog post to another space: <http://confluence.atlassian.com/display/DOC/Editing+Blog+Posts>

The feature request is here: <https://jira.atlassian.com/browse/CONF-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel>

Best regards

Thomas

comments: author: Kyle
body: Thanks for the link, i've voted.
Adding the tomcat manager
Asked by Fraser Hess:

Has anyone successfully added the tomcat manager to Standalone Confluence? I ask because our cacti needs it to monitor the tomcat instance.

We tried adding the manager folder and manager.xml from a stock tomcat 6.0.32 to webapps. No such luck. Get the following error:

WARNING: A docBase /usr/local/confluence-4/webapps/manager inside the host appBase has been specified, and will be ignored


Answers:
author: Radu Dumitriu
body: From what I remember (I haven't tried it now) you have to define multiple virtual hosts in Tomcat, each with it's own, non-overlapping appBase.

Documentation is here: <http://tomcat.apache.org/tomcat-5.5-doc/config/host.html>
Has the voting macro been disabled in the latest version of confluence?
Asked by james jenkins:

I tried using the below code for voting but received an unknown macro error. Is there something I can use for voting?

```
{vote:CCRB Decision}Approve CRApprove CR with ConditionsReject CR{vote}
```


Answers:
author: Dennis Kromhout van der Meer
body: The voting macro currently only works within the "Wiki Markup" macro. I consider this a bug and raised a ticket accordingly, please view it here: [CONF-25333](https://jira.atlassian.com/browse/CONF-25333)


author: Frank Stiller
body: The survey plugin got quite some improvements nowadays. But i guess the answer to the main question would be:

You should install "the"/any plugin before it can render anything ;)


author: Jason Newmark
body: So I found that id I write my answers in the page and seperate them by lines like this

Yes

Maybe

No

Then highlight them and choose the vote macro, all I have to do is put in a title and the tool does the rest.


author: Rodrigo Girardi Adami
body: ```
Have you considered using the Content Voting plugin by Adaptavist?

Also, I think that the Confluence Survey Plugin would fulfill your needs, have you tried installing it? https://marketplace.atlassian.com/195

I know that the plugin was specified to work with the version 4.1.x and don't mention the version 4.2 but it may be worthy to try installing this one and test. :)
```


author: Dean Vermeire
body: I don't even see it as an available plugin in Confluence 4.2.8. Where did it go?


author: Jo-Anne MacLeod
body: Are you talking about this plugin, <https://studio.plugins.atlassian.com/wiki/display/CSRVY/Confluence+Survey+Plugin>

Did you ensure that you still have the plugin installed?


Tags: addon-com.nearinfinity.confluence.survey-plugi

vote
Including text from an index file
Asked by Dan Potepa:

Is it possible to include small extracts of text, easily/quickly, from an index file in a wiki page.

We have a large environment and do not want to hardcode server names into doco pages. instead I want to be able to reference a server name, and it be auto populated.

i.e. "log into the $liveapacheserver ..." and it to be populated with the actually servernames from another file. meaning we can be sure that all documentation will contain the correct server names / endpoints etc.


Answers:
author: Matthew J. Horn
body: I can think of a few ways to do this, but the easiest/quickest way might be to use jQuery to replace the variables with product names. jQuery will let you load an external file (say, an XML file or a list of name/value pairs) that you can use to store the values.
How to set Autowatch globally off
Asked by Odd Vinje:

Our users do not want email notification for every change they do by themselves. The Autowatch flag (under Profile-\>Settings-\>Email) is for some reason set to true for all users. How can we reset this to false for all users in one go?


Answers:
author: Christian Czaia _Decadis AG_
body: Hey,

check this workaround:

##### Workaround {#toc-hId-1115102301}

The config lives in an XML file: \<tt\>\<confluence install\>/confluence/WEB-INF/lib/confluence-x.x.x.jar/preferences-default.xml\</tt\>.

You need to change the boolean value to false, thus:  

```
<preference type="Boolean">       <name>confluence.prefs.watch.my.own.content</name>       <value>false</value>   </preference>
```

Then place it as \<tt\>\<confluence install\>/confluence/WEB-INF/classes/preferences-default.xml\</tt\> and restart Confluence.

Posted here:

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

<br />


Tags: watcher
Does exist an CLI for the office connector?
Asked by Martin Bartsch:

Hi all,

i'm looking for a solution to upload office docs into confluence per command line ala remote api (XMLRPC).

Does everybody has an solution or idea for this?

Best regards

Martin


Answers:
author: Thomas Wendel
body: Even thou I'm absolutely not a fan of the Confluence WebDAV functionality, it might be a solution for an initial bulk import of files into Confluence:

* [Configuring a WebDAV client for Confluence](https://confluence.atlassian.com/display/DOC/Configuring+a+WebDAV+client+for+Confluence)
* [Confluence WebDAV Plugin](https://studio.plugins.atlassian.com/wiki/display/WBDV/Confluence+WebDAV+Plugin)


author: Bob Swift (personal)
body: Documents are just attachments, so you just need normal Confluence capabilities. [Confluence Command Line Interface](https://bobswift.atlassian.net/wiki/display/CSOAP) has the [addAttachment](https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-addAttachment) action or use the similar soap/rpc service.


Tags: cli

ms-office-connector
How to enable file links on Confluence Pages in the internet explorer 9?
Asked by srinivasp:

File links on confluence pages are not working on ie 9 and there is absolutely no action on click of the links.

It is showing the correct links when hover on the links and also if i copy the links location by selecting 'copy link address' or 'copy shortcut' options, when pasted on a new browser, it is found working.

For example i am pasting some code taken from the view source of the page from the browser ::

\<a href="file://potsticker/ActiveExchange/Srinivas" class="external-link" rel="nofollow"\>pmo \</a\>  
\<a href="file://///potsticker/ActiveExchange/Srinivas" class="external-link" rel="nofollow"\>pmo \</a\>

Though compatibility is mentioned and the Secutrity mode is turned off, it has not found working.

Could any one suggest a workaround for this?

Thanks,

Srinivas


Answers:
author: Christian Czaia _Decadis AG_
body: Hey,

have you tried this syntax?

```
[file:///c:/temp/foo.txt]

There is an article in the documentation adressing local files.
http://confluence.atlassian.com/display/JIRA/Linking+to+local+file+under+Firefox

```

> "I found the following worked under IE8 and JIRA 4.4.3
>
> \[file:///\\\\servername/\\folder/\\subfolder\]
>
> That's \<forwardslash\>\<backslash\> for each directory level delimiter."

```


Maybe this helps you. If not, please post any news on this:-)
```

comments: author: srinivasp
body: In IE8 that works but in IE9 it will not work. There is a work around for chrome but i am looking for IE9 only.


Tags: content

link
PageTree problem in Confuence
Asked by Mik:

Hi Everyone.

Maybee anyone can help me to solve my problem. I'am creating plugin for Confluence witch adding new Pages

Page page = new Page();

page.setTitle(myTitle);

page.setSpace(getSpace());

.......

pageManager.saveContentEntity(page, null);

and this is works fine!

The problem is with PageTree, beocouse it's starting show new Pages in strukture after LONG time.

What is the reason of that? Should I call any function to render Pagetree?

Many thanks for any help.

Regards

Mik


Answers:
author: Sandro Herrmann [Communardo]
body: Maybe you have to call the indexer after the "page adding" programatically to avoid your server restart problem.

Inject the ConfluenceIndexer to your class

```
public void setIndexer(ConfluenceIndexer indexer){    this.indexer = indexer;}
```

Then call the reindex after adding your page:

```
this.indexer.reIndex(page);
```

comments: author: Mik
body: Hi Sandro

Many thanks for your tips. Unfortunately it still not works correctly.

I'm calling reindexing after save, but no pages in PageTree, I can see them only after server restart.

pageManager.saveContentEntity(page, saveContext);

this.indexer.reIndex(page);  
Regards  
Mik


author: Mik
body: Hi Thomas, many thanks for answer.

I can find them by search function.

I can find/see my pages (added by plugin) after restart server or if I for example add one more page manualy.

Regards

Mik


author: Thomas Krug
body: As far as I know Pagetree only shows indexed pages. Could you check if you can find your page via the Search function while it is not shown in your pagetree?

If not there is an indexing issue.

comments: author: Mik
body: Hi Thomas, many thanks for answer.

I can find them by search function.

I can find/see my pages (added by plugin) after restart server or if I for example add one more page manualy.

Regards

Mik


Tags: page-tree
String operations with Usermacros ?
Asked by Joerg Bencke:

Hi Folks, here is an idea, will it work ?

I always meant to ask, if I can perform string-operations on the page titel in usermacros.

The pagetile says "Introduction (Version 1.0)"

The pagebody says something like

```
h2. IntroductionThis is the introduction to the page .....
```

Now my question : Could I write a usermacro, that takes "Introduction (Version 1.0)" and does something like

```
h2. {left($pagetitle,pos($pagetitle,"("))}
```

So basically to cut off anything from "(" onward ?

Regards, Josch


Answers:
author: Sandro Herrmann [Communardo]
body: Yes you can do this .... here is an example usermacro code

```
## @noparams#set($charIndexToSlice = $content.title.indexOf("(") )#set($charIndexToSlice = $charIndexToSlice - 1 )#if($charIndexToSlice  &gt; -1)    $content.title.substring(0,$charIndexToSlice )#end
```


Tags: user-macro
Insert macro error
Asked by Paul McCormick:

Hi,

I'm using the ondemand service and enabled some marcos for confluence from Adaptavist Content Formatting Macros.

I'm now getting this message when editing a page and trying to insert a new macro:
> *"There has been an error loading the macro browser. Please try again or see your system administrator."*

What have I done wrong?

Thanks,

<br />

Paul


Answers:
author: FernandoA
body: Hi Paul,

For this case you should raise a support ticket at <http://support.atlassian.com> so someone from our support team can take a further look on it for you.

Thanks and Regards,

Fernando \| Atlassian


Tags: cloud

confluence-cloud
permissions required for Microsoft Active Directory
Asked by bec wilson:

Does anyone know what permissions are required for the user which is used to syncronize with Active Directory? Members of "Domain Users" only do not have the ability to syncronize the directoy. The only way it will work is with "Domain Admins" group which is not the right way to go about it.

thanks,

-ryan


Answers:
author: Rodrigo Girardi Adami
body: Hello,

I'm not an AD administrator however I can state that you must use an users that has permission to bind the tree and retrieve the AD tree to confluence side. In other words: If you use some AD user that can "see" all the tree, you should be okay.

However if you want to read and write in the AD tree, then you must set confluence with an AD user that can read and write the whole tree. :)

Hope that helps!

Regards,

Rodrigo Girardi Adami


author: BernardoA
body: The user that the application will use when connecting to the directory serve must be permission, so basically as mentioned in the last comment " If you use some AD user that can "see" all the tree, you should be okay."


Tags: permission
CLI error while connecting to confluence
Asked by Yogi G:

C:\\Confluence\\confluence-cli-2.5.0-distribution\\confluence-cli-2.5.0\>confluence.bat -a getspacelist --space SP --password PWD -s [http://server:8080](http://server:8080/) -u admin

Unable to log in to server: <http://server:8080/rpc/soap-axis/confluenceservice-v1> with user: adminuser.  
Cause: (404)/rpc/soap-axis/confluenceservice-v1

Confluence version is 3.4.9. Client is on Same box as Confluence. OS is Solaris.

Actually I also tried using the CLI installed on my local machine which is Windows XP. That is the reason the path in the description is of windows. But the real error is on the Solaris box.

Please help ASAP....

We also have commercial license of confluence , let me know if you need us to create support ticket..


Answers:
author: Bob Swift (personal)
body: Make sure:1. server address is correct, <http://server:8080/rpc/soap-axis> should retun an info page2. remote API is enabled in administration \> general configuration3. user Id is correct 4. Password doesn't have any unusual characters

comments: author: Yogi G
body: 1. server address is correct, <http://server:8080/rpc/soap-axis> should retun an info page : return 404 but <http://server:8080/confluence/rpc/soap-axis> does return the info page with list of Two null servercies as below.

And now... Some Services

null *(wsdl)*

null *(wsdl)*

2. remote API is enabled in administration \> general configuration : Its enabled.

3. user Id is correct : its correct

4. Password doesn't have any unusual characters : this is not the case.

THE PROBLEM IS STILL NOT RESOLVED. LET ME KNOW IF I HAVE TO OPEN A SUPPORT TICKET.


Tags: cli
How to get a report of issues where a custom field has been updated
Asked by Vandana Khurana:

Hi,

I need a report of all the issues where a custom field has been updated in the last week. what is the easiest way to do it?

Warm Regards,

Vandana


Answers:
author: Renjith Pillai
body: AFAIK, may not be directly possible with JQL. With an SQL query you could get this, and put this in a Confluence page.

This link may help you to write the query.

<http://confluence.atlassian.com/display/JIRACOM/Example+SQL+queries+for+JIRA>

comments: author: Vandana Khurana
body: Thanks Renjith, unfortunately I or my team do not have access to the hsqldb.

I am thinking of creating another custom date field to store the last-updated-date for the main field on which I want to run the report (lets call it 'A'). Is there any way to default this date field to today's date everytime A is updated? Appreciate your help!


author: Renjith Pillai
body: A workflow post condition using Jamie's script runner to update it may be an option.

<https://plugins.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner>


Tags: report
How to get page creator ! from BUBBLES COMMUNITY...
Asked by liljoint:

Hi again, I test this parameter:

|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `$content.getCreatorName()` On a confluence page and it works. but when I test on a page from confluence, but inside the Bubbles Community (forum) it doesn't work. How I can get the creator from a topic on Bubbles forums??? |


Answers:
author: LuizA
body: Hello Bryan,

As the Bubbles commuity is a third-party plugin, then I would suggest you to try to make a contact with the provider of the plugin, that is the Adaptavist, to clarify this point and see how you can get the creator from a topic in the Bubbles forums, you can contact them by the following:

[help@adaptavist.com](mailto:help@adaptavist.com)

+44 (0) 207 976 4896

<http://www.adaptavist.com/>

Hope this helps.

Kind Regards,

LJ.


Tags: community-forums-for-confluence
how to create a "add/remove favourite" button ??
Asked by liljoint:

I need to create a favourite button, how to know if a page or a user is favourite ??

please help.. thnx ! :D


Answers:
author: Oli S
body: in velocity, you could use this:

```
#if($helper.page.isFavourite($action.remoteUser))	&lt;a href="$req.contextPath/labels/removefavourite.action?entityId=$helper.page.id&amp;#url_xsrfToken()"  alt-title="$action.getText('favourite.add.page')" title="$action.getText('favourite.remove.page')"   class="fav-toggle active aui-button" &gt;		remove	&lt;/a&gt;#else	&lt;a href="$req.contextPath/labels/addfavourite.action?entityId=$helper.page.id&amp;#url_xsrfToken()"   alt-title="$action.getText('favourite.remove.page')" title="$action.getText('favourite.add.page')"   class="fav-toggle aui-button " &gt;		add	&lt;/a&gt;#end
```

similar in java ;-)


author: SanaS
body: Thanks for the code snippet, Oliver, it helped me greatly. However, I had to make some minor adjustments:

```
#if($content.isFavourite($action.remoteUser))    &lt;a href="$req.contextPath/labels/removefavourite.action?entityId=$content.getIdAsString()&amp;#url_xsrfToken()"  alt-title="$action.getText('favourite.add.page')" title="$action.getText('favourite.remove.page')"   class="fav-toggle aui-button"&gt;        remove    &lt;/a&gt;#else    &lt;a href="$req.contextPath/labels/addfavourite.action?entityId=$content.getIdAsString()&amp;#url_xsrfToken()"   alt-title="$action.getText('favourite.remove.page')" title="$action.getText('favourite.add.page')"   class="fav-toggle aui-button"&gt;        add    &lt;/a&gt; #end
```


author: eyrisone
body: Oliver's code worked for me. Thanks!


Tags: favourite