Issue with cfzip?

Trying to port a site from CF to Lucee. We have a cfzip function that zips
media files and makes the zip available to download using a link. If the
file to be zipped is very small it seems to work fine. But a typical media
file is 6 megs and even though the zip tag creates the file anything after
the tag on the page does not display and we are getting a generic error
message instead of the apps error trapping and display. I figured it was
timing out so I set timeout in admin to 5 minutes and it makes no
difference. On the CF version of the site the tag executes in 18 seconds

I have tried every setting to get debug output on the page like with CF and
it simply does not display anything. cferror tags in application.cfm are
also ignored.

here is the generic error we are getting:

Runtime Error * Description: *An application error occurred on the
server. The current custom error settings for this application prevent the
details of the application error from being viewed remotely (for security
reasons). It could, however, be viewed by browsers running on the local
server machine.

Can anyone tell me how to set up lucee to put full debug output at the
bottom of the page like we can easily do in CF?

And is there a reason why cfzip would be ignoring request timeout settings?


Update … if I try to run the cfzip code standalone debug output says
Unexpected end of ZLIB input stream

Can anybody tell me what this means and what can be done to prevent it?