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

Centos 下报错 #13

Open
simpleway2016 opened this issue Sep 9, 2022 · 0 comments
Open

Centos 下报错 #13

simpleway2016 opened this issue Sep 9, 2022 · 0 comments

Comments

@simpleway2016
Copy link

错误信息:
Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path '/data/MicroServices/RemoteLog.WebApi/'.
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at System.Environment.set_CurrentDirectory(String value)
at System.IO.Directory.SetCurrentDirectory(String path)
at PanGu.Setting.PanGuSettings.GetDictionaryPath()
at PanGu.Segment.LoadDictionary()
at PanGu.Segment.Init(String fileName)
at PanGu.Segment.Init()
at Lucene.Net.Analysis.PanGu.PanGuTokenizer.InitPanGuSegment()
at Lucene.Net.Analysis.PanGu.PanGuTokenizer.Init()
at Lucene.Net.Analysis.PanGu.PanGuTokenizer..ctor(TextReader input)
at Lucene.Net.Analysis.PanGu.PanGuTokenizer..ctor(TextReader input, Boolean originalResult)
at Lucene.Net.Analysis.PanGu.PanGuAnalyzer.TokenStream(String fieldName, TextReader reader)
at Lucene.Net.Analysis.Analyzer.ReusableTokenStream(String fieldName, TextReader reader)
at Lucene.Net.Index.DocInverterPerField.ProcessFields(IFieldable[] fields, Int32 count)
at Lucene.Net.Index.DocFieldProcessorPerThread.ProcessDocument()
at Lucene.Net.Index.DocumentsWriter.UpdateDocument(Document doc, Analyzer analyzer, Term delTerm)
at Lucene.Net.Index.DocumentsWriter.AddDocument(Document doc, Analyzer analyzer)
at Lucene.Net.Index.IndexWriter.AddDocument(Document doc, Analyzer analyzer)
at Lucene.Net.Index.IndexWriter.AddDocument(Document doc)
at Program.

$(String[] args)

看源码,应该问题出在把路径的 / 转换成了 \

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

1 participant