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 646
    • Issues 646
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 86
    • Merge requests 86
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • 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
  • #1529
Closed
Open
Issue created Jan 23, 2020 by rinpatch@rinpatchContributor

Dynamic config still doesn't work

Logs on startup:

[warn] updating env causes error, group: "pleroma" key: ":frontend_configurations" value: [pleroma_fe: %{alwaysShowSubjectInput: true, b
ackground: "/media/89154a71a46cf6e69374ae099148233b63093f817d353b4757224cd610411343.jpg", collapseMessageWithSubject: false, formattingO
ptionsEnabled: true, hidePostStats: false, hideUserStats: false, logo: "/static/logo.png", nsfwCensorImage: "/static/img/nsfw.svg", redi
rectRootLogin: "/main/friends", redirectRootNoLogin: "/main/all", scopeCopy: true, scopeOptionsEnabled: true, showInstanceSpecificPanel:
 true, subjectLineBehavior: "email", theme: "pleroma-dark"}, masto_fe: %{showInstanceSpecificPanel: true}] error: %ArgumentError{message
: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":suggestions" value: [enabled: false, third_party_engine: "http://vinayaka.dist
sn.org/cgi-bin/vinayaka-user-match-suggestions-api.cgi?{{host}}+{{user}}", timeout: 300000, limit: 40, web: "https://vinayaka.distsn.org
"] error: %ArgumentError{message: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":mrf_rejectnonpublic" value: [allow_followersonly: false, allow_direct: false]
error: %ArgumentError{message: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: "Pleroma.Uploaders.MDII" value: [cgi: "https://mdii.sakura.ne.jp/mdii-post.cgi",
 files: "https://mdii.sakura.ne.jp"] error: %ArgumentError{message: "argument error"}
[warn] updating env causes error, group: "pleroma" key: ":markup" value: [scrub_policy: [Pleroma.HTML.Transform.MediaProxy, Pleroma.HTML
.Scrubber.Default], allow_fonts: false, allow_inline_images: true, allow_headings: true, allow_tables: true] error: %ArgumentError{messa
ge: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: "Pleroma.Captcha.Kocaptcha" value: [endpoint: "https://captcha.kotobank.ch"] err
or: %ArgumentError{message: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":mrf_keyword" value: [reject: [], federated_timeline_removal: [], replace: []]
error: %ArgumentError{message: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":assets" value: [mascots: [pleroma_fox_tan: %{mime_type: "image/png", url: "/im
ages/pleroma-fox-tan-smol.png"}, pleroma_fox_tan_shy: %{mime_type: "image/png", url: "/images/pleroma-fox-tan-shy.png"}], default_mascot
: :pleroma_fox_tan] error: %ArgumentError{message: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":rich_media" value: [ignore_hosts: [], ignore_tld: ["local", "localdomain", "la
n"], parsers: [Pleroma.Web.RichMedia.Parsers.TwitterCard, Pleroma.Web.RichMedia.Parsers.OGP, Pleroma.Web.RichMedia.Parsers.OEmbed], ttl_
setters: [Pleroma.Web.RichMedia.Parser.TTL.AwsSignedUrl], enabled: true] error: %ArgumentError{message: "the Access calls for keywords e
xpect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":gopher" value: [enabled: false, ip: {0, 0, 0, 0}, port: 9999] error: %Argument
Error{message: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":activitypub" value: [accept_blocks: true, unfollow_blocked: true, follow_hands
hake_timeout: 500, outgoing_blocks: true, sign_object_fetches: false] error: %ArgumentError{message: "the Access calls for keywords expe
ct the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":mrf_subchain" value: [match_actor: %{}] error: %ArgumentError{message: "the Ac
cess calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":chat" value: [enabled: true] error: %ArgumentError{message: "the Access calls
for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":instance" value: [notify_email: "noreply@example.com", description: "A Pleroma
 instance, an alternative fediverse server", remote_limit: 100000, poll_limits: %{max_expiration: 31536000, max_option_chars: 200, max_o
ptions: 20, min_expiration: 0}, federating: true, federation_incoming_replies_max_depth: 100, federation_reachability_timeout_days: 7, f
ederation_publisher_modules: [Pleroma.Web.ActivityPub.Publisher, Pleroma.Web.Websub, Pleroma.Web.Salmon], allow_relay: true, public: tru
e, quarantined_instances: [], static_dir: "instance/static/", allowed_post_formats: ["text/plain", "text/html", "text/markdown", "text/b
bcode"], mrf_transparency: true, mrf_transparency_exclusions: [], autofollowed_nicknames: [], max_pinned_statuses: 1, no_attachment_link
s: false, welcome_user_nickname: nil, welcome_message: nil, max_report_comment_size: 1000, safe_dm_mentions: false, remote_post_retentio
n_days: 90, skip_thread_containment: true, limit_to_local_content: :unauthenticated, external_user_synchronization: true, name: "Mastodo
n hosted on patch.cx", email: "please@help.me", dynamic_configuration: true, limit: 100000, registrations_open: true, upload_limit: 5000
0000, avatar_upload_limit: 20000000, background_upload_limit: 20000000, banner_upload_limit: 20000000, managed_config: true, healthcheck
: true, rewrite_policy: [Pleroma.Web.ActivityPub.MRF.UntagPolicy]] error: %ArgumentError{message: "the Access calls for keywords expect
the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: "Pleroma.Upload" value: [link_name: true, uploader: Pleroma.Uploaders.Local, fil
ters: [Pleroma.Upload.Filter.Dedupe, Pleroma.Upload.Filter.Mogrify], proxy_remote: false, proxy_opts: [redirect_on_failure: false, max_b
ody_length: 26214400, http: [follow_redirect: true, pool: :upload]]] error: %ArgumentError{message: "the Access calls for keywords expec
t the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":mrf_simple" value: [media_removal: [], media_nsfw: [], federated_timeline_remo
val: [], report_removal: [], reject: [], accept: [], avatar_removal: [], banner_removal: []] error: %ArgumentError{message: "the Access
calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":rate_limit" value: [search: [{1000, 10}, {1000, 30}], app_account_creation: {1
800000, 25}, relations_actions: {10000, 10}, relation_id_action: {60000, 2}, statuses_actions: {10000, 15}, status_id_action: {60000, 3}
, password_reset: {1800000, 5}, account_confirmation_resend: {8640000, 5}] error: %ArgumentError{message: "the Access calls for keywords
 expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: "Pleroma.Uploaders.Local" value: [uploads: "uploads"] error: %ArgumentError{mess
age: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":oauth2" value: [token_expires_in: 600, issue_new_refresh_token: true, clean_ex
pired_tokens: false, clean_expired_tokens_interval: 86400000] error: %ArgumentError{message: "the Access calls for keywords expect the k
ey to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":ecto_repos" value: [Pleroma.Repo] error: %ArgumentError{message: "the Access c
alls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":media_proxy" value: [proxy_opts: [redirect_on_failure: false, max_body_length:
 26214400, http: [follow_redirect: true, pool: :media]], enabled: true, whitelist: ["pleroma.uwah.moe"]] error: %ArgumentError{message:
"the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: "Pleroma.Web.Federator.RetryQueue" value: [enabled: false, max_jobs: 20, initial
_timeout: 30, max_retries: 5] error: %ArgumentError{message: "argument error"}
[warn] updating env causes error, group: "pleroma" key: ":mrf_hellthread" value: [delist_threshold: 10, reject_threshold: 20] error: %Ar
gumentError{message: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":http_security" value: [enabled: true, sts: false, sts_max_age: 31536000, ct_ma
x_age: 2592000, referrer_policy: "same-origin"] error: %ArgumentError{message: "the Access calls for keywords expect the key to be an at
om, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: "Pleroma.ScheduledActivity" value: [daily_user_limit: 25, total_user_limit: 300,
 enabled: true] error: %ArgumentError{message: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":fetch_initial_posts" value: [enabled: false, pages: 5] error: %ArgumentError{m
essage: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":ldap" value: [enabled: false, host: "localhost", port: 389, ssl: false, sslopt
s: [], tls: false, tlsopts: [], base: "dc=example,dc=com", uid: "cn"] error: %ArgumentError{message: "the Access calls for keywords expe
ct the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":mrf_normalize_markup" value: [scrub_policy: Pleroma.HTML.Scrubber.Default] err
or: %ArgumentError{message: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: "Pleroma.Uploaders.S3" value: [bucket: nil, public_endpoint: "https://s3.amazona
ws.com"] error: %ArgumentError{message: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":hackney_pools" value: [federation: [max_connections: 50, timeout: 150000], med
ia: [max_connections: 50, timeout: 150000], upload: [max_connections: 25, timeout: 300000]] error: %ArgumentError{message: "the Access c
alls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: "Pleroma.Web.Endpoint" value: [instrumenters: [Pleroma.Web.Endpoint.Instrumenter
], signing_salt: "CqaoopA2", render_errors: [view: Pleroma.Web.ErrorView, accepts: ["json"]], pubsub: [name: Pleroma.PubSub, adapter: Ph
oenix.PubSub.PG2], secure_cookie_flag: true, extra_cookie_attrs: ["SameSite=Lax"], protocol: "http", http: [dispatch: [_: [{"/api/v1/str
eaming", Pleroma.Web.MastodonAPI.WebsocketHandler, []}, {"/websocket", Phoenix.Endpoint.CowboyWebSocket, {Phoenix.Transports.WebSocket,
{Pleroma.Web.Endpoint, Pleroma.Web.UserSocket, [path: "/websocket", serializer: [{Phoenix.Socket.V1.JSONSerializer, "~> 1.0.0"}, {Phoeni
x.Socket.V2.JSONSerializer, "~> 2.0.0"}], timeout: 60000, transport_log: false, compress: false]}}}, {:_, Phoenix.Endpoint.Cowboy2Handle
r, {Pleroma.Web.Endpoint, []}}]], port: 4001, ip: {127, 0, 0, 1}], url: [host: "patch.cx", scheme: "https", port: 443], secret_key_base:
 "[Redacted]", debug_errors: true] error: %ArgumentError{message: "the Access call
s for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: "Pleroma.Web.Metadata" value: [unfurl_nsfw: false, providers: [Pleroma.Web.Metad
ata.Providers.OpenGraph, Pleroma.Web.Metadata.Providers.TwitterCard]] error: %ArgumentError{message: "the Access calls for keywords expe
ct the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: "Pleroma.Upload.Filter.Mogrify" value: [args: "strip"] error: %ArgumentError{mes
sage: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":emoji" value: [pack_extensions: [".png", ".gif"], groups: [Custom: ["/emoji/*.
png", "/emoji/**/*.png"]], default_manifest: "https://git.pleroma.social/pleroma/emoji-index/raw/master/index.json", shortcode_globs: ["
/emoji/custom/**/*.png", "/emoji/custom/**/*.gif"]] error: %ArgumentError{message: "the Access calls for keywords expect the key to be a
n atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":auth" value: [oauth_consumer_strategies: []] error: %ArgumentError{message: "t
he Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":uri_schemes" value: [valid_schemes: ["https", "http", "dat", "dweb", "gopher",
 "ipfs", "ipns", "irc", "ircs", "magnet", "mailto", "mumble", "ssb", "xmpp"]] error: %ArgumentError{message: "the Access calls for keywo
rds expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":user" value: [deny_follow_blocked: true] error: %ArgumentError{message: "the A
ccess calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":http" value: [proxy_url: nil, send_user_agent: true, adapter: [ssl_options: [p
artial_chain: &:hackney_connect.partial_chain/1, versions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"]]]] error: %ArgumentError{message: "the Acces
s calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":database" value: [rum_enabled: false] error: %ArgumentError{message: "the Acce
ss calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: "Pleroma.Emails.Mailer" value: [adapter: Swoosh.Adapters.Sendmail, enabled: fals
e] error: %ArgumentError{message: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":email_notifications" value: [digest: %{active: false, inactivity_threshold: 7,
 interval: 7, schedule: "0 0 * * 0"}] error: %ArgumentError{message: "the Access calls for keywords expect the key to be an atom, got: \
"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: ":fe" value: false error: %ArgumentError{message: "the Access calls for keywords
 expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: "Pleroma.User" value: [restricted_nicknames: [".well-known", "~", "about", "acti
vities", "api", "auth", "check_password", "dev", "friend-requests", "inbox", "internal", "main", "media", "nodeinfo", "notice", "oauth",
 "objects", "ostatus_subscribe", "pleroma", "proxy", "push", "registration", "relay", "settings", "status", "tag", "user-search", "user_
exists", "users", "web"]] error: %ArgumentError{message: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}
[warn] updating env causes error, group: "pleroma" key: "Pleroma.Captcha" value: [enabled: false, seconds_valid: 60, method: Pleroma.Cap
tcha.Kocaptcha] error: %ArgumentError{message: "the Access calls for keywords expect the key to be an atom, got: \"pleroma\""}

When opening admin-fe:

Server: patch.cx:80 (http)
Request: GET /api/pleroma/admin/config
** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in Keyword.update/4
        (elixir) lib/keyword.ex:872: Keyword.update([], "pleroma", [frontend_configurations: [pleroma_fe: %{alwaysShowSubjectInput: true
, background: "/media/89154a71a46cf6e69374ae099148233b63093f817d353b4757224cd610411343.jpg", collapseMessageWithSubject: false, formatti
ngOptionsEnabled: true, hidePostStats: false, hideUserStats: false, logo: "/static/logo.png", nsfwCensorImage: "/static/img/nsfw.svg", r
edirectRootLogin: "/main/friends", redirectRootNoLogin: "/main/all", scopeCopy: true, scopeOptionsEnabled: true, showInstanceSpecificPan
el: true, subjectLineBehavior: "email", theme: "pleroma-dark"}, masto_fe: %{showInstanceSpecificPanel: true}]], #Function<16.60525033/1
in Pleroma.ConfigDB.get_all_as_keyword/0>)
        (elixir) lib/enum.ex:1948: Enum."-reduce/3-lists^foldl/2-0-"/3
        (pleroma) lib/pleroma/web/admin_api/admin_api_controller.ex:828: Pleroma.Web.AdminAPI.AdminAPIController.config_show/2
        (pleroma) lib/pleroma/web/admin_api/admin_api_controller.ex:5: Pleroma.Web.AdminAPI.AdminAPIController.action/2
        (pleroma) lib/pleroma/web/admin_api/admin_api_controller.ex:5: Pleroma.Web.AdminAPI.AdminAPIController.phoenix_controller_pipeli
ne/2
        (pleroma) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.instrument/4
        (phoenix) lib/phoenix/router.ex:288: Phoenix.Router.__call__/2
        (pleroma) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.plug_builder_call/2
        (pleroma) lib/plug/debugger.ex:122: Pleroma.Web.Endpoint."call (overridable 3)"/2
        (pleroma) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.call/2
        (phoenix) lib/phoenix/endpoint/cowboy2_handler.ex:42: Phoenix.Endpoint.Cowboy2Handler.init/4
        (cowboy) /home/patch-pleroma/pleroma/deps/cowboy/src/cowboy_handler.erl:41: :cowboy_handler.execute/2
        (cowboy) /home/patch-pleroma/pleroma/deps/cowboy/src/cowboy_stream_h.erl:320: :cowboy_stream_h.execute/3
        (cowboy) /home/patch-pleroma/pleroma/deps/cowboy/src/cowboy_stream_h.erl:302: :cowboy_stream_h.request_process/3
        (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3

cc @alex.s

Assignee
Assign to
Time tracking