error log attached
Traceback with variables (most recent call last):
File "apps/frappe/frappe/utils/background_jobs.py", line 221, in execute_job
retval = method(*kwargs)
site = 'erp.jas'
method = <function execute at 0x7f0bdbf2c550>
event = None
job_name = 'pdf_on_submit.attach_pdf.execute'
kwargs = {'doctype': 'Quotation', 'name': 'SAL-QTN-2024-00001-4', 'title': 'Grant Plastics Ltd.', 'lang': 'en', 'show_progress': False, 'auto_name': None, 'print_format': 'Quotation_Jas', 'letter_head': None}
user = 'Administrator'
is_async = True
retry = 0
retval = None
method_name = 'pdf_on_submit.attach_pdf.execute'
before_job_task = 'frappe.monitor.start'
File "apps/pdf_on_submit/pdf_on_submit/attach_pdf.py", line 95, in execute
pdf_data = get_pdf_data(doctype, name, print_format, letter_head)
title = 'Grant Plastics Ltd.'
lang = 'en'
show_progress = False
auto_name = None
print_format = 'Quotation_Jas'
letter_head = None
publish_progress = <function execute..publish_progress at 0x7f0bdbf511b0>
doctype_folder = 'Home/Quotation'
title_folder = 'Home/Quotation/Grant Plastics Ltd.'
target_folder = 'Home/Quotation/Grant Plastics Ltd.'
doctype = 'Quotation'
name = 'SAL-QTN-2024-00001-4'
File "apps/pdf_on_submit/pdf_on_submit/attach_pdf.py", line 130, in get_pdf_data
return frappe.utils.pdf.get_pdf(html)
doctype = 'Quotation'
name = 'SAL-QTN-2024-00001-4'
print_format = 'Quotation_Jas'
letterhead = None
html = '\n\n\n\t\n\t\n\t<title>Grant Plastics Ltd.</title>\n\t\n\t\n\t\n\t\t<style>\n\t\t@media screen {\n\t.print-format-gutter {\n\t\tbackground-color: #d1d8dd;\n\t\tpadding: 30px 0px;\n\t}\n\t.print-format {\n\t\tbackground-color: white;\n\t\tborder-radius: 8px;\n\t\tmax-width: 8.3in;\n\t\tmin-height: 11.69in;\n\t\tpadding: 0.75in;\n\t\tmargin: auto;\n\t\tcolor: var(--gray-900);\n\t}\n\n\t.print-format.landscape {\n\t\tmax-width: 11.69in;\n\t\tpadding: 0.2in;\n\t}\n\n\t.page-break {\n\t\t/ padding: 15px 0px; /\n\t\tborder-bottom: 1px dashed #888;\n\t}\n\n\t/ .page-break:first-child {\n\t\tpadding-top: 0px;\n\t} /\n\n\t.page-break:last-child {\n\t\tborder-bottom: 0px;\n\t}\n\n\t/ mozilla hack for images in table /...
File "apps/frappe/frappe/utils/pdf.py", line 90, in get_pdf
filedata = pdfkit.from_string(html, options=options or {}, verbose=True)
html = '\n\n\n\n\n<title>Grant Plastics Ltd.</title>\n\n\n<style>\n\t\t@media screen {\n\t.print-format-gutter {\n\t\tbackground-color: #d1d8dd;\n\t\tpadding: 30px 0px;\n\t}\n\t.print-format {\n\t\tbackground-color: white;\n\t\tborder-radius: 8px;\n\t\tmax-width: 8.3in;\n\t\tmin-height: 11.69in;\n\t\tpadding: 0.75in;\n\t\tmargin: auto;\n\t\tcolor: var(--gray-900);\n\t}\n\n\t.print-format.landscape {\n\t\tmax-width: 11.69in;\n\t\tpadding: 0.2in;\n\t}\n\n\t.page-break {\n\t\t/ padding: 15px 0px; /\n\t\tborder-bottom: 1px dashed #888;\n\t}\n\n\t/ .page-break:first-child {\n\t\tpadding-top: 0px;\n\t} /\n\n\t.page-break:last-child {\n\t\tborder-bottom: 0px;\n\t}\n\n\t/ mozilla hack for images in table /...
options = {'print-media-type': None, 'background': None, 'images': None, 'quiet': None, 'encoding': 'UTF-8', 'margin-right': '5mm', 'margin-left': '5mm', 'header-html': '/tmp/frappe-pdf-900bdb66b12820a612c100078e4ab5a4735301071bf95e1f70027d1b.html', 'footer-html': '/tmp/frappe-pdf-66a88ee6cedbf27bfbe08e8a0c0508fbb01d3f5580c654847a2fbd13.html', 'page-width': '210mm', 'page-height': '297mm', 'margin-top': '35mm', 'margin-bottom': '23mm', 'page-size': 'A4', 'disable-javascript': '', 'disable-local-file-access': '', 'disable-smart-shrinking': ''}
output = None
filedata = ''
File "env/lib/python3.10/site-packages/pdfkit/api.py", line 75, in from_string
return r.to_pdf(output_path)
input = '\n\n\n\n\n<title>Grant Plastics Ltd.</title>\n\n\n<style>\n\t\t@media screen {\n\t.print-format-gutter {\n\t\tbackground-color: #d1d8dd;\n\t\tpadding: 30px 0px;\n\t}\n\t.print-format {\n\t\tbackground-color: white;\n\t\tborder-radius: 8px;\n\t\tmax-width: 8.3in;\n\t\tmin-height: 11.69in;\n\t\tpadding: 0.75in;\n\t\tmargin: auto;\n\t\tcolor: var(--gray-900);\n\t}\n\n\t.print-format.landscape {\n\t\tmax-width: 11.69in;\n\t\tpadding: 0.2in;\n\t}\n\n\t.page-break {\n\t\t/ padding: 15px 0px; /\n\t\tborder-bottom: 1px dashed #888;\n\t}\n\n\t/ .page-break:first-child {\n\t\tpadding-top: 0px;\n\t} /\n\n\t.page-break:last-child {\n\t\tborder-bottom: 0px;\n\t}\n\n\t/ mozilla hack for images in table /...
output_path = None
options = {'print-media-type': None, 'background': None, 'images': None, 'quiet': None, 'encoding': 'UTF-8', 'margin-right': '5mm', 'margin-left': '5mm', 'header-html': '/tmp/frappe-pdf-900bdb66b12820a612c100078e4ab5a4735301071bf95e1f70027d1b.html', 'footer-html': '/tmp/frappe-pdf-66a88ee6cedbf27bfbe08e8a0c0508fbb01d3f5580c654847a2fbd13.html', 'page-width': '210mm', 'page-height': '297mm', 'margin-top': '35mm', 'margin-bottom': '23mm', 'page-size': 'A4', 'disable-javascript': '', 'disable-local-file-access': '', 'disable-smart-shrinking': ''}
toc = None
cover = None
css = None
configuration = None
cover_first = False
verbose = True
r = <pdfkit.pdfkit.PDFKit object at 0x7f0bda59fd30>
File "env/lib/python3.10/site-packages/pdfkit/pdfkit.py", line 201, in to_pdf
self.handle_error(exit_code, stderr)
self = <pdfkit.pdfkit.PDFKit object at 0x7f0bda59fd30>
path = None
args = ['/usr/local/bin/wkhtmltopdf', '--print-media-type', '--background', '--images', '--quiet', '--encoding', 'UTF-8', '--margin-right', '5mm', '--margin-left', '5mm', '--header-html', '/tmp/frappe-pdf-900bdb66b12820a612c100078e4ab5a4735301071bf95e1f70027d1b.html', '--footer-html', '/tmp/frappe-pdf-66a88ee6cedbf27bfbe08e8a0c0508fbb01d3f5580c654847a2fbd13.html', '--page-width', '210mm', '--page-height', '297mm', '--margin-top', '35mm', '--margin-bottom', '23mm', '--page-size', 'A4', '--disable-javascript', '--disable-local-file-access', '--disable-smart-shrinking', '-', '-']
result = <Popen: returncode: 1 args: ['/usr/local/bin/wkhtmltopdf', '--print-media-ty...>
input = b'\n\n\n\n\n<title>Grant Plastics Ltd.</title>\n\n\n<style>\n\t\t@media screen {\n\t.print-format-gutter {\n\t\tbackground-color: #d1d8dd;\n\t\tpadding: 30px 0px;\n\t}\n\t.print-format {\n\t\tbackground-color: white;\n\t\tborder-radius: 8px;\n\t\tmax-width: 8.3in;\n\t\tmin-height: 11.69in;\n\t\tpadding: 0.75in;\n\t\tmargin: auto;\n\t\tcolor: var(--gray-900);\n\t}\n\n\t.print-format.landscape {\n\t\tmax-width: 11.69in;\n\t\tpadding: 0.2in;\n\t}\n\n\t.page-break {\n\t\t/ padding: 15px 0px; /\n\t\tborder-bottom: 1px dashed #888;\n\t}\n\n\t/ .page-break:first-child {\n\t\tpadding-top: 0px;\n\t} /\n\n\t.page-break:last-child {\n\t\tborder-bottom: 0px;\n\t}\n\n\t/ mozilla hack for images in table */...
stdout = b'%PDF-1.4\n1 0 obj\n<<\n/Title (\xfe\xff\x00G\x00r\x00a\x00n\x00t\x00 \x00P\x00l\x00a\x00s\x00t\x00i\x00c\x00s\x00 \x00L\x00t\x00d\x00.)\n/Creator (\xfe\xff\x00w\x00k\x00h\x00t\x00m\x00l\x00t\x00o\x00p\x00d\x00f\x00 \x000\x00.\x001\x002\x00.\x006\x00.\x001)\n/Producer (\xfe\xff\x00Q\x00t\x00 \x004\x00.\x008\x00.\x007)\n/CreationDate (D:20241223012136+05'30')\n>>\nendobj\n3 0 obj\n<<\n/Type /ExtGState\n/SA true\n/SM 0.02\n/ca 1.0\n/CA 1.0\n/AIS false\n/SMask /None>>\nendobj\n4 0 obj\n[/Pattern /DeviceRGB]\nendobj\n10 0 obj\n<<\n/Type /Annot\n/Subtype /Link\n/Rect [46.5000000 728.750000 88.5000000 743 ]\n/Border [0 0 0]\n/A <<\n/Type /Action\n/S /URI\n/URI (http://erp.jas/api/method/frappe.utils.print_format.download_pdf?doctype=Quotation&name=SAL-QTN-2024-00001-4&format=Quotation_Jas&letterhead=None&no_letterhead=0&_lang=en&key=None)\n>>\n>>\nendobj\n12 0 obj\n<<\n/Type /Catalog\n/Pages 2 0 R\n>>\nendobj\n5 0 obj\n<<\n/Type /Page\n/Parent 2 0 R\n/Contents 13 0 R\n/Resources 15 0 R...
stderr = 'Exit with code 1 due to network error: HostNotFoundError\n'
exit_code = 1
File "env/lib/python3.10/site-packages/pdfkit/pdfkit.py", line 155, in handle_error
raise IOError('wkhtmltopdf reported an error:\n' + stderr)
exit_code = 1
stderr = 'Exit with code 1 due to network error: HostNotFoundError\n'
stderr_lines = ['Exit with code 1 due to network error: HostNotFoundError']
builtins.OSError: wkhtmltopdf reported an error:
Exit with code 1 due to network error: HostNotFoundError
error log attached
Traceback with variables (most recent call last):
File "apps/frappe/frappe/utils/background_jobs.py", line 221, in execute_job
retval = method(*kwargs)
site = 'erp.jas'
method = <function execute at 0x7f0bdbf2c550>
event = None
job_name = 'pdf_on_submit.attach_pdf.execute'
kwargs = {'doctype': 'Quotation', 'name': 'SAL-QTN-2024-00001-4', 'title': 'Grant Plastics Ltd.', 'lang': 'en', 'show_progress': False, 'auto_name': None, 'print_format': 'Quotation_Jas', 'letter_head': None}
user = 'Administrator'
is_async = True
retry = 0
retval = None
method_name = 'pdf_on_submit.attach_pdf.execute'
before_job_task = 'frappe.monitor.start'
File "apps/pdf_on_submit/pdf_on_submit/attach_pdf.py", line 95, in execute
pdf_data = get_pdf_data(doctype, name, print_format, letter_head)
title = 'Grant Plastics Ltd.'
lang = 'en'
show_progress = False
auto_name = None
print_format = 'Quotation_Jas'
letter_head = None
publish_progress = <function execute..publish_progress at 0x7f0bdbf511b0>
doctype_folder = 'Home/Quotation'
title_folder = 'Home/Quotation/Grant Plastics Ltd.'
target_folder = 'Home/Quotation/Grant Plastics Ltd.'
doctype = 'Quotation'
name = 'SAL-QTN-2024-00001-4'
File "apps/pdf_on_submit/pdf_on_submit/attach_pdf.py", line 130, in get_pdf_data
return frappe.utils.pdf.get_pdf(html)
doctype = 'Quotation'
name = 'SAL-QTN-2024-00001-4'
print_format = 'Quotation_Jas'
letterhead = None
html = '\n\n\n\t\n\t\n\t<title>Grant Plastics Ltd.</title>\n\t\n\t\n\t\n\t\t<style>\n\t\t@media screen {\n\t.print-format-gutter {\n\t\tbackground-color: #d1d8dd;\n\t\tpadding: 30px 0px;\n\t}\n\t.print-format {\n\t\tbackground-color: white;\n\t\tborder-radius: 8px;\n\t\tmax-width: 8.3in;\n\t\tmin-height: 11.69in;\n\t\tpadding: 0.75in;\n\t\tmargin: auto;\n\t\tcolor: var(--gray-900);\n\t}\n\n\t.print-format.landscape {\n\t\tmax-width: 11.69in;\n\t\tpadding: 0.2in;\n\t}\n\n\t.page-break {\n\t\t/ padding: 15px 0px; /\n\t\tborder-bottom: 1px dashed #888;\n\t}\n\n\t/ .page-break:first-child {\n\t\tpadding-top: 0px;\n\t} /\n\n\t.page-break:last-child {\n\t\tborder-bottom: 0px;\n\t}\n\n\t/ mozilla hack for images in table /...
File "apps/frappe/frappe/utils/pdf.py", line 90, in get_pdf
filedata = pdfkit.from_string(html, options=options or {}, verbose=True)
html = '\n\n\n\n\n<title>Grant Plastics Ltd.</title>\n\n\n<style>\n\t\t@media screen {\n\t.print-format-gutter {\n\t\tbackground-color: #d1d8dd;\n\t\tpadding: 30px 0px;\n\t}\n\t.print-format {\n\t\tbackground-color: white;\n\t\tborder-radius: 8px;\n\t\tmax-width: 8.3in;\n\t\tmin-height: 11.69in;\n\t\tpadding: 0.75in;\n\t\tmargin: auto;\n\t\tcolor: var(--gray-900);\n\t}\n\n\t.print-format.landscape {\n\t\tmax-width: 11.69in;\n\t\tpadding: 0.2in;\n\t}\n\n\t.page-break {\n\t\t/ padding: 15px 0px; /\n\t\tborder-bottom: 1px dashed #888;\n\t}\n\n\t/ .page-break:first-child {\n\t\tpadding-top: 0px;\n\t} /\n\n\t.page-break:last-child {\n\t\tborder-bottom: 0px;\n\t}\n\n\t/ mozilla hack for images in table /...
options = {'print-media-type': None, 'background': None, 'images': None, 'quiet': None, 'encoding': 'UTF-8', 'margin-right': '5mm', 'margin-left': '5mm', 'header-html': '/tmp/frappe-pdf-900bdb66b12820a612c100078e4ab5a4735301071bf95e1f70027d1b.html', 'footer-html': '/tmp/frappe-pdf-66a88ee6cedbf27bfbe08e8a0c0508fbb01d3f5580c654847a2fbd13.html', 'page-width': '210mm', 'page-height': '297mm', 'margin-top': '35mm', 'margin-bottom': '23mm', 'page-size': 'A4', 'disable-javascript': '', 'disable-local-file-access': '', 'disable-smart-shrinking': ''}
output = None
filedata = ''
File "env/lib/python3.10/site-packages/pdfkit/api.py", line 75, in from_string
return r.to_pdf(output_path)
input = '\n\n\n\n\n<title>Grant Plastics Ltd.</title>\n\n\n<style>\n\t\t@media screen {\n\t.print-format-gutter {\n\t\tbackground-color: #d1d8dd;\n\t\tpadding: 30px 0px;\n\t}\n\t.print-format {\n\t\tbackground-color: white;\n\t\tborder-radius: 8px;\n\t\tmax-width: 8.3in;\n\t\tmin-height: 11.69in;\n\t\tpadding: 0.75in;\n\t\tmargin: auto;\n\t\tcolor: var(--gray-900);\n\t}\n\n\t.print-format.landscape {\n\t\tmax-width: 11.69in;\n\t\tpadding: 0.2in;\n\t}\n\n\t.page-break {\n\t\t/ padding: 15px 0px; /\n\t\tborder-bottom: 1px dashed #888;\n\t}\n\n\t/ .page-break:first-child {\n\t\tpadding-top: 0px;\n\t} /\n\n\t.page-break:last-child {\n\t\tborder-bottom: 0px;\n\t}\n\n\t/ mozilla hack for images in table /...
output_path = None
options = {'print-media-type': None, 'background': None, 'images': None, 'quiet': None, 'encoding': 'UTF-8', 'margin-right': '5mm', 'margin-left': '5mm', 'header-html': '/tmp/frappe-pdf-900bdb66b12820a612c100078e4ab5a4735301071bf95e1f70027d1b.html', 'footer-html': '/tmp/frappe-pdf-66a88ee6cedbf27bfbe08e8a0c0508fbb01d3f5580c654847a2fbd13.html', 'page-width': '210mm', 'page-height': '297mm', 'margin-top': '35mm', 'margin-bottom': '23mm', 'page-size': 'A4', 'disable-javascript': '', 'disable-local-file-access': '', 'disable-smart-shrinking': ''}
toc = None
cover = None
css = None
configuration = None
cover_first = False
verbose = True
r = <pdfkit.pdfkit.PDFKit object at 0x7f0bda59fd30>
File "env/lib/python3.10/site-packages/pdfkit/pdfkit.py", line 201, in to_pdf
self.handle_error(exit_code, stderr)
self = <pdfkit.pdfkit.PDFKit object at 0x7f0bda59fd30>
path = None
args = ['/usr/local/bin/wkhtmltopdf', '--print-media-type', '--background', '--images', '--quiet', '--encoding', 'UTF-8', '--margin-right', '5mm', '--margin-left', '5mm', '--header-html', '/tmp/frappe-pdf-900bdb66b12820a612c100078e4ab5a4735301071bf95e1f70027d1b.html', '--footer-html', '/tmp/frappe-pdf-66a88ee6cedbf27bfbe08e8a0c0508fbb01d3f5580c654847a2fbd13.html', '--page-width', '210mm', '--page-height', '297mm', '--margin-top', '35mm', '--margin-bottom', '23mm', '--page-size', 'A4', '--disable-javascript', '--disable-local-file-access', '--disable-smart-shrinking', '-', '-']
result = <Popen: returncode: 1 args: ['/usr/local/bin/wkhtmltopdf', '--print-media-ty...>
input = b'\n\n\n\n\n<title>Grant Plastics Ltd.</title>\n\n\n<style>\n\t\t@media screen {\n\t.print-format-gutter {\n\t\tbackground-color: #d1d8dd;\n\t\tpadding: 30px 0px;\n\t}\n\t.print-format {\n\t\tbackground-color: white;\n\t\tborder-radius: 8px;\n\t\tmax-width: 8.3in;\n\t\tmin-height: 11.69in;\n\t\tpadding: 0.75in;\n\t\tmargin: auto;\n\t\tcolor: var(--gray-900);\n\t}\n\n\t.print-format.landscape {\n\t\tmax-width: 11.69in;\n\t\tpadding: 0.2in;\n\t}\n\n\t.page-break {\n\t\t/ padding: 15px 0px; /\n\t\tborder-bottom: 1px dashed #888;\n\t}\n\n\t/ .page-break:first-child {\n\t\tpadding-top: 0px;\n\t} /\n\n\t.page-break:last-child {\n\t\tborder-bottom: 0px;\n\t}\n\n\t/ mozilla hack for images in table */...
stdout = b'%PDF-1.4\n1 0 obj\n<<\n/Title (\xfe\xff\x00G\x00r\x00a\x00n\x00t\x00 \x00P\x00l\x00a\x00s\x00t\x00i\x00c\x00s\x00 \x00L\x00t\x00d\x00.)\n/Creator (\xfe\xff\x00w\x00k\x00h\x00t\x00m\x00l\x00t\x00o\x00p\x00d\x00f\x00 \x000\x00.\x001\x002\x00.\x006\x00.\x001)\n/Producer (\xfe\xff\x00Q\x00t\x00 \x004\x00.\x008\x00.\x007)\n/CreationDate (D:20241223012136+05'30')\n>>\nendobj\n3 0 obj\n<<\n/Type /ExtGState\n/SA true\n/SM 0.02\n/ca 1.0\n/CA 1.0\n/AIS false\n/SMask /None>>\nendobj\n4 0 obj\n[/Pattern /DeviceRGB]\nendobj\n10 0 obj\n<<\n/Type /Annot\n/Subtype /Link\n/Rect [46.5000000 728.750000 88.5000000 743 ]\n/Border [0 0 0]\n/A <<\n/Type /Action\n/S /URI\n/URI (http://erp.jas/api/method/frappe.utils.print_format.download_pdf?doctype=Quotation&name=SAL-QTN-2024-00001-4&format=Quotation_Jas&letterhead=None&no_letterhead=0&_lang=en&key=None)\n>>\n>>\nendobj\n12 0 obj\n<<\n/Type /Catalog\n/Pages 2 0 R\n>>\nendobj\n5 0 obj\n<<\n/Type /Page\n/Parent 2 0 R\n/Contents 13 0 R\n/Resources 15 0 R...
stderr = 'Exit with code 1 due to network error: HostNotFoundError\n'
exit_code = 1
File "env/lib/python3.10/site-packages/pdfkit/pdfkit.py", line 155, in handle_error
raise IOError('wkhtmltopdf reported an error:\n' + stderr)
exit_code = 1
stderr = 'Exit with code 1 due to network error: HostNotFoundError\n'
stderr_lines = ['Exit with code 1 due to network error: HostNotFoundError']
builtins.OSError: wkhtmltopdf reported an error:
Exit with code 1 due to network error: HostNotFoundError