Cancel
Showing results for 
Search instead for 
Did you mean: 

AWC 4.0 patch fails: Active Workspace client application deployment file creation has failed!

Valued Contributor
Valued Contributor

Hi

 

TC11.4 and AWC 3.4.3 .NET, trying to patch to AWC 4.0.1 (TEM).  

 

Everything runs smoothly until reaching 'postpatch' phase. 

 

Copying directory D:\Siemens\TEAMCENTER\Tc11.2\aws2dotnet to D:\Siemens\TEAMCENTER\Tc11.2\aws2dotnet_backup
Deleting directory D:\Siemens\TEAMCENTER\Tc11.2/aws2dotnet, recurse: true
Unable to delete D:\Siemens\TEAMCENTER\Tc11.2\aws2dotnet\logs\log4net.log
Unable to delete directory D:\Siemens\TEAMCENTER\Tc11.2\aws2dotnet\logs because it is not empty. - Recurse: false
Unable to delete directory D:\Siemens\TEAMCENTER\Tc11.2\aws2dotnet because it is not empty. - Recurse: false
Running com.teamcenter.install.tceng.awsclient.util.AwcWarFileCreator
Preparing to create 'awc.war'
Updating script: D:\Siemens\TEAMCENTER\Tc11.2\aws2\stage\gwtcompile.cmd
Updating GWT Compile script
Setting [AWS2_STAGE_DIR=D:\Siemens\TEAMCENTER\Tc11.2\aws2\stage]
Updating GWT Compile script
Setting [JAVA_HOME=D:\Siemens\Java\jdk1.8.0_65]
Calling GWT Compile

Executing ["D:\Siemens\TEAMCENTER\Tc11.2\aws2\stage\gwtcompile.cmd" iis]
Output from command:  "D:\Siemens\TEAMCENTER\Tc11.2\aws2\stage\gwtcompile.cmd" iis
+++ This is an IIS Deployment
module.js:540
    throw err;
    ^

Error: Cannot find module 'D:\Siemens\TEAMCENTER\Tc11.2\aws2\stage\node_modules\gulp\bin\gulp.js'
    at Function.Module._resolveFilename (module.js:538:15)
    at Function.Module._load (module.js:468:25)
    at Function.Module.runMain (module.js:684:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
build error 
command_exit=1
Exit Status  1, elapsed time 0:00:00
SEVERE: Active Workspace client application deployment file creation has failed! Command 'D:\Siemens\TEAMCENTER\Tc11.2\aws2\stage\gwtcompile.cmd' has returned with status: '1'.
An error occurred during execution.  Stack trace follows...
com.teamcenter.install.tceng.awsclient.util.AwcWarFileCreator.callGWTCompile(AwcWarFileCreator.java:218)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
com.teamcenter.install.tem.tasks.JavaTask.execute(JavaTask.java:209)
com.teamcenter.install.tem.tasks.Task.execute(Task.java:139)
com.teamcenter.install.tem.tasks.blocks.CodeBlock.execute(CodeBlock.java:201)
com.teamcenter.install.tem.tasks.blocks.CodeBlock.execute(CodeBlock.java:181)
com.teamcenter.install.tem.patch.Patch.processPatchTasks(Patch.java:1141)
com.teamcenter.install.tem.patch.Patch.processPostpatchTasks(Patch.java:832)
com.teamcenter.install.tem.patch.Patch.finish(Patch.java:461)
com.teamcenter.install.tem.patch.Patch.begin(Patch.java:306)
com.teamcenter.install.tem.director.actions.PatchingAction.execute(PatchingAction.java:47)
com.teamcenter.install.tem.director.DirectorScript.execute(DirectorScript.java:145)
com.teamcenter.install.tem.director.Director.run(Director.java:134)
java.lang.Thread.run(Unknown Source)
Searching for 'x of y' comment(s)
Flushing comment(s) from the system

Returns error;

Error: Cannot find module 'D:\Siemens\TEAMCENTER\Tc11.2\aws2\stage\node_modules\gulp\bin\gulp.js'

I checked the stage folder, and the nodes_modules folder is actyuallmissing.

When looking in the backup from the 3.4.3 install the folder is existing.

 

It seems like the install is cleaning it up along with the other folders in stage directory. But somehow it is not re-created again by patch? Not sure how these are created because I cannot find any reference to copying or creating it in log file of 3.4.3 install?

 

 

Running com.teamcenter.install.tem.patch.Patch
Zip utility: null
...changing to: D:\Siemens\TEAMCENTER\Tc11.2\install\install\zip
Unzip utility:  D:\Siemens\TEAMCENTER\Tc11.2\install\install\unzip
Completed method [createInputFile] in class [com.teamcenter.install.tem.patch.Patch].
Deleting D:\Siemens\TEAMCENTER\Tc11.2\install\install\modules\process_awcwar.xml
Deleting directory D:\Siemens\TEAMCENTER\Tc11.2/aws2/stage/node_modules, recurse: true
Deleting directory D:\Siemens\TEAMCENTER\Tc11.2/aws2/stage/out, recurse: true
Deleting directory D:\Siemens\TEAMCENTER\Tc11.2/aws2/stage/repo, recurse: true

 

So I just try the 'easy fix' to copy the node_module folder from 3.4.3 backup to 4.0.1 and retry the patch. 

 

*** RETRY ATTEMPT
***
Running com.teamcenter.install.tceng.awsclient.util.AwcWarFileCreator Preparing to create 'awc.war' Updating script: D:\Siemens\TEAMCENTER\Tc11.2\aws2\stage\gwtcompile.cmd Updating GWT Compile script Setting [AWS2_STAGE_DIR=D:\Siemens\TEAMCENTER\Tc11.2\aws2\stage] Updating GWT Compile script Setting [JAVA_HOME=D:\Siemens\Java\jdk1.8.0_65] Calling GWT Compile Executing ["D:\Siemens\TEAMCENTER\Tc11.2\aws2\stage\gwtcompile.cmd" iis] Output from command: "D:\Siemens\TEAMCENTER\Tc11.2\aws2\stage\gwtcompile.cmd" iis +++ This is an IIS Deployment module.js:540 throw err; ^ Error: Cannot find module 'gulp-changed' at Function.Module._resolveFilename (module.js:538:15) at Function.Module._load (module.js:468:25) at Module.require (module.js:587:17) at require (internal/module.js:11:18) at Object.<anonymous> (D:\Siemens\TEAMCENTER\Tc11.2\aws2\stage\build\site.js:17:17) at Module._compile (module.js:643:30) at Object.Module._extensions..js (module.js:654:10) at Module.load (module.js:556:32) at tryModuleLoad (module.js:499:12) at Function.Module._load (module.js:491:3) build error command_exit=1 Exit Status 1, elapsed time 0:00:01 SEVERE: Active Workspace client application deployment file creation has failed! Command 'D:\Siemens\TEAMCENTER\Tc11.2\aws2\stage\gwtcompile.cmd' has returned with status: '1'. An error occurred during execution. Stack trace follows... com.teamcenter.install.tceng.awsclient.util.AwcWarFileCreator.callGWTCompile(AwcWarFileCreator.java:218) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) com.teamcenter.install.tem.tasks.JavaTask.execute(JavaTask.java:209) com.teamcenter.install.tem.tasks.Task.execute(Task.java:139) com.teamcenter.install.tem.tasks.blocks.CodeBlock.execute(CodeBlock.java:201) com.teamcenter.install.tem.tasks.blocks.CodeBlock.execute(CodeBlock.java:181) com.teamcenter.install.tem.patch.Patch.processPatchTasks(Patch.java:1141) com.teamcenter.install.tem.patch.Patch.processPostpatchTasks(Patch.java:832) com.teamcenter.install.tem.patch.Patch.finish(Patch.java:461) com.teamcenter.install.tem.patch.Patch.begin(Patch.java:306) com.teamcenter.install.tem.director.actions.PatchingAction.execute(PatchingAction.java:47) com.teamcenter.install.tem.director.DirectorScript.execute(DirectorScript.java:145) com.teamcenter.install.tem.director.Director.run(Director.java:134) java.lang.Thread.run(Unknown Source)

Now it returns 

Error: Cannot find module 'gulp-changed'

So just copying the missing folder didn't seem to work. 

 

Any idea what might be wrong here and how to fix it?