-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Server Error 500 #1297
Comments
👋 Hi @bagialuudan, |
Hi @bagialuudan can you down the service and restart them
|
I tried but it did not run
…On Tue, 2 Jul 2024 at 9:54 PM Yogesh Ojha ***@***.***> wrote:
Hi @bagialuudan <https://github.com/bagialuudan> can you down the service
and restart them
make down && make up
—
Reply to this email directly, view it on GitHub
<#1297 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATDZVOAZUEZUAFNIHAUBS6TZKK5MDAVCNFSM6AAAAABKHFTKL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBTGQZTQNRTGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I think rengine-web has encountered an error. I set it to debug mode but still couldn't find the log. I forwarded the port to my machine without going through a proxy and still experienced a login error |
I get the same error after upgrading. Checked the logs ( make logs ) provides this error. db-1 | 2024-07-03 11:52:31.459 UTC [650] ERROR: column startScan_scanhistory.initiated_by_id does not exist at character 434 From my end this appears to be the issue, that is causing the 500 error on the web. So I tried to update the database by getting a shell on the web container and running the following. root@a343ae5e23bd:/usr/src/app# python3 manage.py migrate pikepdf._core | pikepdf C++ to Python logger bridge initialized WARNINGS: But it did not update the database as expected. |
@bagialuudan @null-ref-0000 @m0ng3sh3ll I found the root cause for both of these issues but far from finding a solution for it. The problem is that in 2.1.0 we introduced this field in Scans called I have tried everything to resolve this, but looks like no chance. The only option would be to flush out all scan history, that means you will loose all the scans but targets will remain as it is. you can use this command
Please note that while targets will remain as it is, but the scan history will be flushed out, and app will continue to work |
@yogeshojha for my case, the solution showing resolved the problem. Tks. |
@yogeshojha @null-ref-0000 @m0ng3sh3ll I found the root, because the database was too old, something might have been added to the database during the update, so when setting up the web, it mount the old database which caused the web to not load data. I have deleted and reinstalled the database and everything is fine now, you can try it |
Is there an existing issue for this?
Current Behavior
When i update ver 2.0.6 -> 2.1, I cannot access web because this is server error 500
Expected Behavior
log:
django.server | "GET /favicon.ico HTTP/1.0" 302 0
django.server | "GET /login/?next=/favicon.ico HTTP/1.0" 200 4516
django.server | "POST /login/?next=/default/dashboard/ HTTP/1.0" 200 4884
django.server | "GET /favicon.ico HTTP/1.0" 302 0
django.server | "GET /login/?next=/favicon.ico HTTP/1.0" 200 4516
django.server | "POST /login/?next=/default/dashboard/ HTTP/1.0" 200 4884
django.server | "GET /favicon.ico HTTP/1.0" 302 0
django.server | "GET /login/?next=/favicon.ico HTTP/1.0" 200 4516
django.server | "POST /login/?next=/default/dashboard/ HTTP/1.0" 302 0
django.server | "GET /default/dashboard/ HTTP/1.0" 500 145
django.server | "GET /favicon.ico HTTP/1.0" 500 145
django.server | "GET /default/dashboard/ HTTP/1.0" 500 145
django.server | "GET /favicon.ico HTTP/1.0" 500 145
django.server | "GET /default/dashboard/ HTTP/1.0" 500 145
django.server | "GET /favicon.ico HTTP/1.0" 500 145
django.server | "GET / HTTP/1.1" 302 0
django.server | "GET /favicon.ico HTTP/1.1" 302 0
django.server | "GET /favicon.ico HTTP/1.1" 302 0
django.server | "GET /favicon.ico HTTP/1.1" 302 0
django.server | "GET /favicon.ico HTTP/1.1" 302 0
django.server | "GET /login/?next=/default/dashboard/ HTTP/1.1" 200 4516
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "GET /default/dashboard/ HTTP/1.1" 302 0
django.server | "POST /login/?next=/default/dashboard/ HTTP/1.0" 403 1019
django.server | "GET /favicon.ico HTTP/1.0" 500 145
django.server | "GET /login/?next=/default/dashboard/ HTTP/1.0" 200 4940
django.server | "GET /favicon.ico HTTP/1.0" 500 145
django.server | "POST /login/?next=/default/dashboard/ HTTP/1.0" 200 4884
django.server | "GET /favicon.ico HTTP/1.0" 500 145
django.server | "POST /login/?next=/default/dashboard/ HTTP/1.0" 200 4884
django.server | "GET /favicon.ico HTTP/1.0" 500 145
django.server | "POST /login/?next=/default/dashboard/ HTTP/1.0" 302 0
django.server | "GET /default/dashboard/ HTTP/1.0" 500 145
django.server | "GET /favicon.ico HTTP/1.0" 500 145
Steps To Reproduce
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: