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

redbean-demo-2.2.com (under Debian 12) uses 100% CPU and does not serve anything #1118

Open
exquisitus opened this issue Feb 28, 2024 · 0 comments

Comments

@exquisitus
Copy link

exquisitus commented Feb 28, 2024

Hi, I am trying to use redbean-demo-2.2.com 7168d4ea4af608c2157abd62eeab729866953063cff6116c7ac345272a0b8f79 under Debian Linux 12 and have installed the ape loader.

Every one second, redbean reports that it replenished tokens. It uses 100%CPU. I visit localhost:8080 and I don't get any answer. (Previously there was in the logs also a hint to use the blackholed program, which went away after I installed and started it, but I don't think this was relevant).

On the contrary, the standard redbean.com without the example code does run normally.

christos@nisyros:~/redbean-playground$ ape
NAME

  actually portable executable loader version 1.10
  copyrights 2024 justine alexandra roberts tunney
  https://justine.lol/ape.html

USAGE

  ape   PROG [ARGV1,ARGV2,...]
  ape - PROG [ARGV0,ARGV1,...]
christos@nisyros:~/redbean-playground$ ./redbean-demo-2.2.com -vv
D2024-02-28T02:42:24.753520:tool/net/redbean.c:4997:redbean-demo-2:3577075] (lua) LuaRunAsset("/.init.lua")
I2024-02-28T02:42:24+000132:tool/net/redbean.c:4872:redbean-demo-2:3577075] (token) deploying 16,777,216 buckets (one for every 256 ips) each holding 127 tokens which replenish 1 times per second, reject at 30 tokens, ignore at 15 tokens, and ban at 1 tokens
V2024-02-28T02:42:24+006774:tool/net/redbean.c:4790:redbean-demo-2:3577077] (token) replenish worker started
D2024-02-28T02:42:24+002517:tool/net/redbean.c:4804:redbean-demo-2:3577077] (token) replenished tokens
D2024-02-28T02:42:25.762202:tool/net/redbean.c:4804:redbean-demo-2:3577077] (token) replenished tokens
D2024-02-28T02:42:26.762174:tool/net/redbean.c:4804:redbean-demo-2:3577077] (token) replenished tokens
D2024-02-28T02:42:27.762283:tool/net/redbean.c:4804:redbean-demo-2:3577077] (token) replenished tokens
^CV2024-02-28T02:42:28.304491:tool/net/redbean.c:4806:redbean-demo-2:3577077] (token) replenish worker exiting

Edit: I observe a similar behaviour (100%CPU usage and no response) when I try to use zip.com 5c22e6feaf4587297a771d3abfc66ebbf33cde5296c83c80844b806fe09ed413 to add a file to my redbean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant