07-28-2023 09:57 AM
Good day All,
When I use the Insert pages into PDF feature in Alfresco, I always get an insert pdf failure prompt like the image below:
I do not know where to get the logs from to show what is happening at the backend but if anyone can direct me on how to get the logs or which file the logs reside in, I would be grateful.
I look forward to your responses.
Thanks and BR,
Ejike
07-29-2023 09:56 AM
Seems like you are using pdf-toolkit may be this one if so: https://github.com/OrderOfTheBee/alfresco-pdf-toolkit/tree/master
try enabling debug logs for following (<YourAlfrescoInstallPath>/tomcat/shared/classes/alfresco/extension/custom-log4j.properties):
log4j.logger.org.alfresco.extension.pdftoolkit=DEBUG
with abobe logger you will get any additional into in <YourAlfrescoInstallPath>/alfresco.log and <YourAlfrescoInstallPath>/tomcat/logs/catalina.out
Additionally you can check browser console and network to see if requests are being sent correctly.
07-31-2023 08:36 AM
Good day @abhinavmishra14 ,
Yes I am using the pdf-toolkit.
Find below the images of the files in the extension folder, I see the "custom-log4j.properties.sample" but must it have a "sample" at the end?
Also, please is this also the right the script to enable the DEBUG command?custom-log4j.properties file in the extension folder
custom-log4j.properties script
I look forward to your response.
Kind regards,
Ejike
07-31-2023 11:54 AM
Yes that seems correct place. No .sample from extension should be removed.
The file should just be as: custom-log4j.properties
08-07-2023 05:46 AM
Good day @abhinavmishra14 ;
I have added the debug code as instructed and I have run the "insert" operation from the alfresco pdf-toolkit but it has failed.
Please where do I get the logs from, so I can post it here for the neccessary support?
regards,
Ejike
08-07-2023 02:58 PM
Good day @abhinavmishra14 @angelborroy please can you assist me
08-07-2023 04:15 PM
Can you share the file path, name of the file and what's in it?
Usually all these logs can be checked in alfresco.log and/or catalina.out in your installation.
08-08-2023 06:59 AM
Good day,
Find below the following information you requested for:
1. File path: http://localhost:8080/share/page/document-details?nodeRef=workspace://SpacesStore/8ac94eb2-24ec-4167...
2. Name of file: alfresco_one_5.1_on-premises_reference_architecture.pdf
3. Whats in it: Documentation on Alfresco one version 5.1
I look forward to hearing from you.
Thanks,
Ejike
08-08-2023 07:33 PM
@ejike wrote:
Good day @abhinavmishra14 ;
I have added the debug code as instructed and I have run the "insert" operation from the alfresco pdf-toolkit but it has failed.
Please where do I get the logs from, so I can post it here for the neccessary support?
regards,
Ejike
Hey i was refreshing to this message. You mentioned that, you have added log configs so wanted to check about that. I don't need to know nodeRef or content of your pdf examples.
Also check the alfresco.log and catalina.out under your installation. All logs are usually written in these two files.
These files could be at following locations (possibly depending on how you have setup):
<yourInstallation>/tomcat/logs
<yoursInstallation>/alfresco.log
or
<yourInstallation>/tomcat/alfresco.log
or
<yourInstallation>/logs/alfresco.log
was asking about the path for log4 as you mentioned.
Where do you have the log4j config, please share the path.?
What loggers you have enabled?
Can you share the content of your log4j?
08-10-2023 09:32 AM
Hi @abhinavmishra14 ,
The path for the log4j config: Alfresco/tomcat/shared/classes/alfresco/extension
I have enabled debugger logs for: #log4j.logger.org.alfresco.extension.pdftoolkit=debug
Find the image below for the loggers:
I look forward to hearing from you.
Regards,
Ejike
Explore our Alfresco products with the links below. Use labels to filter content by product module.