One user is unable to login anymore, throws an error in syslog
Environment
- Installation type (OTP or From Source): From Source
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): Backend Version 2.3.50-136-gc368bf6d-yukiho Frontend Version c3fcbbd9 This is branch "develop". It has no other patches on top at present.
- Elixir version (
elixir -v
for from source installations, N/A for OTP): Erlang/OTP 23 [erts-11.1.5] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1] [hipe] Elixir 1.11.2 (compiled with Erlang/OTP 23) - Operating system: Fedora Linux 33
- PostgreSQL version (
psql -V
): psql (PostgreSQL) 12.4
Bug description
One user is unable to log in. Other users are fine. The following error is reported:
Mar 31 16:28:16 vps221183 mix[472448]: 16:28:16.573 [info] POST /api/v1/apps
Mar 31 16:28:16 vps221183 mix[472448]: 16:28:16.582 request_id=FnGHSs8Zit_YcDQAADpx [info] Sent 200 in 9ms
Mar 31 16:28:16 vps221183 mix[472448]: 16:28:16.687 [info] POST /oauth/token
Mar 31 16:28:17 vps221183 mix[472448]: 16:28:17.583 request_id=FnGHStXeHBlGqmQAADqB [info] Sent 200 in 896ms
Mar 31 16:28:17 vps221183 mix[472448]: 16:28:17.657 [info] GET /api/v1/accounts/verify_credentials
Mar 31 16:28:17 vps221183 mix[472448]: 16:28:17.771 request_id=FnGHSw-t9n1O_4gAADqR [error] Internal server error: %UndefinedFunctionError{arity: 0, function: :__struct__, message: nil, module: nil, reason: nil}
Mar 31 16:28:17 vps221183 mix[472448]: 16:28:17.772 request_id=FnGHSw-t9n1O_4gAADqR [info] Sent 500 in 114ms
Mar 31 16:28:17 vps221183 mix[472448]: 16:28:17.774 [error] #PID<0.3679.0> running Pleroma.Web.Endpoint (connection #PID<0.3567.0>, stream id 13) terminated
Mar 31 16:28:17 vps221183 mix[472448]: Server: mu.zaitcev.nu:80 (http)
Mar 31 16:28:17 vps221183 mix[472448]: Request: GET /api/v1/accounts/verify_credentials
Mar 31 16:28:17 vps221183 mix[472448]: ** (exit) an exception was raised:
Mar 31 16:28:17 vps221183 mix[472448]: ** (UndefinedFunctionError) function nil.__struct__/0 is undefined
Mar 31 16:28:17 vps221183 mix[472448]: nil.__struct__()
Mar 31 16:28:17 vps221183 mix[472448]: (elixir 1.11.2) lib/map.ex:935: Map.from_struct/1
Mar 31 16:28:17 vps221183 mix[472448]: (pleroma 2.3.50-136-gc368bf6d-yukiho) lib/pleroma/web/mastodon_api/views/account_view.ex:368: Pleroma.Web.MastodonAPI.AccountView.maybe_put_notification_settings/3
Mar 31 16:28:17 vps221183 mix[472448]: (pleroma 2.3.50-136-gc368bf6d-yukiho) lib/pleroma/web/mastodon_api/views/account_view.ex:287: Pleroma.Web.MastodonAPI.AccountView.do_render/2
Mar 31 16:28:17 vps221183 mix[472448]: (phoenix 1.5.6) lib/phoenix/view.ex:472: Phoenix.View.render_to_iodata/3
Mar 31 16:28:17 vps221183 mix[472448]: (phoenix 1.5.6) lib/phoenix/controller.ex:776: Phoenix.Controller.render_and_send/4
Mar 31 16:28:17 vps221183 mix[472448]: (pleroma 2.3.50-136-gc368bf6d-yukiho) lib/pleroma/web/mastodon_api/controllers/account_controller.ex:5: Pleroma.Web.MastodonAPI.AccountController.action/2
Mar 31 16:28:17 vps221183 mix[472448]: (pleroma 2.3.50-136-gc368bf6d-yukiho) lib/pleroma/web/mastodon_api/controllers/account_controller.ex:5: Pleroma.Web.MastodonAPI.AccountController.phoenix_controller_pipeline/2
Mar 31 16:28:23 vps221183 mix[472448]: 16:28:23.164 [info] GET /api/v1/timelines/public
Mar 31 16:28:23 vps221183 mix[472448]: 16:28:23.176 request_id=FnGHTFftiEm8aEAAADqh [info] Sent 200 in 12ms
Cannot figure out if this is classified as backend or frontend, or what makes this account special. It used to work a few months ago, but is not logged in often. Therefore, it's unknown when this started happening.
Edited by Pete Zaitcev