I have two repls, one is a backup clone of the other but connected to a different DB. I started the clone from a blank flask template (the original is a flask app), copied in all the files from the original app, configured all env variables, etc. The backup works perfectly fine in the preview mode but will not deploy while the original has no issues deploying. Both have identical .replit, replit.nix, pyproject.toml, uv.lock files, and use the same deployment type (Autoscale, same config for both apps).
The backup clone constantly fails deployment, citing Nix store read-only permission errors when installing the orjson package. I’ve already tried, as per Replit’s agent suggestions:
Adding a build command with explicit venv creation
- Using
uv venv+uv sync - Using
pip installinstead ofuv - Copying all config files from the working app
- Removing the build command entirely
Yet deployment still fails, and it seems like the agent is now going round in circles; suggesting one fix only to reverse it after another 2 failed attempts, then re-applying it an attempt or 2 later. Can anyone tell what the issue might be or what could explain identical files behaving differently on deployment? Thanks in advance!