Skip to content
New issue

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

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

Already on GitHub? # to your account

CTFd crash right after install #1099

Closed
noraj opened this issue Sep 5, 2019 · 1 comment · Fixed by #1101
Closed

CTFd crash right after install #1099

noraj opened this issue Sep 5, 2019 · 1 comment · Fixed by #1101

Comments

@noraj
Copy link

noraj commented Sep 5, 2019

Git + python 3.7.2 (3b1b82b)

asciicast

Git + python 2.7.15 (3b1b82b)

asciicast

2.1.4 + python 3.7.2

asciicast

Environment:

  • CTFd Version/Commit: see titles
  • Operating System: ArchLinux
  • Web Browser and Version: Firefox

What happened?

CTFd crash right after install.

What did you expect to happen?

Working or at least a more comprehensible error.

How to reproduce your issue

See the asciinema, but basically

  • Download CTFd
  • Install dependencies
  • run flask
  • crash

PS : with the untouched default config

Any associated stack traces or error logs

See the asciinema

@noraj
Copy link
Author

noraj commented Sep 5, 2019

In fact this is the just the README that is wrong

image

One must not do flask run but rather as said on the wiki (https://github.com/CTFd/CTFd/wiki) python serve.py.

$ python serve.py
 * Loaded module, <module 'CTFd.plugins.challenges' from '/tmp/CTFd-2.1.4/CTFd/plugins/challenges/__init__.py'>
 * Loaded module, <module 'CTFd.plugins.dynamic_challenges' from '/tmp/CTFd-2.1.4/CTFd/plugins/dynamic_challenges/__init__.py'>
 * Loaded module, <module 'CTFd.plugins.flags' from '/tmp/CTFd-2.1.4/CTFd/plugins/flags/__init__.py'>
 * Serving Flask app "CTFd" (lazy loading)
 * Environment: development
 * Debug mode: on
 * Running on http://127.0.0.1:4000/ (Press CTRL+C to quit)
 * Restarting with stat
 * Loaded module, <module 'CTFd.plugins.challenges' from '/tmp/CTFd-2.1.4/CTFd/plugins/challenges/__init__.py'>
 * Loaded module, <module 'CTFd.plugins.dynamic_challenges' from '/tmp/CTFd-2.1.4/CTFd/plugins/dynamic_challenges/__init__.py'>
 * Loaded module, <module 'CTFd.plugins.flags' from '/tmp/CTFd-2.1.4/CTFd/plugins/flags/__init__.py'>
 * Debugger is active!
 * Debugger PIN: 117-149-425
127.0.0.1 - - [05/Sep/2019 21:04:19] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [05/Sep/2019 21:04:19] "GET /setup HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /setup HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/css/vendor/bootstrap.min.css HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/css/vendor/font-awesome/fontawesome-fonts.css HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/css/vendor/font-awesome/fontawesome-all.min.css HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/css/vendor/font.css HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/css/jumbotron.css HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/css/sticky-footer.css HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/css/base.css HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /static/user.css HTTP/1.1" 302 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/js/vendor/promise-polyfill.min.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/js/vendor/eventsource.min.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/js/vendor/fetch.min.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/js/CTFd.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/js/vendor/nunjucks.min.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/js/vendor/moment.min.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/js/vendor/jquery.min.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/js/vendor/markdown-it.min.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/js/vendor/bootstrap.bundle.min.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/js/vendor/howler.min.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/js/vendor/window-controller.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/js/style.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/js/ezq.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/js/events.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/js/utils.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /setup HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:20] "GET /themes/core/static/sounds/notification.webm HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:21] "GET /themes/core/static/img/favicon.ico HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2019 21:04:21] "GET /events HTTP/1.1" 302 -
127.0.0.1 - - [05/Sep/2019 21:04:21] "GET /setup HTTP/1.1" 200 -

ColdHeat added a commit that referenced this issue Sep 5, 2019
* Fixes `flask run` debug server by not monkey patching in `wsgi.py`
* Closes #1099
JJwang11 pushed a commit to sigpwny/CTFd-badfork that referenced this issue Jan 22, 2020
* Fixes `flask run` debug server by not monkey patching in `wsgi.py`
* Closes CTFd#1099
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant