Playedu-api 的日志 这个怎么看?
根据浏览器的输出信息看,是api服务没有正常运行。你需要查看api的日志。宝塔的容器列表右侧有“日志”按钮
Playedu-1:
. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )__ | '_ | '| | ' / ` | \ \ \
\/ __)| |)| | | | | || (| | ) ) ) )
' || .__|| ||| |_, | / / / /
=========||==============|/=////
:: Spring Boot :: (v3.1.1)
2023-10-31T18:15:59.481+08:00 INFO 9 --- [ main] xyz.playedu.api.PlayeduApiApplication : Starting PlayeduApiApplication v1.2 using Java 17.0.8.1 with PID 9 (/app/api/app.jar started by root in /app/api) 2023-10-31T18:15:59.486+08:00 INFO 9 --- [ main] xyz.playedu.api.PlayeduApiApplication : The following 1 profile is active: "prod" 2023-10-31T18:16:02.369+08:00 INFO 9 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode 2023-10-31T18:16:02.373+08:00 INFO 9 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 2023-10-31T18:16:02.432+08:00 INFO 9 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 34 ms. Found 0 Redis repository interfaces. 2023-10-31T18:16:04.289+08:00 INFO 9 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 9898 (http) 2023-10-31T18:16:04.306+08:00 INFO 9 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2023-10-31T18:16:04.306+08:00 INFO 9 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.10] 2023-10-31T18:16:04.507+08:00 INFO 9 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2023-10-31T18:16:04.514+08:00 INFO 9 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 4834 ms 2023-10-31T18:16:05.548+08:00 WARN 9 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "xyz.playedu.common.domain.AdminUserRole". 2023-10-31T18:16:05.551+08:00 WARN 9 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class xyz.playedu.common.domain.AdminUserRole ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-10-31T18:16:05.780+08:00 WARN 9 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "xyz.playedu.common.domain.AdminRolePermission". 2023-10-31T18:16:05.780+08:00 WARN 9 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class xyz.playedu.common.domain.AdminRolePermission ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-10-31T18:16:06.023+08:00 WARN 9 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "xyz.playedu.common.domain.UserDepartment". 2023-10-31T18:16:06.024+08:00 WARN 9 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class xyz.playedu.common.domain.UserDepartment ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-10-31T18:16:06.443+08:00 WARN 9 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "xyz.playedu.course.domain.CourseCategory". 2023-10-31T18:16:06.443+08:00 WARN 9 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class xyz.playedu.course.domain.CourseCategory ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-10-31T18:16:06.510+08:00 WARN 9 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "xyz.playedu.course.domain.CourseDepartment". 2023-10-31T18:16:06.511+08:00 WARN 9 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class xyz.playedu.course.domain.CourseDepartment ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-10-31T18:16:06.534+08:00 WARN 9 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "xyz.playedu.resource.domain.ResourceVideo". 2023-10-31T18:16:06.534+08:00 WARN 9 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class xyz.playedu.resource.domain.ResourceVideo ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. 2023-10-31T18:16:06.632+08:00 WARN 9 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "xyz.playedu.resource.domain.ResourceCategory". 2023-10-31T18:16:06.633+08:00 WARN 9 --- [ main] c.b.m.core.injector.DefaultSqlInjector : class xyz.playedu.resource.domain.ResourceCategory ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method.
[__ || __ | | | |/ | |\ | ] | | | || | _ |__ | | https://sa-token.cc (v1.34.0) 2023-10-31T18:16:12.983+08:00 INFO 9 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 9898 (http) with context path '' 2023-10-31T18:16:13.007+08:00 INFO 9 --- [ main] xyz.playedu.api.PlayeduApiApplication : Started PlayeduApiApplication in 14.64 seconds (process running for 15.632) 2023-10-31T18:16:13.018+08:00 INFO 9 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
看api日志是数据库连接失败了。宝塔面板安装一定要注意防火墙的开放。
请问这种情况怎么处理,麻烦提供个思路
防火墙我都关闭了的,都是全开放
你用的手动挡安装的playedu?
我看你mysql数据库也是通过容器安装的。
我自动安装 minio 装不上去 老失败 然后采用手动安装的,每个服务就启动了 如何使用本地mysql ,该不会3306端口 冲突? 宝塔mysql也是3306 playedu docker 也是3306 ?难道有冲突?
都用3306肯定会冲突
你有没有看我们提供的宝塔安装教程视频?
官方文档里面没有详细记录 宝塔,能否给个地址我看看
1.为了更好地帮助更多的小伙伴们解决PlayEdu系统安装和使用问题,我们将在这里予以解答回复。
2.提问前,请先仔细查阅文档和视频教程并进行配置检查,因为大多数问题都可以通过自查来解决。
3.提问时,请尽量提供精确的问题描述,如版本信息、安装方式、触发场景、报错信息以及错误日志截图等有效信息方便我们快速定位您的问题。
4.管理员通常会在 1 ~ 3 个工作日内进行回复,您可以翻阅问答历史查找类似问题。