Error during Majic.Pool.handle_checkout #1

Open
opened 2021-02-02 19:19:04 +00:00 by sudokun · 1 comment
Member

When trying to attach any media data, upload handling stuck forever and then all next reloads of page gives server internal error.
1

  • Pleroma 2.2.2
  • Elixir 1.11.2
  • Erlang/OTP 23

In log file:

20:11:25.335 [error] Error during Majic.Pool.handle_checkout/3 callback:
** (UndefinedFunctionError) function Majic.Pool.handle_checkout/3 is undefined or private
    (majic 1.0.0) Majic.Pool.handle_checkout(:checkout, {#PID<0.1722.0>, #Reference<0.304964609.2452619265.109743>}, #PID<0.2824.0>)
    (nimble_pool 0.1.0) lib/nimble_pool.ex:618: NimblePool.apply_worker_callback/3
    (nimble_pool 0.1.0) lib/nimble_pool.ex:519: NimblePool.maybe_checkout/5
    (nimble_pool 0.1.0) lib/nimble_pool.ex:360: NimblePool.handle_info/2
    (stdlib 3.14) gen_server.erl:689: :gen_server.try_dispatch/4
    (stdlib 3.14) gen_server.erl:765: :gen_server.handle_msg/6
    (stdlib 3.14) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
When trying to attach any media data, upload handling stuck forever and then all next reloads of page gives server internal error. ![1](/attachments/642b9645-6617-430f-8795-61316061c465) - Pleroma 2.2.2 - Elixir 1.11.2 - Erlang/OTP 23 In log file: ``` 20:11:25.335 [error] Error during Majic.Pool.handle_checkout/3 callback: ** (UndefinedFunctionError) function Majic.Pool.handle_checkout/3 is undefined or private (majic 1.0.0) Majic.Pool.handle_checkout(:checkout, {#PID<0.1722.0>, #Reference<0.304964609.2452619265.109743>}, #PID<0.2824.0>) (nimble_pool 0.1.0) lib/nimble_pool.ex:618: NimblePool.apply_worker_callback/3 (nimble_pool 0.1.0) lib/nimble_pool.ex:519: NimblePool.maybe_checkout/5 (nimble_pool 0.1.0) lib/nimble_pool.ex:360: NimblePool.handle_info/2 (stdlib 3.14) gen_server.erl:689: :gen_server.try_dispatch/4 (stdlib 3.14) gen_server.erl:765: :gen_server.handle_msg/6 (stdlib 3.14) proc_lib.erl:226: :proc_lib.init_p_do_apply/3 ```
14 KiB
Author
Member

Also the result of uploading files is not always the same. Upload failed with error message below, which could somehow be related to #2343.
1
In such case the site may still be accessible and then in logs appears lines, when page reloaded:

21:21:11.292 [warn] Ranch acceptor reducing accept rate: out of file descriptors
21:21:11.293 [warn] Ranch acceptor reducing accept rate: out of file descriptors
21:21:11.295 [warn] Ranch acceptor reducing accept rate: out of file descriptors
21:21:11.295 [warn] Ranch acceptor reducing accept rate: out of file descriptors
21:21:11.299 [warn] Ranch acceptor reducing accept rate: out of file descriptors
21:21:11.299 [warn] Ranch acceptor reducing accept rate: out of file descriptors
21:21:11.302 [warn] Ranch acceptor reducing accept rate: out of file descriptors
21:21:11.303 [warn] Ranch acceptor reducing accept rate: out of file descriptors
21:21:11.304 [warn] Ranch acceptor reducing accept rate: out of file descriptors
21:21:11.306 [warn] Ranch acceptor reducing accept rate: out of file descriptors
21:21:11.309 [warn] Ranch acceptor reducing accept rate: out of file descriptors
21:21:11.309 [warn] Ranch acceptor reducing accept rate: out of file descriptors
21:21:11.310 [warn] Ranch acceptor reducing accept rate: out of file descriptors
21:21:11.311 [warn] Ranch acceptor reducing accept rate: out of file descriptors
21:21:11.311 [warn] Ranch acceptor reducing accept rate: out of file descriptors
Also the result of uploading files is not always the same. Upload failed with error message below, which could somehow be related to [#2343](https://git.pleroma.social/pleroma/pleroma/-/issues/2343). ![1](/attachments/50968a76-53ce-4501-9b1a-7540848f1a6a) In such case the site may still be accessible and then in logs appears lines, when page reloaded: ``` 21:21:11.292 [warn] Ranch acceptor reducing accept rate: out of file descriptors 21:21:11.293 [warn] Ranch acceptor reducing accept rate: out of file descriptors 21:21:11.295 [warn] Ranch acceptor reducing accept rate: out of file descriptors 21:21:11.295 [warn] Ranch acceptor reducing accept rate: out of file descriptors 21:21:11.299 [warn] Ranch acceptor reducing accept rate: out of file descriptors 21:21:11.299 [warn] Ranch acceptor reducing accept rate: out of file descriptors 21:21:11.302 [warn] Ranch acceptor reducing accept rate: out of file descriptors 21:21:11.303 [warn] Ranch acceptor reducing accept rate: out of file descriptors 21:21:11.304 [warn] Ranch acceptor reducing accept rate: out of file descriptors 21:21:11.306 [warn] Ranch acceptor reducing accept rate: out of file descriptors 21:21:11.309 [warn] Ranch acceptor reducing accept rate: out of file descriptors 21:21:11.309 [warn] Ranch acceptor reducing accept rate: out of file descriptors 21:21:11.310 [warn] Ranch acceptor reducing accept rate: out of file descriptors 21:21:11.311 [warn] Ranch acceptor reducing accept rate: out of file descriptors 21:21:11.311 [warn] Ranch acceptor reducing accept rate: out of file descriptors ```
30 KiB
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma-elixir-libraries/majic#1
No description provided.