思源笔记反馈 docker1.5.2 崩溃

本贴最后更新于 1133 天前,其中的信息可能已经水流花落

问题描述

一开始从 1.48 升级到 1.5.1,宿主机设置用户后(宿主机用户名非 siyuan,但是 uid 和 group 是 1000)能正常运行。

从 1.5.1 升级到 1.5.2,1.5.2 一开始也正常了一会儿,但之后迁移了 data 目录后发生内核崩溃,之后即使重新生成容器也没有解决内核崩溃的问题。

已尝试:

  • 不使用 nignx 反代,禁用 ssl,不挂载本地目录 | 清空本地目录 | 本地目录和容器工作目录路径一致,v1.5.2 依旧内核奔溃
  • 使用 1.5.1 和 1.4.8 均能正常使用。

错误日志

浏览器

WebSocket connection to ' failed:
connect @ main.1f7572ca8d3d9941c033.js:1

siyuan docker 容器

I 2021/11/15 15:02:56 runtime.go:57: kernel is booting:

D 2021/11/15 15:02:56 conf.go:110: check device locale failed [detect: not detected], using default language [en_US]

  • ver [1.5.2]
  • arch [amd64]
  • runtime mode [prod]
  • working directory [/opt/siyuan]
  • read only [false]
  • container [docker]
  • database [ver=20211022]
  • workspace directory [/home/siyuan/Documents/SiYuan, data 20 kB]
  • rsync [version 3.2.3 protocol version 31]
  • pandoc [/home/siyuan/.config/siyuan/pandoc/bin/pandoc]

I 2021/11/15 15:02:56 conf.go:257: local serve path [http://127.0.0.1:6806]

I 2021/11/15 15:02:56 database.go:134: initialized database tables

I 2021/11/15 15:02:56 database.go:88: reinitialized database [/home/siyuan/Documents/SiYuan/temp/siyuan.db]

I 2021/11/15 15:02:56 conf.go:508: pre-init database size [4.1 kB]

I 2021/11/15 15:02:56 conf.go:524: post-init database size [4.1 kB], tree stat [count=0, size=0 B]

I 2021/11/15 15:02:56 working.go:112: kernel booted

I 2021/11/15 15:02:56 serve.go:68: kernel is booting [http://0.0.0.0:6806]

2021/11/15 15:03:04 [Recovery] 2021/11/15 - 15:03:04 panic recovered:

runtime error: invalid memory address or nil pointer dereference

/usr/local/go/src/runtime/panic.go:221 (0x4535a6)

/usr/local/go/src/runtime/signal_unix.go:735 (0x453576)

/go/pkg/mod/github.com/gorilla/websocket@v1.4.2/conn.go:1184 (0xc448c6)

/go/pkg/mod/github.com/88250/melody@v0.0.0-20201115062536-c0b3394adcd1/melody.go:172 (0xc448ae)

/go/pkg/mod/github.com/88250/melody@v0.0.0-20201115062536-c0b3394adcd1/melody.go:161 (0x102b0f7)

/go/src/github.com/siyuan-note/siyuan-src/kernel/server/serve.go:195 (0x102b0bd)

/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165 (0xc38b6c)

/go/pkg/mod/github.com/gin-contrib/sessions@v0.0.3/sessions.go:52 (0xc38b58)

/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165 (0xc2fe21)

/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/recovery.go:99 (0xc2fe0c)

/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165 (0xc2ecdd)

/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/gin.go:489 (0xc2e965)

/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/gin.go:445 (0xc2e4c4)

/usr/local/go/src/net/http/server.go:2878 (0x75a99a)

/usr/local/go/src/net/http/server.go:1929 (0x756047)

/usr/local/go/src/runtime/asm_amd64.s:1581 (0x470940)

在关闭浏览器后(浏览器会一直尝试建立连接),内核会重新启动

I 2021/11/15 16:01:33 conf.go:524: post-init database size [4.1 kB], tree stat [count=0, size=0 B]

I 2021/11/15 16:01:33 working.go:112: kernel booted

I 2021/11/15 16:01:33 serve.go:68: kernel is booting [http://0.0.0.0:6806]

  • 思源笔记

    思源笔记是一款隐私优先的个人知识管理系统,支持完全离线使用,同时也支持端到端加密同步。

    融合块、大纲和双向链接,重构你的思维。

    23011 引用 • 92560 回帖

相关帖子

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...
  • 从报错上看应该是因为没有配置反代 WebSocket /ws

    1 回复
  • bingoct
    作者

    确实是反代的问题。已解决,打扰了。