Cannot update files in project, and facing pnpm update check failed

I noticed that I can’t update the source code files in my own project two days ago.
I can edit the text in file, but it will be rolled back after “reconnection”.
That means I can never update my own files.

And I’m not sure the relation, but the log says “pnpm update check failed” error when starting up.
I am using node.js v12.

The error says :
Try running with sudo or get access to the local update config store via
sudo chown -R $USER:$(id -gn $USER) /app/.config

I wanted to try this via “TERMINAL” function, but there are followimg problems:

  • I don’t know what the USER is. (I log in Glitch via google account)
  • sudo command was not found
  • I don’t know the su password, so I can’t enter su mode.

Does anyone help this please?

Additional info:
I am running discord BOT in my app.
And it was running correctly and the app could update the files in my project via app itself until this morning even after I noticed the problem.
However, now it seems not possible to connect discord, so the app isn’t running at all.

is your project running out of disk space?

I found that the disk space was full.
So I tried to delete the largest file, and then the behavior changed a bit: pnpm error is cleared but the changes in files are still not reflected.

I also found that I don’t have a huge file in my own directory, but du command showed that “./.git” directory is still using about 180Mbytes.
How can I shrink this directory?

Usually Git disk usage can be reduced by running git gc. If that doesn’t help you’ll probably need to contact Glitch Support to fix this.

there’s various help here about shrinking the .git directory. if you haven’t been manually using git, I don’t think most of the advice on that page will help other than to delete the .git directory.

I’d think this is still from not having enough free disk space.

Thanks a lot.
I finally deleted the .git directory by rm -rf because I don’t use git.
Now my changes looks reflected correctly.

But unfortunately my app is still not possible to connect discord.
Maybe I should focus on this problem in another topic if necessary, right?

alright yeah, feel free to start another thread for connecting to discord