[bug] Cleanup attachments - attachment not deleted using S3 uploader #396

Closed
opened 2022-12-23 10:48:18 +00:00 by SukinoVerse · 3 comments

Your setup

OTP

Extra details

No response

Version

3.5.0-0-gd9508474b

PostgreSQL version

14

What were you trying to do?

  • Enable Cleanup attachments settings
  • Post something with attachments uploaded to S3-compatible storage
    • (my case is using Scaleway object storage)
  • Delete that post

What did you expect to happen?

  • Attachments should be also deleted from S3-compatible storage

What actually happened?

  • Post deleted, attachment didn't

Note : I've attached screenshot of my Uploader config just in case.

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 OTP ### Extra details _No response_ ### Version 3.5.0-0-gd9508474b ### PostgreSQL version 14 ### What were you trying to do? - Enable `Cleanup attachments` settings - Post something with attachments uploaded to S3-compatible storage - (my case is using Scaleway object storage) - Delete that post ### What did you expect to happen? - Attachments should be also deleted from S3-compatible storage ### What actually happened? - Post deleted, attachment didn't Note : I've attached screenshot of my Uploader config just in case. ### 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.
SukinoVerse added the
bug
label 2022-12-23 10:48:18 +00:00
SukinoVerse changed title from [bug] attachment not delete using S3 uploader to [bug] Cleanup attachments - attachment not deleted using S3 uploader 2022-12-23 10:49:06 +00:00

finally got around to testing this - it seems to work (tested with 3.6.0, scaleway bucket)

things to check:

  1. does your S3 access key have permissions to delete?
  2. are any errors in the logs when you delete a post
finally got around to testing this - it seems to work (tested with 3.6.0, scaleway bucket) things to check: 1. does your S3 access key have permissions to delete? 2. are any errors in the logs when you delete a post
Author

finally got around to testing this - it seems to work (tested with 3.6.0, scaleway bucket)

things to check:

  1. does your S3 access key have permissions to delete?
  2. are any errors in the logs when you delete a post

@floatingghost Thank you for taking time looking at this issue.

  1. Yes, Access Key has permission to delete object storage. (I just tried by create a new key to use. Delete remote attachments process still not working)
  2. I didn't see any related log when I deleted a post with attachments.

I'm using Akkoma 3.6.0-0-g71d0899 too.

Do we have same configuration on Uploader?
Maybe I'm missing something, as I use admin-fe to manage all configs if possible.

Noted: I can give you permission to my instance if you need it for diag.

> finally got around to testing this - it seems to work (tested with 3.6.0, scaleway bucket) > > things to check: > 1. does your S3 access key have permissions to delete? > 2. are any errors in the logs when you delete a post @floatingghost Thank you for taking time looking at this issue. 1. Yes, Access Key has permission to delete object storage. (I just tried by create a new key to use. Delete remote attachments process still not working) 2. I didn't see any related log when I deleted a post with attachments. I'm using Akkoma `3.6.0-0-g71d0899` too. Do we have same configuration on Uploader? Maybe I'm missing something, as I use admin-fe to manage all configs if possible. Noted: I can give you permission to my instance if you need it for diag.
Author

@floatingghost I want to update that it's actually working. It just has some delayed on my instance, so I thought it's not working.

Sorry for misunderstanding.

@floatingghost I want to update that it's actually working. It just has some delayed on my instance, so I thought it's not working. Sorry for misunderstanding.
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#396
No description provided.