Skip to content
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

Schedule Scan Page not Found #982

Closed
1 task done
S3ntago opened this issue Oct 16, 2023 · 14 comments · Fixed by #996
Closed
1 task done

Schedule Scan Page not Found #982

S3ntago opened this issue Oct 16, 2023 · 14 comments · Fixed by #996

Comments

@S3ntago
Copy link

S3ntago commented Oct 16, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Hello,

When I tried to set a schedule scan from Targets page https://X.X.X.X/scan/default/schedule/target/2, the application returning Server Error (500).
image

Also, same issue is happening when trying to access schedule scan from Organization page https://X.X.X.X/scan/schedule/organization/1 same error is returning "Server Error (500)"
image

I checked the code am not sure if there is something wrong with the slug related to the "Schedule Scan" or now as per the below screenshot:

Below screenshot from the following file: /usr/src/app/targetApp/templates/target/list.html

image

Expected Behavior

Access to the Schedule Scan page

Steps To Reproduce

Access https://X.X.X.X/scan/default/schedule/target/2 from Targets page
Access https://X.X.X.X/scan/schedule/organization/1 from Organization page

Environment

- reNgine: 2.0
- OS: Ubuntu
- Python: 
- Docker Engine: 
- Docker Compose: 
- Browser: Chrome

Anything else?

No response

@github-actions
Copy link

👋 Hi @S3ntago,
Issues is only for reporting a bug/feature request. Please read documentation before raising an issue https://rengine.wiki
For very limited support, questions, and discussions, please join reNgine Discord channel: https://discord.gg/azv6fzhNCE
Please include all the requested and relevant information when opening a bug report. Improper reports will be closed without any response.

@psyray
Copy link
Collaborator

psyray commented Oct 16, 2023

Duplicate of #971
Celery-beat crashed at start
Look at the issue I've posted a workaround at the bottom

@S3ntago
Copy link
Author

S3ntago commented Oct 16, 2023

@psyray this didn't fix the issue, I added DJANGO_CELERY_BEAT_TZ_AWARE = False settings to the web/reNgine/settings.py and docker-compose start celery-beat but the issue is not solved as shown below:
image
image
image

@psyray
Copy link
Collaborator

psyray commented Oct 16, 2023

@psyray this didn't fix the issue, I added DJANGO_CELERY_BEAT_TZ_AWARE = False settings to the web/reNgine/settings.py and docker-compose start celery-beat but the issue is not solved as shown below:

Could you try a docker container ls and post output

@S3ntago
Copy link
Author

S3ntago commented Oct 16, 2023

@psyray this didn't fix the issue, I added DJANGO_CELERY_BEAT_TZ_AWARE = False settings to the web/reNgine/settings.py and docker-compose start celery-beat but the issue is not solved as shown below:

Could you try a docker container ls and post output

image

@S3ntago
Copy link
Author

S3ntago commented Oct 16, 2023

@psyray Also, someone on Discord suggested that this issue because a slug for Schedule scan is missing from the code:
image
image

@psyray
Copy link
Collaborator

psyray commented Oct 16, 2023

@psyray Also, someone on Discord suggested that this issue because a slug for Schedule scan is missing from the code:

ok, did you try ?

@S3ntago
Copy link
Author

S3ntago commented Oct 16, 2023

@psyray Also, someone on Discord suggested that this issue because a slug for Schedule scan is missing from the code:

ok, did you try ?

I don't know what is the correct slug and how it should be, appreciate your help if you can.

@psyray
Copy link
Collaborator

psyray commented Oct 16, 2023

@psyray Also, someone on Discord suggested that this issue because a slug for Schedule scan is missing from the code:

ok, did you try ?

I don't know what is the correct slug and how it should be, appreciate your help if you can.

Maybe you should ask directly at harjulianto on the discord
Then if it works for you you can post solution here 😉

@S3ntago
Copy link
Author

S3ntago commented Oct 16, 2023

@psyray Also, someone on Discord suggested that this issue because a slug for Schedule scan is missing from the code:

ok, did you try ?

I don't know what is the correct slug and how it should be, appreciate your help if you can.

Maybe you should ask directly at harjulianto on the discord Then if it works for you you can post solution here 😉

I did already asked him and waiting his response, at the meantime I opened this issue here in case if anyone has the same issue or if anyone already know a solution.

So is schedule scan works fine with you ?

@psyray
Copy link
Collaborator

psyray commented Oct 16, 2023

I did already asked him and waiting his response, at the meantime I opened this issue here in case if anyone has the same issue or if anyone already know a solution.

So is schedule scan works fine with you ?

Nope, same as you, but i'm not using it so it's not my priority to investigate more at this time

@psyray
Copy link
Collaborator

psyray commented Oct 18, 2023

@S3ntago Fixed in #996
Apply modifications to your instance and page should displayed
I don't have tested the schedule scan functionality, I've only fixed the page display

@podeappa
Copy link

This fixed the schedule page for target but for organization I am still getting 500

@NadgobKhan
Copy link

This fixed the schedule page for target but for organization I am still getting 500

I am as well, but the scheduled scan is saved and can be seen in the "Scheduled Scans" tab (even though the scan doesn't actually start, check #1015 (comment) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants