Opened 4 years ago

Closed 4 years ago

#4921 closed defect (fixed)

PDF Doc building is failing

Reported by: robe Owned by: robe
Priority: blocker Milestone: PostGIS 3.0.4
Component: documentation Version: 3.1.x
Keywords: Cc:

Description

I noticed the postgis-3.1.2.pdf did not build (not in http://postgis.net/stuff) folder, but the epub and html docs are there.

I checked the build and registers this - though it returns success:

https://debbie.postgis.net/job/PostGIS_Make_Dist/label=debbie/2499/consoleFull

19:09:16 Missing character ─
19:09:16 Missing character ─Unexpected error occured
19:09:17 Build postgis-out.pdf
19:09:47 pdflatex failed
19:09:47 Unexpected error occured
19:09:47 Error: pdflatex compilation failed

Going to check how long this has been going on and if can be fixable. Might be caused by patch updates.

Change History (3)

comment:1 by robe, 4 years ago

just noticed this little tidbit that might be the smoking gun

20:39:06 convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/421.
20:39:07 Unexpected error occured
20:39:07 convert /var/lib/jenkins/workspace/PostGIS_Make_Dist/label/debbie/38ab76ac397dbf977a409824ebb55651d63e9060/doc/html/images/st_touches-math.gif fig1.pdf
20:39:07 convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/421.

So looks like might be because of some change in st_touches

comment:2 by robe, 4 years ago

Ahah https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion

Add to <policymap>/etc/ImageMagick-6/policy.xml remakred out the one thst said "none" for rights and added this one

<policy domain="coder" rights="read | write" pnoneattern="PDF" />

Rerunning again so hopefully will fix the issue

comment:3 by robe, 4 years ago

Milestone: PostGIS 3.1.3PostGIS 3.0.4
Resolution: fixed
Status: newclosed

And it affected all pdf builds. I'll upload 3.1.2 to downloads as soon as it's pushed it out and then update the source page.

Note: See TracTickets for help on using tickets.