Page 1 of 1 1
Topic Options
#210359 - 2015-06-24 05:03 PM fatal exception occured
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I have been moving files around with a rather simple script with wkix32.exe 4.64 and 4.63 and the kixtart has been crashing with fatal exception with nothing in eventlog.

code as follows:
 Code:
$trash_container = 'OU=Disabled_accounts,DC=domain,DC=organization'
go c:

$total_processed = 0
$total_fine = 0
	$container = GetObject("LDAP://"+$trash_container)
	$container.filter = split("user")
	for each $user in $container
	        $user.cn ?
		" " $user.homedirectory
		if exist($user.homedirectory) and not instr($user.homedirectory,'\\server\archivedfoldershare$\')
		 md '\\server\archivedfoldershare$\'+@year+@monthno+@mdayno+' '+$user.cn
		 ? "	" '\\server\archivedfoldershare$\'+@year+@monthno+@mdayno+' '+$user.cn " " @error ? "	"
		 move $user.homedirectory+'\*.*' '\\server\archivedfoldershare$\'+@year+@monthno+@mdayno+' '+$user.cn+'\' /r /h /s
		 if not @error
		  del $user.homedirectory+'\*.*' /f /h /s
		  "DEL ERROR: " @error " "
		  shell '%comspec% /c rd /s /q "'+$user.homedirectory+'"' ;kixtart does not work, so need to shell out
		  "RD ERROR: " @error ?
		  if @error sleep 30 exit 0 endif
		  $user.homedirectory = '\\server\archivedfoldershare$\'+@year+@monthno+@mdayno+' '+$user.cn
		  $user.setinfo
		  if @error
		    "error setting new home dir." @error
		    get $ exit 0
		  endif
		 else
		  "Move ERROR: " @error ?
		 endif
		 $count=1+$count
		else
		 $countOK=1+$countOK
		endif
	next

? $count " " $countOK
get $


the code works fine for about 15 folders until kixtart crashes.
same issue running on server 2008R2 and windows 7.
_________________________
!

download KiXnet

Top
#210360 - 2015-06-24 05:17 PM Re: fatal exception occured [Re: Lonkero]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4562
Loc: USA
Curious if you assign vars to $user.cn and $user.homedirectory if you get better results.
Top
#210361 - 2015-06-24 06:06 PM Re: fatal exception occured [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
it just kept crashing and I was able to locate the cause, the move line.

since kixtart move does not work right anyways, I just replaced it with robocopy and script is working smooth again.

I just shouldn't keep forgetting all these non-functioning kixtart commands.
_________________________
!

download KiXnet

Top
#210401 - 2015-07-20 04:12 PM Re: fatal exception occured [Re: Lonkero]
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Hmm, I have tested MOVE with dozens of dirs and it worked fine.

Not sure how to reproduce this error.

When you say 'crash': exactly what happens? Is an event logged, if so what is the exception code, if any?

Ruud

Top
#210404 - 2015-07-21 04:32 PM Re: fatal exception occured [Re: Ruud van Velsen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
eventlog from that date has this event logged:
 Quote:

The description for Event ID 5 from source KIXTART cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

Fatal exception occurred. Error : (0xc0000005/-1073741819)


but this was only recorded once out of the half a dozen crashes before I decided to switch to robocopy.

the issue with kixtart move is not just the crashing that occured this summer. when it does not crash, it fails to move a lot of files and I have ended up restoring from backups due to these issues. I think the move-command needs a serious closer look.
_________________________
!

download KiXnet

Top
#210405 - 2015-07-21 06:32 PM Re: fatal exception occured [Re: Lonkero]
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Ok, thanks, I'll put this on the research list.

Ruud

Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 360 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.057 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.