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

bug: Server Error (500) #1431

Closed doreno39 closed 2 months ago

doreno39 commented 2 months ago

Is there an existing issue for this?

Current Behavior

I got the "Server Error (500)" error when updating to version v2.2.0 from v2.1.3.

The error logs in the container show as below, the dashboard_userpreferences table does not exist in the Postgres database.

db-1           | 2024-09-10 09:43:25.751 UTC [20550] ERROR:  relation "dashboard_userpreferences" does not exist at character 132
db-1           | 2024-09-10 09:43:25.751 UTC [20550] STATEMENT:  SELECT "dashboard_userpreferences"."id", "dashboard_userpreferences"."user_id", "dashboard_userpreferences"."bug_bounty_mode" FROM "dashboard_userpreferences" WHERE "dashboard_userpreferences"."user_id" = 1 LIMIT 21
web-1          | django.server | "GET / HTTP/1.0" 500 145
proxy-1        | 103.245.252.19 - - [10/Sep/2024:09:43:25 +0000] "GET / HTTP/2.0" 500 145 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-"
db-1           | 2024-09-10 09:43:26.141 UTC [20551] ERROR:  relation "dashboard_userpreferences" does not exist at character 132
db-1           | 2024-09-10 09:43:26.141 UTC [20551] STATEMENT:  SELECT "dashboard_userpreferences"."id", "dashboard_userpreferences"."user_id", "dashboard_userpreferences"."bug_bounty_mode" FROM "dashboard_userpreferences" WHERE "dashboard_userpreferences"."user_id" = 1 LIMIT 21
proxy-1        | 103.245.252.19 - - [10/Sep/2024:09:43:26 +0000] "GET /favicon.ico HTTP/2.0" 500 145 "https://58.84.2.235/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" "-"
web-1          | django.server | "GET /favicon.ico HTTP/1.0" 500 145
image

Expected Behavior

It should have worked correctly.

Steps To Reproduce

  1. Install Rengine with version v2.1.3.
  2. Using update.sh script to update version to v2.2.0
  3. Open the browser, then access to https://{IP address}
  4. Got the "Server Error (500)" error.

Environment

- reNgine: v2.2.0
- OS: Ubuntu 20.04.6 LTS (Focal Fossa)
- Python: 3.10.14
- Docker Engine: 26.1.0
- Docker Compose: v2.26.1
- Browser: Chrome Version 128.0.6613.120

Anything else?

No response

github-actions[bot] commented 2 months ago

Hey @doreno39! πŸ‘‹ 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! πŸ› οΈπŸš€

sanyam2602 commented 2 months ago

@yogeshojha why is this so and how we can fix this?

sanyam2602 commented 2 months ago

Same issue coming on ubuntu 24.04 as well @yogeshojha

vipul-soman commented 2 months ago

Everytime I try to use rengine theres always something breaking, i feel devs could prioritize pending issues and then focus on features , just a suggestion, thanks for the tool

its-mr-monday commented 2 months ago

This is caused by the same error found in: 502 bad gateway #1430

yogeshojha commented 2 months ago

@vipul-soman I take in your feedback, next few releases will focus on stability and ease of install/upgrade etc Thank you!

yogeshojha commented 2 months ago

@sanyam2602 please follow the discussion on #1430

sanyam2602 commented 2 months ago

@yogeshojha it is working now.

yogeshojha commented 2 months ago

Hi @doreno39 as comfirmed by @sanyam2602 I have merged the changes, please git pull the latest changes on master and hopefully everything works as expected.

I will close this but keep open #1430 if you have any issues please continue the conversation there.

Thank you

doreno39 commented 2 months ago

Hi @doreno39 as comfirmed by @sanyam2602 I have merged the changes, please git pull the latest changes on master and hopefully everything works as expected.

I will close this but keep open #1430 if you have any issues please continue the conversation there.

Thank you

Hi @sanyam2602, it worked correctly, thanks for your support!

ethanlacerenza commented 1 month ago

@yogeshojha Excuse me, but why is this issue closed when there are people on Discord, including myself, who are experiencing this problem with the latest published version? An issue shouldn't be closed just because there's a workaround, should it?