-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
该问题是否已经被报告过了? Is there an existing issue for this?
- 我已经搜索了 Issues,没有发现类似问题
I have searched the existing issuesTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
描述问题 Describe the problem
- 更新一个文档之后,打开另一个文档,发现只加载了前面一部分,于是刷新页面,提示输入授权码,输入后可以正常加载;
- 回到刚才编辑的页面,发现内容停留在两天前的某个时间点,这两天写的东西全部丢失了;
期待的结果 Expected result
可以看到这两天更新的内容。
截屏或者录屏演示 Screenshot or screen recording presentation
No response
版本环境 Version environment
- Version: 1.9.6(Docker镜像)
- Operating System: MacOS 12.3.1
- Browser (if used): Google Chrome 100.0.4896.127
日志文件 Log file
// 前面都是同样的信息,mod time failed: chtimes /siyuanworkspace/data/.siyuan/conf.json: operation not permitted,一直到5月30日早上7点多
E 2022/06/02 07:34:32 workspace.go:81: change file [/siyuanworkspace/data/.siyuan/conf.json] mod time failed: chtimes /siyuanworkspace/data/.siyuan/conf.json: operation not permitted
E 2022/06/02 07:34:33 workspace.go:81: change file [/siyuanworkspace/data/.siyuan/conf.json] mod time failed: chtimes /siyuanworkspace/data/.siyuan/conf.json: operation not permitted
E 2022/06/02 12:03:26 serve.go:224: get cookie failed: securecookie: expired timestamp
E 2022/06/02 12:03:26 serve.go:224: get cookie failed: securecookie: expired timestamp
E 2022/06/02 12:03:26 serve.go:224: get cookie failed: securecookie: expired timestamp
E 2022/06/02 12:03:26 serve.go:224: get cookie failed: securecookie: expired timestamp
E 2022/06/02 12:03:26 serve.go:224: get cookie failed: securecookie: expired timestamp
E 2022/06/02 12:03:26 serve.go:224: get cookie failed: securecookie: expired timestamp
E 2022/06/04 10:13:56 workspace.go:81: change file [/siyuanworkspace/data/.siyuan/conf.json] mod time failed: chtimes /siyuanworkspace/data/.siyuan/conf.json: operation not permitted
E 2022/06/04 10:13:56 workspace.go:81: change file [/siyuanworkspace/data/.siyuan/conf.json] mod time failed: chtimes /siyuanworkspace/data/.siyuan/conf.json: operation not permitted
E 2022/06/04 10:13:57 workspace.go:81: change file [/siyuanworkspace/data/.siyuan/conf.json] mod time failed: chtimes /siyuanworkspace/data/.siyuan/conf.json: operation not permitted
I 2022/06/04 10:17:58 index.go:179: rebuilt database for notebook [20210808180117-czj9bvb] in [0.19s], tree stat [count=47, size=997 kB]
I 2022/06/04 10:17:58 index.go:189: resolving refs...
I 2022/06/04 10:17:58 index.go:316: resolved refs [77]
E 2022/06/04 10:18:11 assets.go:673: copy tree assets from [[/siyuanworkspace/data/20210808180117-czj9bvb/assets]] to [/siyuanworkspace/data/assets] failed: chmod /siyuanworkspace/data/assets/blockquote-20210512170136-ls06uyh.svg: operation not permitted
E 2022/06/04 10:18:11 workspace.go:81: change file [/siyuanworkspace/data/.siyuan/conf.json] mod time failed: chtimes /siyuanworkspace/data/.siyuan/conf.json: operation not permitted
更多信息 More information
- 输入授权码后,虽然日志中还有 not permitted 记录,但新的文档更新是正常的;
- 查看日志文档的路径,整个下来都是有写权限的(owner root);
- 每天凌晨自动提交笔记数据,最近提交的 conf.json 信息就是 6 月 2 日早上 7 点多,说明之后没有更新成功;
有什么办法可以恢复这两天写的内容吗?要崩溃了 :(
Activity
[-]登录过期后没有提示,导致后面的更新未保存[/-][+]文档更新未保存[/+]88250 commentedon Jun 4, 2022
是不是进入块聚焦了,看下面包屑。
PS 请更新到最新版。
kant-li commentedon Jun 4, 2022
88250 commentedon Jun 4, 2022
data/.siyuan/conf.json
写入不了的话可能会有影响,如果是使用了官方同步的话一定会有影响。另外这个也是权限问题,建议先把这个权限问题搞好,Docker 部署的话看下文档,需要使用对应用户。
kant-li commentedon Jun 4, 2022
嗯,已处理权限问题,并更新到最新版本。后面看下问题是否复现吧。
kant-li commentedon Jul 6, 2022
问题复现了,看来默认 cookie 有效期是一个月。
这次的日志记录如下:
推测和前端提交逻辑有关系,提交没成功的情况下,没有及时报错或跳转到登录页面。
环境信息:
[-]文档更新未保存[/-][+]浏览器端开启访问鉴权后文档更新未保存[/+]88250 commentedon Jul 6, 2022
谢谢,已经能够重现问题,下个版本改进。
🐛 浏览器端开启访问鉴权后文档更新未保存 Fix #5096