Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: No 500 catcher registered. Using Rocket default. #91

Closed
Tealk opened this issue Apr 14, 2023 · 4 comments
Closed

[Bug]: No 500 catcher registered. Using Rocket default. #91

Tealk opened this issue Apr 14, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@Tealk
Copy link
Collaborator

Tealk commented Apr 14, 2023

Steps to reproduce

Update instance

Version

2.0.0

LemmyBB Logs

Apr 14 15:28:51 lemmy lemmy_bb[345679]: ERROR: ld.so: object 'libjemalloc.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Apr 14 15:28:51 lemmy lemmy_bb[345679]: [2023-04-14T13:28:51Z WARN  rocket::launch] 🚀 Rocket has launched from http://192.168.100.15:8703
Apr 14 15:28:54 lemmy lemmy_bb[345679]: thread 'rocket-worker-thread' panicked at 'called `Option::unwrap()` on a `None` value', src/template_helpers.rs:168:20
Apr 14 15:28:54 lemmy lemmy_bb[345679]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Apr 14 15:28:54 lemmy lemmy_bb[345679]: [2023-04-14T13:28:54Z ERROR rocket::server::_] Handler community_list panicked.
Apr 14 15:28:54 lemmy lemmy_bb[345679]: [2023-04-14T13:28:54Z WARN  rocket::server::_] A panic is treated as an internal server error.
Apr 14 15:28:54 lemmy lemmy_bb[345679]: [2023-04-14T13:28:54Z WARN  rocket::server::_] No 500 catcher registered. Using Rocket default.
Apr 14 15:28:55 lemmy lemmy_bb[345679]: thread 'rocket-worker-thread' panicked at 'called `Option::unwrap()` on a `None` value', src/template_helpers.rs:168:20
Apr 14 15:28:55 lemmy lemmy_bb[345679]: [2023-04-14T13:28:55Z ERROR rocket::server::_] Handler community_list panicked.
Apr 14 15:28:55 lemmy lemmy_bb[345679]: [2023-04-14T13:28:55Z WARN  rocket::server::_] A panic is treated as an internal server error.
Apr 14 15:28:55 lemmy lemmy_bb[345679]: [2023-04-14T13:28:55Z WARN  rocket::server::_] No 500 catcher registered. Using Rocket default.
Apr 14 15:28:55 lemmy lemmy_bb[345679]: thread 'rocket-worker-thread' panicked at 'called `Option::unwrap()` on a `None` value', src/template_helpers.rs:168:20
Apr 14 15:28:55 lemmy lemmy_bb[345679]: [2023-04-14T13:28:55Z ERROR rocket::server::_] Handler community_list panicked.
Apr 14 15:28:55 lemmy lemmy_bb[345679]: [2023-04-14T13:28:55Z WARN  rocket::server::_] A panic is treated as an internal server error.
Apr 14 15:28:55 lemmy lemmy_bb[345679]: [2023-04-14T13:28:55Z WARN  rocket::server::_] No 500 catcher registered. Using Rocket default.
Apr 14 15:28:56 lemmy lemmy_bb[345679]: [2023-04-14T13:28:56Z WARN  lemmy_bb::error] rate_limit_error
Apr 14 15:28:56 lemmy lemmy_bb[345679]: thread 'rocket-worker-thread' panicked at 'called `Option::unwrap()` on a `None` value', src/template_helpers.rs:168:20
Apr 14 15:28:56 lemmy lemmy_bb[345679]: [2023-04-14T13:28:56Z ERROR rocket::server::_] Handler community_list panicked.
Apr 14 15:28:56 lemmy lemmy_bb[345679]: [2023-04-14T13:28:56Z WARN  rocket::server::_] A panic is treated as an internal server error.
Apr 14 15:28:56 lemmy lemmy_bb[345679]: [2023-04-14T13:28:56Z WARN  rocket::server::_] No 500 catcher registered. Using Rocket default.
Apr 14 15:29:14 lemmy lemmy_bb[345679]: thread 'rocket-worker-thread' panicked at 'called `Option::unwrap()` on a `None` value', src/template_helpers.rs:168:20
Apr 14 15:29:14 lemmy lemmy_bb[345679]: [2023-04-14T13:29:14Z ERROR rocket::server::_] Handler index panicked.
Apr 14 15:29:14 lemmy lemmy_bb[345679]: [2023-04-14T13:29:14Z WARN  rocket::server::_] A panic is treated as an internal server error.
Apr 14 15:29:14 lemmy lemmy_bb[345679]: [2023-04-14T13:29:14Z WARN  rocket::server::_] No 500 catcher registered. Using Rocket default.

Additional context

No response

@Tealk Tealk added the bug Something isn't working label Apr 14, 2023
@Nutomic
Copy link
Member

Nutomic commented Apr 14, 2023

This is because of rate limits. They were moved from config file to database in Lemmy 0.17.0, so you need to manually increase "Message rate limit" and "Search rate limit" in lemmy-ui under /admin to a high number.

@Tealk
Copy link
Collaborator Author

Tealk commented Apr 15, 2023

we should still include in the readme, are there any suggestion values?
my settings are:

Message rate limit: 180
Search rate limit: 60

also, since the update to 0.2.1 it works again without changing the values

@Nutomic
Copy link
Member

Nutomic commented Apr 15, 2023

It works if you only make a few requests, but as soon as you reload the page a couple of times the error will show again.

For now I just set them to 9999. My idea for a proper fix was to test how many API requests a page view with lemmy-ui makes and then compare it to requests for lemmybb. Then increase the rate limits by that same factor. You could give that a try if you have time. And if that doesnt give an extremely high number, we could change the defaults in Lemmy so that manual changes arent necessary.

@Tealk
Copy link
Collaborator Author

Tealk commented Apr 16, 2023

The error ksm with the 2.0 when first loading and now no longer no matter how many times I reload

Nutomic added a commit that referenced this issue Apr 24, 2023
Cache requests to Lemmy backend (fixes #91)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants