windwos下,启动AKStreamKeeper时,载入配置文件一直出错,已确认json没有错误
Closed this issue · 3 comments
版本信息
- 分支 : master
- commit : 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
}
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
}
那就好