Docker 端同步时退出

因为在学校使用校园网,手机伺服不方便,所以使用了 docker,以便于能够在 iPad 上阅读,但 PC 上一般还是使用客户端而不是网页,有时候使用客户端时会导致 docker 强制退出。日志如下:

I 2021/09/01 22:08:14 runtime.go:32: kernel is booting:
    * ver [1.3.2]
    * arch [amd64]
    * runtime mode [prod]
    * working directory [/opt/siyuan]
    * read only [false]
    * container [docker]
    * database [ver=20210818]
    * workspace directory [/var/siyuan]
    * rsync [version 3.2.3  protocol version 31]
I 2021/09/01 22:08:14 conf.go:228: local serve path [http://127.0.0.1:6806]
I 2021/09/01 22:08:14 database.go:124: initialized database tables
I 2021/09/01 22:08:14 database.go:84: reinitialized database [/var/siyuan/temp/siyuan.db]
I 2021/09/01 22:08:14 sync.go:66: sync before boot
I 2021/09/01 22:08:14 serve.go:68: kernel HTTP server is booting [http://0.0.0.0:6806]
I 2021/09/01 22:08:14 conf.go:403: pre-init database size [29 kB]
I 2021/09/01 22:08:14 box.go:422: rebuilt database of box [20210820234300-1to7fa0] in [0.07s]
I 2021/09/01 22:08:15 box.go:422: rebuilt database of box [20210820234300-zr826wp] in [0.18s]
I 2021/09/01 22:08:15 box.go:422: rebuilt database of box [20210820234300-qosmlsw] in [0.27s]
I 2021/09/01 22:08:15 conf.go:415: post-init database size [4.4 MB]
I 2021/09/01 22:08:15 working.go:109: kernel booted
I 2021/09/02 23:08:07 sync.go:208: sync [cloud=10176, local=10175] downloaded in [1.25s]
I 2021/09/02 23:08:08 box.go:422: rebuilt database of box [20210820234300-1to7fa0] in [0.07s]
I 2021/09/02 23:08:08 box.go:422: rebuilt database of box [20210820234300-zr826wp] in [0.18s]
I 2021/09/02 23:08:08 box.go:422: rebuilt database of box [20210820234300-qosmlsw] in [0.27s]
E 2021/09/03 03:40:05 liandi.go:287: get cloud sync info failed: [invalid character '<' looking for beginning of value]
E 2021/09/04 02:00:28 liandi.go:287: get cloud sync info failed: [Post "https://ld246.com/apis/siyuan/sync/getSiYuanWorkspaceSync": context deadline exceeded (Client.Timeout exceeded while awaiting headers)]
E 2021/09/04 03:40:03 liandi.go:287: get cloud sync info failed: [invalid character '<' looking for beginning of value]
I 2021/09/04 15:29:01 sync.go:208: sync [cloud=10179, local=10176] downloaded in [1.21s]
I 2021/09/04 15:29:01 box.go:422: rebuilt database of box [20210820234300-zr826wp] in [0.17s]
I 2021/09/04 15:29:01 box.go:422: rebuilt database of box [20210820234300-1to7fa0] in [0.07s]
I 2021/09/04 15:29:01 box.go:422: rebuilt database of box [20210820234300-qosmlsw] in [0.26s]
I 2021/09/04 15:29:09 sync.go:61: sync has been locked
I 2021/09/04 15:29:09 conf.go:281: exited kernel

广告 我要投放

欢迎来到这里!

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

注册 关于
请输入回帖内容 ...
  • 88250
    订阅者

    目前在开启同步的情况下,如果连续拉取到两次下载数据会自动退出,目的是避免数据冲突并节省流量。

    这个逻辑在 Docker 端上暂时还是保持不变,等后面同步功能确定稳定以后再去掉,谢谢。