yogeshojha / rengine

reNgine is an automated reconnaissance framework for web applications with a focus on highly configurable streamlined recon process via Engines, recon data correlation and organization, continuous monitoring, backed by a database, and simple yet intuitive User Interface. reNgine makes it easy for penetration testers to gather reconnaissance with minimal configuration and with the help of reNgine's correlation, it just makes recon effortless.
https://yogeshojha.github.io/rengine/
GNU General Public License v3.0
7.54k stars 1.14k forks source link

Installation issues | WSL | Python | Docker-compose #1463

Closed shubhamvpandey closed 2 days ago

shubhamvpandey commented 1 week ago

Is there an existing issue for this?

Current Behavior

error while installing

Expected Behavior

reNgine is installed!!!

######################################################################### Creating an account ######################################################################### Using: docker compose COMPOSE_DOCKER_CLI_BUILD=1 docker compose -f docker-compose.yml exec web python3 manage.py createsuperuser


      | \ | |     (_)

| | | _ _ | '/ \ . ` |/ ` | | ' \ / \ | | | / |\ | (_| | | | | | / || \|| _|_, ||| |_|_| / | |___/

pikepdf._core | pikepdf C++ to Python logger bridge initialized Traceback (most recent call last): File "/usr/src/app/manage.py", line 26, in main() File "/usr/src/app/manage.py", line 22, in main execute_from_command_line(sys.argv) File "/usr/local/lib/python3.10/dist-packages/django/core/management/init.py", line 419, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.10/dist-packages/django/core/management/init.py", line 413, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 354, in run_from_argv self.execute(*args, *cmd_options) File "/usr/local/lib/python3.10/dist-packages/django/contrib/auth/management/commands/createsuperuser.py", line 79, in execute return super().execute(args, options) File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 393, in execute self.check() File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 419, in check all_issues = checks.run_checks( File "/usr/local/lib/python3.10/dist-packages/django/core/checks/registry.py", line 76, in run_checks new_errors = check(app_configs=app_configs, databases=databases) File "/usr/local/lib/python3.10/dist-packages/django/core/checks/urls.py", line 13, in check_url_config return check_resolver(resolver) File "/usr/local/lib/python3.10/dist-packages/django/core/checks/urls.py", line 23, in check_resolver return check_method() File "/usr/local/lib/python3.10/dist-packages/django/urls/resolvers.py", line 416, in check for pattern in self.url_patterns: File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 48, in get res = instance.dict[self.name] = self.func(instance) File "/usr/local/lib/python3.10/dist-packages/django/urls/resolvers.py", line 602, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 48, in get res = instance.dict[self.name] = self.func(instance) File "/usr/local/lib/python3.10/dist-packages/django/urls/resolvers.py", line 595, in urlconf_module return import_module(self.urlconf_name) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/usr/src/app/reNgine/urls.py", line 41, in include('startScan.urls')), File "/usr/local/lib/python3.10/dist-packages/django/urls/conf.py", line 34, in include urlconf_module = import_module(urlconf_module) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/usr/src/app/startScan/urls.py", line 2, in from . import views File "/usr/src/app/startScan/views.py", line 18, in from reNgine.charts import File "/usr/src/app/reNgine/charts.py", line 5, in from plotly.io import to_image File "", line 1075, in _handle_fromlist File "/usr/local/lib/python3.10/dist-packages/_plotly_utils/importers.py", line 36, in getattr class_module = importlib.import_module(rel_module, parent_name) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/usr/local/lib/python3.10/dist-packages/plotly/io/_kaleido.py", line 10, in scope = PlotlyScope() File "/usr/local/lib/python3.10/dist-packages/kaleido/scopes/plotly.py", line 64, in init elif "snap" in path: TypeError: argument of type 'NoneType' is not iterable make: [Makefile:36: username] Error 1 Using: docker compose COMPOSE_DOCKER_CLI_BUILD=1 docker compose -f docker-compose.yml exec web python3 manage.py migrate


      | \ | |     (_)

| | | _ _ | '/ \ . ` |/ ` | | ' \ / \ | | | / |\ | (_| | | | | | / || \|| _|_, ||| |_|_| / | |___/

pikepdf._core | pikepdf C++ to Python logger bridge initialized Traceback (most recent call last): File "/usr/src/app/manage.py", line 26, in main() File "/usr/src/app/manage.py", line 22, in main execute_from_command_line(sys.argv) File "/usr/local/lib/python3.10/dist-packages/django/core/management/init.py", line 419, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.10/dist-packages/django/core/management/init.py", line 413, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 354, in run_from_argv self.execute(*args, cmd_options) File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 398, in execute output = self.handle(*args, *options) File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 89, in wrapped res = handle_func(args, kwargs) File "/usr/local/lib/python3.10/dist-packages/django/core/management/commands/migrate.py", line 75, in handle self.check(databases=[database]) File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 419, in check all_issues = checks.run_checks( File "/usr/local/lib/python3.10/dist-packages/django/core/checks/registry.py", line 76, in run_checks new_errors = check(app_configs=app_configs, databases=databases) File "/usr/local/lib/python3.10/dist-packages/django/core/checks/urls.py", line 13, in check_url_config return check_resolver(resolver) File "/usr/local/lib/python3.10/dist-packages/django/core/checks/urls.py", line 23, in check_resolver return check_method() File "/usr/local/lib/python3.10/dist-packages/django/urls/resolvers.py", line 416, in check for pattern in self.url_patterns: File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 48, in get res = instance.dict[self.name] = self.func(instance) File "/usr/local/lib/python3.10/dist-packages/django/urls/resolvers.py", line 602, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 48, in get res = instance.dict[self.name] = self.func(instance) File "/usr/local/lib/python3.10/dist-packages/django/urls/resolvers.py", line 595, in urlconf_module return import_module(self.urlconf_name) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/usr/src/app/reNgine/urls.py", line 41, in include('startScan.urls')), File "/usr/local/lib/python3.10/dist-packages/django/urls/conf.py", line 34, in include urlconf_module = import_module(urlconf_module) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/usr/src/app/startScan/urls.py", line 2, in from . import views File "/usr/src/app/startScan/views.py", line 18, in from reNgine.charts import * File "/usr/src/app/reNgine/charts.py", line 5, in from plotly.io import to_image File "", line 1075, in _handle_fromlist File "/usr/local/lib/python3.10/dist-packages/_plotly_utils/importers.py", line 36, in getattr class_module = importlib.import_module(rel_module, parent_name) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/usr/local/lib/python3.10/dist-packages/plotly/io/_kaleido.py", line 10, in scope = PlotlyScope() File "/usr/local/lib/python3.10/dist-packages/kaleido/scopes/plotly.py", line 64, in init elif "snap" in path: TypeError: argument of type 'NoneType' is not iterable make: *** [Makefile:43: migrate] Error 1

Thank you for installing reNgine, happy recon!! In case you have unapplied migrations (see above in red), run 'make migrate'

Steps To Reproduce

run ./install file

Environment

- reNgine: 2.2.0
environment - Window - WSL
Docker Compose version v2.30.2
Python 3.12.7
- Browser: IE
No LSB modules are available.
Distributor ID: Kali
Description:    Kali GNU/Linux Rolling
Release:        2024.3
Codename:       kali-rolling

Anything else?

No response

github-actions[bot] commented 1 week ago

Hey @shubhamvpandey! πŸ‘‹ Thanks for flagging this bug! πŸ›πŸ”

You're our superhero bug hunter! πŸ¦Έβ€β™‚οΈπŸ¦Έβ€β™€οΈ Before we suit up to squash this bug, could you please:

πŸ“š Double-check our documentation: https://rengine.wiki πŸ•΅οΈ Make sure it's not a known issue πŸ“ Provide all the juicy details about this sneaky bug

Once again - thanks for your vigilance! πŸ› οΈπŸš€

shubhamvpandey commented 2 days ago

Fixed it was Kali issue, after 20-11-2024 update I was able to install it.