pip is configured with locations that require TLS/SSL

Randomly started getting this error while building a python service -
pip is configured with locations that require TLS/SSL however the ssl module in Python is not available
pip is configured with locations that require TLS/SSL however the ssl module in Python is not available
Project Id: 035791bb-b730-44dc-a2ac-2ee7394be7f0 Tried adding libbz2-dev,libffi-dev,libssl-dev
Solution:
Okay so I found the issue - As I was suspecting, there seems to be some issue with the latest nixpack base image ```ghcr.io/railwayapp/nixpacks:ubuntu-1695686596@sha256:863c9103f1ec289f4d8d56a656945c673b2d580080b96738e966e52e49463387 -> not working...
Jump to solution
55 Replies
Percy
Percy14mo ago
Project ID: 035791bb-b730-44dc-a2ac-2ee7394be7f0
akshay deo
akshay deoOP14mo ago
okay tried adding NIXPACKS_LIBS openssl, tried with installing python-3.11 in every case its failing because of same issue can someone from railway help here
akshay deo
akshay deoOP14mo ago
Railway
404 - Page not found
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Brody
Brody14mo ago
have you tried install openssl too?
akshay deo
akshay deoOP14mo ago
its already installed
Brody
Brody14mo ago
can you provide a minimal reproducible example repo that will result in this error when deployed to railway?
akshay deo
akshay deoOP14mo ago
pick any basic python code with requirements.txt
Brody
Brody14mo ago
could you provide a minimal reproducible example repo please?
akshay deo
akshay deoOP14mo ago
GitHub
GitHub - uber/Python-Sample-Application
Contribute to uber/Python-Sample-Application development by creating an account on GitHub.
Brody
Brody14mo ago
thank you but I don't think I'd exactly use minimal to describe that
angelo
angelo14mo ago
Can you deploy it for me Brody I am away from computer and I can’t test it
Brody
Brody14mo ago
I am also away from my computer, but I definitely will when back in a bit
angelo
angelo14mo ago
Akshay, you didn’t change anything with your application right?
akshay deo
akshay deoOP14mo ago
nothing from requirement and NIXPACKS perspective
angelo
angelo14mo ago
!team
Duchess
Duchess14mo ago
Thread has been flagged to Railway team by @Angelo.
Brody
Brody14mo ago
that repo fails with a completely different error, please provide a minimal reproducible example that fails with the error you are running into that repo wants python 2, its from 9 years ago
akshay deo
akshay deoOP14mo ago
if anyone from the team comes to it -
#13 3.508 exec(code, run_globals)

#13 3.509 File "/usr/lib/python3.10/ssl.py", line 99, in <module>

#13 3.509 import _ssl # if we can't import it, let the error propagate

#13 3.509 ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /nix/store/aw2fw9ag10wr9pf0qk4nk5sxi0q0bn56-glibc-2.37-8/lib/libdl.so.2)
#13 3.508 exec(code, run_globals)

#13 3.509 File "/usr/lib/python3.10/ssl.py", line 99, in <module>

#13 3.509 import _ssl # if we can't import it, let the error propagate

#13 3.509 ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /nix/store/aw2fw9ag10wr9pf0qk4nk5sxi0q0bn56-glibc-2.37-8/lib/libdl.so.2)
this is where its failing @Brody I know you are trying to help, but its not helping :). Thanks for your concern though (and I saw eye rolling reaction) you could have kept it as is 🙂 just so that you know - I have a complicated monorepo where I have customized too many things - I need someone who has access to my structure and help there
Brody
Brody14mo ago
a minimal reproducible example would help the team debug this now, and they would implement it into their testing projects to help prevent this in the future
akshay deo
akshay deoOP14mo ago
again, I have too many things customized to come up with a minimal thing and that would not reflect anything correctly
Brody
Brody14mo ago
it would be extremely helpful if you could provide that as long as it reproduces the error
akshay deo
akshay deoOP14mo ago
if you have time (as you are insisting), steps to create a minimal strucutre 1. create a nx workspace node repo 2. add a python app 3. add any basic requirement to it 4. try running I am moving my setup to another provider in-between as I can't wait someone to debug at the moment
Brody
Brody14mo ago
would you happen to be on the pro plan?
akshay deo
akshay deoOP14mo ago
yes
Brody
Brody14mo ago
okay then perfect, but the team has left for a workcation, so you would have plenty of time to slap together an example that fails in the same way your app does
akshay deo
akshay deoOP14mo ago
yeah - but my business doest care about workcation right? Perfectly working things break randomly here :). Thanks for your help though and if you feel I am being rude (sorry for that) but I am super pissd at the quality here so I will spend time on moving out of the setup asap
Brody
Brody14mo ago
this is community support, I am just a community member, and the attitude you have displayed towards me is unacceptable, if you do decide to stay please be more respectful to me and the community going forward locking thread now, a team member will unlock it if they so desire
Adam
Adam14mo ago
Hopping in here, you as a hobby plan user are not entitled to help from the Railway team in the slightest. The only assistance you have access to is community support. If you are rude to the community, you will not recieve that support If you want direct help from the team, upgrade to the Pro plan. There is no SLA, but you gain access to the support email.
akshay deo
akshay deoOP14mo ago
I am on Pro plan
Adam
Adam14mo ago
What is your team id?
akshay deo
akshay deoOP14mo ago
6f33a839-e42a-436b-b47b-c64e568c94e6
Adam
Adam14mo ago
Great thanks, looks like the bot failed to apply your Pro plan role
akshay deo
akshay deoOP14mo ago
If you are rude to the community, you will not recieve that support
Again, I was not being rude, but trying to tell Brody multiple times that he may not be able to help here and I need someone from the team to help me out as I have a complex strucutre And recreating it for the sake of it is a time waste for me as I have a few time sensitive things going on I have said sorry even before he locked the thread
Adam
Adam14mo ago
No, you were being rude. This is an issue that the team is not needed on as it's not an issue with the platform, but an issue with your configuration. This sort of issue is handled 10x a day by helpers in this server (namely, Brody)
akshay deo
akshay deoOP14mo ago
No, you were being rude.
Agreed and accepted (I have said this earlier as well)
Adam
Adam14mo ago
The team is on vacation so they will not be responding. Additionally, it's the weekend. Community support is your only resource at the moment
akshay deo
akshay deoOP14mo ago
again - this is not a config issue its a platform issue (nix pack version) as this exact thing was working till yesterday sure 👍 I have dropped an email
Adam
Adam14mo ago
Reading back on your messages so I can help, these are not reproducible steps. I currently have a node monorepo with a python service included that is running perfectly fine
akshay deo
akshay deoOP14mo ago
can you share the sample?
Adam
Adam14mo ago
No, it's private. How do you have your monorepo setup on Railway? Are all the processes running on one service or are they split out?
akshay deo
akshay deoOP14mo ago
okay can you try to re-deploy that now? or you have done it in last 2 hours? one app per service
Adam
Adam14mo ago
I pushed a commit after reading this thread, everything is working fine And just your python service is failing?
akshay deo
akshay deoOP14mo ago
yes
Adam
Adam14mo ago
Please send the deployment/build logs. Whatever it's failing at
akshay deo
akshay deoOP14mo ago
@Adam here. this fails when I trigger pip3 install -r requirements
Adam
Adam14mo ago
Is this the repo you're aiming to deploy? This doesn't seem like a monorepo
akshay deo
akshay deoOP14mo ago
for check I added a line (that's recommended by most threads) `python -m ssl`` no no - that's not the repo I am trying to deploy mine is a private one the message I linked before is the core error
Adam
Adam14mo ago
Please send the full logs, there's more info I need https://bookmarklets.up.railway.app/log-downloader/
akshay deo
akshay deoOP14mo ago
DMed you
Adam
Adam14mo ago
Seems like you're missing the "glibc" package. Please add it as a package in nixpacks.toml
Ray
Ray14mo ago
Hey Akshay, a few things I wanna bring up here & on what Brody/Adam has communicated: * Yes we’re currently all busy with travel, but we stay true to the objective of resolving issues for Pro plan users in 3-5 business days (North America times if that matters, and we don’t answer support requests over weekends unless for certain customers on Enterprise or https://docs.railway.app/reference/support#business-class). It’s business as usual for us, and our travels do not affect that * You were asked for a minimal reproduction example, and while that can be hard for you to produce due to the complexity of your setup, the onus on providing information+context+what helps us figure it out is on you, and you were defensive about that. We want to help you, but you need to help us help you I understand you’re on a timeline, but you have absolutely zero right to bulldoze in here. Your tone and conduct is not appreciated in this community, neither is “let’s bring it to DM”
akshay deo
akshay deoOP14mo ago
@Ray we have established that I was rude, have no right to bulldoze or talk disrespectfully. I have explicitly accepted and agreed to that, and said sorry explicitly to Brody. I mis-understood pro support is explicitely though email, I considered this as the main channel. Not sure how DMing is wrong here though, I don't want to share all the logs publicly at the moment, so shared on DM. If that violates the community rules, I apologies for that.
Ray
Ray14mo ago
Gotcha, and I’d like to reiterate that yet again for the sake of the community. Pro support isn’t only through emails FWIW, but most issues can get resolved here - you just need patience and willingness to work with whomever’s helping. Brody/Adam have intimate knowledge of the platform and can probably help you better than we can - we mostly deal with Railway-related bugs instead of project/setup specific help It’s not “no DMs” but if you need to share extremely sensitive things, emailing us is preferred. Other users typically redact sensitive info from their logs before they send it here in the open, so that’s something you can consider doing Otherwise, dump it in email and we’ll pick it up What they’re asking for is also exactly what we’d ask for My bottom line is if you want help, you need to help us to help you
Solution
akshay deo
akshay deo14mo ago
Okay so I found the issue - As I was suspecting, there seems to be some issue with the latest nixpack base image
ghcr.io/railwayapp/nixpacks:ubuntu-1695686596@sha256:863c9103f1ec289f4d8d56a656945c673b2d580080b96738e966e52e49463387 -> not working

ghcr.io/railwayapp/nixpacks:ubuntu-1695081795@sha256:861b494e331a1102d04519741af1e4d8960da8314c21c39b8ad8b7c161ee4c98 -> working
ghcr.io/railwayapp/nixpacks:ubuntu-1695686596@sha256:863c9103f1ec289f4d8d56a656945c673b2d580080b96738e966e52e49463387 -> not working

ghcr.io/railwayapp/nixpacks:ubuntu-1695081795@sha256:861b494e331a1102d04519741af1e4d8960da8314c21c39b8ad8b7c161ee4c98 -> working
For now I have fixed it by writing my custom dockerfile
akshay deo
akshay deoOP14mo ago
@Adam @Brody thanks for your help 👍
Want results from more Discord servers?
Add your server