Re: TeraScript-Talk: external action failing

2018-07-13 Thread Peter Dobbs
What is actually happening behind the curtain?

I’ve found that once the external action fails to call a windows command, no 
other commands work without a reboot.

The error is:

File: testbat.taf
Position: External
Class: Internal
Main Error Number: -101
General error during data source operation.

If I understand what is happening in the code (version 5.5) I can identify what 
is wrong and add a layer to watch for it and perhaps clear the issue.

The  volume of requests to the external action went up significantly in a 
recent change to the application. I’d like to fix this or make a workaround 
without having to upgrade the entire system at this time.

Thanks Robert,

Peter


Peter Dobbs
President | ENGINESS | P: 416.901.6151 | F: 
416.901.6150 | 
www.enginess.io


From: Robert Shubert  on behalf of Robert Shubert 

Reply-To: "TeraScript-Talk@terascript.com" 
Date: Thursday, July 12, 2018 at 5:23 PM
To: "TeraScript-Talk@terascript.com" 
Subject: RE: TeraScript-Talk: external action failing

I have had a suspicion that the external action can lock against itself under 
load. Years ago I was using a multi instance setup and found that the servers 
locked up in a way that you are describing. I went to a virtualized 
configuration with one instance per virtual and the problem went away. This was 
on TS 6. I also had a Witango 5.5 user complain of something similar. In that 
case, adding servers solved the issue.

Other than those experiences and a hunch about the root cause being related to 
the external action, I don’t have much more to go on.

One thing that I’ve done which I think helps is to write out a new batch file 
for each external call. This creates two situations:


  1.  Since I swap all the variable data in the file write, I don’t use 
environmental variables
  2.  Since I’m writing a uniquely named file, no two external calls access the 
same file

Furthering my hunch, I think the problem is tied into the environmental 
variables.

Since TS8 is completely rewritten in Java, and uses the Java Process system it 
won’t have any problems.

Robert

From: Peter Dobbs [mailto:pe...@enginess.io]
Sent: Thursday, July 12, 2018 8:31 AM
To: TeraScript-Talk@terascript.com
Subject: TeraScript-Talk: external action failing

Have you ever experienced a situation where external actions (cmd line windows) 
threw errors for no reason?

We have code that has been stable for many years. Recently we’ve begun to 
dramatically increase the number of cli interactions and it seems as though 
windows stops accepting requests from the app server.

Peter



To unsubscribe from this list, please send an email to 
lists...@terascript.com with "unsubscribe 
terascript-talk" in the body.


To unsubscribe from this list, please send an email to 
lists...@terascript.com with "unsubscribe 
terascript-talk" in the body.




To unsubscribe from this list, please send an email to lists...@terascript.com 
with "unsubscribe terascript-talk" in the body.


TeraScript-Talk: text/chat/forum

2018-07-13 Thread Wayne Irvine
I’m looking to add some conversation to pages in a site I am developing.

The plan is to use some AJAX to submit comments and update an almost live feed.

I could use periodic checks of the server for new messages, but a push system 
would use less resources and be more responsive.

Has anyone worked on something like this in Terascript?

Wayne

Byteserve Pty Ltd
w: http://www.byteserve.com.au/
e: i...@byteserve.com.au
p: +61 02 9960 6099
m: 0409 960 609
f: +61 02 9960 6088






To unsubscribe from this list, please send an email to lists...@terascript.com 
with "unsubscribe terascript-talk" in the body.