Hi,

On the client machine, does the following work:

STAF dev-test.lavanet.local PING PING

If it fails with RC 16, then you will need to add this hostname to the
client machine's /etc/hosts file.

Thanks,
David


                                                                       
 David Bender          11501 Burnet Rd.   Phone (T/L): 1-512-286-5315  
 STAF/STAX Development Bldg. 903-5B002    (363-5315)                   
                       Austin, TX         ITN: 23635315                
 IBM Software Group,   78758-3400         Email: bda...@us.ibm.com     
 WPLC                                                                  
                                                                       
                                                                       






                                                                       
  From:       Zhe Li <zhe...@lavasoft.com>                             
                                                                       
  To:         David Bender/Austin/i...@ibmus                            
                                                                       
  Cc:         "staf-users@lists.sourceforge.net" 
<staf-users@lists.sourceforge.net>
                                                                       
  Date:       08/10/2010 08:57 AM                                      
                                                                       
  Subject:    Re: [staf-users] STAX fails to receive response from a finished 
process command.
                                                                       





Hello,

Thanks for your reply.

Yes, I have tried the STAX file you sent and it still hangs.

Here are the output from the other two commands:

On the server machine
C:\STAF\services\stax>STAF 10.0.1.134 MISC WHOAREYOU
Response
--------
Instance Name   : STAF
Instance UUID   : 8394564C464200007F0000016B746F70
Machine         : zhe-desktop
Machine Nickname: linux-commander
Local Request   : No
C:\STAF\services\stax>STAF 10.0.1.134 MISC WHOAMI
Response
--------
Instance Name   : STAF
Instance UUID   : 150A584C0C0F00000A00011B74657374
Request Number  : 2581
Interface       : tcp
Logical ID      : dev-test.lavanet.local
Physical ID     : 10.0.1.27
Endpoint        : tcp://dev-test.lavanet.lo...@6500
Machine         : dev-test.lavanet.local
Machine Nickname: buildslave-pc
Local Request   : No
Handle          : 68
Handle Name     : STAF/Client
User            : none://anonymous
Trust Level     : 5

On the client machine:
z...@zhe-desktop:~/workspace/zenmezheng/web2py$ STAF 10.0.1.27 MISC
WHOAREYOU
Response
--------
Instance Name    : STAF
Instance UUID    : 150A584C0C0F00000A00011B74657374
Machine          : dev-test.lavanet.local
Machine Nickname : buildslave-pc
Local Request    : No
Current Date-Time: 20100804-11:17:14

z...@zhe-desktop:~/workspace/zenmezheng/web2py$ STAF 10.0.1.27 MISC WHOAMI
Response
--------
Instance Name   : STAF
Instance UUID   : 8394564C464200007F0000016B746F70
Request Number  : 885
Interface       : tcp
Logical ID      : ZHE-DESKTOP
Physical ID     : 10.0.1.134
Endpoint        : tcp://zhe-desk...@6500
Machine         : ZHE-DESKTOP
Machine Nickname: linux-commander
Local Request   : No
Handle          : 103
Handle Name     : STAF/Client
User            : none://anonymous
Trust Level     : 5

The odd thing is the script was working fine until 2 weeks ago. We had it
connected to Buildbot so the script runs every night and nobody have
changed anything on it.

Thank you very much!

Cheers,
Zhe Li
______________________________________
QA Specialist

Lavasoft
http://www.lavasoft.com

Odinsgatan 10  411 03 Gothenburg  Sweden

Protecting your Privacy

P Before printing, think about the environment
________________________________________
From: David Bender [bda...@us.ibm.com]
Sent: Tuesday, August 03, 2010 4:46 PM
To: Zhe Li
Cc: staf-users@lists.sourceforge.net
Subject: RE: [staf-users] STAX fails to receive response from a finished
process        command.

Hi,

You can reply to both (we prefer that all emails include the mailing list
so that they are included in the archive).

The PROCESS START ... WAIT request is not the same as what STAX is doing.
Since you specified the WAIT option, it is a synchronous request. When you
run a <process> in STAX, it submits the PROCESS START asynchronously (so
that there are not a bunch of STAX threads just waiting for remote
processes to complete). That means that when the process finishes, STAFProc
on the remote machine attempts to notify the STAX service machine that the
process has completed, but if that notification fails, then even though the
remote process has completed, the STAX service will never receive the
notification that it has completed.

Does this issue happen with any <process>? For example, if you have a
simple STAX job that does:

<stax>

<defaultcall function="main"/>

<function name="main">

<process>
<location>'target-machine'</location>
<command>'ls'</command>
</process>

</function>

</stax>

Does this also hang?

On both machines (the STAX service machine and the target machine where the
process is running), can you show the output from:

On the target machine:

STAF stax-service-machine MISC WHOAREYOU
STAF stax-service-machine MISC WHOAMI

On the STAX service machine:

STAF target-machine MISC WHOAREYOU
STAF target-machine MISC WHOAMI

Thanks,
David

________________________________
David Bender<
http://w3.ibm.com/bluepages/simpleSearch.wss?searchBy=Name&searchFor=David
+Bender>
STAF/STAX Development
IBM Software Group, WPLC
        11501 Burnet Rd.
Bldg. 903-5B002
Austin, TX 78758-3400
        Phone (T/L): 1-512-286-5315 (363-5315)
ITN: 23635315
Email: bda...@us.ibm.com<mailto:bda...@us.ibm.com>


________________________________


[cid:1__=09BBFDE7DFDC12578f9e8a93df938@us.ibm.com]Zhe Li ---08/03/2010
09:21:30 AM---Sorry it was my first time using mailing list, should I reply
to you or to staf-us...@lists.sourcefo


From:
Zhe Li <zhe...@lavasoft.com>

To:
David Bender/Austin/i...@ibmus

Cc:
"staf-users@lists.sourceforge.net" <staf-users@lists.sourceforge.net>

Date:
08/03/2010 09:21 AM

Subject:
RE: [staf-users] STAX fails to receive response from a finished process
command.
________________________________



Sorry it was my first time using mailing list, should I reply to you or to
staf-us...@lists.sourceforge.net?

I suspected that in the beginning. But it turned out that staf
<stax-machine> PING PING works. Also if I execute the process command in
command-line interface. it works. For example:

I tried to run:

staf <stax-machine> PROCESS START COMMAND "/usr/bin/vmrun" PARMS list WAIT

and it works fine. But the same command does not work in STAX, it just
hangs.

Regards,
Zhe Li
______________________________________
QA Specialist

Lavasoft
http://www.lavasoft.com

Odinsgatan 10  411 03 Gothenburg  Sweden

Protecting your Privacy

P Before printing, think about the environment
________________________________________
From: David Bender [bda...@us.ibm.com]
Sent: Tuesday, August 03, 2010 4:07 PM
To: Zhe Li
Cc: staf-users@lists.sourceforge.net
Subject: Re: [staf-users] STAX fails to receive response from a finished
process        command.

This is most likely a network issue, where the machine where the process is
executing can't communicate with the STAX service machine to inform it that
the process has completed. On the target machine, try running "STAF
<stax-machine> PING PING". If it fails with an RC 16, then see section
3.1.4 "Why can't my STAF machines communicate?" in the STAF FAQ:
http://staf.sourceforge.net/current/STAFFAQ.htm

Thanks,
David

________________________________
David Bender<
http://w3.ibm.com/bluepages/simpleSearch.wss?searchBy=Name&searchFor=David
+Bender>
STAF/STAX Development
IBM Software Group, WPLC
       11501 Burnet Rd.
Bldg. 903-5B002
Austin, TX 78758-3400
       Phone (T/L): 1-512-286-5315 (363-5315)
ITN: 23635315
Email: bda...@us.ibm.com<mailto:bda...@us.ibm.com>


________________________________


[cid:1__=09BBFDE7DFDEC2D48f9e8a93df938@us.ibm.com]Zhe Li ---08/03/2010
08:48:30 AM---Hello everyone! About two weeks ago, our STAX script stopped
working. It seems it executed the comma


From:
Zhe Li <zhe...@lavasoft.com>

To:
"staf-users@lists.sourceforge.net" <staf-users@lists.sourceforge.net>

Date:
08/03/2010 08:48 AM

Subject:
[staf-users] STAX fails to receive response from a finished process
command.
________________________________



Hello everyone!

About two weeks ago, our STAX script stopped working. It seems it executed
the command correctly, but could not be able to receive the response from
the target machine. So even after the command is executed on the target
machine, STAX still thinks it is still launching hangs there. I made a
simple script to try it out but with no luck.

test.xml
----------------
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "stax.dtd">
<stax>
<defaultcall function="start" />
<function name="start">
<function-map-args>
<function-optional-arg name="image" default
="'/home/zhe/Harddisk_500G/winxp_pro/Windows XP Professional.vmx'">
The image location of the virtual machine.
</function-optional-arg>
</function-map-args>

<testcase name="'test'" mode="'strict'">
<sequence>
<process name="'test1'">
<location>'10.0.1.134'</location>
<command>'/usr/bin/vmrun'</command>
<parms>'start "%s"' % image</parms>
<stdout>'stdout.txt'</stdout>
<stderr mode="'stdout'" />
<returnstdout/>
<console use="'same'"/>
</process>
<if expr="RC != 0">
<sequence>
<log level="'error'">STAXResult</log>
<tcstatus result="'fail'" />
</sequence>
<else>
<tcstatus result="'pass'" />
</else>
</if>
</sequence>
</testcase>
</function>
</stax>


>From STAX monitor I could see STAX stopped at this testcase and hanged
there while the VM was already powered on.

I tried reinstalled STAF, STAX and JRE on both machines but it still didn't
work. Could anyone please tell me what might be wrong? Thanks a lot!


Cheers,
Zhe Li
______________________________________
QA Specialist

Lavasoft
http://www.lavasoft.com

Odinsgatan 10  411 03 Gothenburg  Sweden

Protecting your Privacy

Before printing, think about the environment
------------------------------------------------------------------------------

The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users





------------------------------------------------------------------------------

This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to