Skip to content

Failed to sign SSH on Windows #6082

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

Closed
Gokujo opened this issue Jan 25, 2025 · 7 comments · Fixed by #6028
Closed

Failed to sign SSH on Windows #6082

Gokujo opened this issue Jan 25, 2025 · 7 comments · Fixed by #6028
Labels
bug Something isn't working

Comments

@Gokujo
Copy link

Gokujo commented Jan 25, 2025

Version

0.14.6

Operating System

Windows

Distribution Method

msi (Windows)

Describe the issue

I have the same problem as described in #6013

Image

and as error I get this

Cannot open C:UsersMaximAppDataLocalTemp.tmpkWZqVX for signing: No such file or directory

I tried even through terminal

git config --global user.signingkey "C:\Users\Maxim\.ssh\id_ed25519.pub"
git config --global gpg.format ssh
git config --global gitbutler.signCommits true

How to reproduce (Optional)

  1. Open Gitbutler & Navigate to the Git settings of a Project
  2. Select to Sign commits & configure for SSH signing with a valid key & signing program empty (default)
  3. Click Test Signing

Relevant log output (Optional)

userService.BBMm1TBE.js:17 
 Error checking signing: s: Failed to sign SSH:  Cannot open C:UsersMaximAppDataLocalTemp.tmpkWZqVX for signing: No such file or directory

    at s.fromError (http://tauri.localhost/_app/immutable/chunks/ipc.BXwWcGhi.js:1:1095)
    at p (http://tauri.localhost/_app/immutable/chunks/ipc.BXwWcGhi.js:1:1299)
    at async Object.h [as onclick] (http://tauri.localhost/_app/immutable/nodes/27.BwNvshWK.js:10:818)
2025-01-25T10:55:13.754702Z  INFO check_signing_settings: crates\gitbutler-tauri\src\repo.rs:39: new id=ad6a2574-5f43-48db-8013-413bd9c62cc9
2025-01-25T10:55:13.823615Z ERROR check_signing_settings: crates\gitbutler-tauri\src\repo.rs:39: error=Error(Failed to sign SSH:  Cannot open C:UsersMaximAppDataLocalTemp.tmpysIlt5 for signing: No such file or directory
) id=ad6a2574-5f43-48db-8013-413bd9c62cc9
2025-01-25T10:55:13.823638Z  INFO check_signing_settings: crates\gitbutler-tauri\src\repo.rs:39: close time.busy=68.9ms time.idle=15.8µs id=ad6a2574-5f43-48db-8013-413bd9c62cc9
@Gokujo Gokujo added the bug Something isn't working label Jan 25, 2025
@Gokujo
Copy link
Author

Gokujo commented Jan 25, 2025

It started with the update from 0.14.4 to 0.14.6

@Byron Byron linked a pull request Jan 25, 2025 that will close this issue
@Byron Byron added the feedback requested Feedback was requested to help resolve the issue label Jan 25, 2025
@Byron
Copy link
Collaborator

Byron commented Jan 25, 2025

Thanks for reporting!

This is a duplicate of #6013 which is already fixed in the latest nightly. Could you give that a try?

I'd also hope that we can release a patch for this soon.

@Gokujo
Copy link
Author

Gokujo commented Jan 25, 2025

I thought since it's closed, it has been fixed.

I will give tomorrow a feedback

@Gokujo
Copy link
Author

Gokujo commented Jan 26, 2025

Thanks for reporting!

This is a duplicate of #6013 which is already fixed in the latest nightly. Could you give that a try?

I'd also hope that we can release a patch for this soon.

2025-01-26T12:57:33.739821Z  INFO check_signing_settings: crates\gitbutler-tauri\src\repo.rs:41: new id=20cf6daf-e9cf-4b21-ba2a-345a7b728809
2025-01-26T12:57:33.805589Z ERROR check_signing_settings: crates\gitbutler-tauri\src\repo.rs:41: error=Error(Failed to sign SSH:  Couldn't load public key \\C:\\Users\\Maxim\\.ssh\\id_ed25519.pub" C:\\Users\\Maxim\\AppData\\Local\\Temp\\.tmpSoeNHs: No such file or directory
) id=20cf6daf-e9cf-4b21-ba2a-345a7b728809
2025-01-26T12:57:33.805613Z  INFO check_signing_settings: crates\gitbutler-tauri\src\repo.rs:41: close time.busy=65.8ms time.idle=9.90µs id=20cf6daf-e9cf-4b21-ba2a-345a7b728809

@Byron
Copy link
Collaborator

Byron commented Jan 27, 2025

In the picture posted in the issue description I see the path is given as "<path>", with quotes around it. Could you remove these quotes around the signing key and try again?
Thank you.

@Gokujo
Copy link
Author

Gokujo commented Jan 27, 2025

Hmm, after restart I didn't had any qoutes. Nightly version works fine

@Byron Byron removed the feedback requested Feedback was requested to help resolve the issue label Jan 27, 2025
@Byron
Copy link
Collaborator

Byron commented Jan 27, 2025

That's great to hear, thank you!
Let's close this issue just so it's not forgotten later when the next patch arrives :) (CC @krlvi)

@Byron Byron closed this as completed Jan 27, 2025
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

Successfully merging a pull request may close this issue.

2 participants