Robotask stuck

Discuss RoboTask here
Oleg
Site Admin
Posts: 2994
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Robotask stuck

Post by Oleg »

I don't see a "crash"
On screenshot Screenshot_2024_02_11-1.png I see that the task is worked normally
On screenshot Screenshot_2024_02_11-2.png I don't see the task log. Which step is stuck?

I looked at your task again. You use the Scheduler to run a task every 5 minutes. Why? You have 288 launch points for your task every day.
Use a Cyclic trigger to run a task every 5 minutes. This is a very simple and easy trigger.

And one question: how did you manage to change the title of the RoboTask window?
Oleg Yershov
gremlin
Posts: 35
Joined: Sun Jan 08, 2023 3:13 pm

Re: Robotask stuck

Post by gremlin »

Hy,
you see at the screenshot "no responds".
Snipaste_2024-02-12_09-05-59.png
Snipaste_2024-02-12_09-05-59.png (9.48 KiB) Viewed 59 times
I can´t see on which step it stuck, because Robotask crashed completly and doesn´t respond.

I try the cycle trigger. (I doesn´t know it exists).

The title of Robotask windows change, because it doesn´t respond.


I killed Robotask on Taskmanager just now and restart it.

Then I changed the cycle Event.

After 30 Minutes I see this screen, and RoboTask doesn´t respond:
Snipaste_2024-02-12_09-23-35.png
Snipaste_2024-02-12_09-23-35.png (77.39 KiB) Viewed 56 times
Here the actual Task:

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|976360944
Comment=STRINGLIST
ContinueOnError=INTEGER|1
DisableOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task21"
Hide=INTEGER|0
ID=INTEGER|183712816
LogOnAsUser=INTEGER|1
Name=STRING|"Copy of FTP - Bestandsdaten von Gautzsch herunterladen"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
StepPause=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action10=FOLDER
Action11=FOLDER
Action12=FOLDER
Action13=FOLDER
Action14=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
Action7=FOLDER
Action8=FOLDER
Action9=FOLDER

[Actions\Action1]
ActionID=STRING|"A_FILE_SEARCH"
Enabled=INTEGER|0
Name=STRING|"Create File List (variable: CSVVORHANDEN)"
Params=FOLDER

[Actions\Action1\Params]
_rt_variables_produced=STRING|"CSVVORHANDEN"
After=STRING|"0"
aftercount=STRING|"0"
AfterLine=STRING|"0"
Before=STRING|"0"
beforecount=STRING|"0"
BeforeLine=STRING|"0"
createmode=STRING|"1"
date1=STRING|"20240206"
date2=STRING|"20240206"
destvar=STRING|"CSVVORHANDEN"
DuringDays=STRING|"1"
DuringHours=STRING|"1"
DuringMinutes=STRING|"1"
DuringMonths=STRING|"1"
file0=STRING|"C:\JTL-TMP\Gautzsch\FTP_IN\*.csv"
filecount=STRING|"1"
OlderDays=STRING|"1"
OlderHours=STRING|"1"
OlderMinutes=STRING|"1"
OlderMonths=STRING|"1"
savetofile=STRING|"0"
savetovar=STRING|"1"
searchkind=STRING|"0"
sort=STRING|"0"
sortby=STRING|"0"
sortorder=STRING|"0"
subdirs=STRING|"0"
WithoutPath=STRING|"0"

[Actions\Action10]
ActionID=STRING|"A_FILE_SEARCH"
Enabled=INTEGER|0
Name=STRING|"Prüfen ob eine Bestandsdatei heruntergeladen wurde"
Params=FOLDER

[Actions\Action10\Params]
_rt_variables_produced=STRING|"dateiheruntergeladen"
After=STRING|"0"
aftercount=STRING|"0"
AfterLine=STRING|"0"
Before=STRING|"0"
beforecount=STRING|"0"
BeforeLine=STRING|"0"
createmode=STRING|"1"
date1=STRING|"20240129"
date2=STRING|"20240129"
destvar=STRING|"dateiheruntergeladen"
DuringDays=STRING|"1"
DuringHours=STRING|"1"
DuringMinutes=STRING|"1"
DuringMonths=STRING|"1"
file0=STRING|"c:\JTL-TMP\Gautzsch\FTP_IN\*.csv"
filecount=STRING|"1"
OlderDays=STRING|"1"
OlderHours=STRING|"1"
OlderMinutes=STRING|"1"
OlderMonths=STRING|"1"
savetofile=STRING|"0"
savetovar=STRING|"1"
searchkind=STRING|"0"
sort=STRING|"0"
sortby=STRING|"0"
sortorder=STRING|"0"
subdirs=STRING|"0"
WithoutPath=STRING|"0"

[Actions\Action11]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER

[Actions\Action11\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"0"
type=STRING|"3"
value1=STRING|"{FileExists(c:\JTL-TMP\Gautzsch\FTP_IN\*.csv)}"

[Actions\Action12]
ActionID=STRING|"A_TASKS_START"
Enabled=INTEGER|-1
Name=STRING|"Start Task ""Artikelstammdaten CSV einlesen"""
Params=FOLDER

[Actions\Action12\Params]
abort=STRING|"0"
parametercount=STRING|"0"
required=STRING|"0"
saveresult=STRING|"0"
taskid=STRING|"1537574101"
wait=STRING|"0"

[Actions\Action13]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[Actions\Action14]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[Actions\Action2]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"Wenn keine Datei mehr da ist neue herunterladen"
Params=FOLDER

[Actions\Action2\Params]
case=STRING|"0"
connection=STRING|"1"
count=STRING|"1"
operator=STRING|"1"
type=STRING|"3"
value1=STRING|"{FileExists(C:\JTL-TMP\Gautzsch\FTP_IN\*.csv)}"
value2=STRING|"4"

[Actions\Action3]
ActionID=STRING|"A_SFTP_LOGON"
Enabled=INTEGER|-1
Name=STRING|"SFTP Verbinden"
Params=FOLDER

[Actions\Action3\Params]
host=STRING|"xxxx"
output=STRING|"0"
password=STRING|"8504685161851618516185161"
port=STRING|"22"
usecertificate=STRING|"0"
username=STRING|"xxxx"

[Actions\Action4]
ActionID=STRING|"A_SFTP_DIR"
Enabled=INTEGER|-1
Name=STRING|"Loop CSV Dateien"
Params=FOLDER

[Actions\Action4\Params]
_rt_variables_produced=STRING|"FTPCSV"
createmode=STRING|"1"
date1=STRING|"18991230"
date2=STRING|"18991230"
DuringDays=STRING|"1"
DuringHours=STRING|"1"
DuringMinutes=STRING|"1"
DuringMonths=STRING|"1"
filenameonly=STRING|"1"
folder=STRING|"/ARTIKEL/*.*"
kind=STRING|"0"
linecount=STRING|"1"
OlderDays=STRING|"1"
OlderHours=STRING|"1"
OlderMinutes=STRING|"1"
OlderMonths=STRING|"1"
sizesave=STRING|"0"
sort=STRING|"1"
sortby=STRING|"1"
sortorder=STRING|"0"
subfolders=STRING|"0"
timesave=STRING|"0"
varname=STRING|"FTPCSV"

[Actions\Action5]
ActionID=STRING|"A_SFTP_GET"
Enabled=INTEGER|-1
Name=STRING|"Datei(en) herunterladen (von alt nach neu)"
Params=FOLDER

[Actions\Action5\Params]
file=STRING|"/ARTIKEL/{FTPCSV}"
folder=STRING|"c:\JTL-TMP\Gautzsch\FTP_IN\"
ifexists=STRING|"1"
recursive=STRING|"0"

[Actions\Action6]
ActionID=STRING|"A_FILE_RENAME"
Enabled=INTEGER|-1
Name=STRING|"Datei lokal umbennen"
Params=FOLDER

[Actions\Action6\Params]
count=STRING|"1"
file0=STRING|"c:\JTL-TMP\Gautzsch\FTP_IN\{FTPCSV}"
ifexists=STRING|"1"
mask=STRING|"Gautzsch.csv"
subdirs=STRING|"0"

[Actions\Action7]
ActionID=STRING|"A_SFTP_DEL"
Enabled=INTEGER|-1
Name=STRING|"SFTP Datei vom Server löschen"
Params=FOLDER

[Actions\Action7\Params]
file=STRING|"/ARTIKEL/{FTPCSV}"

[Actions\Action8]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"Loop End"

[Actions\Action9]
ActionID=STRING|"A_SFTP_LOGOFF"
Enabled=INTEGER|-1
Name=STRING|"SFTP Trennen"

[Events]
Event1=FOLDER

[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_GENERAL_CYCLIC"
Name=STRING|"Cyclic (every 300 sec)"
Params=FOLDER
UniqueID=INTEGER|379770114

[Events\Event1\Params]
interval=STRING|"300"
notsatrtatactivation=STRING|"0"


Thanks

Steven
Oleg
Site Admin
Posts: 2994
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Robotask stuck

Post by Oleg »

So the whole application freezes? Weird....
I've never seen anything like this...

What antivirus software do you use?

I see on your screenshots that only one task is working automatically. I'm afraid that the problem is not in your task
Oleg Yershov
gremlin
Posts: 35
Joined: Sun Jan 08, 2023 3:13 pm

Re: Robotask stuck

Post by gremlin »

Hello,
yes, the whole program hangs up.
On the last screen show the task is still running in the list view, but is marked finished in the log.
We use Webroot Endpoint Protection as antivirus software. I suspected it too and uninstalled it. The error in Robotask then also occurs. So I installed Webroot again.
There is currently only 1 task in this folder that is triggered and started. The other tasks have not yet been created and are therefore without triggers or deactivated.
Oleg
Site Admin
Posts: 2994
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Robotask stuck

Post by Oleg »

However, I recommend that add RoboTask and the RoboTask folder to excludes in your antivirus settings.
It can detect suspect actions (for example: periodic creation or removing files) and lock process.

I can also say that I have never seen this behavior before. We are using standard Windows Defender and Windows Defender Firewall
Oleg Yershov
gremlin
Posts: 35
Joined: Sun Jan 08, 2023 3:13 pm

Re: Robotask stuck

Post by gremlin »

Ok, I'll try

UPDATE:
I created a complete backup of all tasks in Robotask.
Then I uninstalled it, restarted the PC, reinstalled Robotask and imported all tasks again.
Since yesterday evening it has been running without any crashes.
Problem solved!!
Post Reply