[bug] some users cannot create an account backup #590

Closed
opened 2023-07-15 05:48:04 +00:00 by SukinoVerse · 3 comments

Your setup

OTP on Ubuntu 22.04

Version

3.9.3-0-g9d7c877

PostgreSQL version

14

What were you trying to do?

Create a new account backup

What did you expect to happen?

A new account backup is created and user able to download their requested backup

What actually happened?

Some user found that the backup is not created, always show This backup is not ready yet.

I've looking at oban_jobs and found that this specific user backup request got error then discarded.

Noted: my instance was migrated from Pleroma (stable release) to Akkoma year ago.

Logs

{"{\"at\": \"2023-07-15T05:41:10.820793Z\", \"error\": \"** (Protocol.UndefinedError) protocol Enumerable not implemented for nil of type Atom. This protocol is implemented for the following type(s): DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Floki.HTMLTree, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, Jason.OrderedObject, List, Map, MapSet, Phoenix.LiveView.LiveStream, Postgrex.Stream, Range, Stream, Timex.Interval\\n    (elixir 1.14.3) lib/enum.ex:1: Enumerable.impl_for!/1\\n    (elixir 1.14.3) lib/enum.ex:166: Enumerable.reduce/3\\n    (elixir 1.14.3) lib/enum.ex:4307: Enum.map/2\\n    (pleroma 3.9.3-0-g9d7c877) lib/pleroma/web/activity_pub/transmogrifier.ex:925: Pleroma.Web.ActivityPub.Transmogrifier.prepare_attachments/1\\n    (pleroma 3.9.3-0-g9d7c877) lib/pleroma/web/activity_pub/transmogrifier.ex:690: Pleroma.Web.ActivityPub.Transmogrifier.prepare_object/1\\n    (pleroma 3.9.3-0-g9d7c877) lib/pleroma/web/activity_pub/transmogrifier.ex:729: Pleroma.Web.ActivityPub.Transmogrifier.prepare_outgoing/1\\n    (pleroma 3.9.3-0-g9d7c877) lib/pleroma/user/backup.ex:238: anonymous fn/1 in Pleroma.User.Backup.statuses/2\\n    (pleroma 3.9.3-0-g9d7c877) lib/pleroma/user/backup.ex:193: anonymous fn/4 in Pleroma.User.Backup.write/4\\n\", \"attempt\": 1}"}

Severity

I cannot use it as easily as I'd like

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Your setup OTP on Ubuntu 22.04 ### Version 3.9.3-0-g9d7c877 ### PostgreSQL version 14 ### What were you trying to do? Create a new account backup ### What did you expect to happen? A new account backup is created and user able to download their requested backup ### What actually happened? Some user found that the backup is not created, always show `This backup is not ready yet.` I've looking at `oban_jobs` and found that this specific user backup request got error then discarded. Noted: my instance was migrated from Pleroma (stable release) to Akkoma year ago. ### Logs ```shell {"{\"at\": \"2023-07-15T05:41:10.820793Z\", \"error\": \"** (Protocol.UndefinedError) protocol Enumerable not implemented for nil of type Atom. This protocol is implemented for the following type(s): DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, File.Stream, Floki.HTMLTree, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, Jason.OrderedObject, List, Map, MapSet, Phoenix.LiveView.LiveStream, Postgrex.Stream, Range, Stream, Timex.Interval\\n (elixir 1.14.3) lib/enum.ex:1: Enumerable.impl_for!/1\\n (elixir 1.14.3) lib/enum.ex:166: Enumerable.reduce/3\\n (elixir 1.14.3) lib/enum.ex:4307: Enum.map/2\\n (pleroma 3.9.3-0-g9d7c877) lib/pleroma/web/activity_pub/transmogrifier.ex:925: Pleroma.Web.ActivityPub.Transmogrifier.prepare_attachments/1\\n (pleroma 3.9.3-0-g9d7c877) lib/pleroma/web/activity_pub/transmogrifier.ex:690: Pleroma.Web.ActivityPub.Transmogrifier.prepare_object/1\\n (pleroma 3.9.3-0-g9d7c877) lib/pleroma/web/activity_pub/transmogrifier.ex:729: Pleroma.Web.ActivityPub.Transmogrifier.prepare_outgoing/1\\n (pleroma 3.9.3-0-g9d7c877) lib/pleroma/user/backup.ex:238: anonymous fn/1 in Pleroma.User.Backup.statuses/2\\n (pleroma 3.9.3-0-g9d7c877) lib/pleroma/user/backup.ex:193: anonymous fn/4 in Pleroma.User.Backup.write/4\\n\", \"attempt\": 1}"} ``` ### Severity I cannot use it as easily as I'd like ### Have you searched for this issue? - [x] I have double-checked and have not found this issue mentioned anywhere.
SukinoVerse added the
bug
label 2023-07-15 05:48:05 +00:00

i think this should be fixed by 33e7ae7637

i think this should be fixed by 33e7ae7637236b859bfabc9016a86e4bbe1e063

Can confirm that until I updated this past week, I had been unable to pull a backup. It works now. I too migrated from Pler.

Can confirm that until I updated this past week, I had been unable to pull a backup. It works now. I too migrated from Pler.

poggers, closing this then

poggers, closing this then
Sign in to join this conversation.
No milestone
No project
No assignees
3 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#590
No description provided.