AlistGo / AlistGo/alist

关于meilisearch的相关问题

Abierto
#7,563 5 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
Go
Estrellas
50.2k
Forks
7.9k
Merge medio
7 d 21 h
PR fusionados (30 d)
6

Descripción

### Please make sure of the following things

- [X] I have read the [documentation](https://alist.nn.ci).
我已经阅读了[文档](https://alist.nn.ci)。

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

- [x] I'm sure it's due to `AList` and not something else(such as [Network](https://alist.nn.ci/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host) ,`Dependencies` or `Operational`).
我确定是`AList`的问题,而不是其他原因(例如[网络](https://alist.nn.ci/zh/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host),`依赖`或`操作`)。

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

### AList Version / AList 版本

v3.40.0

### Driver used / 使用的存储驱动

no

### Describe the bug / 问题描述

我直接用的官方驱动,将meilisearch替换成https 启动alist提示:FATA[2024-11-25 03:11:42] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
image

但是我按照 从源码开始 [https://alist.nn.ci/zh/guide/install/source.html](url) 将meilisearch替换成https 这个问题复现不出来?
image
配置文件对比如下:
image

### Reproduction / 复现链接

https://alist.nn.ci/zh/guide/install/source.html
启动服务命令
`./alist server --force-bin-dir --log-std`

### Config / 配置
```json
{
"force": false,
"site_url": "",
"cdn": "",
"jwt_secret": "wUtJ46F9aS5wamYb",
"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": "https://10.11.11.6:7700",
"api_key": "rwjyc5oe1zohw7l0nqolrgjndwu66dicva2i13wo",
"index_prefix": ""
},
"scheme": {
"address": "0.0.0.0",
"http_port": 5244,
"https_port": 5245,
"force_https": false,
"cert_file": "data/10.11.11.6.pem",
"key_file": "data/10.11.11.6-key.pem",
"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,
"tls_insecure_skip_verify": true,
"tasks": {
"download": {
"workers": 5,
"max_retry": 1,
"task_persistant": true
},
"transfer": {
"workers": 5,
"max_retry": 2,
"task_persistant": true
},
"upload": {
"workers": 5,
"max_retry": 0,
"task_persistant": false
},
"copy": {
"workers": 5,
"max_retry": 2,
"task_persistant": true
}
},
"cors": {
"allow_origins": [
"*"
],
"allow_methods": [
"*"
],
"allow_headers": [
"*"
]
},
"s3": {
"enable": false,
"port": 5246,
"ssl": false
}
}
```
### Logs / 日志

]11;?\INFO[2024-11-25 02:54:25] reading config file: data/config.json
INFO[2024-11-25 02:54:25] load config from env with prefix:
INFO[2024-11-25 02:54:25] init logrus...
FATA[2024-11-25 02:54:25] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 02:55:30] reading config file: data/config.json
INFO[2024-11-25 02:55:30] load config from env with prefix:
INFO[2024-11-25 02:55:30] init logrus...
FATA[2024-11-25 02:55:30] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 02:56:00] reading config file: data/config.json
INFO[2024-11-25 02:56:00] load config from env with prefix:
INFO[2024-11-25 02:56:00] init logrus...
FATA[2024-11-25 02:56:00] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 02:56:05] reading config file: data/config.json
INFO[2024-11-25 02:56:05] load config from env with prefix:
INFO[2024-11-25 02:56:05] init logrus...
FATA[2024-11-25 02:56:05] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 02:56:11] reading config file: data/config.json
INFO[2024-11-25 02:56:11] load config from env with prefix:
INFO[2024-11-25 02:56:11] init logrus...
FATA[2024-11-25 02:56:11] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 02:56:17] reading config file: data/config.json
INFO[2024-11-25 02:56:17] load config from env with prefix:
INFO[2024-11-25 02:56:17] init logrus...
FATA[2024-11-25 02:56:17] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 02:56:23] reading config file: data/config.json
INFO[2024-11-25 02:56:23] load config from env with prefix:
INFO[2024-11-25 02:56:23] init logrus...
FATA[2024-11-25 02:56:23] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 02:56:30] reading config file: data/config.json
INFO[2024-11-25 02:56:30] load config from env with prefix:
INFO[2024-11-25 02:56:30] init logrus...
FATA[2024-11-25 02:56:30] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 02:56:39] reading config file: data/config.json
INFO[2024-11-25 02:56:39] load config from env with prefix:
INFO[2024-11-25 02:56:39] init logrus...
FATA[2024-11-25 02:56:39] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 02:56:50] reading config file: data/config.json
INFO[2024-11-25 02:56:50] load config from env with prefix:
INFO[2024-11-25 02:56:50] init logrus...
FATA[2024-11-25 02:56:51] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 02:57:09] reading config file: data/config.json
INFO[2024-11-25 02:57:09] load config from env with prefix:
INFO[2024-11-25 02:57:09] init logrus...
FATA[2024-11-25 02:57:09] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 02:57:40] reading config file: data/config.json
INFO[2024-11-25 02:57:40] load config from env with prefix:
INFO[2024-11-25 02:57:40] init logrus...
FATA[2024-11-25 02:57:40] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 02:58:36] reading config file: data/config.json
INFO[2024-11-25 02:58:36] load config from env with prefix:
INFO[2024-11-25 02:58:36] init logrus...
FATA[2024-11-25 02:58:37] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 02:59:42] reading config file: data/config.json
INFO[2024-11-25 02:59:42] load config from env with prefix:
INFO[2024-11-25 02:59:42] init logrus...
FATA[2024-11-25 02:59:42] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 03:00:47] reading config file: data/config.json
INFO[2024-11-25 03:00:47] load config from env with prefix:
INFO[2024-11-25 03:00:47] init logrus...
FATA[2024-11-25 03:00:47] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 03:01:53] reading config file: data/config.json
INFO[2024-11-25 03:01:53] load config from env with prefix:
INFO[2024-11-25 03:01:53] init logrus...
FATA[2024-11-25 03:01:53] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 03:02:58] reading config file: data/config.json
INFO[2024-11-25 03:02:58] load config from env with prefix:
INFO[2024-11-25 03:02:58] init logrus...
FATA[2024-11-25 03:02:58] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 03:04:04] reading config file: data/config.json
INFO[2024-11-25 03:04:04] load config from env with prefix:
INFO[2024-11-25 03:04:04] init logrus...
FATA[2024-11-25 03:04:04] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 03:05:09] reading config file: data/config.json
INFO[2024-11-25 03:05:09] load config from env with prefix:
INFO[2024-11-25 03:05:09] init logrus...
FATA[2024-11-25 03:05:09] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 03:06:15] reading config file: data/config.json
INFO[2024-11-25 03:06:15] load config from env with prefix:
INFO[2024-11-25 03:06:15] init logrus...
FATA[2024-11-25 03:06:15] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 03:07:20] reading config file: data/config.json
INFO[2024-11-25 03:07:20] load config from env with prefix:
INFO[2024-11-25 03:07:20] init logrus...
FATA[2024-11-25 03:07:20] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 03:08:25] reading config file: data/config.json
INFO[2024-11-25 03:08:25] load config from env with prefix:
INFO[2024-11-25 03:08:25] init logrus...
FATA[2024-11-25 03:08:25] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 03:09:31] reading config file: data/config.json
INFO[2024-11-25 03:09:31] load config from env with prefix:
INFO[2024-11-25 03:09:31] init logrus...
FATA[2024-11-25 03:09:31] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 03:10:36] reading config file: data/config.json
INFO[2024-11-25 03:10:36] load config from env with prefix:
INFO[2024-11-25 03:10:36] init logrus...
FATA[2024-11-25 03:10:36] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority
]11;?\INFO[2024-11-25 03:11:42] reading config file: data/config.json
INFO[2024-11-25 03:11:42] load config from env with prefix:
INFO[2024-11-25 03:11:42] init logrus...
FATA[2024-11-25 03:11:42] failed save setting: MeilisearchCommunicationError unable to execute request (path "GET /indexes/alist" with method "FetchInfo"): tls: failed to verify certificate: x509: certificate signed by unknown authority

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.