XK9274 / syncthing-app-miyoo

Sets up Syncthing and injects into Onions runtime
71 stars 2 forks source link

Upgrading form 4.2.3 -> 4.3.0 - synchthing crashes and corrupts os. #15

Open blakekl opened 4 months ago

blakekl commented 4 months ago

After upgrading, syncthing does not appear to be running. My main syncthing computer shows the MM+ as never connected anymore, files aren't syncing. when I try to run the syncthing script on the device, I see the message that it has not been configure, then it shows that the IP address URL to set it up, then crashes. After this crash, I can no longer use any of the other Onion OS apps. My games are also all missing. The whole OS becomes unusable. I have to redo the upgrade process to get my OS functioning again.

XK9274 commented 4 months ago

Hey.

Granted syncthing can hammer the CPU/SD if you opt to backup your full SD instead of specific directories (Saves), I don't think Syncthing or Onion has caused any issues here.

Sounds like your SD card has just gone corrupt.

What SD is it?

blakekl commented 4 months ago

@XK9274

No, it's not the SD card. I can run everything again just fine if I repeat the update process. I don't sync the entire file system. I only sync battery saves, save states, and a folder to sync some game files to make transferring things over easier. My SD card is a sandisk ultra pro 32gb, so it's not overly large or anything either. Everything worked great before the update. I could probably just delete the entire config file and redo all the setup, but I figured there must be a problem here and I would like to try to preserve the state to debug if you'd like to investigate it some more. I tried to backup the whole config file to my windows machine and it does complain that there is some log file that is corrupted and can't be read / copied over. I don't know if it's related to that.

Splozy commented 1 month ago

Similar issue here. Syncthing logs no connection activity from the Miyuu or connection refused. Tried powering device off and running/killing the app a few times.

XK9274 commented 1 month ago

Is Syncthing even running? Have you tried to backup your config dir and reinstall the full app?

Pointy-Bits commented 1 week ago

I was upgrading from 4.2 (relunctantly) to 4.3, backed up my app folders hoping to just drop them into the upgraded install, and syncthing doesn't work, and interferes with the WiFi menu (i removed BetterWifi and did a clean install of onionOS and this is still happening). I'm not sure what else I can do but SyncThing was great when it was working 👍

Nice work on your apps!

Pointy-Bits commented 1 week ago

So digging around a little more, I was able to get syncthing up and broadcasting on localhost:8384, with what looks to be my previous configuration, but with this error. miyoo_syncthing

Pointy-Bits commented 1 week ago

update 1 .enabled SSH

  1. navigated to /mnt/SDCARD/Saves/CurrentProfile/saves
  2. mkdir .stfolder (syncthing didn't like the existing folder)
  3. rescanned, uploaded, and at least for now, syncthing is working

Whether it plays nice with the rest of apps, I have yet to find out (syncthing really needs to run after the miyoo grabs the correct time from the internet)

sorry for spam