Pkg.update fails on windows 7 with private repository


#1

Hi everyone,

I’m have a private package on GitLab. When I run Pkg.update() Julia is asking for the credentials of this repository. This works fine on Linux and Windows 10, however causes Julia to crash on Windows 7 Enterprise.

A “Windows Security” window opens. After the credentials are entered Julia exits without error message. The error occurs when Julia is started from the command line, git bash, or Atom.

Does anybody has a recommendation fro a work around?

Many thanks,
Dorothee

julia```
julia> versioninfo()
Julia Version 0.6.2
Commit d386e40c17* (2017-12-13 18:08 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel® Core™ i7-4770 CPU @ 3.40GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, haswell)


#2

Make sure your ssh keys are in order:
https://docs.gitlab.com/ee/ssh/

Then use the ssh protocol for the repository, instead of https. Eg change the remote, or clone starting with that.


#3

Hi, thank you for your suggestion!
I uploaded my ssh key and changed the remote. I can push and pull but when updating the Pkg I get this error:
ERROR: Update finished with errors.
=> Package SanitationSystemMassFlow cannot be updated.
GitError(Code:ERROR, Class:SSH, Failed to start SSH session: Unable to exchange encryption keys)

Any suggestions?
Dorothee


#4

I don’t use Windows so unfortunately I cannot help you with a more specific suggestion, but I would try this fix: