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

[Bug] 知识库上传文档,提示Failed to open file '/tmp/tmpxj3zdgnf'.,无法生成预览以及执行开始导入。 #1892

Closed
wxfvf opened this issue Dec 23, 2024 · 4 comments

Comments

@wxfvf
Copy link

wxfvf commented Dec 23, 2024

Contact Information

[email protected]

MaxKB Version

v1.8.1 v1.7.1

Problem Description

创建知识库时,上传约30多个pdf文档后点击下一步,在生成预览时点击多次生成预览,执行出错,显示Failed to open file '/tmp/tmpxj3zdgnf'.之类的消息,无法生成预览,再次点击生成预览以及点击开始导入,都无法执行,都显示Failed to open file '/tmp/xxxxx'的消息,文件名每次都不一样。
尝试了重启容器,从v1.71.1升级到v1.8.1,都没有恢复正常,目前无法向知识库添加文档。

Steps to Reproduce

目前重启容器、升级版本都没有办法恢复正常,一直处于错误状态。

The expected correct result

No response

Related log output

No response

Additional Information

image

@baixin513
Copy link
Contributor

感谢反馈,方便的话可以提供上传报错的文件,能快速排查定位问题。发送邮箱:[email protected]

@shaohuzhang1
Copy link
Contributor

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Thanks for the feedback. If it is convenient, you can provide the file to upload the error report, so that you can quickly troubleshoot the positioning problem. Send email: [email protected]

@wxfvf
Copy link
Author

wxfvf commented Jan 3, 2025

这个问题找到原因了,pdf文档无法解析就会有这样的现象,主要是这个提示不好理解,这个问题可以关闭了。
想复现的话,搞一个无法解析的文档上传就行,比如:压缩一个7z的压缩包,改成pdf上传,就会出现这样的报错。

@shaohuzhang1
Copy link
Contributor

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The cause of this problem has been found. This phenomenon occurs when PDF documents cannot be parsed. The main reason is that this prompt is difficult to understand. This problem can be closed.
If you want to reproduce it, just upload a document that cannot be parsed. For example, if you compress a 7z compressed package and upload it as a pdf, such an error will appear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants