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

DocumenterTools.genkeys() fails on Windows #64

Closed
AshlinHarris opened this issue Sep 6, 2022 · 6 comments · Fixed by #65
Closed

DocumenterTools.genkeys() fails on Windows #64

AshlinHarris opened this issue Sep 6, 2022 · 6 comments · Fixed by #65
Labels
bug Something isn't working

Comments

@AshlinHarris
Copy link

The instructions for generating SSH deploy keys work on MacOS and Linux, but running DocumenterTools.genkeys() on Windows (with either Julia 1.7 or 1.8) gives the following error:

julia>  DocumenterTools.genkeys(user="<username>", repo="<package>.jl")
ERROR: failed to generate a SSH key pair.
Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:35
 [2] genkeys(; user::String, repo::String)
   @ DocumenterTools C:\Users\<username>\.julia\packages\DocumenterTools\TP1yT\src\genkeys.jl:61
 [3] top-level scope
   @ REPL[2]:1
@mortenpi mortenpi added the bug Something isn't working label Sep 7, 2022
mortenpi added a commit that referenced this issue Sep 7, 2022
@mortenpi
Copy link
Member

mortenpi commented Sep 7, 2022

Blah. This is some weird heisenbug.. I was able to reproduce it a few times, but then it stopped. It looked like it only happened on 1.8 (1.7.3 was fine) and with Pkg-added DocumenterTools (as opposed to from a cloned repo).. but since it also works for those cases now, I am no longer sure.

It looks like ssh-keygen fails sometimes, probably due to some weird interaction with the system. I created a branch that actually prints the error (mp/show-genkeys-error), so if anyone runs into this, please check if it also happens with that branch. The following should suffice to run the modified branch:

pkg> activate --temp
pkg> add DocumenterTools#mp/show-genkeys-error
julia> using DocumenterTools
julia> DocumenterTools.genkeys()

@AshlinHarris
Copy link
Author

Thank you! Here is my error output with the show-genkeys-error branch:

julia>  DocumenterTools.genkeys()
Generating public/private rsa key pair.
Your identification has been saved in documenter-private-key
Unable to save public key to documenter-private-key.pub: No such file or directory
┌ Error: failed to generate a SSH key pair.
│   exception =
│    failed process: Process(setenv(`'C:\Users\aharri69\.julia\artifacts\29b66f847af6c9c6324db3acc63c159b47813c85\bin\ssh-keygen.exe' -N '' -C Documenter -m PEM -f documenter-private-key`,["WINDIR=C:\\WINDOWS", "PATH=C:\\Users\\aharri69\\AppData\\Local\\Programs\\Julia-1.8.0\\bin;C:\\Users\\aharri69\\.julia\\artifacts\\ac384c0d7a29e5368b83c8725d1211e41c889fd8\\bin;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Julia-1.8.0\\bin\\..\\lib\\julia;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Julia-1.8.0\\bin\\..\\lib;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Julia-1.8.0\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\MATLAB\\R2021b\\bin;C:\\Program Files\\SASHome\\SASFoundation\\9.4\\core\\sasexe;C:\\Program Files\\SASHome\\SASFoundation\\9.4\\ets\\sasexe;C:\\Program Files\\SASHome\\Secure\\ccme4;C:\\Program Files\\SASHome\\SASFoundation\\9.4\\core\\sasext;C:\\Program Files\\Wolfram Research\\WolframScript\\;C:\\Program Files\\Git\\cmd;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files\\Git LFS;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\PostgreSQL\\9.3\\bin;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\aharri69\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Vim\\vim82;C:\\texlive\\2021\\bin\\win32;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Julia-1.8.0\\bin", "USERDOMAIN_ROAMINGPROFILE=AD", "USERNAME=aharri69", "WSLENV=WT_SESSION::WT_PROFILE_ID", "LOCALAPPDATA=C:\\Users\\aharri69\\AppData\\Local", "WT_SESSION=28675f1f-81a9-477b-9da2-2ecd4156d49d", "HOMEPATH=\\Users\\aharri69", "GIT_LFS_PATH=C:\\Program Files\\Git LFS", "PROGRAMFILES(X86)=C:\\Program Files (x86)"  …  "UATDATA=C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77", "ALLUSERSPROFILE=C:\\ProgramData", "PROGRAMW6432=C:\\Program Files", "WT_PROFILE_ID={61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "TEMP=C:\\Users\\aharri69\\AppData\\Local\\Temp", "HOMEDRIVE=C:", "COMMONPROGRAMFILES=C:\\Program Files\\Common Files", "COMPUTERNAME=BMR2HJK1F42", "PROCESSOR_ARCHITECTURE=AMD64", "ONEDRIVE=C:\\Users\\aharri69\\OneDrive"]), ProcessExited(255)) [255]
│
│    Stacktrace:
│      [1] pipeline_error
│        @ .\process.jl:565 [inlined]
│      [2] run(::Cmd; wait::Bool)
│        @ Base .\process.jl:480
│      [3] run
│        @ .\process.jl:477 [inlined]
│      [4] genkeys(; user::String, repo::String)
│        @ DocumenterTools C:\Users\aharri69\.julia\packages\DocumenterTools\QbTvH\src\genkeys.jl:62
│      [5] genkeys()
│        @ DocumenterTools C:\Users\aharri69\.julia\packages\DocumenterTools\QbTvH\src\genkeys.jl:53
│      [6] top-level scope
│        @ REPL[5]:1
│      [7] eval
│        @ .\boot.jl:368 [inlined]
│      [8] eval_user_input(ast::Any, backend::REPL.REPLBackend)
│        @ REPL C:\Users\aharri69\AppData\Local\Programs\Julia-1.8.0\share\julia\stdlib\v1.8\REPL\src\REPL.jl:151
│      [9] repl_backend_loop(backend::REPL.REPLBackend)
│        @ REPL C:\Users\aharri69\AppData\Local\Programs\Julia-1.8.0\share\julia\stdlib\v1.8\REPL\src\REPL.jl:247
│     [10] start_repl_backend(backend::REPL.REPLBackend, consumer::Any)
│        @ REPL C:\Users\aharri69\AppData\Local\Programs\Julia-1.8.0\share\julia\stdlib\v1.8\REPL\src\REPL.jl:232
│     [11] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool)
│        @ REPL C:\Users\aharri69\AppData\Local\Programs\Julia-1.8.0\share\julia\stdlib\v1.8\REPL\src\REPL.jl:369
│     [12] run_repl(repl::REPL.AbstractREPL, consumer::Any)
│        @ REPL C:\Users\aharri69\AppData\Local\Programs\Julia-1.8.0\share\julia\stdlib\v1.8\REPL\src\REPL.jl:355
│     [13] (::Base.var"#966#968"{Bool, Bool, Bool})(REPL::Module)
│        @ Base .\client.jl:419
│     [14] #invokelatest#2
│        @ .\essentials.jl:729 [inlined]
│     [15] invokelatest
│        @ .\essentials.jl:726 [inlined]
│     [16] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
│        @ Base .\client.jl:404
│     [17] exec_options(opts::Base.JLOptions)
│        @ Base .\client.jl:318
│     [18] _start()
│        @ Base .\client.jl:522
└ @ DocumenterTools C:\Users\aharri69\.julia\packages\DocumenterTools\QbTvH\src\genkeys.jl:64
ERROR: failed process: Process(setenv(`'C:\Users\aharri69\.julia\artifacts\29b66f847af6c9c6324db3acc63c159b47813c85\bin\ssh-keygen.exe' -N '' -C Documenter -m PEM -f documenter-private-key`,["WINDIR=C:\\WINDOWS", "PATH=C:\\Users\\aharri69\\AppData\\Local\\Programs\\Julia-1.8.0\\bin;C:\\Users\\aharri69\\.julia\\artifacts\\ac384c0d7a29e5368b83c8725d1211e41c889fd8\\bin;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Julia-1.8.0\\bin\\..\\lib\\julia;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Julia-1.8.0\\bin\\..\\lib;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Julia-1.8.0\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\MATLAB\\R2021b\\bin;C:\\Program Files\\SASHome\\SASFoundation\\9.4\\core\\sasexe;C:\\Program Files\\SASHome\\SASFoundation\\9.4\\ets\\sasexe;C:\\Program Files\\SASHome\\Secure\\ccme4;C:\\Program Files\\SASHome\\SASFoundation\\9.4\\core\\sasext;C:\\Program Files\\Wolfram Research\\WolframScript\\;C:\\Program Files\\Git\\cmd;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files\\Git LFS;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\PostgreSQL\\9.3\\bin;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\aharri69\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Vim\\vim82;C:\\texlive\\2021\\bin\\win32;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Julia-1.8.0\\bin", "USERDOMAIN_ROAMINGPROFILE=AD", "USERNAME=aharri69", "WSLENV=WT_SESSION::WT_PROFILE_ID", "LOCALAPPDATA=C:\\Users\\aharri69\\AppData\\Local", "WT_SESSION=28675f1f-81a9-477b-9da2-2ecd4156d49d", "HOMEPATH=\\Users\\aharri69", "GIT_LFS_PATH=C:\\Program Files\\Git LFS", "PROGRAMFILES(X86)=C:\\Program Files (x86)"  …  "UATDATA=C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77", "ALLUSERSPROFILE=C:\\ProgramData", "PROGRAMW6432=C:\\Program Files", "WT_PROFILE_ID={61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "TEMP=C:\\Users\\aharri69\\AppData\\Local\\Temp", "HOMEDRIVE=C:", "COMMONPROGRAMFILES=C:\\Program Files\\Common Files", "COMPUTERNAME=BMR2HJK1F42", "PROCESSOR_ARCHITECTURE=AMD64", "ONEDRIVE=C:\\Users\\aharri69\\OneDrive"]), ProcessExited(255)) [255]

Stacktrace:
 [1] pipeline_error
   @ .\process.jl:565 [inlined]
 [2] run(::Cmd; wait::Bool)
   @ Base .\process.jl:480
 [3] run
   @ .\process.jl:477 [inlined]
 [4] genkeys(; user::String, repo::String)
   @ DocumenterTools C:\Users\aharri69\.julia\packages\DocumenterTools\QbTvH\src\genkeys.jl:62
 [5] genkeys()
   @ DocumenterTools C:\Users\aharri69\.julia\packages\DocumenterTools\QbTvH\src\genkeys.jl:53
 [6] top-level scope
   @ REPL[5]:1

@mortenpi
Copy link
Member

Ok, so this is starting to look like an upstream bug. ssh-keygen fails to write the other output file for some reason:

Unable to save public key to documenter-private-key.pub: No such file or directory

@AshlinHarris Are you also able to replicate the issue with vanilla ssh-keygen JLL?

pkg> activate --temp
pkg> add OpenSSH_jll
julia> using OpenSSH_jll: ssh_keygen
julia> sshkeygen = ssh_keygen()
julia> run(`$(sshkeygen) -N "" -C Documenter -m PEM -f documenter-private-key.pub`)

@AshlinHarris
Copy link
Author

Yes, I get the same failed process error:

julia> using OpenSSH_jll: ssh_keygen
[ Info: Precompiling OpenSSH_jll [9bd350c2-7e96-507f-8002-3f2e150b4e1b]

julia> sshkeygen = ssh_keygen()
setenv(`'C:\Users\aharri69\.julia\artifacts\29b66f847af6c9c6324db3acc63c159b47813c85\bin\ssh-keygen.exe'`,["WINDIR=C:\\WINDOWS", "PATH=C:\\Users\\aharri69\\.julia\\juliaup\\julia-1.8.0+0.x64\\bin;C:\\Users\\aharri69\\.julia\\artifacts\\ac384c0d7a29e5368b83c8725d1211e41c889fd8\\bin;C:\\Users\\aharri69\\.julia\\juliaup\\julia-1.8.0+0.x64\\bin\\..\\lib\\julia;C:\\Users\\aharri69\\.julia\\juliaup\\julia-1.8.0+0.x64\\bin\\..\\lib;C:\\Users\\aharri69\\.julia\\juliaup\\julia-1.8.0+0.x64\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\MATLAB\\R2021b\\bin;C:\\Program Files\\SASHome\\SASFoundation\\9.4\\core\\sasexe;C:\\Program Files\\SASHome\\SASFoundation\\9.4\\ets\\sasexe;C:\\Program Files\\SASHome\\Secure\\ccme4;C:\\Program Files\\SASHome\\SASFoundation\\9.4\\core\\sasext;C:\\Program Files\\Wolfram Research\\WolframScript\\;C:\\Program Files\\Git\\cmd;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files\\Git LFS;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\PostgreSQL\\9.3\\bin;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\aharri69\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Vim\\vim82;C:\\texlive\\2021\\bin\\win32;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Julia-1.8.0\\bin", "USERDOMAIN_ROAMINGPROFILE=AD", "USERNAME=aharri69", "WSLENV=WT_SESSION::WT_PROFILE_ID", "LOCALAPPDATA=C:\\Users\\aharri69\\AppData\\Local", "WT_SESSION=9ab081af-d739-4e33-bc52-3054a8001947", "HOMEPATH=\\Users\\aharri69", "GIT_LFS_PATH=C:\\Program Files\\Git LFS", "PROGRAMFILES(X86)=C:\\Program Files (x86)"  …  "UATDATA=C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77", "ALLUSERSPROFILE=C:\\ProgramData", "PROGRAMW6432=C:\\Program Files", "WT_PROFILE_ID={61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "TEMP=C:\\Users\\aharri69\\AppData\\Local\\Temp", "HOMEDRIVE=C:", "COMMONPROGRAMFILES=C:\\Program Files\\Common Files", "COMPUTERNAME=BMR2HJK1F42", "PROCESSOR_ARCHITECTURE=AMD64", "ONEDRIVE=C:\\Users\\aharri69\\OneDrive"])

julia>  run(`$(sshkeygen) -N "" -C Documenter -m PEM -f documenter-private-key.pub`)
Generating public/private rsa key pair.
Your identification has been saved in documenter-private-key.pub
Unable to save public key to documenter-private-key.pub.pub: No such file or directory
ERROR: failed process: Process(setenv(`'C:\Users\aharri69\.julia\artifacts\29b66f847af6c9c6324db3acc63c159b47813c85\bin\ssh-keygen.exe' -N '' -C Documenter -m PEM -f documenter-private-key.pub`,["WINDIR=C:\\WINDOWS", "PATH=C:\\Users\\aharri69\\.julia\\juliaup\\julia-1.8.0+0.x64\\bin;C:\\Users\\aharri69\\.julia\\artifacts\\ac384c0d7a29e5368b83c8725d1211e41c889fd8\\bin;C:\\Users\\aharri69\\.julia\\juliaup\\julia-1.8.0+0.x64\\bin\\..\\lib\\julia;C:\\Users\\aharri69\\.julia\\juliaup\\julia-1.8.0+0.x64\\bin\\..\\lib;C:\\Users\\aharri69\\.julia\\juliaup\\julia-1.8.0+0.x64\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\MATLAB\\R2021b\\bin;C:\\Program Files\\SASHome\\SASFoundation\\9.4\\core\\sasexe;C:\\Program Files\\SASHome\\SASFoundation\\9.4\\ets\\sasexe;C:\\Program Files\\SASHome\\Secure\\ccme4;C:\\Program Files\\SASHome\\SASFoundation\\9.4\\core\\sasext;C:\\Program Files\\Wolfram Research\\WolframScript\\;C:\\Program Files\\Git\\cmd;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files\\Git LFS;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\PostgreSQL\\9.3\\bin;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\aharri69\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Vim\\vim82;C:\\texlive\\2021\\bin\\win32;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Julia-1.8.0\\bin", "USERDOMAIN_ROAMINGPROFILE=AD", "USERNAME=aharri69", "WSLENV=WT_SESSION::WT_PROFILE_ID", "LOCALAPPDATA=C:\\Users\\aharri69\\AppData\\Local", "WT_SESSION=9ab081af-d739-4e33-bc52-3054a8001947", "HOMEPATH=\\Users\\aharri69", "GIT_LFS_PATH=C:\\Program Files\\Git LFS", "PROGRAMFILES(X86)=C:\\Program Files (x86)"  …  "UATDATA=C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77", "ALLUSERSPROFILE=C:\\ProgramData", "PROGRAMW6432=C:\\Program Files", "WT_PROFILE_ID={61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "TEMP=C:\\Users\\aharri69\\AppData\\Local\\Temp", "HOMEDRIVE=C:", "COMMONPROGRAMFILES=C:\\Program Files\\Common Files", "COMPUTERNAME=BMR2HJK1F42", "PROCESSOR_ARCHITECTURE=AMD64", "ONEDRIVE=C:\\Users\\aharri69\\OneDrive"]), ProcessExited(255)) [255]

Stacktrace:
 [1] pipeline_error
   @ .\process.jl:565 [inlined]
 [2] run(::Cmd; wait::Bool)
   @ Base .\process.jl:480
 [3] run(::Cmd)
   @ Base .\process.jl:477
 [4] top-level scope
   @ REPL[5]:1

julia>  run(`$(sshkeygen) -N "" -C Documenter -m PEM -f documenter-private-key`) # Trying again without .pub
Generating public/private rsa key pair.
Your identification has been saved in documenter-private-key
Unable to save public key to documenter-private-key.pub: No such file or directory
ERROR: failed process: Process(setenv(`'C:\Users\aharri69\.julia\artifacts\29b66f847af6c9c6324db3acc63c159b47813c85\bin\ssh-keygen.exe' -N '' -C Documenter -m PEM -f documenter-private-key`,["WINDIR=C:\\WINDOWS", "PATH=C:\\Users\\aharri69\\.julia\\juliaup\\julia-1.8.0+0.x64\\bin;C:\\Users\\aharri69\\.julia\\artifacts\\ac384c0d7a29e5368b83c8725d1211e41c889fd8\\bin;C:\\Users\\aharri69\\.julia\\juliaup\\julia-1.8.0+0.x64\\bin\\..\\lib\\julia;C:\\Users\\aharri69\\.julia\\juliaup\\julia-1.8.0+0.x64\\bin\\..\\lib;C:\\Users\\aharri69\\.julia\\juliaup\\julia-1.8.0+0.x64\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\MATLAB\\R2021b\\bin;C:\\Program Files\\SASHome\\SASFoundation\\9.4\\core\\sasexe;C:\\Program Files\\SASHome\\SASFoundation\\9.4\\ets\\sasexe;C:\\Program Files\\SASHome\\Secure\\ccme4;C:\\Program Files\\SASHome\\SASFoundation\\9.4\\core\\sasext;C:\\Program Files\\Wolfram Research\\WolframScript\\;C:\\Program Files\\Git\\cmd;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files\\Git LFS;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\PostgreSQL\\9.3\\bin;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\aharri69\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Vim\\vim82;C:\\texlive\\2021\\bin\\win32;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\aharri69\\AppData\\Local\\Programs\\Julia-1.8.0\\bin", "USERDOMAIN_ROAMINGPROFILE=AD", "USERNAME=aharri69", "WSLENV=WT_SESSION::WT_PROFILE_ID", "LOCALAPPDATA=C:\\Users\\aharri69\\AppData\\Local", "WT_SESSION=9ab081af-d739-4e33-bc52-3054a8001947", "HOMEPATH=\\Users\\aharri69", "GIT_LFS_PATH=C:\\Program Files\\Git LFS", "PROGRAMFILES(X86)=C:\\Program Files (x86)"  …  "UATDATA=C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77", "ALLUSERSPROFILE=C:\\ProgramData", "PROGRAMW6432=C:\\Program Files", "WT_PROFILE_ID={61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "TEMP=C:\\Users\\aharri69\\AppData\\Local\\Temp", "HOMEDRIVE=C:", "COMMONPROGRAMFILES=C:\\Program Files\\Common Files", "COMPUTERNAME=BMR2HJK1F42", "PROCESSOR_ARCHITECTURE=AMD64", "ONEDRIVE=C:\\Users\\aharri69\\OneDrive"]), ProcessExited(255)) [255]

Stacktrace:
 [1] pipeline_error
   @ .\process.jl:565 [inlined]
 [2] run(::Cmd; wait::Bool)
   @ Base .\process.jl:480
 [3] run(::Cmd)
   @ Base .\process.jl:477
 [4] top-level scope
   @ REPL[6]:1

@mortenpi
Copy link
Member

Okay, so it turns out the issue is that we write out the temporary key files into the working directory, but on Windows Julia starts at:

julia> pwd()
"C:\\Windows\\system32"

and so ssh-keygen doesn't have the permissions. #65 should fix this.

@AshlinHarris
Copy link
Author

#65 works. Thanks!

mortenpi added a commit that referenced this issue Sep 14, 2022
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