Skip to content

meilisearch 和 alist 都配置了systemd 启动,但是重启Linux之后搜索500错误代码报错 #8458

@233lol

Description

@233lol

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.44.0

Driver used / 使用的存储驱动

本地储存

Describe the bug / 问题描述

meilisearch 和 alist 都配置了systemd 启动,但是重启Linux之后搜索500错误代码报错

[Unit]
Description=alist service
Wants=network-online.target garage.service meilisearch.service
After=local-fs.target network-online.target nss-lookup.target garage.service meilisearch.service

[Service]
Type=simple
PrivateTmp=false
WorkingDirectory=/xxxx/alist
User=fjf
ExecStart=/xxxx/alist/alist server
TimeoutStopSec=1800

[Install]
WantedBy=multi-user.target

应该是meilisearch 还没有启动完成,alist就启动了

Reproduction / 复现链接

内网

Config / 配置

{
"force": false,
"site_url": "",
"cdn": "",
"jwt_secret": "xxx",
"token_expires_in": 48,
"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": "xxx",
"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": ""
},
"temp_dir": "data/temp",
"bleve_dir": "data/bleve",
"dist_dir": "",
"log": {
"enable": true,
"name": "data/log/log.log",
"max_size": 50,
"max_backups": 30,
"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": 1,
"task_persistant": false
},
"transfer": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"upload": {
"workers": 5,
"max_retry": 0,
"task_persistant": false
},
"copy": {
"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": false,
"port": 5246,
"ssl": false
},
"ftp": {
"enable": false,
"listen": ":5221",
"find_pasv_port_attempts": 50,
"active_transfer_port_non_20": false,
"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": false,
"listen": ":5222"
},
"last_launched_version": "v3.44.0"
}

Logs / 日志

Image

2025/04/29 22:58:39 [Recovery] 2025/04/29 - 22:58:39 panic recovered:
runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/runtime/panic.go:262 (0x485db8)
/usr/local/go/src/runtime/signal_unix.go:925 (0x485d88)
/source/internal/search/search.go:51 (0x1fb6b5c)
/source/server/handles/search.go:46 (0x1fb6b0f)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0x1e72211)
/source/server/middlewares/search.go:17 (0x1e721ff)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0x1e70e18)
/source/server/middlewares/auth.go:73 (0x1e70c06)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0x1e7175a)
/source/server/middlewares/check.go:14 (0x1e71748)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0xe4f2ce)
/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102 (0xe4f2bb)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0xe4e404)
/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:249 (0xe4e3eb)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0xe4d811)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:633 (0xe4d2a0)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:589 (0xe4cdc9)
/usr/local/go/src/net/http/server.go:3301 (0x78d8cd)
/usr/local/go/src/net/http/server.go:2102 (0x76c424)
/usr/local/go/src/runtime/asm_amd64.s:1700 (0x48b5a0)

[GIN] 2025/04/29 - 22:58:39 | 500 | 1.359064ms | 192.168.1.3 | POST "/api/fs/search"
2025/04/29 22:58:39 [Recovery] 2025/04/29 - 22:58:39 panic recovered:
runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/runtime/panic.go:262 (0x485db8)
/usr/local/go/src/runtime/signal_unix.go:925 (0x485d88)
/source/internal/search/search.go:51 (0x1fb6b5c)
/source/server/handles/search.go:46 (0x1fb6b0f)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0x1e72211)
/source/server/middlewares/search.go:17 (0x1e721ff)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0x1e70e18)
/source/server/middlewares/auth.go:73 (0x1e70c06)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0x1e7175a)
/source/server/middlewares/check.go:14 (0x1e71748)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0xe4f2ce)
/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102 (0xe4f2bb)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0xe4e404)
/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:249 (0xe4e3eb)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185 (0xe4d811)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:633 (0xe4d2a0)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:589 (0xe4cdc9)
/usr/local/go/src/net/http/server.go:3301 (0x78d8cd)
/usr/local/go/src/net/http/server.go:2102 (0x76c424)
/usr/local/go/src/runtime/asm_amd64.s:1700 (0x48b5a0)

[GIN] 2025/04/29 - 22:58:39 | 500 | 1.359064ms | 192.168.1.3 | POST "/api/fs/search"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions