问题:其他主题安装正常,但是在安装joe2.0主题时提示:缺少 theme.yaml 配置文件或配置文件不符合规范,修改yaml配置中的注释后重新导入日志仍然报错:java.nio.file.FileAlreadyExistsException(见下),服务器上并未看到报错目录创建成功,定为源码中为解压后创建目录报错:Files.createDirectory(entryPath);
重命名压缩包及文件夹后仍然报错。
halo版本:2.5.1
joe2.0版本:1.0.10,地址
halo | 2023-05-03T11:19:18.056+08:00 ERROR 7 --- [undedElastic-72] a.w.r.e.AbstractErrorWebExceptionHandler : [cd73c45c-578] 500 Server Error for HTTP POST "/apis/api.console.halo.run/v1alpha1/themes/install"
halo |
halo | **java.nio.file.FileAlreadyExistsException: /tmp/halo-theme-2709438282963875334/halo-theme-joe**
halo | at java.base/sun.nio.fs.UnixException.translateToIOException(Unknown Source) ~[na:na]
halo | Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
halo | Error has been observed at the following site(s):
halo | *__checkpoint ⇢ run.halo.app.security.authentication.login.UsernamePasswordLogoutHandler [DefaultWebFilterChain]
halo | *__checkpoint ⇢ run.halo.app.security.authentication.login.DelegatingLogoutPageGeneratingWebFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ run.halo.app.security.authentication.login.UsernamePasswordAuthenticator [DefaultWebFilterChain]
halo | *__checkpoint ⇢ AuthorizationWebFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ ExceptionTranslationWebFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ LogoutWebFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ ServerRequestCacheWebFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ SecurityContextServerWebExchangeWebFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ AnonymousAuthenticationWebFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ AuthenticationWebFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ ReactorContextWebFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ CsrfWebFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ CorsWebFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ HttpHeaderWriterWebFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ ServerWebExchangeReactorContextWebFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ OrderedWebFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ OrderedWebFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ OrderedWebFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ org.springframework.security.web.server.WebFilterChainProxy [DefaultWebFilterChain]
halo | *__checkpoint ⇢ org.springframework.web.filter.reactive.ServerHttpObservationFilter [DefaultWebFilterChain]
halo | *__checkpoint ⇢ HTTP POST "/apis/api.console.halo.run/v1alpha1/themes/install" [ExceptionHandlingWebHandler]
halo | Original Stack Trace:
halo | at java.base/sun.nio.fs.UnixException.translateToIOException(Unknown Source) ~[na:na]
halo | at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source) ~[na:na]
halo | at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source) ~[na:na]
halo | at java.base/sun.nio.fs.UnixFileSystemProvider.**createDirectory**(Unknown Source) ~[na:na]
halo | at java.base/java.nio.file.Files.createDirectory(Unknown Source) ~[na:na]
halo | at run.halo.app.infra.utils.FileUtils.unzip(FileUtils.java:64) ~[classes/:na]
halo | at run.halo.app.core.extension.theme.ThemeUtils.lambda$unzipThemeTo$8(ThemeUtils.java:118) ~[classes/:2.5.1]
halo | at reactor.core.publisher.FluxPeek$PeekSubscriber.onNext(FluxPeek.java:185) ~[reactor-core-3.5.5.jar:3.5.5]
halo | at reactor.core.publisher.FluxSubscribeOnValue$ScheduledScalar.run(FluxSubscribeOnValue.java:180) ~[reactor-core-3.5.5.jar:3.5.5]
halo | at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68) ~[reactor-core-3.5.5.jar:3.5.5]
halo | at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28) ~[reactor-core-3.5.5.jar:3.5.5]
halo | at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
halo | at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[na:na]
halo | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
halo | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
halo | at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]