git-auto-sync icon indicating copy to clipboard operation
git-auto-sync copied to clipboard

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

Open lowercasename opened this issue 1 year ago • 6 comments

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?

lowercasename avatar Apr 12 '23 07:04 lowercasename

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

akifateef avatar Jun 09 '23 10:06 akifateef

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

ifeitao avatar Aug 12 '23 23:08 ifeitao

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?

Jamesun921 avatar Feb 29 '24 00:02 Jamesun921

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

sudeepdino008 avatar May 21 '24 11:05 sudeepdino008

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

  • "git-auto-sync daemon ls" <-- is existing and working
  • "git-auto-sync-daemon ls <-- is working
  • "git-auto-sync daemon add <repoPath>" <-- is existing and working
  • "git-auto-sync-daemon add <repoPath> <-- FYI: Doesn't work completely and need to remove
  • "auto-sync-daemon status" <-- is working and it must stay on to initial pull command every 10 min and push command instantly.

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 <repoPath>"
  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.

hpngithub avatar Jun 02 '24 22:06 hpngithub

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.

sudeepdino008 avatar Jun 05 '24 10:06 sudeepdino008