How to change default FishEye/Crucible polling interval?
Asked by PhillipB:

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.


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

comments: author: sharkmerry1
body: Great!! but where are the directions? Googling just takes us back here, not very helpful


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


author: Scott Dudley [Inactive]
body: 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


author: EddieW
body: 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;updater pollPeriod="15m"/&gt; element with an interval attribute, and restart fisheye.
```

comments: author: PhillipB
body: 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.


author: EddieW
body: 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)


author: PhillipB
body: 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\>  


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


author: JamieA
body: 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.


author: 3layer (expert)
body: 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 :(


author: LeonardoL
body: Another improvement request:

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

Cheers,

Leonardo.

comments: author: Sergey Svishchev
body: FE-490 has been implemented, apparently, and "It will be possible to configure defaults once FishEye 3.0 has been released."


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

Can someone from Atlassian please answer this?


author: cedexis_2
body: Has there been a resolution to this yet?

comments: author: Craig Solinski
body: Hi, polling to a external github repo is occurring almost 4 times a minute. How to reduce polling interval for git?

Thank you,

Craig


author: David Kramer
body: 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

comments: author: PhillipB
body: No solution found yet


author: EddieW
body: 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.
```


Tags: configuration

index

repository