GitJournal / git-auto-sync

Automatically Sync Git Repos
Apache License 2.0
130 stars 13 forks source link

"git-auto-sync-daemon is NOT Running!" #16

Open lowercasename opened 1 year ago

lowercasename commented 1 year ago

macOS Monterey 12.5, M1 Mac

I've set up git-auto-sync and it has successfully synced my repo, then I added the repo to the daemon. When I run git-auto-sync daemon status I receive the following message:

git-auto-sync-daemon is NOT Running!
Monitoring -
   /my/chosen/directory

How do I get the daemon to start?

akifateef commented 1 year ago

@lowercasename thanks for reporting it. I am also facing the same problem. Have you been able to find a solution?

ifeitao commented 1 year ago

I am facing the same problem. I upate the service mod and build myself, then fix the promblem. see https://github.com/GitJournal/git-auto-sync/pull/17

Jamesun921 commented 6 months ago

I am facing the same problem. I upate the service mod and build myself, then fix the promblem. see #17

I am facing the same problem on Mac. Could you please show the detail way?

sudeepdino008 commented 3 months ago

I'm facing the same problem:

➜ git-auto-sync d status
git-auto-sync-daemon is NOT Running!
Monitoring -
   /Users/sudeep/oss/blockchain_notes/Blockchains
   /Users/sudeep/oss/blogmaker2
hpngithub commented 3 months ago

As per my research under Linux Ubuntu server, below is the solution.

COMMAND PROGRAMMING PROBLEM Command : "auto-sync daemon status" <-- is existing and not working and it has been rename to auto-sync-daemon with incomplete and mixed variable function update. Which lead some old function variable still working with old command and status is working as service on/off.

RESEARCH GitHub Repo File : .goreleaser.yaml <-- Have the new name "git-auto-sync-daemon" Actual File name : git-auto-sync-daemon <-- Have the new file in location /usr/bin Process See Command - ps aux : Show the "git-auto-sync-daemon" & "git-auto-sync-daemon status" process running under user-account not main root account.

Commands Testing

SOLUTION Follow below steps

  1. Confirm after cloning the repo to localhost, created the test file in the localhost folder and tested the successfully sync with manual "git-auto-sync sync" command.
  2. Add the full repo path using Command : "git-auto-sync daemon add "
  3. Initiated the command to "auto-sync-daemon status" to run the monitor system and check if working. Confirm it work until it stay on, but soon as you stop it completely stop.
sudeepdino008 commented 3 months ago

I am facing the same problem. I upate the service mod and build myself, then fix the promblem. see #17

I can confirm that building the tool with the above PR fixes the issue.