问题描述
按照 unraid 应用市场模板进行思源笔记安装后,本地使用正常,但是配置 webdav 后,无法进行同步
unraid 安装模板和参数设置
在这里也同步吐槽一下。思源笔记 github 和 unraid 应用市场给出的安装模板不一致,尝试后发现,unraid 应用市场模板和 github 模板都无法正常运行。
原因如下:
- github 模板容器内目录定义错误,模板提供目录为:
/home/siyuan
而实际上应该为:
/siyuan/workspace
- unraid 模板容器内目录同样定义错误,模板提供为:
/root/Documnets/SiYuan/conf/
如果按照这个模板安装,会提示无法定位/siyuan/workspace 目录,无法更改目录权限。
优化调整后的 unraid 安装模板如下:
按照模板说明,在运行前先建立思源笔记配置和笔记存储文件夹,为了方便管理,我放在了同一个文件夹下,也曾经尝试放在不同的文件夹,对 webdav 同步没有影响,然后运行 chown -R 1000:1000 /mnt/user/appdata/siyuan
在 unraid 中显示文件夹权限情况如下:
查询文件夹权限正确:
安装后,可以正常启动
webdav 同步报错
按照指南配置完 webdav 后,开始同步,报错如下:
系统日志如下:
Using existing group: siyuan (1000)
Using existing user siyuan (PUID: 1000, PGID: 1000)
Adjusting ownership of /opt/siyuan, /home/siyuan/, and /siyuan/workspace
Starting Siyuan with UID:1000 and GID:1000 in workspace /siyuan/workspace
I 2024/11/13 15:32:51 working.go:147:
___ ___ ___ ___
/ /\ ___ ___ /__/\ / /\ /__/\
/ /:/_ / /\ /__/| \ \:\ / /::\ \ \:\
/ /:/ /\ / /:/ | |:| \ \:\ / /:/\:\ \ \:\
/ /:/ /::\ /__/::\ | |:| ___ \ \:\ / /:/~/::\ _____\__\:\
/__/:/ /:/\:\ \__\/\:\__ __|__|:| /__/\ \__\:\ /__/:/ /:/\:\ /__/::::::::\
\ \:\/:/~/:/ \ \:\/\ /__/::::\ \ \:\ / /:/ \ \:\/:/__\/ \ \:\~~\~~\/
\ \::/ /:/ \__\::/ ~\~~\:\ \ \:\ /:/ \ \::/ \ \:\ ~~~
\__\/ /:/ /__/:/ \ \:\ \ \:\/:/ \ \:\ \ \:\
/__/:/ \__\/ \__\/ \ \::/ \ \:\ \ \:\
\__\/ \__\/ \__\/ \__\/
I 2024/11/13 15:32:51 runtime.go:79: kernel is booting:
* ver [3.1.11]
* arch [amd64]
* os [alpine]
* pid [1]
* runtime mode [prod]
* working directory [/opt/siyuan]
* read only [false]
* container [docker]
* database [ver=20220501]
* workspace directory [/siyuan/workspace]
I 2024/11/13 15:32:51 conf.go:130: loaded conf [/siyuan/workspace/conf/conf.json]
I 2024/11/13 15:32:51 runtime.go:128: use network proxy [system]
I 2024/11/13 15:32:51 serve.go:139: kernel [pid=1] http server [0.0.0.0:6806] is booting
I 2024/11/13 15:32:52 sync.go:147: sync before boot
I 2024/11/13 15:32:52 ref.go:50: got local latest [device=ia51hzv4yd85/linux, id=fb96fdf2e4b505a3d3f0976e3380c72bad9915f6, files=6, size=7.69 kB, created=2024-11-13 15:31:18]
I 2024/11/13 15:32:52 repo.go:591: walk data [files=6] cost [31.477719ms]
I 2024/11/13 15:32:52 ref.go:50: got local latest [device=ia51hzv4yd85/linux, id=fb96fdf2e4b505a3d3f0976e3380c72bad9915f6, files=6, size=7.69 kB, created=2024-11-13 15:31:18]
I 2024/11/13 15:32:52 ref.go:50: got local latest [device=ia51hzv4yd85/linux, id=fb96fdf2e4b505a3d3f0976e3380c72bad9915f6, files=6, size=7.69 kB, created=2024-11-13 15:31:18]
W 2024/11/13 15:32:53 sync.go:1581: not found cloud latest
I 2024/11/13 15:32:53 repository.go:1228: boot get sync cloud files elapsed [0.64s]
I 2024/11/13 15:32:53 conf.go:841: database size [7.68 MB], tree/block count [67/2358]
I 2024/11/13 15:32:53 working.go:193: kernel booted
I 2024/11/13 15:32:53 box.go:77: auto stat [trees=67, blocks=2358, dataSize=3.3 MB, assetsSize=1.92 MB]
I 2024/11/13 15:33:31 repository.go:1290: syncing data repo [device=ia51hzv4yd85, kernel=8n2kp3g, provider=3, mode=a/true]
I 2024/11/13 15:33:31 ref.go:50: got local latest [device=ia51hzv4yd85/linux, id=fb96fdf2e4b505a3d3f0976e3380c72bad9915f6, files=6, size=7.69 kB, created=2024-11-13 15:31:18]
I 2024/11/13 15:33:31 repo.go:591: walk data [files=6] cost [33.057458ms]
I 2024/11/13 15:33:31 ref.go:50: got local latest [device=ia51hzv4yd85/linux, id=fb96fdf2e4b505a3d3f0976e3380c72bad9915f6, files=6, size=7.69 kB, created=2024-11-13 15:31:18]
E 2024/11/13 15:33:32 webdav.go:469: mkdir [main/siyuan/repo] failed: MkdirAll /main/siyuan/repo/: 415
E 2024/11/13 15:33:32 sync_lock.go:161: upload lock sync failed: MkdirAll /main/siyuan/repo/: 415
E 2024/11/13 15:33:32 repository.go:1318: sync data repo failed: lock cloud repo failed
求助
-
是否我的模板配置有误?
-
该如何修改配置参数?
webdav 已经使用 joplin 等验证过,可以正常访问,没有任何问题
请各位协助,帮我解决这个问题,实在不想折腾 S3 存储,谢谢
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于