num-codex / num-knoten

This repository contains the deployment package for the CODEX NUM-Knoten.
6 stars 3 forks source link

Problems with file paths on Windows systems #34

Closed sebmate closed 3 years ago

sebmate commented 3 years ago

01_start-single-host-environment.sh causes Docker error (invalid reference format) on Windows system. Console output:

Create num node docker network, if it does not exist... Creating longer Diffie-Hellman Prime for extra security... this may take a while docker: invalid reference format. See 'docker run --help'.

sebmate commented 3 years ago

OK, the error above is caused by spaces in the current working directory (could probably be mitigated by putting $PWD into quotes). However, after renaming the directory (while NOT trying to fix the above issue) I run into the following issue:

Create num node docker network, if it does not exist... Creating longer Diffie-Hellman Prime for extra security... this may take a while \n\n Can't open C:/Program Files/Git/export/dhparam.pem for writing, No such file or directory 140139048648008:error:02001002:system library:fopen:No such file or directory:crypto/bio/bss_file.c:69:fopen('C:/Program Files/Git/export/dhparam.pem','w') 140139048648008:error:2006D080:BIO routines:BIO_new_file:no such file:crypto/bio/bss_file.c:76: /c/Users/matesn/Documents/Development/GitHub/num-knoten_c/node-rev-proxy/dhparam.pem Generating default certificate... Generating a RSA private key .............................................................++++ ....................................................++++ writing new private key to 'C:/Program Files/Git/export/key.pem' req: Can't open "C:/Program Files/Git/export/key.pem" for writing, No such file or directory generating user: user , with password: password

sebmate commented 3 years ago

As explained in the readme.md: On Windows 10 systems and when using Git Bash, you may encounter a path-related problem. The problem can be mitigated by executing "export MSYS_NO_PATHCONV=1" before running the script (details: https://github.com/docker/toolbox/issues/673).

VGerris commented 3 years ago

that does not work, except when using https://github.com/rprichard/winpty/releases, seems to be a bug.