question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CTFd crashing on startup due to Redis

See original GitHub issue

Environment:

  • CTFd Version/Commit: bf799fb22040a32bd2c8dcebecb010042782bc83
  • Operating System: Ubuntu 16.04.6
  • Web Browser and Version: Any

What happened?

We have upgraded our CTFd panels to the latest version, and they start throwing errors complaining about the lack of ‘monkey patched socket library’ when connecting to Redis.

What did you expect to happen?

CTFd start normally

How to reproduce your issue

Enable Redis caching and start CTFd

Any associated stack traces or error logs

 * Loaded module, <module 'CTFd.plugins.dynamic_challenges' from '/home/ctfsyd/CTFd/CTFd/plugins/dynamic_challenges/__init__.pyc'>
 * Loaded module, <module 'CTFd.plugins.flags' from '/home/ctfsyd/CTFd/CTFd/plugins/flags/__init__.pyc'>
 * Loaded module, <module 'CTFd.plugins.challenges' from '/home/ctfsyd/CTFd/CTFd/plugins/challenges/__init__.pyc'>
 * Loaded module, <module 'CTFd.plugins.dynamic_challenges' from '/home/ctfsyd/CTFd/CTFd/plugins/dynamic_challenges/__init__.pyc'>
 * Loaded module, <module 'CTFd.plugins.flags' from '/home/ctfsyd/CTFd/CTFd/plugins/flags/__init__.pyc'>
 * Loaded module, <module 'CTFd.plugins.challenges' from '/home/ctfsyd/CTFd/CTFd/plugins/challenges/__init__.pyc'>
connect handler error
Traceback (most recent call last):
  File "/home/ctfsyd/.virtualenvs/ctfd/local/lib/python2.7/site-packages/engineio/server.py", line 505, in _trigger_event
    return self.handlers[event](*args)
  File "/home/ctfsyd/.virtualenvs/ctfd/local/lib/python2.7/site-packages/socketio/server.py", line 641, in _handle_eio_connect
    self.manager.initialize()
  File "/home/ctfsyd/.virtualenvs/ctfd/local/lib/python2.7/site-packages/socketio/redis_manager.py", line 64, in initialize
    'with ' + self.server.async_mode)
RuntimeError: Redis requires a monkey patched socket library to work with gevent

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ColdHeatcommented, Mar 19, 2019

Have you updated gevent? Are you using Python 3?

0reactions
gszathmaricommented, Mar 20, 2019

I will give it a shot, thank you for the help

Read more comments on GitHub >

github_iconTop Results From Across the Web

[FO4] Crashing at Startup : r/FalloutMods - Reddit
I have disabled all mods. When I start F4SE, I get a black screen, ReShade loaded, and the Fallout 4 loading icon but...
Read more >
redis crashing intermittently - Google Groups
It crashes without any reasons and when i try to do a "DEBUG SEGFAULT" it crashes too. but give me the output: https://gist.github.com/guilherme/ ......
Read more >
Game crashes on startup as of today :: Kingdoms of Amalur ...
The game was fine for about a week but I just tried to start it and it crashes on the splash screen before...
Read more >
How To Install Buffout 4 And Resolve Most Common Crashes
- Scrap Everything | Weird crashes and issues due to multiple unknown problems. This mod must be always last in your load order....
Read more >
CVE - Search Results - MITRE
After initiating a password reset for the new account, CTFd will reset the victim's account password due to the username collision.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found