Coder Social home page Coder Social logo

Comments (5)

sznowicki avatar sznowicki commented on July 1, 2024 3

I'm sure I've been moving data while meili process was not running though. I'll observe it with fresh index and report if it comes back. This time I'll make a proper dump ;)

from meilisearch.

sznowicki avatar sznowicki commented on July 1, 2024

I thought about making a dump and recreate indexes but this also failed with also quite cryptic message:

Task {
  indexUid: null,
  status: 'failed',
  type: 'dumpCreation',
  uid: 2162947,
  details: { dumpUid: null },
  canceledBy: null,
  error: {
    message: 'internal: MDB_PAGE_NOTFOUND: Requested page not found.',
    code: 'internal',
    type: 'internal',
    link: 'https://docs.meilisearch.com/errors#internal'
  },
  duration: 'PT35.734438274S',
  startedAt: 2024-02-23T19:59:11.542Z,
  enqueuedAt: 2024-02-23T19:59:11.533Z,
  finishedAt: 2024-02-23T19:59:47.277Z
}

from meilisearch.

Kerollmops avatar Kerollmops commented on July 1, 2024

Hey @sznowicki 👋

Thank you for the issue and report. The MDB_CORRUPTED kind of errors is clearly showing that the database is corrupt on disk.

It brings the question of what kind of volume did you mount on Docker? Is it a network disk (NTFS)?

Meilisearch, and more specifically LMDB (our internal key-value store), doesn't support network file systems. Always use a raw SSD or NVMe.

The best solution to avoid having to deal with this kind of issues is to use the cloud offering. We provide more features like analytics and auto-updates. We never saw any database corruption in the past.

from meilisearch.

sznowicki avatar sznowicki commented on July 1, 2024

It's RAID 1 setup with LVM and LUKS encryption. For the process it should be visible as a regular ext4 filesystem. I'm reindexing all from scratch at the moment and so far don't observe any problems.

Possibly something went wrong when I moved the data from one disk to another.

For future problems, is there any way to recover from such state using some LMDB processes?

from meilisearch.

Kerollmops avatar Kerollmops commented on July 1, 2024

Possibly something went wrong when I moved the data from one disk to another.

Ho! Indeed, copying a file while it is being written to (indexing documents) is unsafe as the copy process is iterative (pages by pages) while data is being modified.

For future problems, is there any way to recover from such state using some LMDB processes?

There is maybe a feature in LMDB to read the pages from the previous transaction (before the one indexing new documents). But not sure it is available in LMDB 0.9...

from meilisearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.