Uploaded image for project: 'Alfresco One Platform'
  1. Alfresco One Platform
  2. ACE-5986

Transformation not performed for pdf files

    Details

      Description

      Transformations are not performed for pdf files. Seem that ACS not sending request for pdf transformations to T-engine, thumbnail is not generated.

      1.Set this properties on false in docker compose:

      -Dlegacy.transform.service.enabled=false
      -Dlocal.transform.service.enabled=false

      2.Make sure that transform.service is set on true on docker compose:

      -Dtransform.service.enabled=true

      3.Create ACS machine and login to share.
      4.Create a site.
      5.Upload a Small size(around 200KB) .pdf file.
      6.Refresh page.

      EXPECTED: Thumbnail is generated for pdf.
      ACTUAL: Pdf file remain without thumbnail.

      • activemq logs:
        [ec2-user@ip-172-31-32-186 ~]$ docker logs stack1_activemq_1
        INFO: Loading '/opt/activemq/bin/env'
        INFO: Using java '/usr/java/default/bin/java'
        INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C)
        INFO: Creating pidfile /opt/activemq/data/activemq.pid
        Java Runtime: Oracle Corporation 1.8.0_181 /usr/java/jdk1.8.0_181/jre
          Heap sizes: current=62976k  free=58707k  max=932352k
            JVM args: -Xms64M -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/opt/activemq/conf/login.config -Dcom.sun.management.jmxremote -Djava.awt.headless=true -Djava.io.tmpdir=/opt/activemq/tmp -Dactivemq.classpath=/opt/activemq/conf:/opt/activemq/../lib/: -Dactivemq.home=/opt/activemq -Dactivemq.base=/opt/activemq -Dactivemq.conf=/opt/activemq/conf -Dactivemq.data=/opt/activemq/data
        Extensions classpath:
          [/opt/activemq/lib,/opt/activemq/lib/camel,/opt/activemq/lib/optional,/opt/activemq/lib/web,/opt/activemq/lib/extra]
        ACTIVEMQ_HOME: /opt/activemq
        ACTIVEMQ_BASE: /opt/activemq
        ACTIVEMQ_CONF: /opt/activemq/conf
        ACTIVEMQ_DATA: /opt/activemq/data
        Loading message broker from: xbean:activemq.xml
         INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@73ad2d6: startup date [Thu Sep 26 05:14:26 UTC 2019]; root of context hierarchy
         INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[/opt/activemq/data/kahadb]
         INFO | PListStore:[/opt/activemq/data/localhost/tmp_storage] started
         INFO | Apache ActiveMQ 5.15.8 (localhost, ID:7574f28bc8bd-39573-1569474868410-0:1) is starting
         INFO | Listening for connections at: tcp://7574f28bc8bd:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
         INFO | Connector openwire started
         INFO | Listening for connections at: amqp://7574f28bc8bd:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600
         INFO | Connector amqp started
         INFO | Listening for connections at: stomp://7574f28bc8bd:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600
         INFO | Connector stomp started
         INFO | Listening for connections at: mqtt://7574f28bc8bd:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600
         INFO | Connector mqtt started
         INFO | Starting Jetty server
         INFO | Creating Jetty connector
         WARN | ServletContext@o.e.j.s.ServletContextHandler@8e50104{/,null,STARTING} has uncovered http methods for path: /
         INFO | Listening for connections at ws://7574f28bc8bd:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
         INFO | Connector ws started
         INFO | Apache ActiveMQ 5.15.8 (localhost, ID:7574f28bc8bd-39573-1569474868410-0:1) started
         INFO | For help or more information please see: http://activemq.apache.org
         WARN | Store limit is 102400 mb (current store usage is 0 mb). The data directory: /opt/activemq/data/kahadb only has 41819 mb of usable space. - resetting to maximum available disk space: 41819 mb
         WARN | Temporary Store limit is 51200 mb (current store usage is 0 mb). The data directory: /opt/activemq/data only has 41819 mb of usable space. - resetting to maximum available disk space: 41819 mb
         INFO | No Spring WebApplicationInitializer types detected on classpath
         INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/
         INFO | ActiveMQ Jolokia REST API available at http://0.0.0.0:8161/api/jolokia/
         INFO | Initializing Spring FrameworkServlet 'dispatcher'
         INFO | No Spring WebApplicationInitializer types detected on classpath
         INFO | jolokia-agent: Using policy access restrictor classpath:/jolokia-access.xml

      -transform-router logs:

      [ec2-user@ip-172-31-32-186 ~]$ docker logs stack1_transform-router_1
      
        .   ____          _            __ _ _
       /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
      ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
       \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
        '  |____| .__|_| |_|_| |_\__, | / / / /
       =========|_|==============|___/=/_/_/_/
       :: Spring Boot ::        (v2.1.8.RELEASE)
      
      2019-09-26 05:14:35.941  INFO 1 --- [           main] org.alfresco.transform.Application       : Starting Application v1.1.0-RC3 on ae108a8d781c with PID 1 (/alfresco-transform-router.jar started by trouter in /)
      2019-09-26 05:14:35.955 DEBUG 1 --- [           main] org.alfresco.transform.Application       : Running with Spring Boot v2.1.8.RELEASE, Spring v5.1.9.RELEASE
      2019-09-26 05:14:35.956  INFO 1 --- [           main] org.alfresco.transform.Application       : No active profile set, falling back to default profiles: default
      2019-09-26 05:14:43.952  INFO 1 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.retry.annotation.RetryConfiguration' of type [org.springframework.retry.annotation.RetryConfiguration$$EnhancerBySpringCGLIB$$564e6bb0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
      2019-09-26 05:14:44.243  INFO 1 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$608ad38b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
      2019-09-26 05:14:45.659  INFO 1 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8095 (http)
      2019-09-26 05:14:45.808  INFO 1 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
      2019-09-26 05:14:45.808  INFO 1 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.24]
      2019-09-26 05:14:46.257  INFO 1 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
      2019-09-26 05:14:46.257  INFO 1 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 9984 ms
      2019-09-26 05:14:47.407  INFO 1 --- [           main] o.m.pooled.jms.JmsPoolConnectionFactory  : Provided ConnectionFactory implementation is JMS 2.0+ capable.
      2019-09-26 05:14:50.563  INFO 1 --- [           main] o.a.t.t.queue.GenericQueueEngineClient   : Queue Transformer IMAGEMAGICK has been instantiated with destination queue org.alfresco.transform.engine.imagemagick.acs
      2019-09-26 05:14:50.564  INFO 1 --- [           main] o.a.t.t.queue.GenericQueueEngineClient   : Queue Transformer PDF_RENDERER has been instantiated with destination queue org.alfresco.transform.engine.alfresco-pdf-renderer.acs
      2019-09-26 05:14:50.564  INFO 1 --- [           main] o.a.t.t.queue.GenericQueueEngineClient   : Queue Transformer LIBREOFFICE has been instantiated with destination queue org.alfresco.transform.engine.libreoffice.acs
      2019-09-26 05:14:50.564  INFO 1 --- [           main] o.a.t.t.queue.GenericQueueEngineClient   : Queue Transformer MISC has been instantiated with destination queue org.alfresco.transform.engine.misc.acs
      2019-09-26 05:14:50.564  INFO 1 --- [           main] o.a.t.t.queue.GenericQueueEngineClient   : Queue Transformer TIKA has been instantiated with destination queue org.alfresco.transform.engine.tika.acs
      2019-09-26 05:14:50.778  INFO 1 --- [           main] o.a.t.t.http.GenericHttpEngineClient     : HTTP Transformer IMAGEMAGICK has been instantiated with destination url http://imagemagick:8090
      2019-09-26 05:14:50.785  INFO 1 --- [           main] o.a.t.t.http.GenericHttpEngineClient     : HTTP Transformer PDF_RENDERER has been instantiated with destination url http://alfresco-pdf-renderer:8090
      2019-09-26 05:14:50.785  INFO 1 --- [           main] o.a.t.t.http.GenericHttpEngineClient     : HTTP Transformer LIBREOFFICE has been instantiated with destination url http://libreoffice:8090
      2019-09-26 05:14:50.787  INFO 1 --- [           main] o.a.t.t.http.GenericHttpEngineClient     : HTTP Transformer MISC has been instantiated with destination url http://transform-misc:8090
      2019-09-26 05:14:50.787  INFO 1 --- [           main] o.a.t.t.http.GenericHttpEngineClient     : HTTP Transformer TIKA has been instantiated with destination url http://tika:8090
      2019-09-26 05:14:54.540  INFO 1 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'taskScheduler'
      2019-09-26 05:14:54.712  INFO 1 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 3 endpoint(s) beneath base path '/actuator'
      2019-09-26 05:14:55.376  INFO 1 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8095 (http) with context path ''
      2019-09-26 05:14:55.283 ERROR 1 --- [cTaskExecutor-1] o.a.t.r.r.TransformersConfigRegistry     : Init T-Engine configs...
      2019-09-26 05:14:55.392  INFO 1 --- [cTaskExecutor-1] o.a.t.t.http.GenericHttpEngineClient     : Retrieving TransformConfig for T-Engine: IMAGEMAGICK
      2019-09-26 05:14:55.454  INFO 1 --- [           main] org.alfresco.transform.Application       : Started Application in 23.54 seconds (JVM running for 26.517)
      2019-09-26 05:14:55.511  INFO 1 --- [           main] org.alfresco.transform.Application       : Starting application components... Done
      2019-09-26 05:14:58.273  INFO 1 --- [cTaskExecutor-1] o.a.t.t.http.GenericHttpEngineClient     : Retrieving TransformConfig for T-Engine: PDF_RENDERER
      2019-09-26 05:14:58.737  INFO 1 --- [cTaskExecutor-1] o.a.t.t.http.GenericHttpEngineClient     : Retrieving TransformConfig for T-Engine: LIBREOFFICE
      2019-09-26 05:14:59.163  INFO 1 --- [cTaskExecutor-1] o.a.t.t.http.GenericHttpEngineClient     : Retrieving TransformConfig for T-Engine: MISC
      2019-09-26 05:14:59.491  INFO 1 --- [cTaskExecutor-1] o.a.t.t.http.GenericHttpEngineClient     : Retrieving TransformConfig for T-Engine: TIKA
      2019-09-26 05:15:30.212  INFO 1 --- [nio-8095-exec-2] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
      2019-09-26 05:15:30.213  INFO 1 --- [nio-8095-exec-2] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
      2019-09-26 05:15:30.248  INFO 1 --- [nio-8095-exec-2] o.s.web.servlet.DispatcherServlet        : Completed initialization in 34 ms
      2019-09-26 05:15:30.413  INFO 1 --- [nio-8095-exec-2] o.a.t.r.c.TransformersConfigController   : Request to GET '/transform/config' for all available transformers.
      2019-09-26 05:15:30.413  INFO 1 --- [nio-8095-exec-1] o.a.t.r.c.TransformersConfigController   : Request to GET '/transform/config' for all available transformers.
      2019-09-26 05:15:30.494  WARN 1 --- [nio-8095-exec-1] o.a.t.r.r.TransformersConfigRegistry     : The 'LIBREOFFICE' TEngine contains no transformer capable of handling the application/msword|application/msword route.
      2019-09-26 05:15:30.503  WARN 1 --- [nio-8095-exec-2] o.a.t.r.r.TransformersConfigRegistry     : The 'LIBREOFFICE' TEngine contains no transformer capable of handling the application/msword|application/msword route.
      2019-09-26 05:15:30.506  WARN 1 --- [nio-8095-exec-2] o.a.t.r.r.TransformersConfigRegistry     : The 'LIBREOFFICE' TEngine contains no transformer capable of handling the application/vnd.ms-outlook|application/pdf route.
      2019-09-26 05:15:30.523  WARN 1 --- [nio-8095-exec-1] o.a.t.r.r.TransformersConfigRegistry     : The 'LIBREOFFICE' TEngine contains no transformer capable of handling the application/vnd.ms-outlook|application/pdf route.
      2019-09-26 05:15:30.533  WARN 1 --- [nio-8095-exec-2] o.a.t.r.r.TransformersConfigRegistry     : The 'LIBREOFFICE' TEngine contains no transformer capable of handling the application/vnd.ms-outlook|application/pdf route.
      2019-09-26 05:15:30.534  WARN 1 --- [nio-8095-exec-2] o.a.t.r.r.TransformersConfigRegistry     : Not all steps in the route are supported by the known transformers
      2019-09-26 05:15:30.539  WARN 1 --- [nio-8095-exec-2] o.a.t.r.r.TransformersConfigRegistry     : The 'LIBREOFFICE' TEngine contains no transformer capable of handling the application/vnd.ms-outlook|application/pdf route.
      2019-09-26 05:15:30.539  WARN 1 --- [nio-8095-exec-2] o.a.t.r.r.TransformersConfigRegistry     : Not all steps in the route are supported by the known transformers
      2019-09-26 05:15:30.545  WARN 1 --- [nio-8095-exec-1] o.a.t.r.r.TransformersConfigRegistry     : The 'LIBREOFFICE' TEngine contains no transformer capable of handling the application/vnd.ms-outlook|application/pdf route.
      2019-09-26 05:15:30.553  WARN 1 --- [nio-8095-exec-1] o.a.t.r.r.TransformersConfigRegistry     : Not all steps in the route are supported by the known transformers
      2019-09-26 05:15:30.556  WARN 1 --- [nio-8095-exec-1] o.a.t.r.r.TransformersConfigRegistry     : The 'LIBREOFFICE' TEngine contains no transformer capable of handling the application/vnd.ms-outlook|application/pdf route.
      2019-09-26 05:15:30.556  WARN 1 --- [nio-8095-exec-1] o.a.t.r.r.TransformersConfigRegistry     : Not all steps in the route are supported by the known transformers
      
      • pdf-render logs:
        [ec2-user@ip-172-31-32-186 ~]$ docker logs stack1_alfresco-pdf-renderer_1
        
          .   ____          _            __ _ _
         /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
        ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
         \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
          '  |____| .__|_| |_|_| |_\__, | / / / /
         =========|_|==============|___/=/_/_/_/
         :: Spring Boot ::        (v2.1.8.RELEASE)
        
        2019-09-26 05:14:36.232  INFO 1 --- [           main] org.alfresco.transformer.Application     : Starting Application v2.1.0-RC2 on 1aaf9f5e0ebb with PID 1 (/usr/bin/alfresco-docker-alfresco-pdf-renderer.jar started by pdf in /)
        2019-09-26 05:14:36.263  INFO 1 --- [           main] org.alfresco.transformer.Application     : No active profile set, falling back to default profiles: default
        2019-09-26 05:14:43.639  INFO 1 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$7cef6663] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
        2019-09-26 05:14:44.849  INFO 1 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8090 (http)
        2019-09-26 05:14:44.976  INFO 1 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
        2019-09-26 05:14:44.977  INFO 1 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.24]
        2019-09-26 05:14:45.406  INFO 1 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
        2019-09-26 05:14:45.407  INFO 1 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 8917 ms
        2019-09-26 05:14:46.955  INFO 1 --- [           main] o.m.pooled.jms.JmsPoolConnectionFactory  : Provided ConnectionFactory implementation is JMS 2.0+ capable.
        2019-09-26 05:14:48.693  INFO 1 --- [           main] o.a.transformer.messaging.MessagingInfo  : JMS client is ENABLED, activemq.url: 'nio://activemq:61616'
        2019-09-26 05:14:49.849  INFO 1 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
        2019-09-26 05:14:52.173  INFO 1 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 3 endpoint(s) beneath base path '/actuator'
        2019-09-26 05:14:52.558  INFO 1 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8090 (http) with context path ''
        2019-09-26 05:14:52.612  INFO 1 --- [           main] org.alfresco.transformer.Application     : Started Application in 20.418 seconds (JVM running for 23.363)
        2019-09-26 05:14:52.703  INFO 1 --- [           main] org.alfresco.transformer.Application     : -----------------------------------------------------------------------------------------------------------------------------------------------------------
        2019-09-26 05:14:52.705  INFO 1 --- [           main] org.alfresco.transformer.Application     : License rights for this program may be obtained from Alfresco Software, Ltd. pursuant to a written agreement
        2019-09-26 05:14:52.705  INFO 1 --- [           main] org.alfresco.transformer.Application     : and any use of this program without such an agreement is prohibited.
        2019-09-26 05:14:52.705  INFO 1 --- [           main] org.alfresco.transformer.Application     : alfresco-pdf-renderer uses the PDFium library from Google Inc. See the license at https://pdfium.googlesource.com/pdfium/+/master/LICENSE or in /pdfium.txt
        2019-09-26 05:14:52.706  INFO 1 --- [           main] org.alfresco.transformer.Application     : -----------------------------------------------------------------------------------------------------------------------------------------------------------
        2019-09-26 05:14:52.708  INFO 1 --- [           main] org.alfresco.transformer.Application     : Starting application components... Done
        2019-09-26 05:14:58.388  INFO 1 --- [nio-8090-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
        2019-09-26 05:14:58.388  INFO 1 --- [nio-8090-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
        2019-09-26 05:14:58.399  INFO 1 --- [nio-8090-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 11 ms
        2019-09-26 05:14:58.445  INFO 1 --- [nio-8090-exec-1] o.a.t.AbstractTransformerController      : GET Transform Config.

      Found during testing on https://alfresco.testrail.net/index.php?/tests/view/7650991&group_by=cases:section_id&group_id=29153&group_order=asc

      Alfresco logs and pdf sample attached.

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs
                Reporter:
                ahodoroaba Alina Hodoroaba
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Structure Helper Panel