ModSync icon indicating copy to clipboard operation
ModSync copied to clipboard

Modsync failing to remove empty folders properly with enforced sync

Open jonjetjon opened this issue 1 year ago • 5 comments

when I removed sain and questingbots from my synced plugins folder because they were migrated to the dedi client using an enforced sync on the bepinex/plugins folder it constantly brings up this screen when launching the game and when clicking continue is not able to actually delete those folders and the client cannot log into the game. I'm not sure why those specific folders can't be removed(maybe because they are subfolders?)

Image

jonjetjon avatar Feb 26 '25 07:02 jonjetjon

Appreciate the report! Could you run through this again (click continue and let it do it's thing), then restart and send me the ModSync_Data/ModSync.log file?

I'd also love to see your server-side config.jsonc.

Thanks!

c-orter avatar Feb 26 '25 14:02 c-orter

I will find a time when people are not actively playing on my home server(lots of roomates and friends) and rerun this experiment, Sadly the only way to get it to remove unsupported mods is with an enforced sync and that means kicking everyone off the server, reboot the server, enforced sync, reboot the server AGAIN, and set it back to normal because it means anyone with a sync problem like this can't log into the game. I would LOVE an option to do the enforced sync algorithm with a "skip for now" button like the regular update so i can do periodic "forced" updates without bricking people's game especially since there's no other way for me to remove unsupported mods from clients(which is the feature i would really like to see)

jonjetjon avatar Mar 02 '25 00:03 jonjetjon

So I added the same set of mods to be removed, started the server with the following config.jsonc which is the exact same as our regular config.jsonc other than enforced set to true on the plugins folder

config.jsonc

started the client and hit continue to remove the extra mods, modsync generated the following log after hitting continue

sync1.log

restarted the game, same result

Image

modsync generates the following RemovedFiles.json

RemovedFiles.json

I hit continue and exit game, generating the following log and get stuck in the same infinite loop

ModSync.log

jonjetjon avatar Mar 03 '25 16:03 jonjetjon

and for added context our specific use case is that we are now running a dedicated client so I am trying to automatically remove all the unnecessary AI mods from the clients

jonjetjon avatar Mar 03 '25 16:03 jonjetjon

This ended up being an issue where enforced was used but not all client-created files were present/excluded on the server. Solution is adding a server-side exception for the two files that were repeatedly deleted and regenerated.

c-orter avatar Mar 17 '25 04:03 c-orter