Insert PDF operation failed in Alfresco community 5.0

cancel
Showing results for 
Search instead for 
Did you mean: 
ejike
Active Member II

Insert PDF operation failed in Alfresco community 5.0

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:

Insert_pdf_page_alfresco_failure.jpg

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

15 Replies
abhinavmishra14
Advanced

Re: Insert PDF operation failed in Alfresco community 5.0

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. 

 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
ejike
Active Member II

Re: Insert PDF operation failed in Alfresco community 5.0

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 foldercustom-log4j.properties file in the extension foldercustom-log4j.properties scriptcustom-log4j.properties script

I look forward to your response.

Kind regards,

Ejike

abhinavmishra14
Advanced

Re: Insert PDF operation failed in Alfresco community 5.0

Yes that seems correct place. No .sample from extension should be removed. 

The file should just be as: custom-log4j.properties

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
ejike
Active Member II

Re: Insert PDF operation failed in Alfresco community 5.0

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

ejike
Active Member II

Re: Insert PDF operation failed in Alfresco community 5.0

Good day @abhinavmishra14 @angelborroy please can you assist me

abhinavmishra14
Advanced

Re: Insert PDF operation failed in Alfresco community 5.0

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. 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
ejike
Active Member II

Re: Insert PDF operation failed in Alfresco community 5.0

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

abhinavmishra14
Advanced

Re: Insert PDF operation failed in Alfresco community 5.0


@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?

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
ejike
Active Member II

Re: Insert PDF operation failed in Alfresco community 5.0

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:

custom-log4j file.jpg

I look forward to hearing from you.

Regards,

Ejike