Pixelfed might duplicate pictures between the local filesystem and garage #20

Open
opened 2024-09-02 17:39:46 +02:00 by Niols · 1 comment
Owner

Not sure what is going on there.

Not sure what is going on there.
Collaborator

We opened a discussion upstream on pixelfed: https://github.com/pixelfed/pixelfed/discussions/5283

Nobody responded, but through further digging I think the conclusion we came to is that it first uploads to the local filesystem, then to garage. It does this so that the image can be accessed immediately, but then very soon after that the website switches to fetching from s3

The DANGEROUSLY_SET_FILESYSTEM_DRIVER environment variable can be set to s3 to get pixelfed to ONLY use s3.

We opened a discussion upstream on pixelfed: https://github.com/pixelfed/pixelfed/discussions/5283 Nobody responded, but through further digging I think the conclusion we came to is that it first uploads to the local filesystem, then to garage. It does this so that the image can be accessed **immediately**, but then very soon after that the website switches to fetching from s3 The `DANGEROUSLY_SET_FILESYSTEM_DRIVER` environment variable can be set to `s3` to get pixelfed to ONLY use s3.
This repo is archived. You cannot comment on issues.
No labels
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Fediversity/simple-nixos-fediverse#20
No description provided.