Install LIB error
pythonando
HOBBYOP

a year ago

I have the following start command:

sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt install libc6 && export LD_LIBRARY_PATH=/opt/glibc-2.38/lib:$LD_LIBRARY_PATH && sudo apt-get install tesseract-ocr -y && sudo apt- get install tesseract-ocr-por -y && export TESSDATA_PREFIX=/usr/share/tesseract-ocr/5/tessdata/ & celery -A core worker --beat -l INFO

But when trying to use tesseract I get this error:

tesseract: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /nix/store/apab5i73dqa09wx0q27b6fbhd1r18ihl-glibc-2.39-31/lib/libpthread.so.0)")

I've already tried installing and exporting, but without success.

11 Replies

pythonando
HOBBYOP

a year ago

3a064505-e21a-485a-9bdb-b6ffa7b1e9d4


pythonando
HOBBYOP

a year ago

1313358408958738400


a year ago

I would have to recommend you switch to a Dockerfile


pythonando
HOBBYOP

a year ago

In the same project I have two services, the web and the worker. How to use Docker file only on Worker? In a way that does not affect the web service?


a year ago

do they deploy from the same repo?


pythonando
HOBBYOP

a year ago

Yes, it's the same repository


a year ago

are these logs youve shown me for the worker or the web service?


pythonando
HOBBYOP

a year ago

It's for the celery worker


a year ago

then you can have a Dockerfile.worker and then point the worker service to use that dockerfile with RAILWAY_DOCKERFILE_PATH=Dockerfile.worker


pythonando
HOBBYOP

a year ago

Thanks, where should I add RAILWAY_DOCKERFILE_PATH=Dockerfile.worker


a year ago

as a service variable


Loading...