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

Server Error 500 While trying to access pdf Report #8

Open
mrrobot1o1 opened this issue Nov 6, 2022 · 8 comments
Open

Server Error 500 While trying to access pdf Report #8

mrrobot1o1 opened this issue Nov 6, 2022 · 8 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@mrrobot1o1
Copy link

Server Error 500 While trying to access pdf Report
image

image

All Requirements are OK.

@Anof-cyber
Copy link
Collaborator

All requirements are not fulfilled. Check wkhtmltopdf is not installed.

@m3l0nbusuk
Copy link

@mrrobot1o1
Copy link
Author

@Anof-cyber It is installed.

image

@Anof-cyber
Copy link
Collaborator

The version has some issues. Can you uninstall it and install again with below url.version 0.12.6-3
https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-3/wkhtmltox-0.12.6-3.archlinux-x86_64.pkg.tar.xz

@m3l0nbusuk
Copy link

If you get error while genetrating PDF report, uninstall the wkhtmltopdf with sudo apt remove -y wkhtmltopdf and install it again manually using debian file or according to your system Dowload for here.
If you are using kali linux 64 bit install this wkhtmltopdf https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.bullseye_amd64.deb

@Anof-cyber Anof-cyber self-assigned this Nov 7, 2022
@Anof-cyber Anof-cyber added the help wanted Extra attention is needed label Nov 7, 2022
@aerasmo
Copy link

aerasmo commented Jan 18, 2023

Got the same Issue (Server Error 500). Uninstalling wkhtmltopdf then Installing the deb file worked for me.

If you get error while genetrating PDF report, uninstall the wkhtmltopdf with sudo apt remove -y wkhtmltopdf and install it again manually using debian file or according to your system Dowload for here. If you are using kali linux 64 bit install this wkhtmltopdf https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.bullseye_amd64.deb

@Anof-cyber Anof-cyber pinned this issue Feb 4, 2023
@theguly
Copy link

theguly commented Feb 10, 2023

Got the same Issue (Server Error 500). Uninstalling wkhtmltopdf then Installing the deb file worked for me.

If you get error while genetrating PDF report, uninstall the wkhtmltopdf with sudo apt remove -y wkhtmltopdf and install it again manually using debian file or according to your system Dowload for here. If you are using kali linux 64 bit install this wkhtmltopdf https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.bullseye_amd64.deb

same on my instance, installing this .deb on a kali fixes report generation

@arijitdirghanji
Copy link

If you faced same on Ubuntu Do the following :

Download wkhtmltox :
https://objects.githubusercontent.com/github-production-release-asset-2e65be/131323182/10e1d800-ab93-11ea-862e-4f209c09ebf0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240406%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240406T064132Z&X-Amz-Expires=300&X-Amz-Signature=d04ed29b234d872ce9127da4c669d47f8c06067f0e3e78736ebf320180ac1922&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=131323182&response-content-disposition=attachment%3B%20filename%3Dwkhtmltox_0.12.6-1.focal_amd64.deb&response-content-type=application%2Foctet-stream

Install Necessary libary:
sudo apt-get install xfonts-75dpi

Install the wkhtmltox package:
dpkg -i wkhtmltox_0.12.6-1.focal_amd64.deb

To Create login account:
echo "from django.contrib.auth import get_user_model; User = get_user_model(); user = User.objects.create_superuser('arijit', 'arijit@example.com', 'admin@123'); from accounts.models import Profile; Profile.objects.create(user=user, profilepic='profile/avatar-1.jpg', number=123, company='Example Inc.')" | python3 manage.py shell

*Change the username with your and password.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants