Whenever I try to upload an image as a post or comment I get this error message:

{"data":{"msg": "IO error: Os { code: 12, kind: OutOfMemory, message: \"Cannot allocate memory\" }","files": null},"state":" success"}

  • lemmusMA
    link
    fedilink
    English
    arrow-up
    3
    ·
    9 months ago

    This issue should be fixed now. Let me know if you continue to see any issues.

    For the technical details:

    Pictrs is used for managing images in Lemmy. It uses a Sqlite database on the local filesystem which limits its scalability. After a recent upgrade, it does now support migrating this data into Postgresql. I’m hoping to schedule some time soon to perform the update. This will allow multiple instances of Pictrs to be run in parallel providing better uptime and recovery.

    What happens here is that the service gets into a bad state and it tries to bring up a replacement. But due to the local DB, the replacement is unable to get a lock on the filesystem and crashes. Once we switch it to use Postgres, this should no longer be an issue.