-
思源笔记部署问题 -docker
2023-12-12 09:25破案了,
其实原因是因为这个
open language configuration folder [/siyuan/appearance/langs] failed: open /siyuan/appearance/langs: no such file or directory
我用 docker run 执行的话创建的在 conf 下,但他显示的读的是和 conf 同级的目录,我的 conf 下也是空的,就很离谱
E 2023/12/11 13:29:50 conf.go:405: open language configuration folder [/siyuan/workspace/appearance/langs] failed: open /siyuan/workspace/appearance/langs: no such file or directory E 2023/12/11 13:29:50 runtime.go:159: check file system status failed: open /siyuan/workspace/appearance/langs: no such file or directory, github.com/siyuan-note/siyuan/kernel/model.initLang() 作者:1070758302 链接:https://ld246.com/article/1702273226660 来源:链滴 协议:CC BY-SA 4.0 https://creativecommons.org/licenses/by-sa/4.0/
-
思源笔记部署问题 -docker
2023-12-11 18:57我改成 compose 的格式还是不行
version: '3' services: siyuan: image: b3log/siyuan volumes: - /mnt/sata2-1/siyuan/workspace:/siyuan/workspace working_dir: /siyuan/workspace/ user: 1000:1000 # user: myuser:mygroup ports: - 6806:6806 #restart: unless-stopped command: > --workspace=/siyuan/workspace --lang=zh_CN --accessAuthCode=123456
-
思源笔记部署问题 -docker
2023-12-11 14:30dockerfile 改成这样
user: 1000:1000
用户组也改了,用的 sudo 运行的,不行
ll /mnt/sata2-1/siyuan/workspace/ total 8 drwxrwxrwx 2 orangepi orangepi 4096 Aug 17 21:30 ./ drwxr-xr-x 3 root root 4096 Aug 17 21:30 ../
-
思源笔记部署问题 -docker
2023-12-11 14:02不可以,id1000 的话就是普通用户了,管理员的是 0
orangepi@orangepi5:~/docker/siyuan$ id uid=1000(orangepi) gid=1000(orangepi) groups=1000(orangepi),5(tty),6(disk),20(dialout),27(sudo),29(audio),44(video),46(plugdev),60(games),100(users),101(systemd-journal),106(input),111(netdev),999(docker)