请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册

QQ登录

只需一步,快速开始

安allan
金牌服务用户   /  发表于:2025-5-29 07:45  /   查看:262  /  回复:26
1金币


升级到11后,发布应用最后提示下面错误,进入应用发现新功能已发布成功


附件: 您需要 登录 才可以下载或查看,没有帐号?立即注册

26 个回复

倒序浏览
安allan
金牌服务用户   /  发表于:2025-5-29 07:48:21
沙发


在启动日志发现下列异常,怎么定位问题出在哪里?


2025-05-29 07:39:07.579 [INFO ] - ForguncyServer Startup initialized.
2025-05-29 07:39:07.598 [INFO ] - Retrieve used user related tables completed, cost: 43ms, result: t_quotation.
2025-05-29 07:39:07.634 [INFO ] - ReadServerInfo: C:\Users\Public\Documents\ForguncyServer\bpm\Files\TableServerInfo infoStr.length:2261
2025-05-29 07:39:07.771 [INFO ] - The name after encoding is: FGC_UMV_SC_A083C6800DB33E9B0F, and the related properties are: {"TableName":"SC","MachineName":"BTSVR20190220","DbType":"6f9b2f11-4f6a-43db-9b65-bbd46872e09d","IsRunAtLocal":false,"SecurityProviderShortName":null,"AuthMode":3}.
2025-05-29 07:39:07.771 [INFO ] - The name after encoding is: FGC_UMV_SC_E3B01A2B6AECA5DA98, and the related properties are: {"TableName":"SC","MachineName":null,"DbType":"6db454c0-531c-4395-9122-921a18942902","IsRunAtLocal":false,"SecurityProviderShortName":null,"AuthMode":0}.
2025-05-29 07:39:08.217 [INFO ] - Table is exist and data version is same, no need to update: FGC3_US_BTSVR20190220
2025-05-29 07:39:08.318 [INFO ] - Apply changes to database: FGC_UserInfoTable, version: 3956, added: 0, updated: 6, removed: 0
2025-05-29 07:39:08.388 [INFO ] - Apply changes to database success: FGC_UserInfoTable, time: 70ms.
2025-05-29 07:41:50.393 [INFO ] - Request Exception Happened-------------------------------
Path/Home/CalcParamValue
UserName:AllanChen
Sql Statement:
[
  {
    "Sql": "select a.`property_1` as C0,a.`ID` as C1 from `hzg`.`t_parameter` as a       ORDER BY a.`ID` ASC  ",
    "OriginalSql": null,
    "SqlParam": null,
    "Duration": "7.8128ms"
  }


2025-05-29 07:41:50.609 [ERROR] - {
  "ClassName": "System.Exception",
  "Message": "找到的记录数大于1行。",
  "Data": null,
  "InnerException": null,
  "HelpURL": null,
  "StackTraceString": "   at Forguncy.Server2.Controllers.HomeController.CalcSetParameterCommandResultAsync(Dictionary`2 param, SetParameterCommand cloneCommand, CalcBindingDataSourceOption calcOption, Dictionary`2 parameters)
   at Forguncy.Server2.Controllers.HomeController.CalcSetParameterCommandResultAsync(Dictionary`2 param, SetParameterCommand cloneCommand, CalcBindingDataSourceOption calcOption, Dictionary`2 parameters)
   at Forguncy.Server2.Controllers.HomeController.CalcParamValueAsync(CalcParamValueParam param)
   at lambda_method878(Closure, Object)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at ServerDesignerCommon.CodeEditor.CodeEditorMiddleware.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.JavaAdapterReflectMiddleWare.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.ProcessEngineMiddleware.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.ReportsMiddleware.DoInvokeAsync(HttpContext context, ICacheService cacheService, IReportServerService reportServerService)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase`2.InvokeAsync(HttpContext context, TService1 service1, TService2 service2)
   at Forguncy.KatanaMiddleware.ServerCommandMiddleware.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.AppServiceMiddleware.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at ak.DoInvokeAsync(HttpContext a)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at aj.DoInvokeAsync(HttpContext a)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.StartPageMiddleware.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.ResourceMiddleware.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at ForguncyServerCommon.HttpHeaderMiddlewareBase.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at ForguncyServerCommon.HttpResponseHeaderMiddlewareBase.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.IpRestrictionMiddleware.DoInvokeAsync(HttpContext httpContext)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.RecordProxyHeaderInfoMiddleware.DoInvokeAsync(HttpContext httpContext)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at aq.DoInvokeAsync(HttpContext a)",
  "RemoteStackTraceString": null,
  "RemoteStackIndex": 0,
  "ExceptionMethod": null,
  "HResult": -2146233088,
  "Source": "Forguncy.Server2",
  "WatsonBuckets": null
}

CurrentMethodName: ExceptionTraceMiddleware.HandleExceptionAsync
2025-05-29 07:41:50.619 [ERROR] - [Exception] - Source: /Home/CalcParamValue, UserName: AllanChen, ExtraData: , CallStack: {
  "ClassName": "System.Exception",
  "Message": "找到的记录数大于1行。",
  "Data": null,
  "InnerException": null,
  "HelpURL": null,
  "StackTraceString": "   at Forguncy.Server2.Controllers.HomeController.CalcSetParameterCommandResultAsync(Dictionary`2 param, SetParameterCommand cloneCommand, CalcBindingDataSourceOption calcOption, Dictionary`2 parameters)
   at Forguncy.Server2.Controllers.HomeController.CalcSetParameterCommandResultAsync(Dictionary`2 param, SetParameterCommand cloneCommand, CalcBindingDataSourceOption calcOption, Dictionary`2 parameters)
   at Forguncy.Server2.Controllers.HomeController.CalcParamValueAsync(CalcParamValueParam param)
   at lambda_method878(Closure, Object)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at ServerDesignerCommon.CodeEditor.CodeEditorMiddleware.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.JavaAdapterReflectMiddleWare.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.ProcessEngineMiddleware.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.ReportsMiddleware.DoInvokeAsync(HttpContext context, ICacheService cacheService, IReportServerService reportServerService)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase`2.InvokeAsync(HttpContext context, TService1 service1, TService2 service2)
   at Forguncy.KatanaMiddleware.ServerCommandMiddleware.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.AppServiceMiddleware.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at ak.DoInvokeAsync(HttpContext a)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at aj.DoInvokeAsync(HttpContext a)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.StartPageMiddleware.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.ResourceMiddleware.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at ForguncyServerCommon.HttpHeaderMiddlewareBase.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at ForguncyServerCommon.HttpResponseHeaderMiddlewareBase.DoInvokeAsync(HttpContext context)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.IpRestrictionMiddleware.DoInvokeAsync(HttpContext httpContext)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at Forguncy.Server2.KatanaMiddleware.RecordProxyHeaderInfoMiddleware.DoInvokeAsync(HttpContext httpContext)
   at Forguncy.Log.Logger.Component.LoggingMiddlewareBase.InvokeAsync(HttpContext context)
   at aq.DoInvokeAsync(HttpContext a)",
  "RemoteStackTraceString": null,
  "RemoteStackIndex": 0,
  "ExceptionMethod": null,
  "HResult": -2146233088,
  "Source": "Forguncy.Server2",
  "WatsonBuckets": null


回复 使用道具 举报
Lay.Li悬赏达人认证 活字格认证
超级版主   /  发表于:2025-5-29 10:32:15
板凳
您好,发布这个报错看起来是发布的时候超时了。如果可以的话,建议重新发布一下,避免有些东西没有发布上去。
这里报错,看日志,咱们应用中是有一个设置变量命令,是从hzg.t_parameter里查询property和id。应该是选择了值或者单行记录吧

但是实际这张表中符合条件的记录有多行,所以就报错了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
安allan
金牌服务用户   /  发表于:2025-5-30 08:26:53
地板
Lay.Li 发表于 2025-5-29 10:32
您好,发布这个报错看起来是发布的时候超时了。如果可以的话,建议重新发布一下,避免有些东西没有发布上去 ...

现在遇到的困难就是不知道这是哪个页面中发生的错误,使用这个参数表的位置太多了。
回复 使用道具 举报
Erik.Xue讲师达人认证 悬赏达人认证 活字格认证 Wyn认证
超级版主   /  发表于:2025-5-30 08:48:50
5#
从截图上看,像是nginx配置导致活字格在发布应用时哪个请求没有请求到,可以检查下nginx的配置是否合理,还有就是nginx的报错日志。
回复 使用道具 举报
安allan
金牌服务用户   /  发表于:2025-5-30 09:05:03
6#
Erik.Xue 发表于 2025-5-30 08:48
从截图上看,像是nginx配置导致活字格在发布应用时哪个请求没有请求到,可以检查下nginx的配置是否合理,还 ...

发布完成后,应用是能够正常使用的,没遇到访问超时的情况。以前发布完成后直接显示的首页,都是能正常进入的。升级到11以后才遇到这个情况。Nginx的配置没有做个变化。想查看Nginx日志的,不过现在服务器都是无法登录的状况(Web服务正常),看不了。。。还要等假期处理。
回复 使用道具 举报
Erik.Xue讲师达人认证 悬赏达人认证 活字格认证 Wyn认证
超级版主   /  发表于:2025-5-30 09:07:14
7#
安allan 发表于 2025-5-30 09:05
发布完成后,应用是能够正常使用的,没遇到访问超时的情况。以前发布完成后直接显示的首页,都是能正常进 ...

那可以先观察下应用是否有什么问题,然后可以找机会收集下nginx的日志以及活字格服务管理器完整的日志psi文件包上传下。
回复 使用道具 举报
安allan
金牌服务用户   /  发表于:2025-5-30 23:20:01
8#
将Windows服务器恢复到最后一次正常的配置后,能登录系统了。然后发现活字格服务无法正常启动,卸载以后重新安装。问题消失了。再发布也不会遇到问题了。
回复 使用道具 举报
Nathan.guo活字格认证 Wyn认证
超级版主   /  发表于:2025-6-3 09:40:50
9#
安allan 发表于 2025-5-30 23:20
将Windows服务器恢复到最后一次正常的配置后,能登录系统了。然后发现活字格服务无法正常启动,卸载以后重 ...

这样的话,看起来像是Windows的某些错误导致的,恢复后重新做升级操作就正常了;

不太好分析定位具体原因,下次如果遇到类似问题的话,可以及时收集下相关时间段的完成日志或者PSI文件

一看就会,超有用活字格技能:四十五,错误日志收集功能
https://gcdn.grapecity.com.cn/showtopic-52854-1-1.html
(出处: 葡萄城开发者社区)
回复 使用道具 举报
安allan
金牌服务用户   /  发表于:2025-6-6 06:23:31
10#

今天发布再次遇到这个情况,上面是报错的设计器日志。

请帮忙看一下,谢谢

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
123下一页
您需要登录后才可以回帖 登录 | 立即注册
返回顶部