Trying to run my Replit, over the past few hours have been having these problems where even regular print statements don’t work (right before/after a print statement that does!).
It’s also like it’s not being saved, but it says it is.
Weirdly, I’m not getting any error either, just 500.
If I try to remove a print statement, it just continues to print.
I tried logging out and back in, which worked for ~5 minutes, then back to buggy stuff.
I mean, if it’s got private info, don’t unprivate it, or you can just like explain the lang, some code snippets where you think it’s wrong, what you’ve tried thus far, etc
Ok that’s the problem, it does. It’s Python, running the replit SQL db. Like I said, literal print statements will work one minute and not the next. Or I’ll delete an entire line, and the repl will behave as if the line is still there… It’s as odd as it sounds.
Also, if someone who was invited to a Repl forks it, their fork will contain any secrets from the previous one (it’s some kind of new thing Replit’s testing).
Thank you, I get this briefly in the console before my code boots, I’m not sure what it is or if it is in any way relevant, and I still struggle to see how this could account for phantom print statements and so on:
Have you invited anyone else to the Repl or run any commands in shell? I know it is possible to create a read-only filesystem in a Repl as I’ve seen @9pfs1 do this.
That’s not from chmod -R u-w $HOME/$REPL_SLUG (that’d be Permission denied), I think that’d probably be if the physical (or maybe virtual) disk device that the repl’s files are stored on had an issue, causing the filesystem that their repl is stored on to be remounted in read-only mode.
Here’s what happens if you try to make the files in a Repl read-only:
~/9pfs$ cd /tmp/
/tmp$ mktemp -d
/tmp/tmp.7P1wwQviXk
/tmp$ cd tmp.7P1wwQviXk/
/tmp/tmp.7P1wwQviXk$ ls
/tmp/tmp.7P1wwQviXk$ mkdir -p whee/a;chmod -R u-w whee/;rmdir whee/a
rmdir: failed to remove 'whee/a': Permission denied
/tmp/tmp.7P1wwQviXk$
To compare, here’s what they’re probably having issues with:
/tmp/tmp.7P1wwQviXk$ cd /etc/
/etc$ mkdir wtf
mkdir: cannot create directory ‘wtf’: Read-only file system
/etc$
@Cortif44 Could you run mount|grep /home/runner/$REPL_SLUG in your repl while it’s misbehaving like that and send the output?
/dev/nbd36 on /home/runner/PersonalMultiserverdiscBot type btrfs (rw,noatime,ssd,flushoncommit,space_cache=v2,commit=60,subvolid=257,subvol=/working_subv)