dmolchanenko / RedwoodHQ

Other
161 stars 96 forks source link

Redwood does not run python scripts on Mac Client #10

Open yodaqua opened 8 years ago

yodaqua commented 8 years ago

Hi Dmitri

I logged this issue on the PrimaTest Google Group.

I tried the following script: class PythonAction: def run(self,params): print ("I am Python Action") pass

I went through normal script -> action -> test case -> execution process. During the execution, the test step associated with the action remains in state of 'not_run'.

A runtime folder .../RedwoodHQAgent/agent/executionfiles/1471508853670-3338-10981/does appear. The Lib directory in this runtime folder does contain two zipped python folders: 'pythonLibs.zip' and 'pythonSources.zip'. The folders contain all the python modules and scripts required to run the test.

Unfortunately this does not happen. The test step is perpetually caught in a state of 'not_run'.

I've looked at the logs. I'm not sure if this is the cause of the issue: {"level":"error","message":"sendFileToAgent problem with request: socket hang up file:C:\Program Files\RedwoodHQ/logs/jar_1471508853670-3338-10981/pythonSources.zip","timestamp":"2016-09-09T08:22:20.028Z"} {"level":"error","message":"matchFileWithAgent problem with request: Unable to read file:C:\Program Files\RedwoodHQ/logs/jar_1471508853670-3338-10981/pythonSources.zip ","timestamp":"2016-09-09T08:24:50.105Z"}

server and agent logs.zip

Environment: Server:

When starting the RedwoodHQ Agent on my machine, I get the following output: info: Agent Started. info: getExecutionStatus result: Error: invalid json at Object.exports.error (C:\Program Files\RedwoodHQ\node_modules\express\node_modules\connect\lib\utils.js:44:13) at IncomingMessage. (C:\Program Files\RedwoodHQ\node_modules\express\node_modules\connect\lib\middleware\json.js:68:73) at emitNone (events.js:72:20) at IncomingMessage.emit (events.js:166:7) at endReadableNT (_stream_readable.js:905:12) at nextTickCallbackWith2Args (node.js:437:9) at process._tickCallback (node.js:351:17) info: execution=null

Please help.

yodaqua commented 8 years ago

agent_errors.log.zip agent.log.zip