Hi everyone,
The following error has repeated many many times in my certs-stdout.log
file.
2020-07-09 01:11:20,050 CRITICAL 104758 [certificates.gen_cert] gen_cert.py:264 - I/O error (2): No such file or directory opening /edx/app/certs/certificates/template_data/v1-cert-templates/certificate-template-Arjang-Cert.pdf
I tried to create that file with this command and I get the result you can see here:
username@hostname:~$ sudo -u www-data /edx/bin/python.certs ~certs/certificates/create_pdfs.py --course-id 'course-v1:Arjang+Cert+q3_98' --no-upload
PdfReadWarning: Xref table not zero-indexed. ID numbers for objects will not be corrected. [pdf.py:1503]
2020-07-27 17:16:29,153 CRITICAL 21229 [certificates.gen_cert] gen_cert.py:264 - I/O error (2): No such file or directory opening /edx/app/certs/certificates/template_data/v1-cert-templates/certificate-template-Arjang-Cert.pdf
Traceback (most recent call last):
File "/edx/app/certs/certificates/create_pdfs.py", line 163, in <module>
main()
File "/edx/app/certs/certificates/create_pdfs.py", line 118, in main
issued_date=args.issued_date,
File "/edx/app/certs/certificates/gen_cert.py", line 262, in __init__
self.template_pdf = PdfFileReader(file(template_pdf_filename, "rb"))
IOError: [Errno 2] No such file or directory: '/edx/app/certs/certificates/template_data/v1-cert-templates/certificate-template-Arjang-Cert.pdf'
Seems it needs what I asked to be created!
Could you help me to fix this, please?