How to change default FishEye/Crucible polling interval?

How can I change the default FishEye/Crucible polling interval?

When editing a repo I see there is an option to 'Use the system default settings for updates', but I'm not clear on where that system default is set.

10 answers

1 accepted

1 vote
Nick Pellow Atlassian Team Apr 05, 2014

Just an FYI - Since FishEye 3.0 it has been possible to edit the default polling period for a FishEye instance.

Great!! but where are the directions? Googling just takes us back here, not very helpful

"To configure the default options for all repositories, click Defaults (under 'Repository Settings') in the left-hand nav panel [in Admin UI]"

IN your config.xml properties file is a section for repository defaults/

<repository-defaults>
	<linker/>
	<allow/>
	<tarball enabled="false" maxFileCount="0"/>
	<security allow-anon="true"><required-groups/></security>
    <text-indexer enabled="true"/><watches enabled="true"/>
	<commit-message-syntax syntax="plain"/>  
	<changeset-discussions enabled="true"/>
</repository-defaults>

You should be able to add an <updater pollPeriod="15m"/> element with an interval attribute, and restart fisheye.

Doesn't seem to work, running into parsing errors like

at line 221: Expected element 'linker@http://www.cenqua.com/fisheye/config-1'
instead of 'svn@http://www.cenqua.com/fisheye/config-1' here in element
repository-defaults@http://www.cenqua.com/fisheye/config-1

Tried putting in just updater element, and in SVN element, but keep running into errors on startup.

Where did you add that? There is no SVN element, so I suspect it is in the wrong parent. This is not in a specicifc repository, which might have an SVN element, but in the general reposiotry-defaults.

<repository-defaults>
<linker/>

<updater pollPeriod="15m"/>

<allow/>
<tarball enabled="false" maxFileCount="0"/>
<security allow-anon="true"><required-groups/></security>
<text-indexer enabled="true"/><watches enabled="true"/>
<commit-message-syntax syntax="plain"/>
<changeset-discussions enabled="true"/>
</repository-defaults>

Care to post your config.xml (exclusing any confidential data of coruse)

Tried that as well

line 231: Expected element 'allow@http://www.cenqua.com/fisheye/config-1' instead of 'updater@http://www.cenqua.com/fisheye/config-1' here in element repository-defaults

<repository-defaults>
<linker/>
<updater pollPeriod="15m"/>
<allow/>
<tarball enabled="false"/>
<security allow-anon="false" allow-logged-in="true" allow-anon-write="false" allow-logged-in-write="true">
<required-groups/> <required-write-groups/>
</security>
<text-indexer enabled="true"/>
<watches enabled="true"/>
<properties/>
<commit-message-syntax syntax="wiki"/>
<changeset-discussions enabled="true"/>
</repository-defaults>


Hmmm. I am going to see if I can dig up the xml schema used for the config file and straighten this out.

I recently contacted Atlassian Support about this issue. They said that there is no way to do this at present, and although they would look for a workaround (beyond editing all of the repos manually), there's nothing to report yet.

However, this is a known feature request that they encourage us to vote for: https://jira.atlassian.com/browse/FE-490

Hi all,

Looking at "config.xsd", it does not support the configuration above "<updater pollPeriod="15m"/>" in any point.

So, this tip does not make sense :(

1 vote

This is not documented anywhere. Atlassian really need to answer this seeing as there is no source for Fisheye. And where is the "poke Atlassian" button?

Update: I think it's kind of bullshit that this is not documented. The solution above looks feasible but don't work, at least on 2.5.6.

My workaround for this:

Open the config.xml in Intellij IDEA.

Do two xml refactorings :

1) click on the <svn> element and do add new subtag, only if not present, current file

2) click on <updated/> and do add attribute, and add the pollPeriod, 300s (or whatever interval).

Save, restart fisheye.

IN your config.xml properties file is a section for repository defaults/

&lt;repository-defaults&gt;
	&lt;linker/&gt;
	&lt;allow/&gt;
	&lt;tarball enabled="false" maxFileCount="0"/&gt;
	&lt;security allow-anon="true"&gt;&lt;required-groups/&gt;&lt;/security&gt;
    &lt;text-indexer enabled="true"/&gt;&lt;watches enabled="true"/&gt;
	&lt;commit-message-syntax syntax="plain"/&gt;  
	&lt;changeset-discussions enabled="true"/&gt;
&lt;/repository-defaults&gt;

You should be able to add an &lt;updates&gt; element with an interval attribute, and restart fisheye.

Did anyone find the answer to this? I just tried it and got the same error.

2011-10-20 15:58:33,438 INFO - FishEye/Crucible 2.7.4 (20110928032505), Built on 2011-09-28
2011-10-20 15:58:33,447 INFO - Starting UpgradeManager ...
2011-10-20 15:58:36,021 ERROR - Errors parsing C:\views\fisheye\fecru-2.7.4\bin\..\config.xml:
2011-10-20 15:58:36,022 ERROR - at line 243: Expected element 'allow@http://www.cenqua.com/fisheye/config-1' instead of 'updater@http://www.cenqua.com/fisheye/config-1' here in element repository-defaults@http://www.cenqua.com/fisheye/config-12011-10-20 15:58:36,024 ERROR - Problem with config file: Error parsing config file (see logs): C:\views\fisheye\fecru-2.7.4\bin\..\config.xml

No solution found yet

Has there been a resolution to this yet?

Hi, polling to a external github repo is occurring almost 4 times a minute. How to reduce polling interval for git?

Thank you,

Craig

Agree, this is unclear. I can't locate where to set the default polling interval

Can someone from Atlassian please answer this?

Another improvement request:

https://jira.atlassian.com/browse/FE-490

Cheers,

Leonardo.

FE-490 has been implemented, apparently, and "It will be possible to configure defaults once FishEye 3.0 has been released."

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

280 views 4 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you