python prisma issue

trying to run prisma migrate deploy but getting the following error Traceback (most recent call last): File "/opt/venv/bin/prisma", line 8, in <module> sys.exit(main()) ^^^^^^ File "/opt/venv/lib/python3.11/site-packages/prisma/cli/cli.py", line 39, in main sys.exit(prisma.run(args[1:])) ^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/prisma/cli/prisma.py", line 36, in run entrypoint = ensure_cached().entrypoint ^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/prisma/cli/prisma.py", line 104, in ensure_cached proc.check_returncode() File "/root/.nix-profile/lib/python3.11/subprocess.py", line 502, in check_returncode raise CalledProcessError(self.returncode, self.args, self.stdout, subprocess.CalledProcessError: Command '['/root/.cache/prisma-python/nodeenv/bin/npm', 'install', 'prisma@5.4.2']' returned non-zero exit status 1. Installing Prisma CLI An error ocurred while installing the Prisma CLI; npm install log: node: /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)
Solution:
I am not sure where the version of node is coming from. But it isn't coming from Nix which is what seems to be causing the issue. Can you trying adding Node to the providers on the settings page
No description
Jump to solution
16 Replies
Percy
Percy7mo ago
Project ID: 2890c019-be36-45c2-800b-c4c137d5295f
vince🐶🐱
vince🐶🐱7mo ago
2890c019-be36-45c2-800b-c4c137d5295f
Brody
Brody7mo ago
try adding this nixpacks.toml file to your project
[phases.setup]
nixLibs = ['...', 'zlib']
[phases.setup]
nixLibs = ['...', 'zlib']
vince🐶🐱
vince🐶🐱7mo ago
is it possible to update on the web console? I don't currently have the local version setup yet. That's how magical railway has been
Brody
Brody7mo ago
hmmm let me think
vince🐶🐱
vince🐶🐱7mo ago
bit more context I have everything on github and I just linked the services to the repo
Brody
Brody7mo ago
you could add the file to your repo with github's web ui but try setting a service variable NIXPACKS_LIBS to zlib
vince🐶🐱
vince🐶🐱7mo ago
same error but now using node 21 * Install prebuilt node (21.4.0) ..... done. An error ocurred while installing the Prisma CLI; npm install log: node: /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)
Brody
Brody7mo ago
where does node come into play? does primsa for python use node under the hood?
vince🐶🐱
vince🐶🐱7mo ago
does seem like it. btw is there a better way to send formatted logs on discord?
No description
Brody
Brody7mo ago
glad you asked https://bookmarklets.up.railway.app/log-downloader/ @jr - the glibc error came back
Solution
jr
jr7mo ago
I am not sure where the version of node is coming from. But it isn't coming from Nix which is what seems to be causing the issue. Can you trying adding Node to the providers on the settings page
No description
vince🐶🐱
vince🐶🐱7mo ago
umm how do I create a deployment?
No description
vince🐶🐱
vince🐶🐱7mo ago
ok I've joined the priority boarding but still can't seem to update the provider settings
jr
jr7mo ago
Can you please try refreshing the page and seeing
vince🐶🐱
vince🐶🐱7mo ago
works guys