cancel
Showing results for 
Search instead for 
Did you mean: 

File System Deployment to Test Server in 3.2 is not working

thoughtspring
Champ in-the-making
Champ in-the-making
All, I've installed 3.2 Community Edition on Ubuntu 9.04, created a Web Project, and setup 2 filesystem deployment receivers using the locally Bundled Receiver framework, one as a Live Server and the other as a Test Server.  The configuration for both receivers are the same except for the server type (Live vs. Test).  Deployments via the Live Server are successful, but deployments via the Test Server fail with the error message: Path /www/avm_webapps not found.  The stack track indicates an org.alfresco.service.cmr.avm.AVMNotFoundException at org.alfresco.repo.deploy.DeploymentServiceImpl.deployDifferenceFS(DeploymentServiceImpl:1179).  I stood up a Standalone Receiver on a different server and am seeing the same behavior.  Has anyone else encountered this issue?
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
There should be no difference between deployment to a test server and deployment to a live server.      If you can't solve this issue then please raise it in JIRA with as much detail as possible.    And please include the detail of the stack trace.   Also check whether there are any errors logged on the deployment engine.

thoughtspring
Champ in-the-making
Champ in-the-making
I'll spend a little more time troubleshooting before I log this as a defect.  The stack trace I'm getting, only when deploying to a Test Server, is as follows:

01:01:17,485  ERROR [avm.actions.AVMDeployWebsiteAction] Deployment Error
org.alfresco.service.cmr.avm.AVMException: 07140007 Deployment exception, unable to deploy : srcPath:thoughtspring-site–admin:/www/avm_webapps, target:default, version:52, adapterName:default, hostName:x.x.x.x, port:44,100, errorSmiley Surprisedrg.alfresco.service.cmr.avm.AVMException: 07140006 Error during deployment srcPath: thoughtspring-site–admin:/www/avm_webapps, version:52, adapterName:default, hostName:x.x.x.x, port:44,100, errorSmiley Surprisedrg.alfresco.service.cmr.avm.AVMNotFoundException: 07140005 Path /www/avm_webapps not found.
   at org.alfresco.repo.deploy.DeploymentServiceImpl.deployDifferenceFS(DeploymentServiceImpl.java:1179)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
   at org.alfresco.repo.transaction.CheckTransactionAdvice.invoke(CheckTransactionAdvice.java:52)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.alfresco.repo.transaction.RetryingTransactionAdvice$1.execute(RetryingTransactionAdvice.java:70)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:326)
   at org.alfresco.repo.transaction.RetryingTransactionAdvice.invoke(RetryingTransactionAdvice.java:73)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy78.deployDifferenceFS(Unknown Source)
   at org.alfresco.repo.avm.actions.AVMDeployWebsiteAction.executeImpl(AVMDeployWebsiteAction.java:401)
   at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:127)
   at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:711)
   at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:648)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:369)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:326)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:233)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:378)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:489)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:381)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:619)
Caused by: org.alfresco.service.cmr.avm.AVMException: 07140006 Error during deployment srcPath: thoughtspring-site–admin:/www/avm_webapps, version:52, adapterName:default, hostNamex.x.x.x, port:44,100, errorSmiley Surprisedrg.alfresco.service.cmr.avm.AVMNotFoundException: 07140005 Path /www/avm_webapps not found.
   at org.alfresco.repo.deploy.DeploymentServiceImpl.deployDifferenceFS(DeploymentServiceImpl.java:1154)
   … 28 more
Caused by: org.alfresco.service.cmr.avm.AVMNotFoundException: 07140005 Path /www/avm_webapps not found.
   at org.alfresco.repo.avm.AVMStoreImpl.getListing(AVMStoreImpl.java:647)
   at org.alfresco.repo.avm.AVMRepository.getListing(AVMRepository.java:1072)
   at org.alfresco.repo.avm.AVMServiceImpl.getDirectoryListing(AVMServiceImpl.java:194)
   at org.alfresco.repo.avm.AVMServiceImpl.getDirectoryListing(AVMServiceImpl.java:172)
   at org.alfresco.repo.avm.MultiTAVMService.getDirectoryListing(MultiTAVMService.java:286)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
   at org.alfresco.repo.transaction.CheckTransactionAdvice.invoke(CheckTransactionAdvice.java:52)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.alfresco.repo.transaction.SingleEntryTransactionResourceInterceptor.invokeInternal(SingleEntryTransactionResourceInterceptor.java:169)
   at org.alfresco.repo.transaction.SingleEntryTransactionResourceInterceptor.invoke(SingleEntryTransactionResourceInterceptor.java:138)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy8.getDirectoryListing(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
   at org.alfresco.repo.search.AVMSnapShotTriggeredIndexingMethodInterceptor.invoke(AVMSnapShotTriggeredIndexingMethodInterceptor.java:154)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy8.getDirectoryListing(Unknown Source)
   at org.alfresco.repo.deploy.DeploymentServiceImpl.deployDirectoryPushFSR(DeploymentServiceImpl.java:1228)
   at org.alfresco.repo.deploy.DeploymentServiceImpl.deployDifferenceFS(DeploymentServiceImpl.java:1095)
   … 28 more

thoughtspring
Champ in-the-making
Champ in-the-making
I haven't investigated why yet, but when I modify the lookup method in the NOOPLookupCache class to pick-up the previous version of the user sandbox, the deployment is successful.  The changes I made were to lines 62 and 72 (to reference version - 1 instead of version) as follows:

Lookup result = new Lookup(store, store.getName(), version-1);

VersionRoot vRoot = AVMDAOs.Instance().fVersionRootDAO.getByVersionID(store, version-1);

The deployment fails without these modifications because line 75 (dir = vRoot.getRoot():smileywink: returns null when the NOOPLookupCache class attempts to pickup the current version as specified by the version variable.  I figure this behavior is probably occuring because of a) array index issues OR b) because of transaction-commit issues… the latest version was created and not commited, so it is not available to the NOOPLookupCache.

Alfresco engineers, any insight or do I need to keep digging?