Thank you for your reply nipper.I followed the same steps as per "Deploy Multiple Sites to Multiple Runtime Instances" in "SitePublisher Developer Guide".and there is no error other than : Could not invoke method: deployFiles, reason: nullCould you please share how did you add staging environment?
There are way too many variable and steps to post here.There are logs, where did you find that entry? You need to start looking no one here can help with the information you provided. Maybe support can help. Unless you get someone who knows what they are doing with a webex, not much will happen.
Yes, There are too many steps...Here is my steps.... could you please check... if I am doing anything wrong here.. thank you for your time...I Define target nodes in workflow model1. Copy Publish LiveSite Content workflow to a new version e.g. {CustomerName} Publish LiveSite Content, including the following files:iwadmin/main/workflowModels/WORKAREA/iw-wa/Models/Publish LiveSite Content.ipmiwadmin/main/workflowModels/WORKAREA/iw-wa/Config/Publish LiveSite Content_config ( just copy the whole directory contents )Example: iwadmin/main/workflowModels/WORKAREA/iw-wa/Models/Ajuba Publish LiveSite Content.ipmiwadmin/main/workflowModels/WORKAREA/iw-wa/Config/Ajuba Publish LiveSite Content_config 2. Open custom_instantiation.cfg in the newly created "config" directory:iwadmin/main/workflowModels/WORKAREA/iw-wa/Config/Ajuba Publish LiveSite Content_config3. Locate the {item name="TargetNodes"} ( around line 136 )4. Add in the new environments as {option}s.Here's mine for staging. {item pathid="TargetNodes" name="TargetNodes"} {label}Target Nodes{/label} {radio required="t"} {option label="Development" value="development" selected="t"/} {option label="Staging" value="staging" selected="t"/} {option label="Production" value="production"/} {/radio} {/item}5. Save this file and submit it to the STAGING area using either iwsubmit CLT or the standard TS submit workflow.* The following steps only need to be done once *6. Using the Workflow Modeler, open the new workflow from TS ( Retrieve from TeamSite )7. Click on Workflow Model in the upper-left frame, then in the lower-left frame, click on Global Variables8. Scroll down and select SCRIPT(DeployFilesTargetNodes) and click the Edit button.You should see something like this:"development" + ( /** if production is true and there's no review, all in one step! */ ( "$IW_CV(ProductionFlag)" == "true" && "$IW_CV(ReviewFlag)" == "false" ) ? ",production" : "");Change this to the following snippet:• • "development" + • (• /** if not development and there's no review, all in one step! */• ( "$IW_CV(TargetNodes)" != "development" • && "$IW_CV(ReviewFlag)" == "false" )• ? ("," + "$IW_CV(TargetNodes)" )• : ""• );• • • 9. Click Update button, then Click Ok.10. Save the model to TeamSite and Publish it. This should submit it to STAGING area, but please make sure it actually does it. Alternatively you can use the iwsubmit CLT to submit the Config and Models directories from the iw-wa workarea.II Add DataDeploy configuration to livesite-database.xml for each new DBOnly do this step if the environment has a target database.1. Open odhome/etc/livesite-database.xml and add an entry for each new DB, see example below.NOTE: Database name *must be* in the format "livesite-{node-name}" e.g. livesite-stagingHere's mine for SQL2005: {database name="livesite-staging" db="vm671shanon:1433;database=livesite_staging" user="livesite" password="livesite" vendor = "rdbms" jdbc-driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" protocol-url="jdbc:sqlserver" max-id-length = "128" update-type="standalone" state-field="state" commit-batch-size="1" real-update="yes" delete-tracker="yes" /}III Add OD DeploymentTarget for each node that has a filesystem.Only do this for each target node that has a target filesystem.1. Open odhome/etc/odnodes.xml2. Add a {node} for the staging filesystem ( if reusing an existing node, skip this step ) {node name="LiveSiteStagingRuntime" host="VM671SHANON" port="20014" /}3. Save this file.NOTE: You must also configure the receiver on the runtime filesystem, specifically the {allowedDirectories}.4. Open livesite_customer_src/etc/livesite_customer/resources/customer-teamsite-resource-config.xml5. Add an extensible bean reference for the DeploymentTarget map.Here's mine for the "staging" environment:( this {bean} definition goes between the {beans} root node, already present in the file ){bean id="customer.teamsite.DeploymentService.OpenDeploy.DeploymentTargetMap" parent="teamsite.DeploymentService.OpenDeploy.DeploymentTargetMap"} {property name="sourceMap"} {map merge="true"} {entry key="staging"} {list merge="true"} {bean class="com.interwoven.livesite.deployment.model.DeploymentTarget"} {!-- define this node mapping in odhome/conf/odnodes.xml --} {property name="targetNode" value="LiveSiteStagingRuntime"/} {!-- the absolute path to the web root on the staging filesystem, must be in the allowedDirectories on the receiver --} {property name="targetDirectory" value="c:/livesite/runtime/web"/} {!-- define which files should be deployed using this target, defaults to all in the /default store --} {property name="filterPatterns"} {bean class="com.interwoven.livesite.common.util.PatternWrapper" factory-method="createList"} {constructor-arg} {list} {!-- this list of patterns allows everything in the /default branch, or a sub-branch. --} {value}^(//[^/]+)?/default/.*{/value} {!-- enter as many value patterns as you like {value}/default/foo{/value} --} {/list} {/constructor-arg} {/bean} {/property} {/bean} {/list} {/entry} {/map} {/property} {/bean}IV Rebuild the toolkit 1. Open cmd to livesite_customer_src and run build.bat.2. Stop and start the OpenDeploy service on the base and receiver.V Configure the workflow in TeamSite Administration1. Configure the Ajuba Publish LiveSite Content workflow to be used instead of the Publish LiveSite Content workflow where deployment to these new environments is required.
Your Staging node is not configured to Deploy.Livesite-database.xml is set to deploy to db.When it say Deploy NULL....it was unable to deploy to LSCS. look at lscs-authoring.xml and make necessary changes to deploy to staging server.Thanks
I am adding staging env first time. so, sorry for my questions.What do you mean by staging node is not configured to deploy, could you please elaborate it? can you upload an example . what it should be?Can you upload your configured Livesite-database.xml ?Waiting for your response , thank you.
In your case, Nothing to do with LiveSite-database.xml. It is correct.Look for lscs-authoring.xml and make necessary changes. Thanks
I have added staging node in lscs-authoring.xml as follow..{preview lscsContext="lscs" lscsRuntimeTransport="http" lscsRuntimeHostname="localhost" lscsRuntimePort="8080" destinationArea="/opt/LSCSAuth-Store" destinationNode="localhost"/{{production lscsContext="lscs" lscsRuntimeTransport="http" lscsRuntimeHostname="localhost" lscsRuntimePort="8080" destinationArea="/opt/LSCSRT-Store" destinationNode="LSCSRuntime"/{{staging lscsContext="lscs" lscsRuntimeTransport="http" lscsRuntimeHostname="localhost" lscsRuntimePort="8080" destinationArea="/opt/LSCSRT-Store" destinationNode="LSCSStagingRuntime"/}Still showing same error message.Is above configuration correct?
No, It is not correct.Change your lscsRuntimeHostname from localhost to Staging Node.Thanks
Thank you for your quick response...I can publish to production.the configuration for production node is on second line . where lscsRuntimeHostname="localhost" and destinationNode="LSCSRuntime".On the other hand I configured the staging same way, lscsRuntimeHostname="localhost" and destinationNode="LSCSStagingRuntime"which was not working.However, after your input I replaced "localhost" with "LSCSStagingRuntime" in staging node.But it doesn't make any change and showing the same error message.Could you please upload configuration file sample?Thank you in advance.
Ok, Please attach odnodes.xml and lscs-authoring.xml I knew the problem, Please upload those 2 filesThanks
Please find the attachmentThank you
Change your destination node in lscs-authoring.xml file for staging node to LiveSiteStagingRuntime and restart your od and try deployment.Thanks
I am sorry to say, but it is showing the same error.Is there any other file should I need to check?Thank you
For Staging deployment, only these 2 files..In Livesite-database.xml, It should be configured properly for staging DB. Please check that.Thanks
Yes, I had added staging node{database name="livesite-staging" db="runtime-staging/iwlsdisplay" user="iwadmin" password="mlsdfsdfdeeqghTz7BX+JQYfZm3Wk5Oo" vendor="rdbms" jdbc-driver="com.mysql.jdbc.Driver" protocol-url="jdbc:mysql" max-id-length="128" update-type="standalone" state-field="state" enforce-ri="yes" commit-batch-size="1" real-update="yes" delete-tracker="yes" password-encoded="yes"/}also updated SCRIPT(DeployFilesTargetNodes) of PLC workflowOLD...."development" + ( /** if production is true and there's no review, all in one step! */ ( "$IW_CV(ProductionFlag)" == "true" && "$IW_CV(ReviewFlag)" == "false" ) ? ",production" : "");NEW ..... "development" + ( /** if not development and there's no review, all in one step! */ ( "$IW_CV(TargetNodes)" != "development" && "$IW_CV(ReviewFlag)" == "false" ) ? ("," + "$IW_CV(TargetNodes)" ) : "" );Am I missing anything else ?Please help, thank you..
Ok, Looks correct.Now, Look into your Opendeploy log files and see, Where it is throwing error, is it in lscs or LiveSite.Thanks
There is no error log has been created in OD/LSCS and OD/LiveSite for new deploymentit is only showing following error in workflow window and in content_center.log (please find the attachment )Error during task execution: Could not invoke method: deployFiles, reason: null
Then, It is not even triggering OD.
Check the permissions on the od-home/conf/lscs folderIt needs to be writable by iwui.iwtsdrwxrwxr-x 2 iwui iwts 12288 Aug 30 18:14 lscsyour should see files like this in lscsrw-r--r-- 1 iwui nobody 4768 Aug 29 11:03 commit-deploy-plc_h68701f2h68701fh.xml-rw-r--r-- 1 iwui nobody 4768 Aug 29 11:03 commit-deploy-plc_h68701f2h68701fk.xml-rw-r--r-- 1 iwui nobody 4768 Aug 29 11:20 commit-deploy-plc_h68701fph68701g1.xml-rw-r--r-- 1 iwui nobody 4768 Aug 29 11:20 commit-deploy-plc_h68701fph68701g4.xml-rw-r--r-- 1 iwui nobody 4768 Aug 29 11:20 commit-deploy-plc_h68701fph68701g7.xml