Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20006

Failed to export the main home page to PDF

    XMLWordPrintable

Details

    • Bug
    • Resolution: Solved By
    • Major
    • None
    • 14.6-rc-1
    • Export - PDF
    • None
    • Unknown
    • N/A
    • N/A

    Description

      The export fail and the job log.xml:

      <org.xwiki.logging.event.BeginLogEvent>
        <marker class="org.xwiki.logging.marker.BeginTranslationMarker">
          <name>job.log.beginWithId</name>
          <references class="linked-hash-set">
            <org.slf4j.helpers.BasicMarker>
              <name>xwiki.begin</name>
              <referenceList class="java.util.concurrent.CopyOnWriteArrayList" serialization="custom">
                <java.util.concurrent.CopyOnWriteArrayList>
                  <default/>
                  <int>0</int>
                </java.util.concurrent.CopyOnWriteArrayList>
              </referenceList>
            </org.slf4j.helpers.BasicMarker>
          </references>
          <translationKey>job.log.beginWithId</translationKey>
        </marker>
        <message>Starting job of type [{}] with identifier [{}]</message>
        <argumentArray>
          <string>export/pdf</string>
          <java.util.Arrays_-ArrayList>
            <a class="string-array">
              <string>export</string>
              <string>pdf</string>
              <string>1657714066959-606</string>
            </a>
          </java.util.Arrays_-ArrayList>
        </argumentArray>
        <level>INFO</level>
        <timeStamp>1657714066965</timeStamp>
      </org.xwiki.logging.event.BeginLogEvent>
      <org.xwiki.logging.event.LogEvent>
        <level>ERROR</level>
        <timeStamp>1657714071162</timeStamp>
        <message>Exception thrown during job execution</message>
        <marker class="org.xwiki.logging.marker.TranslationMarker">
          <name>xwiki.translation</name>
          <translationKey>job.log.exception</translationKey>
        </marker>
        <throwable class="com.github.kklisura.cdt.services.exceptions.ChromeDevToolsInvocationException">
          <detailMessage>Execution context was destroyed.</detailMessage>
          <stackTrace>
            <trace>com.github.kklisura.cdt.services.impl.ChromeDevToolsServiceImpl.invoke(ChromeDevToolsServiceImpl.java:172)</trace>
            <trace>com.github.kklisura.cdt.services.invocation.CommandInvocationHandler.invoke(CommandInvocationHandler.java:87)</trace>
            <trace>com.sun.proxy.$Proxy198.evaluate(Unknown Source)</trace>
            <trace>org.xwiki.export.pdf.internal.chrome.ChromeManager.waitForPageReady(ChromeManager.java:205)</trace>
            <trace>org.xwiki.export.pdf.internal.chrome.ChromeManager.navigate(ChromeManager.java:191)</trace>
            <trace>org.xwiki.export.pdf.internal.docker.DockerPDFPrinter.print(DockerPDFPrinter.java:167)</trace>
            <trace>org.xwiki.export.pdf.internal.docker.DockerPDFPrinter.print(DockerPDFPrinter.java:60)</trace>
            <trace>org.xwiki.export.pdf.internal.job.PDFExportJob.saveAsPDF(PDFExportJob.java:162)</trace>
            <trace>org.xwiki.export.pdf.internal.job.PDFExportJob.runInternal(PDFExportJob.java:115)</trace>
            <trace>org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:243)</trace>
            <trace>org.xwiki.job.AbstractJob.run(AbstractJob.java:220)</trace>
            <trace>java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)</trace>
            <trace>java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)</trace>
            <trace>java.base/java.lang.Thread.run(Thread.java:829)</trace>
          </stackTrace>
        </throwable>
      </org.xwiki.logging.event.LogEvent>
      <org.xwiki.logging.event.EndLogEvent>
        <marker class="org.xwiki.logging.marker.EndTranslationMarker">
          <name>job.log.endWithId</name>
          <references class="linked-hash-set">
            <org.slf4j.helpers.BasicMarker>
              <name>xwiki.end</name>
              <referenceList class="java.util.concurrent.CopyOnWriteArrayList" serialization="custom">
                <java.util.concurrent.CopyOnWriteArrayList>
                  <default/>
                  <int>0</int>
                </java.util.concurrent.CopyOnWriteArrayList>
              </referenceList>
            </org.slf4j.helpers.BasicMarker>
          </references>
          <translationKey>job.log.endWithId</translationKey>
        </marker>
        <message>Finished job of type [{}] with identifier [{}]</message>
        <argumentArray>
          <string>export/pdf</string>
          <java.util.Arrays_-ArrayList>
            <a class="string-array">
              <string>export</string>
              <string>pdf</string>
              <string>1657714066959-606</string>
            </a>
          </java.util.Arrays_-ArrayList>
        </argumentArray>
        <level>INFO</level>
        <timeStamp>1657714071163</timeStamp>
      </org.xwiki.logging.event.EndLogEvent>
      

       The container logs shows:

      [0713/122013.550927:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
      [0713/122013.551034:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
      [0713/122013.551894:WARNING:dns_config_service_linux.cc(428)] Failed to read DnsConfig.
      DevTools listening on ws://0.0.0.0:9222/devtools/browser/79bd614f-692d-4dcd-ad23-b05ffee76ece
      [0713/122013.558169:ERROR:gl_factory.cc(128)] Requested GL implementation (gl=none,angle=none) not found in allowed implementations: [(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none),(gl=egl-angle,angle=swiftshader)].
      [0713/122013.560292:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.
      [0713/122013.562743:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      [0713/122013.574033:ERROR:gl_factory.cc(128)] Requested GL implementation (gl=none,angle=none) not found in allowed implementations: [(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none),(gl=egl-angle,angle=swiftshader)].
      [0713/122013.578227:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      [0713/122013.586464:ERROR:gpu_init.cc(481)] Passthrough is not supported, GL is disabled, ANGLE is 
      [0713/122022.142778:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
      [0713/122022.142868:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
      [0713/122022.142986:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
      [0713/122022.143007:WARNING:property.cc(144)] DaemonVersion: GetAndBlock: failed.
      [0713/122022.143093:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
      [0713/122022.143165:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
      [0713/122025.551243:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
      [0713/122025.551298:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
      [0713/122025.551365:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
      [0713/122025.551377:WARNING:property.cc(144)] DaemonVersion: GetAndBlock: failed.
      [0713/122025.551439:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
      [0713/122025.551495:ERROR:bus.cc(398)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
      

       

       

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: