Error in Deploying Python Reflex App

Hi - I'm trying to deploy a Reflex.dev python application through Railway following the template created by @Brody (here: https://railway.app/template/A5TaaV) and it's failing on the step that it tries to run reflex export --frontend-only --no-zip with the following error:
11.33 Creating Production Build: 0% 0/9 0:00:00

-----

Dockerfile:30

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

28 | # export phase

29 | COPY . /app/.

30 | >>> RUN reflex export --frontend-only --no-zip

31 |

32 | # caddy phase

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

ERROR: failed to solve: process "/bin/bash -ol pipefail -c reflex export --frontend-only --no-zip" did not complete successfully: exit code: 1



Error: Docker build failed
11.33 Creating Production Build: 0% 0/9 0:00:00

-----

Dockerfile:30

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

28 | # export phase

29 | COPY . /app/.

30 | >>> RUN reflex export --frontend-only --no-zip

31 |

32 | # caddy phase

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

ERROR: failed to solve: process "/bin/bash -ol pipefail -c reflex export --frontend-only --no-zip" did not complete successfully: exit code: 1



Error: Docker build failed
Tried the following troubleshooting: - Ran the same command locally, and no issues - Deployed the unmodified template and the error is present then Git repo: No, this is for a simple personal site - https://github.com/kamakaya/personal-site-reflex Has anyone experienced this? Any suggestions? Thanks in advance!
GitHub
GitHub - kamakaya/personal-site-reflex
Contribute to kamakaya/personal-site-reflex development by creating an account on GitHub.
6 Replies
Percy
Percy13mo ago
Project ID: c11a6e73-5ace-4666-9fc1-95ec0040a6b3
el_magnifico
el_magnificoOP13mo ago
c11a6e73-5ace-4666-9fc1-95ec0040a6b3
Brody
Brody13mo ago
doing a few things at once right now, i will get to this
el_magnifico
el_magnificoOP13mo ago
No rush, Brody. I'll try to make some progress and will update you if I get anywhere Looks like is Reflex is attempting to use Node.js version v18.17.0, which requires GLIBC_2.36, but this version of GLIBC is not found in the build environment.
> [stage-0 12/16] RUN reflex export --frontend-only --no-zip --loglevel debug:
5.836 File "/opt/venv/lib/python3.11/site-packages/reflex/utils/prerequisites.py", line 58, in get_node_version
5.836 return version.parse(result.stdout) # type: ignore
5.836 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5.836 File "/opt/venv/lib/python3.11/site-packages/packaging/version.py", line 54, in parse
5.836 return Version(version)
5.836 ^^^^^^^^^^^^^^^^
5.836 File "/opt/venv/lib/python3.11/site-packages/packaging/version.py", line 200, in __init__
5.836 raise InvalidVersion(f"Invalid version: '{version}'")
5.836 packaging.version.InvalidVersion: Invalid version: '/root/.local/share/reflex/fnm/node-versions/v18.17.0/installation/bin/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)
> [stage-0 12/16] RUN reflex export --frontend-only --no-zip --loglevel debug:
5.836 File "/opt/venv/lib/python3.11/site-packages/reflex/utils/prerequisites.py", line 58, in get_node_version
5.836 return version.parse(result.stdout) # type: ignore
5.836 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5.836 File "/opt/venv/lib/python3.11/site-packages/packaging/version.py", line 54, in parse
5.836 return Version(version)
5.836 ^^^^^^^^^^^^^^^^
5.836 File "/opt/venv/lib/python3.11/site-packages/packaging/version.py", line 200, in __init__
5.836 raise InvalidVersion(f"Invalid version: '{version}'")
5.836 packaging.version.InvalidVersion: Invalid version: '/root/.local/share/reflex/fnm/node-versions/v18.17.0/installation/bin/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
Brody13mo ago
yeah this is kinda an issue with nixpacks
Want results from more Discord servers?
Add your server