R
Railway•15mo ago
Yash

why is the deployment with no change failing now?

ERROR: failed to solve: process "/bin/bash -ol pipefail -c apt-get update && apt-get install -y --no-install-recommends ffmpeg imagemagick ghostscript gsfonts fonts-droid-fallback fonts-noto-mono fonts-urw-base35" did not complete successfully: exit code: 1 aptPkgs = [ "...", "ffmpeg", "imagemagick", "ghostscript", "gsfonts", "fonts-droid-fallback", "fonts-noto-mono", "fonts-urw-base35" ] This did not fail earlier.. issue on production, lf help.
72 Replies
Percy
Percy•15mo ago
Project ID: ca440142-97f8-497c-8374-bdd45e8e3749
Yash
YashOP•15mo ago
ca440142-97f8-497c-8374-bdd45e8e3749
Brody
Brody•15mo ago
please send your full build logs, use this https://bookmarklets.up.railway.app/log-downloader/
Yash
YashOP•15mo ago
Brody
Brody•15mo ago
okay ill get to thinking
Yash
YashOP•15mo ago
Thanks. Exact same code that is now working is also failing anything changed on Railway? I mean the old active deployment
Brody
Brody•15mo ago
yes, new nixpacks version
Yash
YashOP•15mo ago
Not that the deployments are successful Ok, anything I should change in nixpacks toml?
Brody
Brody•15mo ago
dont know yet
Yash
YashOP•15mo ago
Okay, thanks, looking forward to hearing back
Brody
Brody•15mo ago
ill need to tag in @jr here, glibc 2.35 is installed but version 2.36 is required
jr
jr•15mo ago
I think it is the opposite. Version 2.36 is missing
Brody
Brody•15mo ago
No description
jr
jr•15mo ago
ah right. but 2.36 is required, not 3.36
Brody
Brody•15mo ago
oh my bad, typo
jr
jr•15mo ago
Can you please share your nixpacks.toml file
Brody
Brody•15mo ago
i can reproduce this with this nixpacks.toml file
[phases.setup]
aptPkgs = [
"...",
"ffmpeg",
"imagemagick",
"ghostscript",
"gsfonts",
"fonts-droid-fallback",
"fonts-noto-mono",
"fonts-urw-base35"
]
[phases.setup]
aptPkgs = [
"...",
"ffmpeg",
"imagemagick",
"ghostscript",
"gsfonts",
"fonts-droid-fallback",
"fonts-noto-mono",
"fonts-urw-base35"
]
and a main.py file
jr
jr•15mo ago
the issue is with ffmpeg and zlib I think It is definitely ffmpeg causing issues
Brody
Brody•15mo ago
same thing with ffmpeg removed
jr
jr•15mo ago
Can you try adding
nixLibs = ['zlib']
nixLibs = ['zlib']
under [phases.setup] yes mb it is with stdenv.cc.cc.lib
Brody
Brody•15mo ago
adding zlib worked whys that necessary now, but wasnt before?
jr
jr•15mo ago
you are actually removing stdenv.cc.cc.lib since the default nixLibs for python is zlib and stdenv I am not exactly sure what the full issue is now. Looks like the glibc versions are conflicting Can look into a more permantent fix later this week, but for now the solution is to do this https://canary.discord.com/channels/713503345364697088/1153901081282224169/1153919199303975062
jr
jr•15mo ago
This isn't all Python projects either. I was monitoring and most of them are going through. I think some combination of specific apt packages that conflcit with the stdenv glibc version
Brody
Brody•15mo ago
gotcha, will keep this in mind if i see this issue again @Yash can you try the proposed solution with your project?
jr
jr•15mo ago
Please feel free to tag me in any related thread too
Brody
Brody•15mo ago
will do
Yash
YashOP•15mo ago
i can see it didn't fail immediatley checking if the whole deployment goes through ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory one of the cv2 imports is now failing, which didn't fail earlier. no issues in build will adding "libstdc++6" in apt help?
Brody
Brody•15mo ago
try it, cant hurt
Yash
YashOP•15mo ago
trying it says it's already installed, but waiting for the whole deployment the product is now crashing because of this 🥲
Brody
Brody•15mo ago
doesnt railway keep an active build live if your service crashed in the first 20 seconds?
Yash
YashOP•15mo ago
the build went through, it failed on deploy so the old active build is now failing
Brody
Brody•15mo ago
i see
Yash
YashOP•15mo ago
sharing logs here
Brody
Brody•15mo ago
share your requirements.txt?
Yash
YashOP•15mo ago
Brody
Brody•15mo ago
you have uvicorn twice and nothing is pinned to a specific version, but that wouldnt cause a "cannot open shared object file" error you are using the headless version of opencv though so that was what i was wanting to look at @jr any ideas?
Yash
YashOP•15mo ago
i'm going to be fixing versions later on, let me clean it up looking into this, will this help?
Yash
YashOP•15mo ago
Stack Overflow
libstdc++.so.6: cannot open shared object file: No such file or dir...
I want to run Cilkscreen command with a cilk++ program but I'v got this error /usr/local/cilk/bin/../lib32/pinbin: error while loading shared libraries: libstdc++.so.6: cannot open shared obj...
Brody
Brody•15mo ago
try it?
jr
jr•15mo ago
I'm not sure atm unfortunately. Will have to check tomorrow. You can also revert to an older nixpacks version to unstick yourself in the meantime if you would like (https://docs.railway.app/deploy/config-as-code#nixpacks-version) Actually adding build-essential as an aptPkg might work
Yash
YashOP•15mo ago
trying it
Brody
Brody•15mo ago
ah yeah i totally forgot you can specify a nixpacks version
Yash
YashOP•15mo ago
what was the last version of nixpacks?
Brody
Brody•15mo ago
just look back on the last build where everything worked and use that version
jr
jr•15mo ago
I wouldn't recommend as a long term solution since you won't get any updates (system/os/security). But in cases like this is can help
Yash
YashOP•15mo ago
just as long as i get the solution
Brody
Brody•15mo ago
let us know how adding build-essential works
Yash
YashOP•15mo ago
yes, waiting didn't work
Yash
YashOP•15mo ago
is this correct way to pass the build?
No description
Yash
YashOP•15mo ago
sorry this:
No description
Brody
Brody•15mo ago
put
[build]
nixpacksVersion = "1.15.0"
[build]
nixpacksVersion = "1.15.0"
above [phases.setup]
jr
jr•15mo ago
f yeah the stdenv.cc.cc.lib package is what provided the libstdc++.so header This has to go in a railway.toml file 🙈
Brody
Brody•15mo ago
has to be a railway.toml?
jr
jr•15mo ago
Yes
Yash
YashOP•15mo ago
so created another file for this and deployed removed nixlibs
jr
jr•15mo ago
Just for the nixpacksVersion. Railway looks at that to determine what Nixpacks version to use. And then Nixpacks looks at nixpacks.toml for the build config (yes a mess we know) Can revert the nixpacks.toml file to what it was before and jus tset the version
Yash
YashOP•15mo ago
yes, doing that
Brody
Brody•15mo ago
"nixpacksVersion" is in the json schema for railway.json too, if thats more your thing
Yash
YashOP•15mo ago
this? it worked just find without a json
No description
Yash
YashOP•15mo ago
ok it worked with v15 the old version
Yash
YashOP•15mo ago
yes sent like this it went through
No description
Yash
YashOP•15mo ago
since its working with the old version, is this something railway team will investigate?
Brody
Brody•15mo ago
Yash
YashOP•15mo ago
cool, thanks man! appreciate your help.
Brody
Brody•15mo ago
jr did all the work
Yash
YashOP•15mo ago
appreciate all the work that was done here
jr
jr•15mo ago
Glad it is working now!
shving90
shving90•15mo ago
I'm having a similar issue: nixpacks.toml: [phases.setup] nixPkgs = ['...', 'libreoffice'] aptPkgs = ['...', 'gcc', 'g++','libstdc++6','fontconfig']
0.341 apt-get: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/xpxln7rqi3pq4m0xpnawhxb2gs0mn1s0-gcc-12.3.0-lib/lib/libstdc++.so.6)

-----



Dockerfile:9

-------------------

7 | COPY .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix

8 | RUN nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d

9 | >>> RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ libstdc++6 fontconfig

10 |

11 | ARG NIXPACKS_METADATA OPENAI_API_KEY PYTHONUNBUFFERED RAILWAY_ENVIRONMENT RAILWAY_ENVIRONMENT_ID RAILWAY_ENVIRONMENT_NAME RAILWAY_GIT_AUTHOR RAILWAY_GIT_BRANCH RAILWAY_GIT_COMMIT_MESSAGE RAILWAY_GIT_COMMIT_SHA RAILWAY_GIT_REPO_NAME RAILWAY_GIT_REPO_OWNER RAILWAY_PRIVATE_DOMAIN RAILWAY_PROJECT_ID RAILWAY_PROJECT_NAME RAILWAY_SERVICE_ID RAILWAY_SERVICE_NAME SENDGRID_API_KEY SERPAPI_API_KEY

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c apt-get update && apt-get install -y --no-install-recommends gcc g++ libstdc++6 fontconfig" did not complete successfully: exit code: 1



Error: Docker build failed
0.341 apt-get: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/xpxln7rqi3pq4m0xpnawhxb2gs0mn1s0-gcc-12.3.0-lib/lib/libstdc++.so.6)

-----



Dockerfile:9

-------------------

7 | COPY .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix

8 | RUN nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d

9 | >>> RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ libstdc++6 fontconfig

10 |

11 | ARG NIXPACKS_METADATA OPENAI_API_KEY PYTHONUNBUFFERED RAILWAY_ENVIRONMENT RAILWAY_ENVIRONMENT_ID RAILWAY_ENVIRONMENT_NAME RAILWAY_GIT_AUTHOR RAILWAY_GIT_BRANCH RAILWAY_GIT_COMMIT_MESSAGE RAILWAY_GIT_COMMIT_SHA RAILWAY_GIT_REPO_NAME RAILWAY_GIT_REPO_OWNER RAILWAY_PRIVATE_DOMAIN RAILWAY_PROJECT_ID RAILWAY_PROJECT_NAME RAILWAY_SERVICE_ID RAILWAY_SERVICE_NAME SENDGRID_API_KEY SERPAPI_API_KEY

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c apt-get update && apt-get install -y --no-install-recommends gcc g++ libstdc++6 fontconfig" did not complete successfully: exit code: 1



Error: Docker build failed
shving90
shving90•15mo ago
Trying this fix
No description
shving90
shving90•15mo ago
Looks like this fix worked
Want results from more Discord servers?
Add your server