Hei!
We started to encounter this error out of nowhere, while running Prince in docker.
Couple of weeks ago it didn't have any problems, and it currently runs fine in Production, but any new deployment will break it.
Our Dockerfile looks like this:
I understand from the other topics that the issue would be in the mismatch of the versions.
aspnet:6.0-alpine is on Alpine 3.17 while prince-12.5.1-alpine3.10-x86_64.tar.gz is on Alpine 3.10
Unfortunately, aspnet:6.0.x doesn't have an image for < Alpine 3.13, and Prince 12.5.1 doesn't have a package for anything > Alpine 3.10
We can't update the Prince package right now to newer versions (15.1, for example), because we are worried that our PDF templates will suffer changes that we won't have time to fix.
And we can't downgrade the Net version of our solution Either.
Is there a way to fix this issue in this version?
We started to encounter this error out of nowhere, while running Prince in docker.
*** Mercury runtime: caught strange segmentation violation ***
Couple of weeks ago it didn't have any problems, and it currently runs fine in Production, but any new deployment will break it.
Our Dockerfile looks like this:
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine AS base
RUN mkdir prince
WORKDIR /prince
RUN apk add --no-cache curl
RUN curl https://www.princexml.com/download/prince-12.5.1-alpine3.10-x86_64.tar.gz -o prince.tar.gz
RUN tar -zxvf prince.tar.gz
#Installs in /usr/local by default
WORKDIR /prince/prince-12.5.1-alpine3.10-x86_64
RUN /bin/echo | ./install.sh
#Remove Prince install
WORKDIR /
RUN rm -rf /prince
#Prince dependencies
RUN apk add --no-cache \
libxml2 \
pixman \
tiff \
giflib \
libpng \
lcms2 \
libjpeg-turbo \
fontconfig \
freetype \
libgomp \
libcrypto1.1
I understand from the other topics that the issue would be in the mismatch of the versions.
aspnet:6.0-alpine is on Alpine 3.17 while prince-12.5.1-alpine3.10-x86_64.tar.gz is on Alpine 3.10
Unfortunately, aspnet:6.0.x doesn't have an image for < Alpine 3.13, and Prince 12.5.1 doesn't have a package for anything > Alpine 3.10
We can't update the Prince package right now to newer versions (15.1, for example), because we are worried that our PDF templates will suffer changes that we won't have time to fix.
And we can't downgrade the Net version of our solution Either.
Is there a way to fix this issue in this version?