cancel
Showing results for 
Search instead for 
Did you mean: 

Dual Deployer Probelms

mangar
Star Contributor
Star Contributor
All,

  I have 2 file deployers. One to server A and one to server B. They both work fine individually, however, when i check both when I try and deploy both I have problems. Some files are not the latest that I have checked in, and also some have a 0k file size.

  Is this a known issue? is there a synchronization/threading problem? I know that starts an instance of org.alfresco.deployment.impl.server.DeploymentTargetRegistrationBean, is that not thread safe? or am I way off base here.

Any help is greatly appreciated.
Mangar
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
You need to post more details.      In particular what do you mean by "file deployers",  that's not a term we use with WCM.    I'd like to know what targets you are deploying to,  where they are and how they are configured.  

However if you have two "file deployers" you need to make sure that each target has its own metadata directory.   It sounds like you may have two targets sharing the same metadata.

mangar
Star Contributor
Star Contributor
Here are my Spring Beans for the Deployment Receivers I am using:


   <bean class="org.alfresco.deployment.impl.server.DeploymentTargetRegistrationBean"
      init-method="register" >
      
      <property name="name"><value>GMU-Defence-Dev</value></property>
      <property name="registry"><ref bean="deploymentReceiverEngine" /></property>
      
      <property name="target">
          <bean class="org.alfresco.deployment.impl.fsr.FileSystemDeploymentTarget" init-method="init">
                       <property name="rootDirectory"><value>/mnt/var/www/html/GMU/ND</value></property>
                      
                       <!–  where to store meta data –>
                    <property name="metaDataDirectory">
                        <value>/mnt/var/www/META/GMU/ND-Dev</value>
                    </property>
                      
                      <property name="autoFix"><value>${deployment.filesystem.autofix}</value></property>
                      <property name="fileSystemReceiverService"><ref bean="fileSystemReceiverService"/></property>
                      
                      <!–  how to authenticate for this particular target –>
                  <property name="authenticator">
                  <bean class="org.alfresco.repo.deploy.DeploymentReceiverAuthenticatorAuthenticationService"
                     init-method="init">
                     <property name="authenticationService">
                        <ref bean="AuthenticationService" />
                     </property>
                  </bean>
                  </property>
           </bean>
       </property>
   </bean>

   <bean class="org.alfresco.deployment.impl.server.DeploymentTargetRegistrationBean"
      init-method="register" >
      
      <property name="name"><value>GMU-Defence-Stage</value></property>
      <property name="registry"><ref bean="deploymentReceiverEngine" /></property>
      
      <property name="target">
          <bean class="org.alfresco.deployment.impl.fsr.FileSystemDeploymentTarget" init-method="init">
                       <property name="rootDirectory"><value>/imports/kucy2scqweb01/wwwroot/GMU/ND</value></property>
                      
                       <!–  where to store meta data –>
                    <property name="metaDataDirectory">
                        <value>/mnt/var/www/META/GMU/ND-Stage</value>
                    </property>
                      
                      <property name="autoFix"><value>${deployment.filesystem.autofix}</value></property>
                      <property name="fileSystemReceiverService"><ref bean="fileSystemReceiverService"/></property>
                      
                      <!–  how to authenticate for this particular target –>
                  <property name="authenticator">
                  <bean class="org.alfresco.repo.deploy.DeploymentReceiverAuthenticatorAuthenticationService"
                     init-method="init">
                     <property name="authenticationService">
                        <ref bean="AuthenticationService" />
                     </property>
                  </bean>
                  </property>
           </bean>
       </property>
   </bean>

I have 2 different metadata directories.

Do i call this FSR? Is that the correct terminology?

mrogers
Star Contributor
Star Contributor
That config looks O.K.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.