mahyarmirrashed / yaos

Yet Another Obsidian Synchronizer.
MIT License
65 stars 3 forks source link

[Bug]: Unknown error occurred. Likely a gpg signing issue #10

Open rozsasarpi opened 11 months ago

rozsasarpi commented 11 months ago

Description

To Reproduce

Run command: "Sync your vault"

Expected behavior

Changes committed and pushed to the repo.

Screenshots/logs

YAOS:fatal Unknown error: Error: error: gpg failed to sign the data:
gpg: WARNING: server 'gpg-agent' is older than us (2.2.27 < 2.4.3)
gpg: Note: Outdated servers may lack important security fixes.
gpg: Note: Use the command "gpgconf --kill all" to restart them.
[GNUPG:] WARNING server_version_mismatch 0 server 'gpg-agent' is older than us (2.2.27 < 2.4.3)
gpg: problem with fast path key listing: IPC parameter error - ignored
[GNUPG:] KEY_CONSIDERED <MASKED>
[GNUPG:] BEGIN_SIGNING H8
[GNUPG:] PINENTRY_LAUNCHED 184201 gnome3 1.1.1 - - :1 - 1000/1000 -
gpg: signing failed: pinentry error
[GNUPG:] FAILURE sign 83886166
gpg: signing failed: pinentry error

fatal: failed to write commit object

    at Object.action (plugin:yet-another-obsidian-synchronizer:5181:25)
    at PluginStore.exec (plugin:yet-another-obsidian-synchronizer:5206:25)
    at eval (plugin:yet-another-obsidian-synchronizer:2692:43)
    at new Promise (<anonymous>)
    at GitExecutorChain.handleTaskData (plugin:yet-another-obsidian-synchronizer:2690:16)
    at GitExecutorChain.eval (plugin:yet-another-obsidian-synchronizer:2674:44)
    at Generator.next (<anonymous>)
    at fulfilled (plugin:yet-another-obsidian-synchronizer:1502:24)

Desktop (please complete the following information):

Additional context

I had the same issue with this other plugin too. The suggestions in that issue did not help. I tried to install and use Obsidian as an AppImage but got the same error.

rozsasarpi commented 11 months ago

No Sync button has appeared after installing and enabling this plugin.

I've found it (in the left menu bar).

When trying to sync using the command: "Sync your vault", I get this message inside Obsidian: "Unknown error occurred. Please create an issue."

Not ideal but disabling gpg signing for the repo with my Obsidian notes circumvents the issue.

[commit]
    gpgsign = false
mahyarmirrashed commented 10 months ago

Thanks for creating this issue. Let's take a methodical approach to this problem. Starting at which, what commands do you run in the terminal in order to create a commit on this repository and then push them up.

Regarding the sync button not appearing, can you uninstall the plugin, and then take a screen recording of you installing it and it not appearing. That is very peculiar and I would like to investigate that immediately.

rozsasarpi commented 10 months ago

what commands do you run in the terminal in order to create a commit on this repository and then push them up.

I tried it from the the Obsidian command palette. image

(from my terminal (unrelated to Obsidian) I would just use regular git add, commit, push)

Regarding the sync button not appearing

Sorry for the confusion. The fist part here is meant to report that I've found the button.