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 671
    • Issues 671
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 101
    • Merge requests 101
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • 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
  • #2067

Floki.ParseError in staticfe

Environment

  • Installation type (OTP or From Source): From Source
  • Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.0.50-2547-g5c2b6922-develop
  • Elixir version (elixir -v for from source installations, N/A for OTP): Erlang/OTP 23 [erts-11.0.3] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [hipe], Elixir 1.10.4 (compiled with Erlang/OTP 23)
  • Operating system: Arch Linux, Linux llarimar.marussy.com 5.8.1-arch1-1 #1 SMP PREEMPT Wed, 12 Aug 2020 18:50:43 +0000 x86_64 GNU/Linux
  • PostgreSQL version (psql -V): psql (PostgreSQL) 12.3

Bug description

I am trying to run staticfe on my single-user Pleroma instance. Since I upgraded to 5c2b6922, it returns with a blank page. However, it was still working fine on e3953923. I get errors like this in my system journal:

Aug 20 02:01:01 llarimar.marussy.com mix[12031]: 02:01:01.195 request_id=FizNoXecsy4AvUcAAROC [error] Internal server error: %Floki.ParseError{message: :badmatch}
Aug 20 02:01:01 llarimar.marussy.com mix[12031]: 02:01:01.195 request_id=FizNoXecsy4AvUcAAROC [info] Converted error Floki.ParseError to 500 response
Aug 20 02:01:01 llarimar.marussy.com mix[12031]: 02:01:01.196 [error] #PID<0.4288.0> running Pleroma.Web.Endpoint (connection #PID<0.4287.0>, stream id 1) terminated
Aug 20 02:01:01 llarimar.marussy.com mix[12031]: Server: pleroma.marussy.com:80 (http)
Aug 20 02:01:01 llarimar.marussy.com mix[12031]: Request: GET /users/kristof
Aug 20 02:01:01 llarimar.marussy.com mix[12031]: ** (exit) an exception was raised:
Aug 20 02:01:01 llarimar.marussy.com mix[12031]:     ** (Protocol.UndefinedError) protocol Phoenix.HTML.Safe not implemented for %{errors: %{detail: "Internal server error"}} of type Map. This protocol is impleme>
Aug 20 02:01:01 llarimar.marussy.com mix[12031]:         (phoenix_html 2.14.2) lib/phoenix_html/safe.ex:1: Phoenix.HTML.Safe.impl_for!/1
Aug 20 02:01:01 llarimar.marussy.com mix[12031]:         (phoenix_html 2.14.2) lib/phoenix_html/safe.ex:15: Phoenix.HTML.Safe.to_iodata/1
Aug 20 02:01:01 llarimar.marussy.com mix[12031]:         (phoenix 1.4.17) lib/phoenix/controller.ex:776: Phoenix.Controller.__put_render__/5
Aug 20 02:01:01 llarimar.marussy.com mix[12031]:         (phoenix 1.4.17) lib/phoenix/endpoint/render_errors.ex:77: Phoenix.Endpoint.RenderErrors.instrument_render_and_send/5
Aug 20 02:01:01 llarimar.marussy.com mix[12031]:         (phoenix 1.4.17) lib/phoenix/endpoint/render_errors.ex:62: Phoenix.Endpoint.RenderErrors.__catch__/5
Aug 20 02:01:01 llarimar.marussy.com mix[12031]:         (phoenix 1.4.17) lib/phoenix/endpoint/cowboy2_handler.ex:42: Phoenix.Endpoint.Cowboy2Handler.init/4
Aug 20 02:01:01 llarimar.marussy.com mix[12031]:         (cowboy 2.8.0) /opt/pleroma/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
Aug 20 02:01:01 llarimar.marussy.com mix[12031]:         (cowboy 2.8.0) /opt/pleroma/deps/cowboy/src/cowboy_stream_h.erl:300: :cowboy_stream_h.execute/3

The offending page (and the statuses that staticfe fails to render) is at https://pleroma.marussy.com/users/kristof. I disabled the staticfe for now, so currently the default frontend is served.

I'll try to bisect this issue later. But as I am affected by #2058 (closed), building the dependencies after checking out each commit might need some manual intervention.

Assignee
Assign to
Time tracking