I can’t determine what is causing Media Proxy all of a sudden to fail. I was doing some admin adjustments to other items (I can’t remember, it was so long ago) but I didn’t restart the server. I was doing dependency updates to latest versions and when I re-started I was getting the errors below. I removed the mediaproxy configuration from the database so I could get it back up and running but would like to turn media proxy back on. Any pointers or advise welcome. Thanks.
FQDN TLD renamed to RFC:
16:46:00.553 [error] #PID<0.25942.0> running Pleroma.Web.Endpoint (connection #PID<0.25939.0>, stream id 1) terminated
Server: social.example.com:80 (http)
Request: GET /api/v1/timelines/public?local=true&only_media=false&with_muted=true&limit=20
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in IO.chardata_to_string/1
(elixir 1.17.3) lib/io.ex:696: IO.chardata_to_string(nil)
(elixir 1.17.3) lib/path.ex:681: Path.do_join/3
(elixir 1.17.3) lib/path.ex:673: Path.join/2
(elixir 1.17.3) lib/path.ex:641: Path.join/1
(pleroma 3.15.2) lib/pleroma/web/media_proxy.ex:82: Pleroma.Web.MediaProxy.whitelisted?/1
(pleroma 3.15.2) lib/pleroma/web/media_proxy.ex:55: Pleroma.Web.MediaProxy.url_proxiable?/1
(pleroma 3.15.2) lib/pleroma/web/media_proxy.ex:46: Pleroma.Web.MediaProxy.url/1
(pleroma 3.15.2) lib/pleroma/web/mastodon_api/views/status_view.ex:534: Pleroma.Web.MastodonAPI.StatusView.render/2
17:02:12.432 [error] Process #PID<0.5853.0> raised an exception
** (FunctionClauseError) no function clause matching in IO.chardata_to_string/1
(elixir 1.17.3) lib/io.ex:696: IO.chardata_to_string(nil)
(elixir 1.17.3) lib/path.ex:681: Path.do_join/3
(elixir 1.17.3) lib/path.ex:673: Path.join/2
(elixir 1.17.3) lib/path.ex:641: Path.join/1
(pleroma 3.15.2) lib/pleroma/web/media_proxy.ex:82: Pleroma.Web.MediaProxy.whitelisted?/1
(pleroma 3.15.2) lib/pleroma/web/media_proxy.ex:55: Pleroma.Web.MediaProxy.url_proxiable?/1
(pleroma 3.15.2) lib/pleroma/web/media_proxy.ex:46: Pleroma.Web.MediaProxy.url/1
(pleroma 3.15.2) lib/pleroma/web/mastodon_api/views/status_view.ex:534: Pleroma.Web.MastodonAPI.StatusView.render/2
17:08:23.355 request_id=GFkbznMhcuS0cycAA2pi [error] Internal server error: %FunctionClauseError{module: IO, function: :chardata_to_string, arity: 1, kind: nil, args: nil, clauses: nil}
17:08:23.355 [error] #PID<0.6686.0> running Pleroma.Web.Endpoint (connection #PID<0.6685.0>, stream id 1) terminated
Server: social.example.com:80 (http)
Request: GET /api/v1/accounts/verify_credentials
** (exit) an exception was raised:
** (FunctionClauseError) no function clause matching in IO.chardata_to_string/1
(elixir 1.17.3) lib/io.ex:696: IO.chardata_to_string(nil)
(elixir 1.17.3) lib/path.ex:681: Path.do_join/3 (elixir 1.17.3) lib/path.ex:673: Path.join/2 (elixir 1.17.3) lib/path.ex:641: Path.join/1
(pleroma 3.15.2) lib/pleroma/web/media_proxy.ex:82: Pleroma.Web.MediaProxy.whitelisted?/1
(pleroma 3.15.2) lib/pleroma/web/media_proxy.ex:55: Pleroma.Web.MediaProxy.url_proxiable?/1
(pleroma 3.15.2) lib/pleroma/web/media_proxy.ex:46: Pleroma.Web.MediaProxy.url/1
(pleroma 3.15.2) lib/pleroma/web/mastodon_api/views/account_view.ex:208: Pleroma.Web.MastodonAPI.AccountView.do_render/2