Unable to upload any file type after updating to stable 62a45747
Environment
-
Installed from source
-
Pleroma version: Backend version 2.4.2 -- develop 8951be77
-
Elixir + erlang installed via asdf elixir 1.11 /opt/pleroma/.tool-versions erlang 23.3.4 /opt/pleroma/.tool-versions
-
Operating system:Ubuntu 20.04.3LTS
-
PostgreSQL version (
psql -V
):psql (PostgreSQL) 12.9 (Ubuntu 12.9-0ubuntu0.20.04.1)
Bug description
Errors being spawned hella fast when attempting to upload files of any sort. Install worked fine on a previous commit from a couple months ago -- my apologies but I didn't remember which commit i had before i updated.
Updated hex per instructions during update process , cleaned deps to see if recompiling everything would help.
During update ,majic module gives:
==> majic
make: Nothing to be done for 'all'.
Compiling 10 files (.ex)
warning: got "@impl NimblePool" for function handle_checkout/3 but this behaviour does not specify such callback. The known callbacks are:
* NimblePool.handle_checkin/4 (function)
* NimblePool.handle_checkout/4 (function)
* NimblePool.handle_enqueue/2 (function)
* NimblePool.handle_info/2 (function)
* NimblePool.handle_update/3 (function)
* NimblePool.init_pool/1 (function)
* NimblePool.init_worker/1 (function)
* NimblePool.terminate_worker/3 (function)
lib/majic/pool.ex:58: Majic.Pool (module)
warning: got "@impl NimblePool" for function handle_checkin/3 but this behaviour does not specify such callback. The known callbacks are:
* NimblePool.handle_checkin/4 (function)
* NimblePool.handle_checkout/4 (function)
* NimblePool.handle_enqueue/2 (function)
* NimblePool.handle_info/2 (function)
* NimblePool.handle_update/3 (function)
* NimblePool.init_pool/1 (function)
* NimblePool.init_worker/1 (function)
* NimblePool.terminate_worker/3 (function)
lib/majic/pool.ex:63: Majic.Pool (module)
warning: function handle_checkout/4 required by behaviour NimblePool is not implemented (in module Majic.Pool)
lib/majic/pool.ex:1: Majic.Pool (module)
Generated majic app
When attempting a file upload in both pleroma-fe and glitch-fe:
Jan 26 18:31:07 vps212052 mix[57987]: 18:31:07.124 [error] Error during Majic.Pool.handle_checkout/4 callback:
Jan 26 18:31:07 vps212052 mix[57987]: ** (UndefinedFunctionError) function Majic.Pool.handle_checkout/4 is undefined or private
Jan 26 18:31:07 vps212052 mix[57987]: (majic 1.0.0) Majic.Pool.handle_checkout(:checkout, {#PID<0.2344.0>, #Reference<0.1827176543.3161718786.159391>}, #PID<0.1268.0>, [])
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:711: NimblePool.do_apply_worker_callback/4
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:582: NimblePool.maybe_checkout/5
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:366: NimblePool.handle_call/3
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) gen_server.erl:715: :gen_server.try_handle_call/4
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) gen_server.erl:744: :gen_server.handle_msg/6
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Jan 26 18:31:07 vps212052 mix[57987]: 18:31:07.125 [error] Error during Majic.Pool.handle_checkout/4 callback:
Jan 26 18:31:07 vps212052 mix[57987]: ** (UndefinedFunctionError) function Majic.Pool.handle_checkout/4 is undefined or private
Jan 26 18:31:07 vps212052 mix[57987]: (majic 1.0.0) Majic.Pool.handle_checkout(:checkout, {#PID<0.2344.0>, #Reference<0.1827176543.3161718786.159391>}, #PID<0.1269.0>, [])
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:711: NimblePool.do_apply_worker_callback/4
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:582: NimblePool.maybe_checkout/5
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:366: NimblePool.handle_call/3
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) gen_server.erl:715: :gen_server.try_handle_call/4
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) gen_server.erl:744: :gen_server.handle_msg/6
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Jan 26 18:31:07 vps212052 mix[57987]: 18:31:07.128 [error] Error during Majic.Pool.handle_checkout/4 callback:
Jan 26 18:31:07 vps212052 mix[57987]: ** (UndefinedFunctionError) function Majic.Pool.handle_checkout/4 is undefined or private
Jan 26 18:31:07 vps212052 mix[57987]: (majic 1.0.0) Majic.Pool.handle_checkout(:checkout, {#PID<0.2344.0>, #Reference<0.1827176543.3161718786.159391>}, #PID<0.2346.0>, [])
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:711: NimblePool.do_apply_worker_callback/4
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:582: NimblePool.maybe_checkout/5
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:430: NimblePool.handle_info/2
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) gen_server.erl:689: :gen_server.try_dispatch/4
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) gen_server.erl:765: :gen_server.handle_msg/6
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Jan 26 18:31:07 vps212052 mix[57987]: 18:31:07.130 [error] Error during Majic.Pool.handle_checkout/4 callback:
Jan 26 18:31:07 vps212052 mix[57987]: ** (UndefinedFunctionError) function Majic.Pool.handle_checkout/4 is undefined or private
Jan 26 18:31:07 vps212052 mix[57987]: (majic 1.0.0) Majic.Pool.handle_checkout(:checkout, {#PID<0.2344.0>, #Reference<0.1827176543.3161718786.159391>}, #PID<0.2347.0>, [])
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:711: NimblePool.do_apply_worker_callback/4
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:582: NimblePool.maybe_checkout/5
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:430: NimblePool.handle_info/2
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) gen_server.erl:689: :gen_server.try_dispatch/4
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) gen_server.erl:765: :gen_server.handle_msg/6
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Jan 26 18:31:07 vps212052 mix[57987]: 18:31:07.136 [error] Error during Majic.Pool.handle_checkout/4 callback:
Jan 26 18:31:07 vps212052 mix[57987]: ** (UndefinedFunctionError) function Majic.Pool.handle_checkout/4 is undefined or private
Jan 26 18:31:07 vps212052 mix[57987]: (majic 1.0.0) Majic.Pool.handle_checkout(:checkout, {#PID<0.2344.0>, #Reference<0.1827176543.3161718786.159391>}, #PID<0.2348.0>, [])
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:711: NimblePool.do_apply_worker_callback/4
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:582: NimblePool.maybe_checkout/5
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:430: NimblePool.handle_info/2
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) gen_server.erl:689: :gen_server.try_dispatch/4
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) gen_server.erl:765: :gen_server.handle_msg/6
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Jan 26 18:31:07 vps212052 mix[57987]: 18:31:07.137 [error] Error during Majic.Pool.handle_checkout/4 callback:
Jan 26 18:31:07 vps212052 mix[57987]: ** (UndefinedFunctionError) function Majic.Pool.handle_checkout/4 is undefined or private
Jan 26 18:31:07 vps212052 mix[57987]: (majic 1.0.0) Majic.Pool.handle_checkout(:checkout, {#PID<0.2344.0>, #Reference<0.1827176543.3161718786.159391>}, #PID<0.2349.0>, [])
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:711: NimblePool.do_apply_worker_callback/4
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:582: NimblePool.maybe_checkout/5
Jan 26 18:31:07 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:430: NimblePool.handle_info/2
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) gen_server.erl:689: :gen_server.try_dispatch/4
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) gen_server.erl:765: :gen_server.handle_msg/6
Jan 26 18:31:07 vps212052 mix[57987]: (stdlib 3.14.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Jan 26 18:31:07 vps212052 mix[57987]: 18:31:07.141 [error] Error during Majic.Pool.handle_checkout/4 callback:
Jan 26 18:31:07 vps212052 mix[57987]: ** (UndefinedFunctionError) function Majic.Pool.handle_checkout/4 is undefined or private
Jan 26 18:31:07 vps212052 mix[57987]: (majic 1.0.0) Majic.Pool.handle_checkout(:checkout, {#PID<0.2344.0>, #Reference<0.1827176543.3161718786.159391>}, #PID<0.2350.0>, [])
[---------------SNIP-----------------------------]
Jan 26 18:31:19 vps212052 mix[57987]: 18:31:19.778 [error] Error during Majic.Pool.handle_checkout/4 callback:
Jan 26 18:31:19 vps212052 mix[57987]: ** (UndefinedFunctionError) function Majic.Pool.handle_checkout/4 is undefined or private
Jan 26 18:31:19 vps212052 mix[57987]: (majic 1.0.0) Majic.Pool.handle_checkout(:checkout, {#PID<0.2344.0>, #Reference<0.1827176543.3161718786.159391>}, #PID<0.3475.0>, [])
Jan 26 18:31:19 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:711: NimblePool.do_apply_worker_callback/4
Jan 26 18:31:19 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:582: NimblePool.maybe_checkout/5
Jan 26 18:31:19 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:430: NimblePool.handle_info/2
Jan 26 18:31:19 vps212052 mix[57987]: (stdlib 3.14.2) gen_server.erl:689: :gen_server.try_dispatch/4
Jan 26 18:31:19 vps212052 mix[57987]: (stdlib 3.14.2) gen_server.erl:765: :gen_server.handle_msg/6
Jan 26 18:31:19 vps212052 mix[57987]: (stdlib 3.14.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Jan 26 18:31:19 vps212052 mix[57987]: 18:31:19.780 [error] Error during Majic.Pool.handle_checkout/4 callback:
Jan 26 18:31:19 vps212052 mix[57987]: ** (UndefinedFunctionError) function Majic.Pool.handle_checkout/4 is undefined or private
Jan 26 18:31:19 vps212052 mix[57987]: (majic 1.0.0) Majic.Pool.handle_checkout(:checkout, {#PID<0.2344.0>, #Reference<0.1827176543.3161718786.159391>}, #PID<0.3476.0>, [])
Jan 26 18:31:19 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:711: NimblePool.do_apply_worker_callback/4
Jan 26 18:31:19 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:582: NimblePool.maybe_checkout/5
Jan 26 18:31:19 vps212052 mix[57987]: (nimble_pool 0.2.4) lib/nimble_pool.ex:430: NimblePool.handle_info/2
Jan 26 18:31:19 vps212052 mix[57987]: (stdlib 3.14.2) gen_server.erl:689: :gen_server.try_dispatch/4
Jan 26 18:31:19 vps212052 mix[57987]: (stdlib 3.14.2) gen_server.erl:765: :gen_server.handle_msg/6
Jan 26 18:31:19 vps212052 mix[57987]: (stdlib 3.14.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Jan 26 18:31:19 vps212052 mix[57987]: 18:31:19.781 [error] Error during Majic.Pool.handle_checkout/4 callback:
Jan 26 18:31:37 vps212052 systemd-journald[364]: Suppressed 10359 messages from pleroma.service
Jan 26 18:31:37 vps212052 mix[57987]: 18:31:37.125 [error] #PID<0.2344.0> running Pleroma.Web.Endpoint (connection #PID<0.2343.0>, stream id 1) terminated
Jan 26 18:31:37 vps212052 mix[57987]: Server: wireless.cat6.network:80 (http)
Jan 26 18:31:37 vps212052 mix[57987]: Request: POST /api/v1/media
Jan 26 18:31:37 vps212052 mix[57987]: ** (exit) exited in: NimblePool.checkout(Pleroma.MajicPool)
Jan 26 18:31:37 vps212052 mix[57987]: ** (EXIT) time out
Also a fuckton of processes are spawned and left running:
pleroma@vps212052:/opt/pleroma$ ps aux | grep libmagic_port | wc -l
5476
let me know if you need more info from me, or things to try, or to tell me i overlooked something with my update process
I'm able to make text posts fine, haven't tried uploading other new assets like pfp or background to see if those are affected yet.