On our dev AOS, I have a powershell script that runs the following command:
cmd /c 'axbuild.exe xppcompileall /s=01'
When I run this locally on the server, it runs fine. However, I am trying to set this all up through a build server. When I call this remotely from our build server, it fails. This is the command I am using from the build server:
Invoke-Command -ComputerName $Script:MachineName -ScriptBlock {& "C:\Compile\Compile.ps1"}
I log into each server with the same user account.
It reports back "Compile all failed". It also specifies where the log files are, but none of the log files are actually updated. When I look at the AOS machine's event viewer, I see this:
Application popup: Windows - Application Error : The instruction at 0x712614e6 referenced memory at 0x00000000. The memory could not be read.
I tried adding a few parameters to see if that would help, but I am unable to figure it out. I tried changing the number of worker processes, I tried a different /log path, I tried the /altbin, but all the same results.
'axbuild.exe xppcompileall /v /s=01 /log="C:\Compile\Output\" /altbin="C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin"'
I added the /verbose and can see this:
-console 01 -aol=USR -noauto -build=deploy
*** Deploy worker started - waiting for process to exit...
*** Deploy worker completed with result 'Success'
*** Compile all starting at 1/29/2015 3:48:31 PM.
*** Kicking off header compilation (pass 1) with 6 workers.
-console 01 -aol=USR -skipdbsync "-altbin=C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin" -noauto -build=nodelist_C:\Users\dev_hudson_\AppData\Local\Temp\tmp
67A2.tmp,badlist_C:\Users\dev_hudson_\AppData\Local\Temp\tmp67A7.tmp,logfile_C:\Users\dev_hudson_\AppData\Local\Temp\tmp67A8.tmp,compile_pass1
-console 01 -aol=USR -skipdbsync "-altbin=C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin" -noauto -build=nodelist_C:\Users\dev_hudson_\AppData\Local\Temp\tmp
67A4.tmp,badlist_C:\Users\dev_hudson_\AppData\Local\Temp\tmp67A9.tmp,logfile_C:\Users\dev_hudson_\AppData\Local\Temp\tmp67BA.tmp,compile_pass1
-console 01 -aol=USR -skipdbsync "-altbin=C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin" -noauto -build=nodelist_C:\Users\dev_hudson_\AppData\Local\Temp\tmp
67A5.tmp,badlist_C:\Users\dev_hudson_\AppData\Local\Temp\tmp67BB.tmp,logfile_C:\Users\dev_hudson_\AppData\Local\Temp\tmp67BE.tmp,compile_pass1
-console 01 -aol=USR -skipdbsync "-altbin=C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin" -noauto -build=nodelist_C:\Users\dev_hudson_\AppData\Local\Temp\tmp
67A6.tmp,badlist_C:\Users\dev_hudson_\AppData\Local\Temp\tmp67BC.tmp,logfile_C:\Users\dev_hudson_\AppData\Local\Temp\tmp67BF.tmp,compile_pass1
-console 01 -aol=USR -skipdbsync "-altbin=C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin" -noauto -build=nodelist_C:\Users\dev_hudson_\AppData\Local\Temp\tmp
67A3.tmp,badlist_C:\Users\dev_hudson_\AppData\Local\Temp\tmp67BD.tmp,logfile_C:\Users\dev_hudson_\AppData\Local\Temp\tmp67C0.tmp,compile_pass1
*** Worker started - waiting for process to exit...
*** Worker started - waiting for process to exit...
*** Worker started - waiting for process to exit...
*** Worker started - waiting for process to exit...
*** Worker started - waiting for process to exit...
-console 01 -aol=USR -skipdbsync "-altbin=C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin" -noauto -build=nodelist_C:\Users\dev_hudson_\AppData\Local\Temp\tmp
7789.tmp,badlist_C:\Users\dev_hudson_\AppData\Local\Temp\tmp778A.tmp,logfile_C:\Users\dev_hudson_\AppData\Local\Temp\tmp778B.tmp,compile_pass1
*** Worker started - waiting for process to exit...
*** Worker completed with result 'Error -1073741819: unknown failure reason'
*** Worker completed with result 'Error -532462766: unknown failure reason'
*** Worker completed with result 'Error -1073741571: unknown failure reason'
*** Worker completed with result 'Error -1073741819: unknown failure reason'
*** Worker completed with result 'Success'
*** Worker completed with result 'Success'
*** Compile execution for first pass with 6 workers ran from 1/29/2015 3:48:31 PM to 1/29/2015 3:51:03 PM (00:02:31.4300732).
*** Compile all failed at 1/29/2015 3:51:03 PM. Total duration was 00:02:31.4800750.
I tried using some of the community scripts as well, such as this:
Compile-AXXpp -ConfigPath "$Script:DBSyncAxc"
But I get this error:
Error: There is more than one AOS configuration available. Please provide the AOS instance number to obtain the proper configuration using the /s option.
I'm not sure how to append the /s onto this as I believe it is actually calling the same command I am using and would expect the same results.
We are using AX 2012 R2. The AOS is Windows Server 2012.
I do not think it is corrupt memory as it does compile fine when I run locally. Anyone have any ideas? Much appreciated!!!
*This post is locked for comments