linagora / linshare

LinShare
https://www.linshare.org/
GNU Affero General Public License v3.0
476 stars 86 forks source link

[6.0.3] OPTIONAL_MIGRATE_FILE_DATA_STORAGE_TO_A_NEW_ONE -> Wrong fileDatastore ! Check spring profiles #277

Open Flopil opened 1 year ago

Flopil commented 1 year ago

Hi there, This task has failed : [OPTIONAL_MIGRATE_FILE_DATA_STORAGE_TO_A_NEW_ONE] [UPGRADE_TASKS.TASKS.OPTIONAL_MIGRATE_FILE_DATA_STORAGE_TO_A_NEW_ONE] I performed the following migration: 4.2.6 -> 5.0.0 -> 5.1.0 -> 6.0.3

Can I still use Linshare knowing that the documents have not been migrated? Is it possible to know what is checked to give this error please?

Here is my log:

05/17/2023 - 4:06:18 PM INFO : Task is starting ... 05/17/2023 - 4:06:18 PM ERROR : 1/5534:Wrong fileDatastore ! Check spring profiles. 05/17/2023 - 4:06:18 PM ERROR : 1/5534:Unhandled TechnicalException in batch : org.linagora.linshare.core.upgrade.v6_0.FileDataStoreMigrationUpgradeTaskImpl 05/17/2023 - 4:06:18 PM ERROR : Critical error for the current task. Task stopped. 05/17/2023 - 4:06:18 PM ERROR : Summary : success: 0, skipped: 5533, errors: 0, unhandled errors: 1

catalina.out :

[2023-05-17 16:43:02] [info] 16:43:02.407 [taskExecutor-11] ERROR org.linagora.linshare.core.upgrade.v6_0.FileDataStoreMigrationUpgradeTaskImpl - 1/5534:Wrong fileDatastore ! Check spring profiles. [2023-05-17 16:43:02] [info] 16:43:02.416 [taskExecutor-11] ERROR org.linagora.linshare.core.upgrade.v6_0.FileDataStoreMigrationUpgradeTaskImpl - 1/5534:Unhandled TechnicalException in batch : org.linagora.linshare.core.upgrade.v6_0.FileDataStoreMigrationUpgradeTaskImpl [2023-05-17 16:43:02] [info] 16:43:02.419 [taskExecutor-11] ERROR org.linagora.linshare.core.runner.impl.BatchRunnerImpl - Wrong fileDatastore ! Check spring profiles. [2023-05-17 16:43:02] [info] org.linagora.linshare.core.exception.TechnicalException: Wrong fileDatastore ! Check spring profiles. [2023-05-17 16:43:02] [info] #011at org.linagora.linshare.core.upgrade.v6_0.FileDataStoreMigrationUpgradeTaskImpl.execute(FileDataStoreMigrationUpgradeTaskImpl.java:77) ~[classes/:6.0.3] [2023-05-17 16:43:02] [info] #011at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] [2023-05-17 16:43:02] [info] #011at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] [2023-05-17 16:43:02] [info] #011at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] [2023-05-17 16:43:02] [info] #011at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] [2023-05-17 16:43:02] [info] #011at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.3.22.jar:5.3.22] [2023-05-17 16:43:02] [info] #011at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) ~[spring-aop-5.3.22.jar:5.3.22] [2023-05-17 16:43:02] [info] #011at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.22.jar:5.3.22] [2023-05-17 16:43:02] [info] #011at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123) ~[spring-tx-5.3.22.jar:5.3.22] [2023-05-17 16:43:02] [info] #011at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388) ~[spring-tx-5.3.22.jar:5.3.22] [2023-05-17 16:43:02] [info] #011at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119) ~[spring-tx-5.3.22.jar:5.3.22] [2023-05-17 16:43:02] [info] #011at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.22.jar:5.3.22] [2023-05-17 16:43:02] [info] #011at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) ~[spring-aop-5.3.22.jar:5.3.22] [2023-05-17 16:43:02] [info] #011at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.22.jar:5.3.22] [2023-05-17 16:43:02] [info] #011at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215) ~[spring-aop-5.3.22.jar:5.3.22] [2023-05-17 16:43:02] [info] #011at com.sun.proxy.$Proxy279.execute(Unknown Source) ~[?:?] [2023-05-17 16:43:02] [info] #011at org.linagora.linshare.core.runner.impl.BatchRunnerImpl.execute(BatchRunnerImpl.java:78) ~[classes/:6.0.3] [2023-05-17 16:43:02] [info] #011at org.linagora.linshare.webservice.userv1.task.BatchRunnerAsyncTask.runMyTask(BatchRunnerAsyncTask.java:48) ~[classes/:6.0.3] [2023-05-17 16:43:02] [info] #011at org.linagora.linshare.webservice.userv1.task.BatchRunnerAsyncTask.runMyTask(BatchRunnerAsyncTask.java:26) ~[classes/:6.0.3] [2023-05-17 16:43:02] [info] #011at org.linagora.linshare.webservice.userv1.task.AsyncTask.run(AsyncTask.java:59) ~[classes/:6.0.3] [2023-05-17 16:43:02] [info] #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?] [2023-05-17 16:43:02] [info] #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?] [2023-05-17 16:43:02] [info] #011at java.lang.Thread.run(Thread.java:829) ~[?:?] [2023-05-17 16:43:02] [info] 16:43:02.421 [taskExecutor-11] ERROR org.linagora.linshare.core.runner.impl.BatchRunnerImpl - Cannot process resource '8dd2e6c0-cee7-441f-9fbf-04c493ffb8b3' [2023-05-17 16:43:02] [info] 16:43:02.421 [taskExecutor-11] ERROR org.linagora.linshare.core.runner.impl.BatchRunnerImpl - CRITICAL ERROR : Batch stopped ! [2023-05-17 16:43:02] [info] 16:43:02.422 [taskExecutor-11] ERROR org.linagora.linshare.core.upgrade.v6_0.FileDataStoreMigrationUpgradeTaskImpl - Critical error for the current task. Task stopped. [2023-05-17 16:43:02] [info] 16:43:02.425 [taskExecutor-11] ERROR org.linagora.linshare.core.upgrade.v6_0.FileDataStoreMigrationUpgradeTaskImpl - Summary : success: 0, skipped: 5533, errors: 0, unhandled errors: 1 [2023-05-17 16:43:02] [info] 16:43:02.429 [taskExecutor-11] ERROR org.linagora.linshare.webservice.userv1.task.BatchRunnerAsyncTask - asyncTask for batches failed : org.linagora.linshare.core.upgrade.v6_0.FileDataStoreMigrationUpgradeTaskImpl [2023-05-17 16:43:02] [info] 16:43:02.429 [taskExecutor-11] ERROR org.linagora.linshare.webservice.userv1.task.BatchRunnerAsyncTask - asyncTask for batches failed [2023-05-17 16:43:02] [info] 16:43:02.442 [taskExecutor-11] ERROR org.linagora.linshare.webservice.userv1.task.BatchRunnerAsyncTask - Async task '04f0ac4c-b7ba-428a-bac9-6f9962c25bcb' processed with final status : FAILED

Flopil commented 1 year ago

Hi, Is there anyone to help? Is it important, or can I go into production this way in spite of the error?

Thanks for help

psouquet commented 1 year ago

Hi, Sorry for the late response. This task is optional, you could continue using your old data storage. I looked at the task, and you seem to be failing at the very start: I guess file storage are not properly configured and thus nothing happens. You have to configure both the old and the new file storage for this task to succeed, so both gridfs and jcloud storages in your case I suppose.

Storage documentation seems to be lacking, I'll try to add more to it.

Hope this helps.