History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CC-766
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Jeffrey Fredrick
Reporter: Pankaj
Votes: 2
Watchers: 6
Operations

If you were logged in you would be able to see more operations.
CruiseControl

Failed to reach dashboard instance

Created: 07/Mar/08 03:42 PM   Updated: 26/Apr/10 01:00 AM
Component/s: Core Application
Affects Version/s: 2.7.2
Fix Version/s: 2.8.2

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment:
j2sdk1.4.2_13
apache-ant-1.7.0


 Description  « Hide
Hi,

I am getting the following error in my logs :

[cc]Mar-07 13:11:12 atusReportTask- Failed to reach dashboard instance : http://localhost:8080/dashboard/buildloop/listener, either the dashboard has not started up or there is a network problem.

I am enclosing below my config.xml which I am using to test: (You can ignore bootstraping and modification set which I have disabled to save time in testing)

<cruisecontrol>
  <project name="NAGM">
    <listeners>
      <currentbuildstatuslistener file="logs/${project.name}/status.txt" />
    </listeners>
    <bootstrappers>
      <!--cvsbootstrapper localWorkingCopy="projects/${project.name}/qa/appserver" overwritechanges="true" /-->
    </bootstrappers>
    <!--modificationset quietperiod="10">
      <cvs localWorkingCopy="projects/${project.name}" />
    </modificationset-->
    <schedule interval="86400">
    <exec command="/usr/local/cvs/sbin/ccAnt.ksh" workingdir="projects/${project.name}/qa/appserver" args="/usr/local/cruisec
ontrol/apache-ant-1.7.0 /usr/java all" errorstr="Ant build failed" />
    </schedule>
    <log>
      <merge dir="logs/${project.name}" />
    </log>
    <publishers>
      <onsuccess>
        <artifactspublisher dest="artifacts/${project.name}" file="projects/${project.name}/target/${project.name}.jar" />
      </onsuccess>
    </publishers>
  </project>
</cruisecontrol>

 All   Comments   Work Log   Change History      Sort Order:
Pankaj [07/Mar/08 04:49 PM]
I have tried using the iP address based URL using -dashboardurl with no impact....

Dan Rollo [29/Mar/08 11:28 PM]
Have you posted this issue on the user list?

I'm planning on closing this issue soon, since it appears to be more of a problem report than a specific bug.

Dan

Peter Doyle [01/Apr/08 01:27 PM]
I'm still a CC newbie, so hopefully this info is useful...

I just upgraded to 2.7.2rc1 on a test box and am also seeing these errors in my log... I am also seeing that the dashboard doesn't update at all (i.e. no status when a build starts or is in progress).

2008-04-01 11:21:20,792 [Timer-1 ] WARN BuildLoopStatusReportTask - Failed to reach dashboard instance : http://localhost:80/dashboard/buildloop/listener, either the dashboard has not started up or there is a network problem.

Out of curiousity, I loaded up the URL (http://localhost:80/dashboard/buildloop/listener) in my browser and get this error:

HTTP ERROR: 500
Request method 'GET' not supported
RequestURI=/dashboard/buildloop/listener
Powered by Jetty://

This might be expected since the browser uses GET where the dashboard might use POST (?).

Pete

Peter Doyle [02/Apr/08 02:44 PM]
Ok, I have this narrowed it down and can reproduce it always...

If a <project> does not contain a <modificationset>, it will not update the dashboard (with "Failed to reach dashboard instance" messages in cruisecontrol.log). I have verified this on 2.7.2rc1 and the 2.7.2 that was released this morning. (Notice that in Pankaj's original config, the <modificationset> is commented out).

I ran into the bug because I have some builds set to build nightly, whether anything has changed or not (no <modificationset>). Now that I look at the docs, <modificationset> is required, so I guess I deserve to run into this! :) With that said, I think 2.7.1 worked fine without, so maybe others will notice this issue when they upgrade.

I'm curious if setting requireModification="false" on the <project> tag will also fix it, but I'm using project templates and I'm not quite sure where to set it yet :)
Thanks,
Pete

David Corley [27/May/08 12:18 PM]
I can confirm what Peter has discovered about modificationset being required.
Having requireModification="false" set on the project does not fix the problem.
A big problem here is that Cruisecontrol is inconsistent in enforcing config syntax.
I can kick-off a cruisecontrol process without have specified any <modificationset> in my configfile (though I set the requireModifications attribute in the <project> element to false). The dashboard listener doesn't seem to play nice with this.
There are really two choices here:
1. Enforce a strict requirement on having every project require a <modificationset> child. If they do not, Cruisecontrol will end and display an error about the lack of a <modificationset>
2. Fix the dashboard listener so that it does not require the user to have a <modificationset> element.

khoa nguyen [28/May/08 01:46 AM]
I have the same problem with the same msg: Failed to reach dashboard instance : http://localhost:80/dashboard/buildloop/listener, either the dashboard has not started up or there is a network problem. Even though, I have <modificationset> element in my config file.

Tim Manley [10/Jul/08 07:40 AM]
I've seen this same issue on a windows server running CC2.7.2. Seems that something might be deadlocking... In my situation I see the build freeze (seemingly between steps), then the dashboard becomes unresponsive and throws this error every time someone tries to hit the URL.

Tim Manley [11/Jul/08 08:00 AM]
Update on my situation. It seems it was caused by a mistake in my configuration. I was merging too many log files, and when it grew over 20M, it was taking up all the processor time...

Now I have log files under a megabyte, everything seems to be working fine.

Dong Yue [03/Oct/08 11:00 PM]
1. If you want build triggered by time/schedule, then in <modificationset> pls set <alwaysbuild>.
2. If you want build triggered by force only, then in <project> pls set attr 'forceOnly', without <modificationset> block.

In these ways, dashboard works.

Hope it help:-)

Venkat Subramanian [19/Nov/08 02:01 AM]
Helo
    Any update on this issue please. I am facing this problem and it freezes the build

Thanks
-Venkat

der mkl [15/Dec/08 04:40 AM]
I can second this solution: adding a modificationset (even a pretty dumb one) to the project in config.xml makes the error "WARN BuildLoopStatusReportTask - Failed to reach dashboard instance : http://localhost:8080/dashboard/buildloop/listener, either the dashboard has not started up or there is a network problem." go away. Dashboard functions properly.

Jeffrey Fredrick [17/Dec/08 02:32 AM]
Silly bug in ProjectConfig, now fixed.

For the record, the <modificationset> element has been optional since CC 2.4!

William Fulton [30/Jun/09 11:09 AM]
I was also getting the warning:

Failed to reach dashboard instance : http://localhost:8080/dashboard/buildloop/listener, either the dashboard has not started up or there is a network problem.

in version 2.7.3. The fix for me required increasing the connectionTimeout value in Tomcat's catalina-base/conf/server.xml. It was 5 seconds, so we now use 20 seconds:

    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

Matt Corby-Eaglen [18/Aug/09 07:07 AM]
I am getting this issue in 2.8.2 still. I fixed it in my previous version by adding the modificationset but its back in 2.8.2. I also do not get any build output at all.

Reading the mail archives, it seems to be a jetty timeout bug but I do not have the luxury of being able to change the source code to fix it, nor do I know if I can programatically set this.


Josh Ribakoff [09/Nov/09 02:57 AM]
Still getting this issue too. 2.8.2

Rishabh Joshi [11/Dec/09 03:35 AM]
I get this error on 2.8.2 too.

I made the following changes to the 'cruisecontrol.bat' file

From: -webport 8080 -rmiport 1099
To: -webport 8888 -rmiport 1999

and started CruiseControl executing the batch file. I then see the below mentioned exception:

"Failed to reach dashboard instance : http://localhost:8080/dashboard/buildloop/listener, either the dashboard has not started up or there is a network problem. "

Joel Rives [10/Mar/10 03:40 PM]
I am using version 2.8.3. I started getting this error when I specified the url attribute of the <dashboard> tag in config.xml. When I removed the url attribute, the problem went away.

Ved Prakash Kamishetty [23/Apr/10 10:02 AM]
Hi All,

I am using version 2.8.3. and i have a modificationset tag also in the project but still i am seeing this error of

atusReportTask- Failed to reach dashboard instance : http://localhost:8181/dashboard/buildloop/listener, either the dashboard has not started up or there is a network problem.

Can any one explain why this issue is coming and how to solve the same.

Below is the Config.xml file details

Config.xml
<cruisecontrol>
<property name="clearcase.viewname" value="****_Repository" />
<property name="branch.name" value="^^^^_1.1_dev"/>
<property name="vector.dev.dir" value="******" />
<property name="applications.dir" value="*****" />
<property name="project.periodic.components.dir" value="${applications.dir}" />

<project requiremodification="true" name="xxxxx_Integration_Build">

        <listeners>
          <currentbuildstatuslistener file="logs/${project.name}/status.txt"/>

        </listeners>

        <bootstrappers>
            <antbootstrapper anthome="apache-ant-1.7.0" buildfile="${****.dev.dir}/source/BuildAll/build.xml" target="clean" />
        </bootstrappers>


        <modificationset quietperiod="60">


          <clearcase branch="${branch.name}"
viewpath="${****.dev.dir}"/>

          <!-- <clearcase branch="${branch.name}"
viewpath="${project.periodic.components.dir}"/>-->

            <filesystem folder="${****.dev.dir}"/>
            <!--<filesystem folder="${project.periodic.components.dir}"/>-->

        </modificationset>
        <schedule interval="43200">
<!--give time in ant so for executing at that perticular time..... Remove Interval ... -->
            <ant anthome="apache-ant-1.7.0" buildfile="${project.periodic.components.dir}/build.xml"
uselogger="true"/>
        </schedule>

        <log>
           <merge dir="logs/${project.name}"/>
        </log>

        <publishers>
        
<htmlemail mailhost="smtp.exchserver.com"
returnaddress="*****NightlyBuild@******.com"
buildresultsurl="http://ipaddress:8181/cruisecontrol/buildresults/****_Integration_Build"
skipusers="true" spamwhilebroken="false"
subjectprefix="CruseControl::*****::NightlyBuild::"
failasimportant="true">

<always address="********@********.com"/>

</htmlemail>
        </publishers>

    </project>
<cruisecontrol>

and dashboard-config.xml

<dashboard>
        <buildloop
            logsdir="*****"
            artifactsdir="*****" />
        <features allowforcebuild="true"/>
        <subtabs>
            <subtab class="net.sourceforge.cruisecontrol.dashboard.widgets.ErrorsAndWarningsMessagesWidget" />
        </subtabs>
</dashboard>

Can you please help me out in finding out the right cause of the problem

Thanks & Regards,
VedK


Ved Prakash Kamishetty [26/Apr/10 01:00 AM]
Sorry I forgot to tell about the environment i am running this on Solaris BOX

Thanks & Regards,
VedK