paulscherrerinstitute / scicat-ci

CI related information to deploy SciCat
BSD 2-Clause "Simplified" License
4 stars 2 forks source link

Protocol error on Windows #222

Closed sbliven closed 8 months ago

sbliven commented 8 months ago

I'm running into the following error using the windows client (from main branch).

Command:

datasetIngestor.exe -testenv -token $TOKEN -noninteractive -allowexistingsource -ingest -copy -user $USER:$PASSWD C:/Users/bliven_s/Downloads/wintest/metadata.json

The file transfer fails with the following:

Sendcommand: scp -rtp archive/e3c47765-36f9-406e-81b9-e62c584721bd/Users/bliven_s/Downloads
Copied:  C:\Users\bliven_s\Downloads\wintest\metadata.json
scp: archive/e3c47765-36f9-406e-81b9-e62c584721bd/Users/bliven_s/Downloads/wintest/metadata.json: Permission denied
scp: protocol error: expected control record

Worse, the tool reports success and exists with status 0.

sbliven commented 8 months ago

Michael KG reports:

You need also a special OpenSSL version @Windows. Windows Ingestor doesn't work with older OpenSSL versions in M$ Server.

Indeed, this VM uses Windows Server 2019 with OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5.

I will test it tomorrow with Windows 10.

sbliven commented 8 months ago

Oops, this was intended for the scicat-cli repo.