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 645
    • Issues 645
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 88
    • Merge requests 88
  • 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
  • #1532
Closed
Open
Issue created Jan 24, 2020 by feld@feldMaintainer

Config migration to database broken for :fe

Jan 24 00:08:27 colo pleroma[22765]: 00:08:27.267 [error] #PID<0.1702.0> running Pleroma.Web.Endpoint (connection #PID<0.1580.0>, stream id 21) terminated
Jan 24 00:08:27 colo pleroma[22765]: Server: bikeshed.party:80 (http)
Jan 24 00:08:27 colo pleroma[22765]: Request: GET /api/pleroma/admin/config
Jan 24 00:08:27 colo pleroma[22765]: ** (exit) an exception was raised:
Jan 24 00:08:27 colo pleroma[22765]:     ** (ArgumentError) argument error
Jan 24 00:08:27 colo pleroma[22765]:         :erlang.binary_to_existing_atom("fe", :utf8)
Jan 24 00:08:27 colo pleroma[22765]:         (pleroma) lib/pleroma/config/config_db.ex:239: Pleroma.ConfigDB.from_string/1
Jan 24 00:08:27 colo pleroma[22765]:         (pleroma) lib/pleroma/config/config_db.ex:55: anonymous fn/2 in Pleroma.ConfigDB.get_all_as_keyword/0
Jan 24 00:08:27 colo pleroma[22765]:         (elixir) lib/enum.ex:1948: Enum."-reduce/3-lists^foldl/2-0-"/3
Jan 24 00:08:27 colo pleroma[22765]:         (pleroma) lib/pleroma/web/admin_api/admin_api_controller.ex:828: Pleroma.Web.AdminAPI.AdminAPIController.config_show/2
Jan 24 00:08:27 colo pleroma[22765]:         (pleroma) lib/pleroma/web/admin_api/admin_api_controller.ex:5: Pleroma.Web.AdminAPI.AdminAPIController.action/2
Jan 24 00:08:27 colo pleroma[22765]:         (pleroma) lib/pleroma/web/admin_api/admin_api_controller.ex:5: Pleroma.Web.AdminAPI.AdminAPIController.phoenix_controller_pipeline/2
Jan 24 00:08:27 colo pleroma[22765]:         (pleroma) lib/pleroma/web/endpoint.ex:5: Pleroma.Web.Endpoint.instrument/4

Seeing this after migration, my :fe config is

config :pleroma, :fe, false
config :pleroma, :frontend_configurations, pleroma_fe:
%{
  theme: "monokai",
  background: "/static/bikebg.jpg",
  logo: "/static/bikelogo.png",
  logoMask: false,
  logoMargin: ".1em",
  redirectRootNoLogin: "/main/all",
  redirectRootLogin: "/main/friends",
  chatDisabled: true,
  showInstanceSpecificPanel: true,
  scopeOptionsEnabled: true,
  formattingOptionsEnabled: true,
  collapseMessageWithSubject: false,
  scopeCopy: true,
  subjectLineBehavior: "email",
  alwaysShowSubjectInput: true,
  hidePostStats: false,
  hideUserStats: false,
  loginMethod: "password",
  webPushNotifications: false,
  noAttachmentLinks: false,
  nsfwCensorImage: "",
  showFeaturesPanel: false,
  stickers: false,
  enableEmojiPicker: false
}
Assignee
Assign to
Time tracking