Meteor won't start — fibers/futures.js throws error “Error: SQLITE_CORRUPT: database disk image is malformed”

前端 未结 2 443
遥遥无期
遥遥无期 2021-01-12 12:05

Right now, running locally, every action from the Meteor CLI in OSX throws this exception:

/Users/mallorym/.meteor/packages/meteor-tool/.1.1.3.1d614zp

相关标签:
2条回答
  • 2021-01-12 12:40

    Using sqlite3 you can repair the DB.

    cd ~/.meteor/package-metadata/v2.0.1
    sqlite3 packages.data.db .dump > backup
    mv packages.data.db packages.data.db.bustedX
    sqlite3 packages.data.db < backup
    rm backup
    

    Essentially, even though the DB reports as corrupt. The SQLite tool can dump it and then recreate it.

    Cheers!

    0 讨论(0)
  • 2021-01-12 12:52

    With a little help from here, I was able to fix it, and without having to delete all my downloaded meteor packages, as suggested in that post. It was enough to delete the metadata:

    rm -rf ~/.meteor/package-metadata
    

    Just be prepared to wait quite a while while meteor recreates these databases on next start.

    0 讨论(0)
提交回复
热议问题