在升级主题的时候,页面顶部会报Wait timeout for theme deleted.的错。浏览器调试工具显示upgrade-from-uri端点500错误。打开终端,每十几秒钟就会报一个错:
2024-05-16T13:37:12.987+08:00 ERROR 7 --- [eReconciler-t-1] r.h.a.e.controller.DefaultController : Reconciler in run.halo.app.core.extension.reconciler.ThemeReconciler-worker-1 aborted with an error, re-enqueuing...
run.halo.app.infra.exception.ThemeUninstallException: Failed to delete theme files.
at run.halo.app.core.extension.reconciler.ThemeReconciler.deleteThemeFiles(ThemeReconciler.java:222) ~[classes/:2.15.2]
at run.halo.app.core.extension.reconciler.ThemeReconciler.reconcileThemeDeletion(ThemeReconciler.java:176) ~[classes/:2.15.2]
at run.halo.app.core.extension.reconciler.ThemeReconciler.lambda$cleanUpResourcesAndRemoveFinalizer$4(ThemeReconciler.java:167) ~[classes/:2.15.2]
at java.base/java.util.Optional.ifPresent(Unknown Source) ~[na:na]
at run.halo.app.core.extension.reconciler.ThemeReconciler.cleanUpResourcesAndRemoveFinalizer(ThemeReconciler.java:166) ~[classes/:2.15.2]
at run.halo.app.core.extension.reconciler.ThemeReconciler.lambda$reconcile$0(ThemeReconciler.java:68) ~[classes/:2.15.2]
at java.base/java.util.Optional.ifPresent(Unknown Source) ~[na:na]
at run.halo.app.core.extension.reconciler.ThemeReconciler.reconcile(ThemeReconciler.java:66) ~[classes/:2.15.2]
at run.halo.app.core.extension.reconciler.ThemeReconciler.reconcile(ThemeReconciler.java:41) ~[classes/:2.15.2]
at run.halo.app.extension.controller.DefaultController$Worker.run(DefaultController.java:163) ~[api-2.15.2.jar:na]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]
Caused by: java.nio.file.FileSystemException: /root/.halo2/themes/theme-hao/annotation-setting.yaml: Operation not permitted
at java.base/sun.nio.fs.UnixException.translateToIOException(Unknown Source) ~[na:na]
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source) ~[na:na]
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source) ~[na:na]
at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(Unknown Source) ~[na:na]
at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source) ~[na:na]
at java.base/java.nio.file.Files.delete(Unknown Source) ~[na:na]
at org.springframework.util.FileSystemUtils$1.visitFile(FileSystemUtils.java:90) ~[spring-core-6.1.6.jar:6.1.6]
at org.springframework.util.FileSystemUtils$1.visitFile(FileSystemUtils.java:87) ~[spring-core-6.1.6.jar:6.1.6]
at java.base/java.nio.file.Files.walkFileTree(Unknown Source) ~[na:na]
at java.base/java.nio.file.Files.walkFileTree(Unknown Source) ~[na:na]
at org.springframework.util.FileSystemUtils.deleteRecursively(FileSystemUtils.java:87) ~[spring-core-6.1.6.jar:6.1.6]
at run.halo.app.core.extension.reconciler.ThemeReconciler.deleteThemeFiles(ThemeReconciler.java:220) ~[classes/:2.15.2]
... 14 common frames omitted
谢谢