R
Railway14mo ago
mr_9

flask -python project with deepface/sqlalchemy database with sqllite engine

d5ff4425-758d-493d-8d72-12a89b68dbac
No description
46 Replies
Percy
Percy14mo ago
Project ID: d5ff4425-758d-493d-8d72-12a89b68dbac
Brody
Brody14mo ago
whats your start command?
mr_9
mr_9OP14mo ago
gunicorn main:app
Brody
Brody14mo ago
i asked for build logs, close enough lol
mr_9
mr_9OP14mo ago
my bad i will send 1 sec
mr_9
mr_9OP14mo ago
Brody
Brody14mo ago
send your requirements.txt file please
Brody
Brody14mo ago
try adding a nixpacks.toml file with this in it to your project
[phases.setup]
aptPkgs = ['...', 'libgl1']
[phases.setup]
aptPkgs = ['...', 'libgl1']
mr_9
mr_9OP14mo ago
ok it will take like 5 min to deploy , I will keep u updated and thank for the help by the way sadly it didn't work do u want the build and deploy logs ?
Brody
Brody14mo ago
yes please
mr_9
mr_9OP14mo ago
do u need the link to my repo ?
Brody
Brody14mo ago
truthfully, I have never had success with installing libgl in a nixpacks build and have always resorted to using a dockerfile, so please look into building you app with a dockerfile lmao sent too soon updated
mr_9
mr_9OP14mo ago
can u please send me documentation on how to build with docker
Brody
Brody14mo ago
you just write a dockerfile and place it at the root of your project and railway will use that, writing a dockerfile is not specific to railway so there's lots of great resources online I'd normally write one for you but I'm away from the computer right now, so the best I can do is answer your questions
mr_9
mr_9OP14mo ago
may u take a quick look at my repo , maybe I am doing something wrong , if there is nothing wrong i will go to online recourses to change to dockerfile
mr_9
mr_9OP14mo ago
GitHub
GitHub - amr9/Flask-server-face-recognition: this project is implem...
this project is implemented with flask serve back end with two api calls that register the person into a database made by sql alchemy with sqllite engine and another api that find the user in the d...
Brody
Brody14mo ago
I don't see anything wrong
mr_9
mr_9OP14mo ago
ok mr Brody🤝 , I will look into dockerfile if I fail, I will return to you 😂
Brody
Brody14mo ago
yes please do
mr_9
mr_9OP14mo ago
the docker file is made but a new problem came i will send the deployment logs now
Brody
Brody14mo ago
send the dockerfile too
mr_9
mr_9OP14mo ago
Brody
Brody14mo ago
not the worst dockerfile I've seen, good job can you show me a screenshot of your service metrics why is the image so small
mr_9
mr_9OP14mo ago
still ?
No description
Brody
Brody14mo ago
it looks like your app could be trying to use more than 512mb of ram just the graph isn't showing it because it happens so fast, I'd recommend upgrading to the hobby plan
mr_9
mr_9OP14mo ago
so the problem is not from dependencies (tensorflow rf)? beacause 1 of the 3 APIs work fine
Brody
Brody14mo ago
well to me those are just warnings about not having a GPU available
mr_9
mr_9OP14mo ago
ok I will try it tomorrow and give u the news thank you again for the help
Brody
Brody14mo ago
yeah let me know if you still have issues when on the hobby plan
Adam
Adam14mo ago
the model being loaded into memory is definitely the issue here. You’ll have to upgrade for sure
Floris
Floris14mo ago
tensor can run on cpu / mem fine just horribly slow if it doesnt find the cudnn drivers, i'm pretty sure it won't even try to load ur gpu
Adam
Adam14mo ago
Right, but that's not the issue here. Loading the model takes more than 512mb of RAM, their service is crashing as soon as the model is loaded
Floris
Floris14mo ago
what kinda model are they loading ?
Adam
Adam14mo ago
^
Floris
Floris14mo ago
dead link hence why i ask sorry haha i see opencv
Floris
Floris14mo ago
No description
Floris
Floris14mo ago
yeah that's rough
mr_9
mr_9OP14mo ago
i have upgraded and it fixed the problem
Brody
Brody14mo ago
awesome
mr_9
mr_9OP14mo ago
thank you all again for the help mr.Bordy this is the third time i came for you for help 😂 salute
Brody
Brody14mo ago
keep coming!
Want results from more Discord servers?
Add your server