obsidian-git icon indicating copy to clipboard operation
obsidian-git copied to clipboard

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

Open pistolwhip-justin opened this issue 1 year ago • 7 comments

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

pistolwhip-justin avatar Nov 22 '24 00:11 pistolwhip-justin

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

ghost avatar Nov 22 '24 23:11 ghost

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.

pistolwhip-justin avatar Nov 23 '24 00:11 pistolwhip-justin

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

Vinzent03 avatar Nov 23 '24 16:11 Vinzent03

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: @.***>

pistolwhip-justin avatar Nov 25 '24 00:11 pistolwhip-justin

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

Vinzent03 avatar Nov 25 '24 11:11 Vinzent03

I also encountered this problem, looking forward to a solution

xiaoke1230 avatar Dec 04 '24 09:12 xiaoke1230

@xiaoke1230 Please create a new issue and follow the template to provide all necessary information.

Vinzent03 avatar Dec 04 '24 13:12 Vinzent03