Fastapi python issue and libgl.so
wasimo420lol
HOBBYOP

3 months ago

Hello i am experiencing and issue when deploying a fastapi service it returns a libgl.so issue

$10 Bounty

13 Replies

3 months ago

Can you provide a screenshot of the error?


wasimo420lol
HOBBYOP

3 months ago

One sec ama get onto my desktop


3 months ago

your app needs a missing package in the container. Add libgl1 to your dockerfile and then re deploy


wasimo420lol
HOBBYOP

3 months ago

(no markdown available for this content)


wasimo420lol
HOBBYOP

3 months ago

Okay i got my hands on the logs


wasimo420lol
HOBBYOP

3 months ago

My first guesses are that i need to download some linux deps


wasimo420lol
HOBBYOP

3 months ago

Since this uses fastapi and tensorflow and numpy


wasimo420lol
HOBBYOP

3 months ago

Basically this is a moderation service that runs next to a bun api it checks for swear words and it detects nudity and gore in images in an asynchronous manner


3 months ago

As I said your app has missing packages

add RAILPACK_DEPLOY_APT_PACKAGES=libgl1 libglib2.0-0 to railpack and redeploy


wasimo420lol
HOBBYOP

3 months ago

Hmm how do i add them?


wasimo420lol
HOBBYOP

3 months ago

Do i like attach some sort of build file?


3 months ago

Environment variables.


wasimo420lol
HOBBYOP

3 months ago

Thank you for your help i figured it out 🤍


Welcome!

Sign in to your Railway account to join the conversation.

Loading...