[bug] The pleroma.uploads migrate_local task doesn't actually migrate uploads to S3 #801

Closed
opened 2024-06-13 04:18:44 +00:00 by norm · 3 comments
Contributor

Your setup

From source

Extra details

Fedora 40

Version

b03edb4ff4

PostgreSQL version

16

What were you trying to do?

Run mix pleroma.uploads migrate_local to migrate uploads from local storage to an S3 bucket

What did you expect to happen?

All files from the local uploads directory gets copied to the S3 bucket.

What actually happened?

Only the .gitgnore file in the top level directory gets uploaded.

Logs

No response

Severity

I can manage

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Your setup From source ### Extra details Fedora 40 ### Version b03edb4ff44ff91e7c248e769d0347e13391de5a ### PostgreSQL version 16 ### What were you trying to do? Run `mix pleroma.uploads migrate_local` to migrate uploads from local storage to an S3 bucket ### What did you expect to happen? All files from the local uploads directory gets copied to the S3 bucket. ### What actually happened? Only the `.gitgnore` file in the top level directory gets uploaded. ### Logs _No response_ ### Severity I can manage ### Have you searched for this issue? - [x] I have double-checked and have not found this issue mentioned anywhere.
norm added the
bug
label 2024-06-13 04:18:44 +00:00

hm, I'm sure I've used this task before and haven't changed it since then

I'll take a peek

hm, I'm sure I've used this task before and haven't changed it since then I'll take a peek

what does your task print out?

mine says

Migrating files from local [path skipped] to Elixir.Pleroma.Uploaders.S3
Found 150127 uploads

which implies it finds the files just fine?

what does your task print out? mine says ``` Migrating files from local [path skipped] to Elixir.Pleroma.Uploaders.S3 Found 150127 uploads ``` which implies it finds the files just fine?
Author
Contributor

Closing since this turned out to be a misconfigured upload directory on my part

Closing since this turned out to be a misconfigured upload directory on my part
norm closed this issue 2024-06-15 22:11:20 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
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: AkkomaGang/akkoma#801
No description provided.