[bug] can't build docker after update #792

Closed
opened 2024-06-04 19:33:08 +00:00 by Phie · 1 comment

Your setup

Docker

Extra details

No response

Version

latest stable

PostgreSQL version

No response

What were you trying to do?

I'm trying to update akkoma to latest version

What did you expect to happen?

being able to compile docker image

What actually happened?

I got an error when compiling .ex files

Logs

Compiling 211 files (.ex)

19:31:28.851 [debug] Elixir.Pleroma.Web.ActivityPub.MRF.ForceBotUnlistedPolicy is excluded from config descriptions, because does not implement `config_description/0` method.

19:31:28.868 [debug] Elixir.Pleroma.Web.ActivityPub.MRF.DirectMessageDisabledPolicy is excluded from config descriptions, because does not implement `config_description/0` method.
error: Pleroma.Web.OAuth.Token.__struct__/0 is undefined, cannot expand struct Pleroma.Web.OAuth.Token. Make sure the struct name is correct. If the struct name exists and is correct but it still cannot be found, you likely have cyclic module usage in your code
  lib/pleroma/web/mastodon_api/websocket_handler.ex:169: Pleroma.Web.MastodonAPI.WebsocketHandler.authenticate_request/2

error: Pleroma.Object.__struct__/0 is undefined, cannot expand struct Pleroma.Object. Make sure the struct name is correct. If the struct name exists and is correct but it still cannot be found, you likely have cyclic module usage in your code
  lib/pleroma/object/fetcher.ex:82: Pleroma.Object.Fetcher.reinject_object/2

error: Pleroma.Activity.__struct__/0 is undefined, cannot expand struct Pleroma.Activity. Make sure the struct name is correct. If the struct name exists and is correct but it still cannot be found, you likely have cyclic module usage in your code
  lib/pleroma/web/activity_pub/relay.ex:59: Pleroma.Web.ActivityPub.Relay.publish/1

error: Pleroma.Activity.__struct__/0 is undefined, cannot expand struct Pleroma.Activity. Make sure the struct name is correct. If the struct name exists and is correct but it still cannot be found, you likely have cyclic module usage in your code
  lib/pleroma/workers/purge_expired_activity.ex:37: Pleroma.Workers.PurgeExpiredActivity.perform/1


== Compilation error in file lib/pleroma/web/activity_pub/relay.ex ==
** (CompileError) lib/pleroma/web/activity_pub/relay.ex: cannot compile module Pleroma.Web.ActivityPub.Relay (errors have been logged)
    lib/pleroma/web/activity_pub/relay.ex:59: (module)
ERROR: 1

Severity

I cannot use the software

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Your setup Docker ### Extra details _No response_ ### Version latest stable ### PostgreSQL version _No response_ ### What were you trying to do? I'm trying to update akkoma to latest version ### What did you expect to happen? being able to compile docker image ### What actually happened? I got an error when compiling .ex files ### Logs ```shell Compiling 211 files (.ex) 19:31:28.851 [debug] Elixir.Pleroma.Web.ActivityPub.MRF.ForceBotUnlistedPolicy is excluded from config descriptions, because does not implement `config_description/0` method. 19:31:28.868 [debug] Elixir.Pleroma.Web.ActivityPub.MRF.DirectMessageDisabledPolicy is excluded from config descriptions, because does not implement `config_description/0` method. error: Pleroma.Web.OAuth.Token.__struct__/0 is undefined, cannot expand struct Pleroma.Web.OAuth.Token. Make sure the struct name is correct. If the struct name exists and is correct but it still cannot be found, you likely have cyclic module usage in your code lib/pleroma/web/mastodon_api/websocket_handler.ex:169: Pleroma.Web.MastodonAPI.WebsocketHandler.authenticate_request/2 error: Pleroma.Object.__struct__/0 is undefined, cannot expand struct Pleroma.Object. Make sure the struct name is correct. If the struct name exists and is correct but it still cannot be found, you likely have cyclic module usage in your code lib/pleroma/object/fetcher.ex:82: Pleroma.Object.Fetcher.reinject_object/2 error: Pleroma.Activity.__struct__/0 is undefined, cannot expand struct Pleroma.Activity. Make sure the struct name is correct. If the struct name exists and is correct but it still cannot be found, you likely have cyclic module usage in your code lib/pleroma/web/activity_pub/relay.ex:59: Pleroma.Web.ActivityPub.Relay.publish/1 error: Pleroma.Activity.__struct__/0 is undefined, cannot expand struct Pleroma.Activity. Make sure the struct name is correct. If the struct name exists and is correct but it still cannot be found, you likely have cyclic module usage in your code lib/pleroma/workers/purge_expired_activity.ex:37: Pleroma.Workers.PurgeExpiredActivity.perform/1 == Compilation error in file lib/pleroma/web/activity_pub/relay.ex == ** (CompileError) lib/pleroma/web/activity_pub/relay.ex: cannot compile module Pleroma.Web.ActivityPub.Relay (errors have been logged) lib/pleroma/web/activity_pub/relay.ex:59: (module) ERROR: 1 ``` ### Severity I cannot use the software ### Have you searched for this issue? - [x] I have double-checked and have not found this issue mentioned anywhere.
Phie added the
bug
label 2024-06-04 19:33:08 +00:00
https://meta.akkoma.dev/t/docker-container-fails-to-compile-akkoma-while-updating/729/4?u=floatingghost
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#792
No description provided.