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

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

Open
rozsasarpi opened this issue Dec 30, 2023 · 3 comments
Open

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

rozsasarpi opened this issue Dec 30, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@rozsasarpi
Copy link

rozsasarpi commented Dec 30, 2023

Description

  • No Sync button has appeared after installing and enabling this plugin.
  • When trying to sync using the command: "Sync your vault", I get this message inside Obsidian: "Unknown error occurred. Please create an issue."
  • The issue seems to be related to gpg signing, which I use by default.

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):

  • OS: Pop!_OS 22.04 LTS x86_64
  • Obsidian version: 1.5.3 (flatpak)
  • YAOS version: 0.7.0

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
Copy link
Author

rozsasarpi commented Dec 30, 2023

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 mahyarmirrashed self-assigned this Dec 30, 2023
@mahyarmirrashed
Copy link
Owner

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.

@mahyarmirrashed mahyarmirrashed added the bug Something isn't working label Dec 30, 2023
@rozsasarpi
Copy link
Author

rozsasarpi commented Dec 31, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants