V2.6.0开源版本,在模版市场无法访问时,模版管理中导入的模版也无法使用。而实际上是导入了模版的
我测试使用 v2.6.1,在完全离线环境,可以使用本地模板创建仪表板或数据大屏,可以更新下试试
我这边v2.6.1
也是不行的,docker logs --tail=100 dataease
查看日志有报错
2024-06-02 14:28:38.158 INFO --- [ler [deSyncJob]] org.quartz.core.QuartzScheduler : Scheduler deSyncJob_$_0fa288785e801717309652670 started.
2024-06-02 14:29:38.137 INFO --- [_MisfireHandler] o.s.s.quartz.LocalDataSourceJobStore : Handling 1 trigger(s) that missed their scheduled fire-time.
2024-06-02 14:29:53.042 INFO --- [io-8100-exec-10] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-06-02 14:29:53.043 INFO --- [io-8100-exec-10] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2024-06-02 14:29:53.045 INFO --- [io-8100-exec-10] o.s.web.servlet.DispatcherServlet : Completed initialization in 2 ms
2024-06-02 14:29:53.066 INFO --- [io-8100-exec-10] org.ehcache.core.EhcacheManager : Cache 'de_v2_lic_cache_db' created in EhcacheManager.
2024-06-02 14:29:53.066 INFO --- [io-8100-exec-10] org.ehcache.jsr107.Eh107CacheManager : Registering Ehcache MBean javax.cache:type=CacheConfiguration,CacheManager=jar.file./opt/apps/app.jar!/BOOT-INF/classes!/ehcache/ehcache.xml,Cache=de_v2_lic_cache_db
2024-06-02 14:29:53.067 INFO --- [io-8100-exec-10] org.ehcache.jsr107.Eh107CacheManager : Registering Ehcache MBean javax.cache:type=CacheStatistics,CacheManager=jar.file./opt/apps/app.jar!/BOOT-INF/classes!/ehcache/ehcache.xml,Cache=de_v2_lic_cache_db
2024-06-02 14:29:53.089 INFO --- [io-8100-exec-10] org.ehcache.core.EhcacheManager : Cache 'de-cors-domain' created in EhcacheManager.
2024-06-02 14:29:53.089 INFO --- [io-8100-exec-10] org.ehcache.jsr107.Eh107CacheManager : Registering Ehcache MBean javax.cache:type=CacheConfiguration,CacheManager=jar.file./opt/apps/app.jar!/BOOT-INF/classes!/ehcache/ehcache.xml,Cache=de-cors-domain
2024-06-02 14:29:53.089 INFO --- [io-8100-exec-10] org.ehcache.jsr107.Eh107CacheManager : Registering Ehcache MBean javax.cache:type=CacheStatistics,CacheManager=jar.file./opt/apps/app.jar!/BOOT-INF/classes!/ehcache/ehcache.xml,Cache=de-cors-domain
2024-06-02 14:29:53.738 INFO --- [e [_default_]-0] io.dataease.listener.MyCacheListener : 'CREATED' : [1eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjEsIm9pZCI6MSwiZXhwIjoxNzE3MzA5ODkzfQ.CF5mPWBIdN_1cLVX9rHydHQkowP7blV9F__N1-QIuRY] --> 1
2024-06-02 14:30:03.728 INFO --- [e [_default_]-0] io.dataease.listener.MyCacheListener : 'REMOVED' : [1eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjEsIm9pZCI6MSwiZXhwIjoxNzE3MzA5NDgzfQ.uZQC4NfekI1M467ZBwnxANnEJjhu_-ONTmOryOTei4w] --> null
2024-06-02 14:30:38.136 INFO --- [_MisfireHandler] o.s.s.quartz.LocalDataSourceJobStore : Handling 1 trigger(s) that missed their scheduled fire-time.
2024-06-02 14:31:38.135 INFO --- [_MisfireHandler] o.s.s.quartz.LocalDataSourceJobStore : Handling 1 trigger(s) that missed their scheduled fire-time.
2024-06-02 14:32:20.736 INFO --- [e [_default_]-1] io.dataease.listener.MyCacheListener : 'CREATED' : [1eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjEsIm9pZCI6MSwiZXhwIjoxNzE3MzEwMDQwfQ.iVgPIoTmEioa3xZN97gcpvUuQHxSUJEeuQlZGmGGI44] --> 1
2024-06-02 14:32:30.736 INFO --- [e [_default_]-1] io.dataease.listener.MyCacheListener : 'REMOVED' : [1eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjEsIm9pZCI6MSwiZXhwIjoxNzE3MzA5ODkzfQ.CF5mPWBIdN_1cLVX9rHydHQkowP7blV9F__N1-QIuRY] --> null
2024-06-02 14:32:38.134 INFO --- [_MisfireHandler] o.s.s.quartz.LocalDataSourceJobStore : Handling 1 trigger(s) that missed their scheduled fire-time.
2024-06-02 14:32:38.137 ERROR --- [_MisfireHandler] o.s.s.quartz.LocalDataSourceJobStore : MisfireHandler: Error handling misfires: Couldn't store trigger 'check_status.Datasource' for 'check_status.Datasource' job:Couldn't retrieve job because a required class was not found: io.dataease.job.sechedule.CheckDsStatusJob
org.quartz.JobPersistenceException: Couldn't store trigger 'check_status.Datasource' for 'check_status.Datasource' job:Couldn't retrieve job because a required class was not found: io.dataease.job.sechedule.CheckDsStatusJob
at org.quartz.impl.jdbcjobstore.JobStoreSupport.storeTrigger(JobStoreSupport.java:1228)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.doUpdateOfMisfiredTrigger(JobStoreSupport.java:1042)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.recoverMisfiredJobs(JobStoreSupport.java:991)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.doRecoverMisfires(JobStoreSupport.java:3264)
at org.quartz.impl.jdbcjobstore.JobStoreSupport$MisfireHandler.manage(JobStoreSupport.java:4012)
at org.quartz.impl.jdbcjobstore.JobStoreSupport$MisfireHandler.run(JobStoreSupport.java:4033)
Caused by: org.quartz.JobPersistenceException: Couldn't retrieve job because a required class was not found: io.dataease.job.sechedule.CheckDsStatusJob
at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveJob(JobStoreSupport.java:1393)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.storeTrigger(JobStoreSupport.java:1210)
... 5 common frames omitted
Caused by: java.lang.ClassNotFoundException: io.dataease.job.sechedule.CheckDsStatusJob
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:149)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:283)
at org.springframework.scheduling.quartz.ResourceLoaderClassLoadHelper.loadClass(ResourceLoaderClassLoadHelper.java:81)
at org.springframework.scheduling.quartz.ResourceLoaderClassLoadHelper.loadClass(ResourceLoaderClassLoadHelper.java:87)
at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectJobDetail(StdJDBCDelegate.java:852)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveJob(JobStoreSupport.java:1390)
... 6 common frames omitted
2024-06-02 14:33:38.135 INFO --- [_MisfireHandler] o.s.s.quartz.LocalDataSourceJobStore : Handling 1 trigger(s) that missed their scheduled fire-time.
2024-06-02 14:34:09.020 INFO --- [e [_default_]-2] io.dataease.listener.MyCacheListener : 'CREATED' : [1eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjEsIm9pZCI6MSwiZXhwIjoxNzE3MzEwMTQ5fQ.0BsfODqnr0WQVOg0mG9BpOsvGs1oN77ITKuuzpw17JQ] --> 1
2024-06-02 14:34:38.135 INFO --- [_MisfireHandler] o.s.s.quartz.LocalDataSourceJobStore : Handling 1 trigger(s) that missed their scheduled fire-time.
2024-06-02 14:35:38.135 INFO --- [_MisfireHandler] o.s.s.quartz.LocalDataSourceJobStore : Handling 1 trigger(s) that missed their scheduled fire-time.
[root@dbtest opt]# dectl version
这是数据源的报错,和模板没关系。执行
docker logs -f --tail=100 dataease
然后再访问模板中心,看看后台报啥错
2024-06-03 14:07:38.369 INFO --- [_MisfireHandler] o.s.s.quartz.LocalDataSourceJobStore : Handling 1 trigger(s) that missed their scheduled fire-time.
2024-06-03 14:07:43.412 ERROR --- [nio-8100-exec-5] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception
io.dataease.exception.DEException: token is empty for uri {//static-resource/template-062763b1-19f0-4e3e-89e8-4bb2d51d8b97.jpeg}
at io.dataease.exception.DEException.throwException(DEException.java:30)
at io.dataease.utils.TokenUtils.validate(TokenUtils.java:26)
at io.dataease.auth.filter.TokenFilter.doFilter(TokenFilter.java:55)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158)
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:177)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:119)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:400)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:859)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1734)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:840)
2024-06-03 14:08:38.369 INFO --- [_MisfireHandler] o.s.s.quartz.LocalDataSourceJobStore : Handling 1 trigger(s) that missed their scheduled fire-time.
你在仪表板界面使用模板创建的时候会过滤掉大屏模板,在大屏界面使用模板新建的时候会过滤仪表板模板。你试试在大屏页面能看到不?
在【数据大屏】可以,但就是在仪表板那里使用模板新建的时候看不到上传的模板,而这个模板是我先在大屏那边画好了,导出成为模板,然后上传到模板管理那里,想着在仪表板那边再通过上传的模板生成一份一样的
仪表板和数据大屏的模板不通用,仪表板模板要在【仪表板】模块中制作导出。