paulscherrerinstitute / scicat-cli

Command line tools for interacting with the PSI SciCat data catalog
https://scicatproject.github.io/documentation/Ingestor/ingestManual.html
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Protocol error on Windows #5

Open sbliven opened 6 months ago

sbliven commented 6 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 6 months ago

(Migrated from previous mis-filed version https://github.com/paulscherrerinstitute/scicat-ci/issues/222)

sbliven commented 6 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.

kavir1698 commented 5 months ago

Was this solved on Windows 10?

kavir1698 commented 5 months ago

The error says it is a permission problem, possibly with the source/destination folders and user permissions. Doesn't seem to be a bug in the program.