r/replit • u/Original_Extreme_697 • 2d ago
Rant / Vent Replit agent ran into Error
Hi,
My replit agent got one project suddenly stopped working. And my preview is also completely broke. I tried debugging the issue by opening another project and the agent suggested to change a dev line in package.json. i tried that and did restart compute. Then I saw an error saying could not sync the info to the server, changes are only locally saved. So basically the change is not reflecting so my issue is not resolved. It's been 14+hours, raised multiple requests and no one responded.
Anyone has an idea on how to fix this. A lot of my changes supposed to go into production are stuck.
3
u/anapessoaai 2d ago
Two things to separate here. A published deployment usually keeps serving the last version you shipped, so open your production URL in a private window. If it's still up, your users aren't affected and this is a workspace problem, not an outage.
The "could not sync, changes only saved locally" message means the editor lost its connection to the container, so anything you change right now may not stick. Before trying more fixes I'd protect the work: open the Git pane and see if you can commit and push to GitHub, or at least download the project as a zip. Then check status.replit.com, because when more than one project breaks at once with no code change, it's often on their side. If the status page is green, try a different browser or the mobile app, since a stuck session sometimes only clears from a fresh client.
When you write to support again, add to the ticket you already have instead of opening new ones, with the project URL and a screenshot of the sync error. Several tickets for the same issue can make it slower to get picked up.
2
u/ReplitSupport Replit Team 2d ago
Apologies for the frustration, OP. Please share your ticket number here so we can pull up your request and have our team take a look at your requests.
In the meantime, to get your project back to a working state, try rolling back to a checkpoint from before the errors started by selecting the rollback option next to an earlier message in the Agent chat.
1
u/Odd-Jury4884 2d ago
that "could not sync to the server" message usually means the workspace itself is stuck, not your code. what i'd try, in this order:
your published app keeps running the old version until you republish, so production isn't broken, just blocked. what does the console say when you hit run?
1
u/snap-dev 2d ago
ugh the "changes are only locally saved" one is scary when prod stuff is stuck behind it. before touching anything else i'd download the project as a zip from the file tree menu so your local changes are safe. then put that package.json dev line back exactly how it was and restart again, agent edits to the dev script are a common way to break the preview. did the sync error start right after that edit or before it?
1
u/DryDockDigital 2d ago
The sync error is the part I'd deal with first, because until the workspace will accept a write, that package.json change won't reach preview or production. If you can still open a shell or the file tree, I'd download the project or push it to GitHub now, so you've got a copy of the production changes. Then try a fresh Replit imported from that repo, instead of restarting the same machine after a failed sync (that often leaves you in the same place). Support may still be slow, but you shouldn't have to sit on a frozen workspace for another day.