Skip to content

meilisearch在alist后面启动时 搜索会报错500 #631

@DreamlingBig

Description

@DreamlingBig

请确认以下事项

  • 我已确认阅读并同意 AGPL-3.0 第15条
    本程序不提供任何明示或暗示的担保,使用风险由您自行承担。

  • 我已确认阅读并同意 AGPL-3.0 第16条
    无论何种情况,版权持有人或其他分发者均不对使用本程序所造成的任何损失承担责任。

  • 我确认我的描述清晰,语法礼貌,能帮助开发者快速定位问题,并符合社区规则。

  • 我已确认阅读了OpenList文档

  • 我已确认没有重复的问题或讨论。

  • 我已确认是OpenList的问题,而不是其他原因(例如 网络依赖操作)。

  • 我认为此问题必须由OpenList处理,而非第三方。

  • 我已确认这个问题在最新版本中没有被修复。

OpenList 版本(必填)

4.0.8

使用的存储驱动(必填)

本机存储,webdav

问题描述(必填)

电脑重启后

nssm启动openlist
C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup 启动meilisearch

openlist是先启动的 meilisearch后面登录进来才会启动

在openlist搜索时显示

Request failed with status code 500

meilisearch那边没有请求日志

然后关闭openlist再打卡 搜索恢复正常了

配置文件内容(必填)

{
  "force": false,
  "site_url": "省略",
  "cdn": "",
  "jwt_secret": "省略",
  "token_expires_in": 720,
  "database": {
    "type": "sqlite3",
    "host": "",
    "port": 0,
    "user": "",
    "password": "",
    "name": "",
    "db_file": "data\\data.db",
    "table_prefix": "x_",
    "ssl_mode": "",
    "dsn": ""
  },
  "meilisearch": {
    "host": "http://localhost:7700",
    "api_key": "省略",
    "index_prefix": ""
  },
  "scheme": {
    "address": "0.0.0.0",
    "http_port": 5244,
    "https_port": -1,
    "force_https": false,
    "cert_file": "",
    "key_file": "",
    "unix_file": "",
    "unix_file_perm": "",
    "enable_h2c": false
  },
  "temp_dir": "E:\\OpenList\\temp",
  "bleve_dir": "data\\bleve",
  "dist_dir": "",
  "log": {
    "enable": true,
    "name": "E:\\OpenList\\log\\log.log",
    "max_size": 10,
    "max_backups": 5,
    "max_age": 28,
    "compress": false
  },
  "delayed_start": 0,
  "max_connections": 0,
  "max_concurrency": 64,
  "tls_insecure_skip_verify": true,
  "tasks": {
    "download": {
      "workers": 5,
      "max_retry": 3,
      "task_persistant": true
    },
    "transfer": {
      "workers": 5,
      "max_retry": 3,
      "task_persistant": true
    },
    "upload": {
      "workers": 5,
      "max_retry": 0,
      "task_persistant": false
    },
    "copy": {
      "workers": 5,
      "max_retry": 3,
      "task_persistant": true
    },
    "move": {
      "workers": 5,
      "max_retry": 2,
      "task_persistant": false
    },
    "decompress": {
      "workers": 5,
      "max_retry": 2,
      "task_persistant": false
    },
    "decompress_upload": {
      "workers": 5,
      "max_retry": 2,
      "task_persistant": false
    },
    "allow_retry_canceled": false
  },
  "cors": {
    "allow_origins": [
      "*"
    ],
    "allow_methods": [
      "*"
    ],
    "allow_headers": [
      "*"
    ]
  },
  "s3": {
    "enable": true,
    "port": 5246,
    "ssl": false
  },
  "ftp": {
    "enable": true,
    "listen": ":5221",
    "find_pasv_port_attempts": 50,
    "active_transfer_port_non_20": true,
    "idle_timeout": 900,
    "connection_timeout": 30,
    "disable_active_mode": false,
    "default_transfer_binary": false,
    "enable_active_conn_ip_check": true,
    "enable_pasv_conn_ip_check": true
  },
  "sftp": {
    "enable": true,
    "listen": ":5222"
  },
  "last_launched_version": "v4.0.8"
}

日志(可选)

日志

�[31m2025/07/07 00:54:13 [Recovery] 2025/07/07 - 00:54:13 panic recovered:
runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/runtime/panic.go:262 (0x73d437)
/usr/local/go/src/runtime/signal_windows.go:401 (0x73d407)
/source/internal/search/search.go:51 (0x24002bc)
/source/server/handles/search.go:46 (0x240026f)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185 (0x22a3691)
/source/server/middlewares/search.go:17 (0x22a367f)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185 (0x22a2278)
/source/server/middlewares/auth.go:73 (0x22a2066)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185 (0x22a2bf6)
/source/server/middlewares/check.go:30 (0x22a2be4)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185 (0x147604e)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/recovery.go:102 (0x147603b)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185 (0x1475184)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/logger.go:249 (0x147516b)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185 (0x14745d1)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/gin.go:644 (0x1474060)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/gin.go:600 (0x1473b89)
/usr/local/go/src/net/http/server.go:3301 (0xa7142d)
/usr/local/go/src/net/http/server.go:2102 (0xa4ff84)
/usr/local/go/src/runtime/asm_amd64.s:1700 (0x7648a0)
�[0m
[GIN] 2025/07/07 - 00:54:13 | 500 |      2.7262ms |    14.26.161.72 | POST     "/api/fs/search"


�[31m2025/07/07 00:54:13 [Recovery] 2025/07/07 - 00:54:13 panic recovered:
runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/runtime/panic.go:262 (0x73d437)
/usr/local/go/src/runtime/signal_windows.go:401 (0x73d407)
/source/internal/search/search.go:51 (0x24002bc)
/source/server/handles/search.go:46 (0x240026f)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185 (0x22a3691)
/source/server/middlewares/search.go:17 (0x22a367f)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185 (0x22a2278)
/source/server/middlewares/auth.go:73 (0x22a2066)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185 (0x22a2bf6)
/source/server/middlewares/check.go:30 (0x22a2be4)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185 (0x147604e)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/recovery.go:102 (0x147603b)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185 (0x1475184)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/logger.go:249 (0x147516b)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185 (0x14745d1)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/gin.go:644 (0x1474060)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/gin.go:600 (0x1473b89)
/usr/local/go/src/net/http/server.go:3301 (0xa7142d)
/usr/local/go/src/net/http/server.go:2102 (0xa4ff84)
/usr/local/go/src/runtime/asm_amd64.s:1700 (0x7648a

复现链接(可选)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions