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

Create doc failed on non-Windows #9890

Closed
3 tasks done
yunyouu opened this issue Dec 15, 2023 · 12 comments
Closed
3 tasks done

Create doc failed on non-Windows #9890

yunyouu opened this issue Dec 15, 2023 · 12 comments
Assignees
Labels
Milestone

Comments

@yunyouu
Copy link

yunyouu commented Dec 15, 2023

创建下级失败,排除过当前数据以及插件问题。

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

Docker 自部署版本创建下级失败,排除过当前数据以及插件问题。使用 docker 新建了一个空实例,直接点击也会导致崩溃。
image

image

Expected result

希望可以正常新增页面。

Screenshot or screen recording presentation

No response

Version environment

- Version: 
v2.11.2
- Operating System: 
MacOS 14.2
- Browser (if used):
Chrome 120

Log file

siyuan.log

More information

No response

@TransMux
Copy link
Contributor

docker容器给了权限嘛?参考帮助文档:/请从这里开始/通用操作/Docker 伺服

用户权限

镜像中是使用默认创建的普通用户 siyuan(uid 1000/gid 1000)来启动内核进程的,所以在宿主机创建工作空间文件夹时请注意设置该文件夹所属用户组:chown -R 1000:1000 /siyuan/workspace,在启动容器时需要带参数 -u 1000:1000

@88250
Copy link
Member

88250 commented Dec 15, 2023

从日志上可能是工作空间数据卷挂载不正确导致的。

我先关闭了,如果还有问题请继续跟帖,谢谢 🙏

@88250 88250 closed this as completed Dec 15, 2023
@yunyouu
Copy link
Author

yunyouu commented Dec 15, 2023

docker容器给了权限嘛?参考帮助文档:/请从这里开始/通用操作/Docker 伺服

用户权限

镜像中是使用默认创建的普通用户 siyuan(uid 1000/gid 1000)来启动内核进程的,所以在宿主机创建工作空间文件夹时请注意设置该文件夹所属用户组:chown -R 1000:1000 /siyuan/workspace,在启动容器时需要带参数 -u 1000:1000

我核对了下,文件权限是正常的。

@88250
Copy link
Member

88250 commented Dec 15, 2023

请试试重建索引以后能否重现问题。

@yunyouu
Copy link
Author

yunyouu commented Dec 15, 2023

从日志上可能是工作空间数据卷挂载不正确导致的。

我先关闭了,如果还有问题请继续跟帖,谢谢 🙏

image image 使用和上面测试相同的配置,我手动拉去了 2.11.1 到镜像 tag 为 latest 之后再启动起来行为正常了,可以加页面了。 image 再用 watchertower 保存原来的配置升级到 2.11.2 就会导致这个问题。 image image

@yunyouu
Copy link
Author

yunyouu commented Dec 15, 2023

请试试重建索引以后能否重现问题。

重建索引和强制退出都无效,再次操作还会有这个问题。

@yunyouu
Copy link
Author

yunyouu commented Dec 15, 2023

请试试重建索引以后能否重现问题。

重建索引和强制退出都无效,再次操作还会有这个问题。

看看我还可以提交什么相关的可以帮忙解决这个问题的,谢谢各位了。
目录权限有问题的话我理解应该是所有文件都访问不到,我这个时候 workspace 目录下是有部分文件的。
image

@88250
Copy link
Member

88250 commented Dec 15, 2023

能帮忙测试一下桌面版吗?

@yunyouu
Copy link
Author

yunyouu commented Dec 15, 2023

能帮忙测试一下桌面版吗?

需要测试什么问题,上述问题在桌面版不存在。
image

@88250
Copy link
Member

88250 commented Dec 15, 2023

好的,那再看看 docker 部署的情况。试下新建笔记本后新建文档。

@88250 88250 self-assigned this Dec 15, 2023
@88250 88250 changed the title 创建下级失败,排除过当前数据以及插件问题。 Create doc failed on Linux Dec 15, 2023
@88250 88250 added the Bug label Dec 15, 2023
@88250 88250 added this to the 2.11.3 milestone Dec 15, 2023
@88250 88250 reopened this Dec 15, 2023
@88250
Copy link
Member

88250 commented Dec 15, 2023

我这里目前可以在 Linux 上重现问题了。

@88250
Copy link
Member

88250 commented Dec 15, 2023

Fixed in 0547f27

@88250 88250 closed this as completed Dec 15, 2023
@88250 88250 changed the title Create doc failed on Linux Create doc failed on non-Windows Dec 15, 2023
EightDoor added a commit to EightDoor/siyuan that referenced this issue Dec 15, 2023
* commit '969a8d24fcdc648b3f88d28d47280869f4974396':
  🎨 Improve web page clip code block content conversion siyuan-note#9896
  🐛 Create doc failed on non-Windows siyuan-note#9890
  🐛 fix siyuan-note#9850
  🎨 Add Relation and Rollup column to database table view siyuan-note#9888
  🐛 Do not remove .tmp file when listing doc tree https://ld246.com/article/1702621572239
  ♻️ Refactor database table view
  🐛 fix siyuan-note#9891
  🎨 delete row by keydown
  🎨 fix siyuan-note#9886
  🎨 siyuan-note#9886
  🎨 Enable or disable all CSS and JS code snippets siyuan-note#9860
  🎨 Database table view template columns support reference date columns siyuan-note#9887
  🎨 fix siyuan-note#9878
  ⬆️ Upgrade kernel deps
  🎨 Delete the corresponding data in the database attributes table after deleting the doc siyuan-note#9875
  ⬆️ Upgrade Lute
  🎨 Add internal kernel API `/api/block/getTailChildBlocks` siyuan-note#9884
  🎨 siyuan-note#9882
  🐛
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants