chatop2020 / AKStream

AKStream是一套全平台(Linux,MacOS,Windows)、全架构(X86_64,Arm...)、全功能的流媒体管理控制接口平台。集成GB28181,RTSP,RTMP,HTTP等设备推拉流控制、PTZ控制、音视频文件录制管理、音视频文件裁剪合并等功能与一体
MIT License
1.17k stars 327 forks source link

windwos下,启动AKStreamKeeper时,载入配置文件一直出错,已确认json没有错误 #77

Closed linshangqiang closed 10 months ago

linshangqiang commented 10 months ago

版本信息

问题描述

在win下部署Web与Keeper程序,Web程序运行正常,Keeper程序一直出现加载配置文件失败得情况 两个程序得配置分别如下: AKStreamWeb

{
  "MediaServerFirstToRestart": true,
  "DbType": "MySql",
  "OrmConnStr": "Data Source=127.0.0.1;Port=3306;User ID=root;Password=123456; Initial Catalog=akstream;Charset=utf8; SslMode=none;Min pool size=1;",
  "WebApiPort": 58000,
  "AccessKey": "047I4WS1-U51UBO6W-1J4BT21P-MF17IT99-92J8WIHU-944Q4KIW",
  "HttpClientTimeoutSec": 5,
  "WaitEventTimeOutMSec" : 10000,
  "WaitSipRequestTimeOutMSec" : 5000,
  "DeletedRecordsExpiredDays" : 30,
  "EnableGB28181Server": false,
  "EnableGB28181Client": false,
  "ZlmFlvPrefix" : "live",
  "ListenIp": "0.0.0.0",
  "ForwardUnmanagedRtmpRtspRtcStream": false,
  "LocalizationKingBaseDb": false,
  "ForwardUrlIn": "http://",
  "ForwardUrlOut": "http://",
  "ForwardUrlOnRecord": "http://"
}

AKStreamKeeper

{
    "IpV4Address": "127.0.0.1",
    "IpV6Address": "ffe80::3e4a:8a09:5a6d:87e6%9",
    "Candidate": "127.0.0.1",
    "WebApiPort": 6880,
    "MediaServerPath": "./MediaServer.exe",
    "AkStreamWebRegisterUrl": "http://127.0.0.1:58000/MediaServer/WebHook/MediaServerKeepAlive",
    "CutMergeFilePath": "./CutMergeFile",
    "CustomRecordPathList": [
        "./Downloads"
    ],
    "UseSsl": false,
    "MinRtpPort": 10001,
    "MaxRtpPort": 20000,
    "MinSendRtpPort": 20002,
    "MaxSendRtpPort": 20200,
    "RandomPort": false,
    "FFmpegPath": "./ffmpeg.exe",
    "AccessKey": "047I4WS1-U51UBO6W-1J4BT21P-MF17IT99-92J8WIHU-944Q4KIW",
    "RtpPortCdTime": 3600,
    "HttpClientTimeoutSec": 5,
    "DisableShell": false,
    "CheckLinuxDiskMount": false,
    "ZLMediakitSSLFilePath": "./sslfiles/",
    "ListenIp": "0.0.0.0",
    "EnableRtspAuth": true
}

AKStreamKpper报错如下: image 已确认json格式没有错误 我该如何定位该问题?

chatop2020 commented 10 months ago

debug一下看看问题在哪

小强先生 @.***>于2023年12月8日 周五17:58写道:

版本信息

问题描述

在win下部署Web与Keeper程序,Web程序运行正常,Keeper程序一直出现加载配置文件失败得情况 两个程序得配置分别如下: AKStreamWeb

{ "MediaServerFirstToRestart": true, "DbType": "MySql", "OrmConnStr": "Data Source=127.0.0.1;Port=3306;User ID=root;Password=123456; Initial Catalog=akstream;Charset=utf8; SslMode=none;Min pool size=1;", "WebApiPort": 58000, "AccessKey": "047I4WS1-U51UBO6W-1J4BT21P-MF17IT99-92J8WIHU-944Q4KIW", "HttpClientTimeoutSec": 5, "WaitEventTimeOutMSec" : 10000, "WaitSipRequestTimeOutMSec" : 5000, "DeletedRecordsExpiredDays" : 30, "EnableGB28181Server": false, "EnableGB28181Client": false, "ZlmFlvPrefix" : "live", "ListenIp": "0.0.0.0", "ForwardUnmanagedRtmpRtspRtcStream": false, "LocalizationKingBaseDb": false, "ForwardUrlIn": "http://", "ForwardUrlOut": "http://", "ForwardUrlOnRecord": "http://" }

AKStreamKeeper

{ "IpV4Address": "127.0.0.1", "IpV6Address": "ffe80::3e4a:8a09:5a6d:87e6%9", "Candidate": "127.0.0.1", "WebApiPort": 6880, "MediaServerPath": "./MediaServer.exe", "AkStreamWebRegisterUrl": "http://127.0.0.1:58000/MediaServer/WebHook/MediaServerKeepAlive", "CutMergeFilePath": "./CutMergeFile", "CustomRecordPathList": [ "./Downloads" ], "UseSsl": false, "MinRtpPort": 10001, "MaxRtpPort": 20000, "MinSendRtpPort": 20002, "MaxSendRtpPort": 20200, "RandomPort": false, "FFmpegPath": "./ffmpeg.exe", "AccessKey": "047I4WS1-U51UBO6W-1J4BT21P-MF17IT99-92J8WIHU-944Q4KIW", "RtpPortCdTime": 3600, "HttpClientTimeoutSec": 5, "DisableShell": false, "CheckLinuxDiskMount": false, "ZLMediakitSSLFilePath": "./sslfiles/", "ListenIp": "0.0.0.0", "EnableRtspAuth": true }

AKStreamKpper报错如下: image.png (view on web) https://github.com/chatop2020/AKStream/assets/74175499/a03d3c1e-322d-49f7-a8d9-0884b9b5b8d7 已确认json格式没有错误 我该如何定位该问题?

— Reply to this email directly, view it on GitHub https://github.com/chatop2020/AKStream/issues/77, or unsubscribe https://github.com/notifications/unsubscribe-auth/APPECHYRIJYZJ4OQUVBHHMTYILQFNAVCNFSM6AAAAABAMNBOU2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZTEMZUHEYTANI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

linshangqiang commented 10 months ago

debug一下看看问题在哪 小强先生 @.>于2023年12月8日 周五17:58写道: 版本信息 - 分支 : master - commit : f90d94b <f90d94b> 问题描述 在win下部署Web与Keeper程序,Web程序运行正常,Keeper程序一直出现加载配置文件失败得情况 两个程序得配置分别如下: AKStreamWeb { "MediaServerFirstToRestart": true, "DbType": "MySql", "OrmConnStr": "Data Source=127.0.0.1;Port=3306;User ID=root;Password=123456; Initial Catalog=akstream;Charset=utf8; SslMode=none;Min pool size=1;", "WebApiPort": 58000, "AccessKey": "047I4WS1-U51UBO6W-1J4BT21P-MF17IT99-92J8WIHU-944Q4KIW", "HttpClientTimeoutSec": 5, "WaitEventTimeOutMSec" : 10000, "WaitSipRequestTimeOutMSec" : 5000, "DeletedRecordsExpiredDays" : 30, "EnableGB28181Server": false, "EnableGB28181Client": false, "ZlmFlvPrefix" : "live", "ListenIp": "0.0.0.0", "ForwardUnmanagedRtmpRtspRtcStream": false, "LocalizationKingBaseDb": false, "ForwardUrlIn": "http://", "ForwardUrlOut": "http://", "ForwardUrlOnRecord": "http://" } AKStreamKeeper { "IpV4Address": "127.0.0.1", "IpV6Address": "ffe80::3e4a:8a09:5a6d:87e6%9", "Candidate": "127.0.0.1", "WebApiPort": 6880, "MediaServerPath": "./MediaServer.exe", "AkStreamWebRegisterUrl": "http://127.0.0.1:58000/MediaServer/WebHook/MediaServerKeepAlive", "CutMergeFilePath": "./CutMergeFile", "CustomRecordPathList": [ "./Downloads" ], "UseSsl": false, "MinRtpPort": 10001, "MaxRtpPort": 20000, "MinSendRtpPort": 20002, "MaxSendRtpPort": 20200, "RandomPort": false, "FFmpegPath": "./ffmpeg.exe", "AccessKey": "047I4WS1-U51UBO6W-1J4BT21P-MF17IT99-92J8WIHU-944Q4KIW", "RtpPortCdTime": 3600, "HttpClientTimeoutSec": 5, "DisableShell": false, "CheckLinuxDiskMount": false, "ZLMediakitSSLFilePath": "./sslfiles/", "ListenIp": "0.0.0.0", "EnableRtspAuth": true } AKStreamKpper报错如下: image.png (view on web) https://github.com/chatop2020/AKStream/assets/74175499/a03d3c1e-322d-49f7-a8d9-0884b9b5b8d7 已确认json格式没有错误 我该如何定位该问题? — Reply to this email directly, view it on GitHub <#77>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APPECHYRIJYZJ4OQUVBHHMTYILQFNAVCNFSM6AAAAABAMNBOU2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZTEMZUHEYTANI . You are receiving this because you are subscribed to this thread.Message ID: @.>

解决了,json反序列化得问题,改了下配置,启动成功了

{
    "IpV4Address": "127.0.0.1",
    "IpV6Address": "ffe80::3e4a:8a09:5a6d:87e6%9",
    "Candidate": "127.0.0.1",
    "WebApiPort": 6880,
    "MediaServerPath": "./MediaServer.exe",
    "AkStreamWebRegisterUrl": "http://127.0.0.1:58000/MediaServer/WebHook/MediaServerKeepAlive",
    "CutMergeFilePath": "E://CutMergeFile",
    "CustomRecordPathList": [
        "E://Downloads"
    ],
    "UseSsl": false,
    "MinRtpPort": 10001,
    "MaxRtpPort": 20000,
    "MinSendRtpPort": 20002,
    "MaxSendRtpPort": 20200,
    "RandomPort": false,
    "FFmpegPath": "./ffmpeg.exe",
    "AccessKey": "047I4WS1-U51UBO6W-1J4BT21P-MF17IT99-92J8WIHU-944Q4KIW",
    "RtpPortCdTime": 3600,
    "HttpClientTimeoutSec": 5,
    "DisableShell": false,
    "CheckLinuxDiskMount": false,
    "ZLMediakitSSLFilePath": "./sslfiles/",
    "ListenIp": "0.0.0.0",
    "EnableRtspAuth": true
}
chatop2020 commented 10 months ago

那就好