It's all about the answers!

Ask a question

How do I fix FSDaemon timeout errors?


Eddie Breeveld (6112530) | asked Jul 08 '15, 4:17 a.m.
edited Jul 08 '15, 4:18 a.m.
RTC 5.0.2, Windows 7.  Also occurred in previous versions of RTC.
We are occasionally getting RTC command line scm errors from our overnight processing.  This occurs about one in every four overnight project builds.  The command that gets the error is:
call "C:\Program Files\IBM\TeamConcert\scmtools\eclipse\scm" --non-interactive login -r https://server:9453/ccm -n RTC_AFM -u user-P password -c
And the error message (about 10 minutes later) is:
Unexpected exception
com.ibm.team.rtc.cli.infrastructure.internal.core.CLIClientException: Waited for 40000ms, but FSDaemon failed to come up
    at com.ibm.team.filesystem.cli.core.util.StatusHelper.toCLIClientException(StatusHelper.java:731)
    at com.ibm.team.filesystem.cli.core.AbstractSubcommand.run(AbstractSubcommand.java:53)
    at com.ibm.team.rtc.cli.infrastructure.internal.core.SubcommandLauncher.run(SubcommandLauncher.java:601)
    at com.ibm.team.rtc.cli.infrastructure.internal.core.SubcommandLauncher.doStart(SubcommandLauncher.java:370)
    at com.ibm.team.rtc.cli.infrastructure.internal.core.SubcommandLauncher.run(SubcommandLauncher.java:130)
    at com.ibm.team.rtc.cli.infrastructure.internal.Application.start(Application.java:41)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:619)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
Caused by: java.lang.IllegalStateException: Waited for 40000ms, but FSDaemon failed to come up
    at com.ibm.team.filesystem.client.restproxy.Discovery2.startInProcess(Discovery2.java:931)
    at com.ibm.team.filesystem.client.restproxy.Discovery2.createDaemon(Discovery2.java:842)
    at com.ibm.team.filesystem.client.restproxy.Discovery2.resolve(Discovery2.java:723)
    at com.ibm.team.filesystem.cli.core.util.SubcommandUtil.startDaemon(SubcommandUtil.java:981)
    at com.ibm.team.filesystem.cli.core.util.SubcommandUtil.startDaemon(SubcommandUtil.java:917)
    at com.ibm.team.filesystem.cli.core.util.SubcommandUtil.setupDaemon(SubcommandUtil.java:1290)
    at com.ibm.team.filesystem.cli.client.internal.subcommands.LoginCmd.run(LoginCmd.java:78)
    at com.ibm.team.filesystem.cli.core.AbstractSubcommand.run(AbstractSubcommand.java:51)
    ... 17 more
Does anyone know how to fix it?

Thanks in advance,
Eddie

2 answers



permanent link
Shashikant Padur (4.2k27) | answered Jul 08 '15, 6:22 a.m.
JAZZ DEVELOPER
Can you start a daemon manually as follows:
'scm daemon start'
It should start a daemon and display the port and key information. The process will be running until you kill it.

or do you have any other daemon running?
'scm ls daemon'


Comments
Eddie Breeveld commented Jul 08 '15, 6:31 a.m.

Thanks Shashikant.
We run scheduled tasks with batch scripts to perform the scm command.  Should we always start the daemon before the scm login command? 
Incidentally, is the 'scm daemon start command' synchronous (does it return only after the daemon has started)?
All the best,
Eddie


Shashikant Padur commented Jul 08 '15, 6:40 a.m.
JAZZ DEVELOPER

I wanted to make sure that a daemon can be started manually on that machine. Yes, it displays the information such as port and key only after the daemon has started. I was hoping that it might give some more information if it cannot start.

The 'scm daemon start' command launches the daemon and commands that run with 'lscm' (not 'scm') will reuse this daemon process. For scripts, 'scm' is preferred because I believe there was some issue with using 'lscm'.


Eddie Breeveld commented Jul 08 '15, 6:59 a.m.

Yes the daemon starts, but unfortunately as you said the command is not useful in our batch scripts.  From experience we use scm not lscm in our scripts.


Shashikant Padur commented Jul 08 '15, 9:49 a.m.
JAZZ DEVELOPER

Please raise a ticket to investigate this issue. Thanks.


permanent link
Eddie Breeveld (6112530) | answered Sep 10 '15, 4:07 a.m.
A colleague finally tracked it down to Symantec anti-virus.  He tried a minor version upgrade to the anti-virus software and we have not seen the problem since.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.