mindoc-org / mindoc

Golang实现的基于beego框架的接口在线文档管理系统

Home Page:https://mindoc.com.cn/docs/mindochelp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

创建配置文件监控器失败 -> inotify_init: function not implemented

zhangyi007 opened this issue · comments

请按照一下格式提交issue,谢谢!

  1. 你当前使用的是哪个版本的 MinDoc(v2.1)?
    version: "3"
    services:
    mindoc:
    image: registry.cn-hangzhou.aliyuncs.com/mindoc-org/mindoc:v2.1
    container_name: mindoc
    privileged: false
    ports:

    • 8181:8181
      volumes:
    • /Users/zhangyi/Documents/docker/mindoc/conf://mindoc/conf
    • /Users/zhangyi/Documents/docker/mindoc/static://mindoc/static
    • /Users/zhangyi/Documents/docker/mindoc/views://mindoc/views
    • /Users/zhangyi/Documents/docker/mindoc/uploads://mindoc/uploads
    • /Users/zhangyi/Documents/docker/mindoc/runtime://mindoc/runtime
    • /Users/zhangyi/Documents/docker/mindoc/database://mindoc/database
      environment:
    • MINDOC_RUN_MODE=prod
    • MINDOC_DB_ADAPTER=sqlite3
    • MINDOC_DB_DATABASE=./database/mindoc.db
    • MINDOC_CACHE=true
    • MINDOC_CACHE_PROVIDER=file
    • MINDOC_ENABLE_EXPORT=false
    • MINDOC_BASE_URL=
    • MINDOC_CDN_IMG_URL=
    • MINDOC_CDN_CSS_URL=
    • MINDOC_CDN_JS_URL=
  2. 你当前使用的是什么操作系统?
    mac系统,docker安装

  3. 你是如何操作的?
    docker-compose up -d安装

  4. 你期望得到什么结果?
    安装成功

  5. 当前遇到的是什么结果?
    安装报错
    2024/03/14 19:03:51.068 [I] [command.go:38] 正在初始化数据库配置.

2024/03/14 19:03:51.095 [I] [command.go:91] 数据库初始化完成.

2024/03/14 19:03:51.095 [I] [command.go:372] 正常初始化缓存配置.

2024/03/14 19:03:51.098 [I] [command.go:461] 缓存初始化完成.

2024/03/14 19:03:51.139 [E] [command.go:471] 创建配置文件监控器失败 -> inotify_init: function not implemented

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xa9c235]

goroutine 34 [running]:
github.com/howeyc/fsnotify.(*Watcher).WatchFlags(0x0, {0xc0000380c0, 0x15}, 0xa)
/go/pkg/mod/github.com/howeyc/fsnotify@v0.9.0/fsnotify.go:70 +0x35
github.com/mindoc-org/mindoc/commands.RegisterAutoLoadConfig()
/go/src/github.com/mindoc-org/mindoc/commands/command.go:497 +0xc7
github.com/mindoc-org/mindoc/commands/daemon.(*Daemon).Run(0xc000130660?)
/go/src/github.com/mindoc-org/mindoc/commands/daemon/daemon.go:53 +0x45
created by github.com/mindoc-org/mindoc/commands/daemon.(*Daemon).Start
/go/src/github.com/mindoc-org/mindoc/commands/daemon/daemon.go:43 +0x56
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0xb7c756]

goroutine 37 [running]:
github.com/mindoc-org/mindoc/commands.RegisterAutoLoadConfig.func1()
/go/src/github.com/mindoc-org/mindoc/commands/command.go:476 +0x36
created by github.com/mindoc-org/mindoc/commands.RegisterAutoLoadConfig
/go/src/github.com/mindoc-org/mindoc/commands/command.go:473 +0xaa