Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多租户安装失败 #270

Open
rendyu opened this issue Nov 6, 2024 · 1 comment
Open

多租户安装失败 #270

rendyu opened this issue Nov 6, 2024 · 1 comment

Comments

@rendyu
Copy link
Contributor

rendyu commented Nov 6, 2024

更改多租户配置:
//是否启用多租户,初次启动请确认系统是否需要支持多租户,部署至生产环境以后尽量不要修改!
"EnableMultiTenant": true,
//区分租户模式
"TenantRule": "DomainName",

安装后报错,报错信息:
安装失败:Error: Request failed with status code 505

控制台信息:

SenparcEntitiesDbContextBase OnModelCreating:BasePoolEntities_Sqlite (33 types)

  1. Entity Type: Senparc.Areas.Admin.Domain.Models.AdminUserInfo

  2. Entity Type: Senparc.Ncf.Core.Models.DataBaseModel.SysButton

  3. Entity Type: Senparc.Ncf.Core.Models.DataBaseModel.SysMenu

  4. Entity Type: Senparc.Ncf.Core.Models.DataBaseModel.SysRole

  5. Entity Type: Senparc.Ncf.Core.Models.DataBaseModel.SysRoleAdminUserInfo

  6. Entity Type: Senparc.Ncf.Core.Models.DataBaseModel.SysRolePermission

  7. Entity Type: Senparc.Ncf.Core.Models.DataBaseModel.XncfModule

  8. Entity Type: Senparc.Ncf.Core.Models.SystemConfig

  9. Entity Type: Senparc.Xncf.AIKernel.Models.AIModel

  10. Entity Type: Senparc.Xncf.Accounts.Domain.Models.Account

  11. Entity Type: Senparc.Xncf.Accounts.Domain.Models.AccountPayLog

  12. Entity Type: Senparc.Xncf.Accounts.Domain.Models.PointsLog

  13. Entity Type: Senparc.Xncf.AgentsManager.Domain.Models.DatabaseModel.ChatTask

  14. Entity Type: Senparc.Xncf.AgentsManager.Models.DatabaseModel.AgentTemplate

  15. Entity Type: Senparc.Xncf.AgentsManager.Models.DatabaseModel.Models.ChatGroup

  16. Entity Type: Senparc.Xncf.AgentsManager.Models.DatabaseModel.Models.ChatGroupHistory

  17. Entity Type: Senparc.Xncf.AgentsManager.Models.DatabaseModel.Models.ChatGroupMember

  18. Entity Type: Senparc.Xncf.DatabaseToolkit.DbConfig

  19. Entity Type: Senparc.Xncf.DynamicData.Color

  20. Entity Type: Senparc.Xncf.DynamicData.ColumnMetadata

  21. Entity Type: Senparc.Xncf.DynamicData.TableData

  22. Entity Type: Senparc.Xncf.DynamicData.TableMetadata

  23. Entity Type: Senparc.Xncf.PromptRange.Domain.Models.DatabaseModel.LlModel

  24. Entity Type: Senparc.Xncf.PromptRange.Domain.Models.DatabaseModel.PromptItem

  25. Entity Type: Senparc.Xncf.PromptRange.Domain.Models.DatabaseModel.PromptRange

  26. Entity Type: Senparc.Xncf.PromptRange.Domain.Models.DatabaseModel.PromptResult

  27. Entity Type: Senparc.Xncf.SystemManager.Domain.DatabaseModel.FeedBack

  28. Entity Type: Senparc.Xncf.Tenant.Domain.DataBaseModel.TenantInfo

  29. Entity Type: Senparc.Xncf.WeixinManager.Domain.Models.DatabaseModel.MpAccount

  30. Entity Type: Senparc.Xncf.WeixinManager.Domain.Models.DatabaseModel.UserTag

  31. Entity Type: Senparc.Xncf.WeixinManager.Domain.Models.DatabaseModel.UserTag_WeixinUser

  32. Entity Type: Senparc.Xncf.WeixinManager.Domain.Models.DatabaseModel.WeixinUser

  33. Entity Type: Senparc.Xncf.XncfBuilder.Config

    NcfUninstallException from TenantMiddleware - fullTenantInfoCache.GetDataAsync 读取失败,推测系统未安装
    进入安装程序,检测是否需要初始化
    开始初始化
    NcfUninstallException from TenantMiddleware - fullTenantInfoCache.GetDataAsync 读取失败,推测系统未安装
    NcfUninstallException from TenantMiddleware - fullTenantInfoCache.GetDataAsync 读取失败,推测系统未安装
    NcfUninstallException from TenantMiddleware - fullTenantInfoCache.GetDataAsync 读取失败,推测系统未安装
    NcfUninstallException from TenantMiddleware - fullTenantInfoCache.GetDataAsync 读取失败,推测系统未安装

@JeffreySu
Copy link
Contributor

@rendyu 多租户会在 Dapr 模块完成后开启,出于一个小概率的安全原因,目前不建议大家使用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants