misskey-dev / misskey

๐ŸŒŽ A completely free and open interplanetary microblogging platform ๐Ÿš€
https://misskey-hub.net/
GNU Affero General Public License v3.0
10.11k stars 1.38k forks source link

meilisearch fetch error 500 #13871

Open sao-coding opened 6 months ago

sao-coding commented 6 months ago

๐Ÿ’ก Summary

image Search posts cannot be used

๐Ÿฅฐ Expected Behavior

Search posts can be used

๐Ÿคฌ Actual Behavior

Search posts can be used

๐Ÿ“ Steps to Reproduce

docker-compose.yml

  meilisearch:
    restart: always
    image: getmeili/meilisearch:v1.3.4
    environment:
      - MEILI_NO_ANALYTICS=true
      - MEILI_ENV=production
    env_file:
      - .config/meilisearch.env
    # ports:
    #   - "7700:7700" #ใƒใƒผใƒˆ็•ชๅทใ‚’่จญๅฎšใ™ใ‚‹
    networks:
      - internal_network
      # - external_network #ๅค–้ƒจใƒใƒƒใƒˆใƒฏใƒผใ‚ฏใ‚’ๆœ‰ๅŠนใซใ™ใ‚‹
    volumes:
      - ./meili_data:/meili_data

default.yml

meilisearch:
  host: meilisearch
  port: 7700
  apiKey: "df571c70-e9bb-4302-b5a1-d10179c5e441"
  ssl: true
  index: "misskey"
  scope: local
  MEILI_MASTER_KEY=df571c70-e9bb-4302-b5a1-d10179c5e441

misskey-web docker log

      name: '',
    data: { activity: [Object], signature: [Object] },
    opts: {
      attempts: 8,
      delay: 0,
      backoff: [Object],
      removeOnFail: true,
      removeOnComplete: true
    },
    id: '635',
    progress: 0,
    returnvalue: null,
    stacktrace: [
      'UnrecoverableError: skip: failed to resolve user\n' +
        '    at InboxProcessorService.process (file:///misskey/packages/backend/built/queue/processors/InboxProcessorService.js:98:19)\n' +
        '    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
        '    at async Worker.processJob (/misskey/node_modules/.pnpm/bullmq@5.4.0/node_modules/bullmq/dist/cjs/classes/worker.js:395:28)\n' +
        '    at async Worker.retryIfFailed (/misskey/node_modules/.pnpm/bullmq@5.4.0/node_modules/bullmq/dist/cjs/classes/worker.js:584:24)'
    ],
    attemptsStarted: 1,
    attemptsMade: 1,
    delay: 0,
    repeatJobKey: undefined,
    timestamp: 1716463221650,
    parentKey: undefined,
    parent: undefined,
    toKey: [Function: bound ],
    scripts: Scripts { queue: [Worker], moveToFinishedKeys: [Array] },
    queueQualifiedName: 'misskey.sao-x.com:queue:inbox:inbox',
    processedOn: 1716463221652,
    failedReason: 'skip: failed to resolve user',
    token: '547b76d7-ac9c-47a7-966e-991945f64214:99',
    finishedOn: 1716463221658
  },
  e: {
    stack: 'UnrecoverableError: skip: failed to resolve user\n' +
      '    at InboxProcessorService.process (file:///misskey/packages/backend/built/queue/processors/InboxProcessorService.js:98:19)\n' +
      '    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
      '    at async Worker.processJob (/misskey/node_modules/.pnpm/bullmq@5.4.0/node_modules/bullmq/dist/cjs/classes/worker.js:395:28)\n' +
      '    at async Worker.retryIfFailed (/misskey/node_modules/.pnpm/bullmq@5.4.0/node_modules/bullmq/dist/cjs/classes/worker.js:584:24)',
    message: 'skip: failed to resolve user',
    name: 'UnrecoverableError'
  }
}
ERR  *  [api]   Internal error occurred in notes/search: fetch failed {
  ep: 'notes/search',
  ps: {
    query: 'ๅฎ‰',
    userId: null,
    limit: 10,
    allowPartial: true,
    i: 'Mzy8OGVSfMl6F3aB',
    offset: 0,
    channelId: null
  },
  e: {
    message: 'fetch failed',
    code: 'MeiliSearchCommunicationError',
    stack: 'MeiliSearchCommunicationError: fetch failed\n' +
      '    at Object.fetch (node:internal/deps/undici/undici:11730:11)\n' +
      '    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)',
    id: '1b572612-e28b-47a5-854a-033793fdf372'
  }
}
MeiliSearchCommunicationError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11730:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  errno: undefined,
  code: undefined
} 1b572612-e28b-47a5-854a-033793fdf372

misskey-meilisearch docker log

Config file path:   "none"
Database path:      "./data.ms"
Server listening on:    "http://0.0.0.0:7700"
Environment:        "production"
Commit SHA:     "8822ca234e8bc7bceb3a6f6c246fb9aa24a16a9c"
Commit date:        "2023-09-12T13:34:39+00:00"
Package version:    "1.3.4"
Anonymous telemetry:    "Disabled"
A master key has been set. Requests to Meilisearch won't be authorized unless you provide an authentication key.
Check out Meilisearch Cloud!    https://www.meilisearch.com/cloud?utm_campaign=oss&utm_source=engine&utm_medium=cli
Documentation:          https://www.meilisearch.com/docs
Source code:            https://github.com/meilisearch/meilisearch
Discord:            https://discord.meilisearch.com
[2024-05-23T11:02:16Z INFO  actix_server::builder] starting 2 workers
[2024-05-23T11:02:16Z INFO  actix_server::server] Actix runtime found; starting in Actix runtime
[2024-05-23T11:13:11Z ERROR actix_http::h1::dispatcher] stream error: Request parse error: Invalid Header provided
[2024-05-23T11:13:25Z ERROR actix_http::h1::dispatcher] stream error: Request parse error: Invalid Header provided
[2024-05-23T11:15:04Z ERROR actix_http::h1::dispatcher] stream error: Request parse error: Invalid Header provided
[2024-05-23T11:20:26Z ERROR actix_http::h1::dispatcher] stream error: Request parse error: Invalid Header provided

๐Ÿ’ป Frontend Environment

* Model and OS of the device(s):
* Browser: edge 125.0.2535.51
* Server URL: https://misskey.sao-x.com
* Misskey: v2024.3.1

๐Ÿ›ฐ Backend Environment (for server admin)

* Installation Method or Hosting Service: docker compose
* Misskey: v2024.3.1
* Node:
* PostgreSQL:
* Redis:
* OS and Architecture:

Do you want to address this bug yourself?

nakkaa commented 5 months ago

.config/meilisearch.env ใซ MEILI_MASTER_KEY= ใ‚’่จญๅฎšใ—ใพใ—ใŸใ‹๏ผŸ ref: https://misskey-doc.7ka.org/ja/misskey/enable-meilisearch

MEILI_MASTER_KEY=df571c70-e9bb-4302-b5a1-d10179c5e441

ใ„ใ‚„ใ€ใ—ใฆใ‚ใ‚Šใใ†ใงใ™ใญใ€‚ๅคฑ็คผใ—ใพใ—ใŸๅฟ˜ใ‚Œใฆใใ ใ•ใ„ใ€‚

oluceps commented 2 months ago

Same issue encountered.