Alfresco 无法上传共享文件

Alfresco Unable to upload files in share

我在 Ubuntu 机器上使用 Alfresco 独立社区版,使用 EFS 作为存储。最近在共享中上传文件时遇到问题,因为它显示“失败:上传新内容时发生意外错误”。Alfresco file upload error

所以检查了 Catalina 日志,下面提到的是错误。

 ERROR [quartz.core.ErrorLogger] [DefaultScheduler_Worker-2] Job (DEFAULT.org.springframework.scheduling.quartz.JobDetailFactoryBean#4dc8d91c threw an exception.
 org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.RuntimeException: Unable to update the tag scopes.]
        at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.lang.RuntimeException: Unable to update the tag scopes.
        at org.alfresco.repo.tagging.UpdateTagScopesActionExecuter.executeImpl(UpdateTagScopesActionExecuter.java:295)
        at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:273)
        at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:856)
        at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:757)
        at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:581)
        at sun.reflect.GeneratedMethodAccessor508.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:41)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:53)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:166)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
        at com.sun.proxy.$Proxy51.executeAction(Unknown Source)
        at org.alfresco.repo.tagging.UpdateTagScopesQuartzJob.execute(UpdateTagScopesQuartzJob.java:152)
        at org.alfresco.repo.tagging.UpdateTagScopesQuartzJob.execute(UpdateTagScopesQuartzJob.java:99)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

Caused by: org.alfresco.service.cmr.repository.ContentIOException: 07290412 Failed to create directory for file storage: /mnt/alf_data/alf_data/contentstore/2021/8/29/22/34
        at org.alfresco.repo.content.filestore.FileContentStore.makeDirectory(FileContentStore.java:309)
        at org.alfresco.repo.content.filestore.FileContentStore.createNewFile(FileContentStore.java:255)
        at org.alfresco.repo.content.filestore.FileContentStore.createNewFile(FileContentStore.java:223)
        at org.alfresco.repo.content.filestore.FileContentStore.getWriterInternal(FileContentStore.java:505)
        at org.alfresco.repo.content.AbstractContentStore.getWriter(AbstractContentStore.java:238)
        at org.alfresco.repo.content.AbstractRoutingContentStore.getWriter(AbstractRoutingContentStore.java:365)
        at sun.reflect.GeneratedMethodAccessor510.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.alfresco.repo.management.subsystems.SubsystemProxyFactory.invoke(SubsystemProxyFactory.java:79)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.alfresco.repo.management.subsystems.CryptodocSubsystemProxyFactory.invoke(CryptodocSubsystemProxyFactory.java:60)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
        at com.sun.proxy.$Proxy24.getWriter(Unknown Source)
        at org.alfresco.repo.content.ContentServiceImpl.getWriter(ContentServiceImpl.java:523)
        at sun.reflect.GeneratedMethodAccessor509.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.alfresco.repo.model.ml.MLContentInterceptor.invoke(MLContentInterceptor.java:136)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:53)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:166)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
        at com.sun.proxy.$Proxy58.getWriter(Unknown Source)
        at org.alfresco.repo.tagging.UpdateTagScopesActionExecuter.performUpdates(UpdateTagScopesActionExecuter.java:468)
        at org.alfresco.repo.tagging.UpdateTagScopesActionExecuter.access(UpdateTagScopesActionExecuter.java:380)
        at org.alfresco.repo.tagging.UpdateTagScopesActionExecuter.execute(UpdateTagScopesActionExecuter.java:262)
        at org.alfresco.repo.tagging.UpdateTagScopesActionExecuter.execute(UpdateTagScopesActionExecuter.java:1)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)
        at org.alfresco.repo.tagging.UpdateTagScopesActionExecuter.doWork(UpdateTagScopesActionExecuter.java:229)
        at org.alfresco.repo.tagging.UpdateTagScopesActionExecuter.doWork(UpdateTagScopesActionExecuter.java:1)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:555)
        at org.alfresco.repo.tagging.UpdateTagScopesActionExecuter.executeImpl(UpdateTagScopesActionExecuter.java:222)
        ... 25 more

尝试按照网络建议在 alfresco-global 配置文件中添加以下设置,但错误仍未解决。

transform.service.enabled=false
local.transform.service.enabled=false
legacy.transform.service.enabled=false

根据 catalina 日志的错误,无法为文件存储创建目录,但挂载的 efs 卷具有 alfresco 用户权限并且它在 sudoers 组中。

任何想法或建议都会有很大的帮助谢谢

上述问题是权限问题,将 efs 权限更改为 alfresco 用户后已解决。