NorfairKing / smos

A comprehensive self-management System
https://smos.online
MIT License
294 stars 48 forks source link

Project with same name as archived project not syncing correctly #269

Open distefam opened 1 year ago

distefam commented 1 year ago

I have two machines that sync with smos-sync-client sync every few minutes using a systemd timer. On my desktop machine I have a project, let's call it "project-a" that is up-to-date and has synced successfully. The smos online editor also shows this correct version.

There is also a project with the same name that has been archived, both on my desktop and on smos online.

On my laptop, which has also synced without any errors (viewing with --log-level Debug) I have "project-a" as an active project that has not been archived. There is no archived version of the project and the new project of the same name is nowhere to be found.

NorfairKing commented 1 year ago

@distefam this seems unlikely. Can you reproduce this somehow?

distefam commented 1 year ago

This seems to do it on my end (related issue):

  1. Have project scheduled via smos-scheduler on machine a
  2. run smos-sync-service sync on machine a, then on machine b
  3. remove the project with rm projects/project.smos on machine a
  4. run smos-sync-service sync on machine a, then on machine b
  5. verify that the project still shows up on machine b
distefam commented 1 year ago

Can I provide any logs or details from the specific issue I first mentioned, privately however? The projects are still out of sync and I can't figure out what's going on.