Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background Process for Auto Syncing Git Repos was skipped #9

Open
linnabraham opened this issue May 16, 2022 · 3 comments
Open

Background Process for Auto Syncing Git Repos was skipped #9

linnabraham opened this issue May 16, 2022 · 3 comments

Comments

@linnabraham
Copy link

Hi Vishesh,
Thanks for putting your efforts into this. I was making use of a bash script and cron until now. I was thinking of moving over to inode watcher tools like entr or something. So I was excited to see that you were focusing on this feature.

However, this doesnt seem to work for me on ArchLinux. The manual mode seemed to create commits but didnt push to the remote. I saw this error.

gpg-agent[2775]: scdaemon[8002]: apdu_open_reader: failed to open driver 'libpcsclite.so.1': libpcsclite.so.1: cannot open shared object file: No such file or directory

I installed the pcsclite package and this seemed to solve the manual mode issue to some extent. When i check the systemd status of the daemon I see this error.

systemd[3395]: Background Process for Auto Syncing Git Repos was skipped because of a failed condition check (ConditionFileIsExecutable=/usr/bin/git-auto-sync-daemon)

The gpg-agent is still not completely silent. I have these errors still lurking.
gpg-agent[8000]: scdaemon[8000]: pcsc_establish_context failed: no service

Can you help me troubleshoot this?

@vHanda
Copy link
Contributor

vHanda commented May 16, 2022

Could you please make sure the git-auto-sync-daemon is executable? That's what the error says.

I'll work on adding a proper snap package so all of this is correctly handled.

@vHanda
Copy link
Contributor

vHanda commented May 18, 2022

I realized that the release didn't actually contain the git-auto-sync-daemon binary. I've fixed that. Could you please try it out again?

I'm sill in the process of making a snap (pending review)

@linnabraham
Copy link
Author

Yes. I did that and that error seems to have disappeared. However I get a new error which might be specific to my setup I am not sure.

May 19 12:23:52 archlinux git-auto-sync-daemon[4517]: 2022/05/19 12:23:52 exit status 128: Command: git fetch origin
May 19 12:23:52 archlinux git-auto-sync-daemon[4517]: StdOut:
May 19 12:23:52 archlinux git-auto-sync-daemon[4517]: StdErr: [email protected]: Permission denied (publickey).
May 19 12:23:52 archlinux git-auto-sync-daemon[4517]: fatal: Could not read from remote repository.
May 19 12:23:52 archlinux git-auto-sync-daemon[4517]: Please make sure you have the correct access rights
May 19 12:23:52 archlinux git-auto-sync-daemon[4517]: and the repository exists.

I think i have setup ssh to use one of my gpg subkeys instead of a separate ssh key and I have the following two lines in my .zshrc

export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants