Strange error with nnCron Lite

nnCron and nnCron LITE discussion

Strange error with nnCron Lite

Postby alde » Tue, 12 Apr 2005, 11:24

Hi all,

I'm trying to launch a task using the nnCron Lite. However something is happening.

This is the log of the cron after trying to launch the task:

09:46:31 1864 Load cron.tab
09:47:00 3108 Internal err # -1073741819:TASK-#-1
09:47:00 3108 TASK STACK ERROR. Stack is destroyed (8)
09:47:00 3108 Stack error in task:TASK-#-1

And this is the result in the file taskinfo.txt:

"C:\Test.exe","623A3DD","12.04.2005/09:46:31","","12.04.2005/09:47:00","1","1"

What is happening? Why cron couldn't launch that task?
Last edited by alde on Tue, 12 Apr 2005, 11:49, edited 1 time in total.
alde
 
Posts: 6
Joined: Thu, 24 Feb 2005, 11:52

Postby VK » Tue, 12 Apr 2005, 11:29

Can you, please, show us what is in your cron.tab? Which nnCron LITE build do you use?
CU
VK
User avatar
VK
 
Posts: 680
Joined: Wed, 14 Jul 2004, 19:17

Postby alde » Tue, 12 Apr 2005, 11:56

This is the content of the cron.tab file:

#CRONTAB FILE
# Minutes Hours Days Months WeekDays Year Command

@47 9 12 4 * 2005 C:\Test.exe

And the content of the cron.ini file is:

Cronlog: "log\%MM%%DD%cron.log"
LogTimeFormat: "%hh%:%mm%:%ss% %ThreadId%"
YearField ON
DefaultOpenMode: SWHide
DefaultPriority: NormalPriority
AsLoggedUser ON
DefaultRunMissedTime: 30


The version I'm using of nnCron Lite is the "1.17 build 118 21.02.2005".

Regards.
alde
 
Posts: 6
Joined: Thu, 24 Feb 2005, 11:52

Postby VK » Tue, 12 Apr 2005, 12:07

Hmmm... Can not reproduce this. Does this error persists after you restart your PC?
CU
VK
User avatar
VK
 
Posts: 680
Joined: Wed, 14 Jul 2004, 19:17

Postby alde » Tue, 12 Apr 2005, 13:16

I have just reboot the server, but the problem continues happening.

In my local machine cron works right, the problem started to happen when I uploaded cron to the test server. It was installed well on this one, the service started correctly, but then began to happen this trouble.

I have tested it's not problem of permissions, anyone has access to the file C:\Test.exe, also I have tried to change the log on user for cron service to Admin user, but it doesn't work too.

Any idea?
alde
 
Posts: 6
Joined: Thu, 24 Feb 2005, 11:52

Postby VK » Tue, 12 Apr 2005, 13:27

Can you reproduce the error if you start the nnCron LITE not as system service, but as the ordinary application (using -ns command line switch)?
CU
VK
User avatar
VK
 
Posts: 680
Joined: Wed, 14 Jul 2004, 19:17

Postby alde » Tue, 12 Apr 2005, 13:48

I have just launch cron as a ordinary application. The result is the same and in this case I tried to launch notepad.exe:

cron.log:

12:30:29 2632 Start nnCron
12:30:29 2632 Load cron.tab
12:33:00 2664 Internal err # -1073741795:TASK-#-1
12:33:00 2664 TASK STACK ERROR. Stack is destroyed (8)
12:33:00 2664 Stack error in task:TASK-#-1


taskinfo.txt:

"notepad.exe","E060DCFB","12.04.2005/12:30:29","","12.04.2005/12:33:00","1","1"

A question that I have is nnCronn has marked the task in the taskinfo.txt as it had been executed, when this is not correct as the execution crashed on the middle of the process. Due to it, even the task in the cron.tab file is marked with @ symbol this is not executed anymore. I mean, nnCron is not able to detect that task was not finished right wherefore it doesn't try to execute again.

Well, I accept more ideas...
alde
 
Posts: 6
Joined: Thu, 24 Feb 2005, 11:52

Postby VK » Tue, 12 Apr 2005, 14:06

Please, set the 'AsLoggedUser' to 'OFF' and restart the nnCron LITE service. Does this solves the problem?
CU
VK
User avatar
VK
 
Posts: 680
Joined: Wed, 14 Jul 2004, 19:17

Postby alde » Tue, 12 Apr 2005, 14:58

Now this works, thank you very much!

Only a note, now I had to change the log on user of the service because the application started as system user and then after I could not kill it.

Thank you by your help!

Regards.
alde
 
Posts: 6
Joined: Thu, 24 Feb 2005, 11:52


Return to nnCron forum (English)

Who is online

Users browsing this forum: No registered users and 2 guests

cron