Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

构建好 docker 镜像后,运行报错 #3

Closed
3 tasks done
powersee opened this issue Sep 26, 2023 · 0 comments
Closed
3 tasks done

构建好 docker 镜像后,运行报错 #3

powersee opened this issue Sep 26, 2023 · 0 comments

Comments

@powersee
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

我使用 dockerfile 构建镜像之后,使用这样的命令运行容器

docker run -d \
  -v /share/CACHEDEV1_DATA/Container/siyuan-ce:/siyuan/workspace \
  --network host \
  -u $(id -u):$(id -g) \
  --name siyuan-ce \
  siyuan-ce:2.10.6 \
  --workspace=/siyuan/workspace/

然后日志中出现了这样的报错

logging.go:159: PANIC RECOVERED: runtime error: invalid memory address or nil pointer dereference

Expected result

期待解决方案

Screenshot or screen recording presentation

No response

Version environment

- Version:  2.10.6
- Operating System: qnap (Linux qnap 5.10.60-qnap)
- Browser (if used): edge

Log file

I 2023/09/26 09:41:49 working.go:116: 
      ___                                   ___           ___           ___
     /  /\        ___           ___        /__/\         /  /\         /__/\
    /  /:/_      /  /\         /__/|       \  \:\       /  /::\        \  \:\
   /  /:/ /\    /  /:/        |  |:|        \  \:\     /  /:/\:\        \  \:\
  /  /:/ /::\  /__/::\        |  |:|    ___  \  \:\   /  /:/~/::\   _____\__\:\
 /__/:/ /:/\:\ \__\/\:\__   __|__|:|   /__/\  \__\:\ /__/:/ /:/\:\ /__/::::::::\
 \  \:\/:/~/:/    \  \:\/\ /__/::::\   \  \:\ /  /:/ \  \:\/:/__\/ \  \:\~~\~~\/
  \  \::/ /:/      \__\::/    ~\~~\:\   \  \:\  /:/   \  \::/       \  \:\  ~~~
   \__\/ /:/       /__/:/       \  \:\   \  \:\/:/     \  \:\        \  \:\
     /__/:/        \__\/         \__\/    \  \::/       \  \:\        \  \:\
     \__\/                                 \__\/         \__\/         \__\/
I 2023/09/26 09:41:49 runtime.go:74: kernel is booting:
    * ver [2.10.6]
    * 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/]
D 2023/09/26 09:41:49 conf.go:132: check device locale failed [detect: not detected], using default language [en_US]
I 2023/09/26 09:41:49 runtime.go:128: use network proxy [system]
I 2023/09/26 09:41:49 serve.go:119: kernel [pid=1] http server [0.0.0.0:6806] is booting
I 2023/09/26 09:41:50 database.go:89: the database structure is changed, rebuilding database...
I 2023/09/26 09:41:50 database.go:109: reinitialized database [/siyuan/workspace/temp/siyuan.db]
I 2023/09/26 09:41:50 conf.go:710: database size [4.1 kB], tree/block count [0/0]
I 2023/09/26 09:41:50 working.go:154: kernel booted
E 2023/09/26 09:41:50 logging.go:159: PANIC RECOVERED: runtime error: invalid memory address or nil pointer dereference
        /usr/local/go/src/runtime/panic.go:914 (0x43d53e)
/usr/local/go/src/runtime/panic.go:261 (0x454c97)
/usr/local/go/src/runtime/signal_unix.go:861 (0x454c65)
/go/src/github.com/siyuan-note/siyuan/kernel/model/cloud_service.go:229 (0x1a3d41b)
/usr/local/go/src/runtime/asm_amd64.s:1650 (0x4740c0)

I 2023/09/26 09:41:50 box.go:79: auto stat [trees=0, blocks=0, dataSize=37 kB, assetsSize=0 B]

More information

No response

@powersee powersee closed this as completed Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant