We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CLI - Linux
v2.11.1
在使用CLI添加"--config-override"指定目录后,无法正常初始化和保存config 该问题在Docker版本中也存在,为了避免Docker的权限问题,故采用CLI版本测试问题仍然无法消除。保存目录已经使用sudo chmod 777进行权限修改。
检查后发现是在指定参数后无法正常正常初始化默认设置
{"@t":"2024-05-13T09:13:46.5905140Z","@mt":"Starting, {Version}, {CommandLine}","Version":"2.11.1+Branch.tags-v2.11.1.Sha.c428086ccb11ab3249af1a74e31d9d2ebed345a3","CommandLine":["run","--bind","http://*:2356","--http-basic-user","zeyu","--http-basic-pass","panze158447899","--config-override","/home/zeyu/personal/bili_live_recorder/app/config","/home/zeyu/mnt/drive0/storage/resources/kun_opera/lanyuan"],"ProcessId":516746,"ThreadId":1} {"@t":"2024-05-13T09:13:46.6468655Z","@mt":"Using config from {ConfigOverride}","ConfigOverride":"/home/zeyu/personal/bili_live_recorder/app/config","ProcessId":516746,"ThreadId":1} {"@t":"2024-05-13T09:13:46.6568050Z","@mt":"初始化默认设置,因为配置文件不存在 {Path}","Path":"/home/zeyu/personal/bili_live_recorder/app/config","SourceContext":"BililiveRecorder.Core.Config.ConfigParser","ProcessId":516746,"ThreadId":1} {"@t":"2024-05-13T09:13:46.7222970Z","@mt":"Recorder created with {RoomCount} rooms","@l":"Debug","RoomCount":0,"ProcessId":516746,"ThreadId":1} {"@t":"2024-05-13T09:13:46.7777442Z","@mt":"保存设置时出错(写入文件)","@l":"Error","@x":"System.UnauthorizedAccessException: Access to the path '/home/zeyu/personal/bili_live_recorder/app/config' is denied.\n ---> System.IO.IOException: Permission denied\n --- End of inner exception stack trace ---\n at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)\n at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)\n at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)\n at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)\n at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)\n at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize)\n at System.IO.File.WriteAllText(String path, String contents)\n at BililiveRecorder.Core.Config.ConfigParser.WriteAllTextWithBackup(String path, String contents) in /home/runner/work/BililiveRecorder/BililiveRecorder/BililiveRecorder.Core/Config/ConfigParser.cs:line 152\n at BililiveRecorder.Core.Config.ConfigParser.Save(ConfigV3 config) in /home/runner/work/BililiveRecorder/BililiveRecorder/BililiveRecorder.Core/Config/ConfigParser.cs:line 122","SourceContext":"BililiveRecorder.Core.Config.ConfigParser","ProcessId":516746,"ThreadId":1,"ExceptionDetail":{"Type":"System.UnauthorizedAccessException","HResult":-2147024891,"Message":"Access to the path '/home/zeyu/personal/bili_live_recorder/app/config' is denied.","Source":"System.Private.CoreLib","TargetSite":"Void ThrowExceptionForIoErrno(ErrorInfo, System.String, Boolean, System.Func`2[Interop+ErrorInfo,Interop+ErrorInfo])","InnerException":{"Type":"System.IO.IOException","HResult":13,"Message":"Permission denied","Source":null}}} {"@t":"2024-05-13T09:13:46.8682821Z","@mt":"Web host started.","ProcessId":516746,"ThreadId":1}
The text was updated successfully, but these errors were encountered:
如果在--config-override中直接指定config.json不会报错,但是初始化默认配置设置时仍然存在问题,感觉可以加一个初始化?
Sorry, something went wrong.
No branches or pull requests
Platforms
CLI - Linux
Version
v2.11.1
Description
在使用CLI添加"--config-override"指定目录后,无法正常初始化和保存config
该问题在Docker版本中也存在,为了避免Docker的权限问题,故采用CLI版本测试问题仍然无法消除。保存目录已经使用sudo chmod 777进行权限修改。
检查后发现是在指定参数后无法正常正常初始化默认设置
Logs
The text was updated successfully, but these errors were encountered: