Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pleroma pleroma
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 654
    • Issues 654
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 98
    • Merge requests 98
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PleromaPleroma
  • pleromapleroma
  • Issues
  • #2320
Closed
Open
Issue created Nov 20, 2020 by Kristóf Marussy@kris7t

Cannot unfollow relays

Environment

  • Installation type (OTP or From Source): From Source
  • Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.2.50-389-g79a509ee-develop
  • Elixir version (elixir -v for from source installations, N/A for OTP): Erlang/OTP 23 [erts-11.1.2] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [hipe] , Elixir 1.11.0 (compiled with Erlang/OTP 23)
  • Operating system: Arch Linux, Linux 5.9.8-arch1-1 #1 SMP PREEMPT Tue, 10 Nov 2020 22:44:11 +0000 x86_64 GNU/Linux
  • PostgreSQL version (psql -V): psql (PostgreSQL) 12.5

Bug description

Adding the bug description from !3129 (comment 77775) also here to property track it (sorry for being lazy yesterday evening and not opening an issue):

When trying to unfollow a relay (and possibly upon other activities, but I haven't tried), I'm getting

** (ArgumentError) argument error
    :persistent_term.get(ConcurrentLimiter.Pleroma.Web.RichMedia.Helpers)
    (concurrent_limiter 0.1.0) lib/concurrent_limiter.ex:96: ConcurrentLimiter.do_limit/4
    (pleroma 2.2.50-389-g79a509ee-develop) lib/pleroma/web/activity_pub/activity_pub.ex:126: Pleroma.Web.ActivityPub.ActivityPub.insert/4
    (pleroma 2.2.50-389-g79a509ee-develop) lib/pleroma/web/activity_pub/activity_pub.ex:326: Pleroma.Web.ActivityPub.ActivityPub.do_unfollow/4
    (ecto_sql 3.4.5) lib/ecto/adapters/sql.ex:875: anonymous fn/3 in Ecto.Adapters.SQL.checkout_or_transaction/4
    (db_connection 2.2.2) lib/db_connection.ex:1427: DBConnection.run_transaction/4
    (pleroma 2.2.50-389-g79a509ee-develop) lib/pleroma/web/activity_pub/activity_pub.ex:317: Pleroma.Web.ActivityPub.ActivityPub.unfollow/4
    (pleroma 2.2.50-389-g79a509ee-develop) lib/pleroma/web/activity_pub/relay.ex:37: Pleroma.Web.ActivityPub.Relay.unfollow/2

It seems like the pleroma.relay mix task doesn't call limiters_setup, so the Pleroma.Web.RichMedia.Helpers just doesn't exist.

Assignee
Assign to
Time tracking