DECA-61: Generating a PDF sometimes causes the server to time out.

Metadata

Source
DECA-61
Type
Bug
Priority
Blocker
Status
Closed
Resolution
Cannot Reproduce
Assignee
Colin Clark
Reporter
Michelle D'Souza
Created
2010-03-30T15:04:32.000-0400
Updated
2012-06-01T10:20:24.989-0400
Versions
  1. 0.3
  2. 0.4
Fixed Versions
  1. 0.5
Component
  1. Export
  2. Server

Description

Generating a PDF with many pages will take so long that the server times out. We should be running the pdf generation in the background - this will fix the issue of the server time out.

Comments

  • Jonathan Hung commented 2010-07-15T11:31:44.040-0400

    Still an issue. Time out occurred after about 5 minutes of processing.

    Ubuntu 9.10
    Firefox 3.6
    decapod-server 133:bcfed03a94c7

  • Jonathan Hung commented 2010-07-15T11:46:44.710-0400

    Here is the output:

    [... omitted, more genpdf output]

    [info] got 187 bboxes
    [note] page doesn't contain a lot of text
    [info] got 3624 bboxes
    [info] got 1737 bboxes
    [warn] graydeskew failed: too many character boxes for deskewing
    [warn] binarizer failed: too many connected components
    [warn] binclean2 failed: too many connected components
    [note] page doesn't contain a lot of text
    127.0.0.1 - - [15/Jul/2010:11:22:45] "POST /pdf/ HTTP/1.1" 200 21 "http://localhost:8080/components/capture/html/Capture.html" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.6) Gecko/20100628 Ubuntu/9.10 (karmic) Firefox/3.6.6"
    [15/Jul/2010:11:22:45] Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.6/cherrypy/_cpwsgi.py", line 79, in setapp
    s, h, b = self.get_response()
    File "/usr/lib/pymodules/python2.6/cherrypy/_cpwsgi.py", line 219, in get_response
    response = self.request.run(meth, path, qs, rproto, headers, rfile)
    File "/usr/lib/pymodules/python2.6/cherrypy/_cprequest.py", line 567, in run
    raise cherrypy.TimeoutError()
    TimeoutError

  • Justin Obara commented 2012-01-10T09:30:04.133-0500

    May have been resolved with changes to the export implemented in 0.5a (see DECA-189 and DECA-180)

  • Justin Obara commented 2012-05-25T15:42:50.987-0400

    I generated a 108 page pdf for type 1, type 2, and type 3 export and didn't have any issues with the server timing out.

  • Justin Obara commented 2012-06-01T10:20:18.247-0400

    I tried this again with a 104 page pdf. The type 2 and type 3 took over 30 minutes to complete and the server never timed out.