Vinzent03 / obsidian-git

Integrate Git version control with automatic backup and other advanced features in Obsidian.md
MIT License
6.95k stars 297 forks source link

[Bug]: Pushing fatal: could not read Username for https://github.com: No such device or address #814

Open pistolwhip-justin opened 6 days ago

pistolwhip-justin commented 6 days ago

Describe the bug

When clicking the commit and sync button I get the error: Pushing to {my repo url} fatal: could not read Username for 'https://github.com;: No such device or address

Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)

obsidian-git: Error: Pushing to https://github.com/user-name/repo-name.git
fatal: could not read Username for 'https://github.com': No such device or address

    at Object.action (plugin:obsidian-git:104:11303)
    at MM.exec (plugin:obsidian-git:104:11799)
    at eval (plugin:obsidian-git:103:7026)
    at new Promise (<anonymous>)
    at oh.handleTaskData (plugin:obsidian-git:103:6915)
    at oh.eval (plugin:obsidian-git:103:6541)
    at Generator.next (<anonymous>)
    at a (plugin:obsidian-git:100:11157)

Steps to reproduce

Hit the button

Expected Behavior

It pushes the changes without error

Addition context

git credentials are correct when i run a command to see them in terminal github desktop has no issue pushing vs code has no issue pushing custom git binary path set correctly

i have no idea what else to check or do

new to linux and i am about to throw this damn computer in traffic, push my phone down the garbage disposal, walk into the woods and build a cabin and then kill all my food and wear nothing but fur for the rest of my life and never touch a digital device again

Operating system

Linux

Installation Method

Snap

Plugin version

2.28..2

rh609 commented 5 days ago

obsidian-git: Error: Pushing to https://github.com/user-name/repo-name.git Try specifying your repo instead of the one your meant to change

pistolwhip-justin commented 5 days ago

That was a placeholder value, not the text of the actual user-name or repo in the error, because it happens on multiple repos. If that does not address your comment then I am confused.

Vinzent03 commented 4 days ago

Please try another installation method for Obsidian other than snap as it may cause issues with sandboxing.

pistolwhip-justin commented 3 days ago

Uninstalled Snap version ➡️ installed Flatpak version ➡️ same error ➡️ Disable Git plugin ➡️ Deleted .git// and .gitattributes from folder ➡️ Recreated git repo ➡️ Open Obsidian and enable Git Plugin ➡️ same error.

On Sat, Nov 23, 2024 at 11:54 AM Vinzent @.***> wrote:

Please try another installation method for Obsidian other than snap as it may cause issues with sandboxing.

— Reply to this email directly, view it on GitHub https://github.com/Vinzent03/obsidian-git/issues/814#issuecomment-2495539021, or unsubscribe https://github.com/notifications/unsubscribe-auth/BF2O6J6Z2B57PYD3IVFLSND2CCXNVAVCNFSM6AAAAABSIH6352VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJVGUZTSMBSGE . You are receiving this because you authored the thread.Message ID: @.***>

Vinzent03 commented 2 days ago

Could you try the latest version v2.29.0 I released yesterday?