Issue Number | 4896 |
---|---|
Summary | [Internal] Error message on DEV running sftp-export.py |
Created | 2020-09-22 15:54:09 |
Issue Type | Task |
Submitted By | Englisch, Volker (NIH/NCI) [C] |
Assigned To | Englisch, Volker (NIH/NCI) [C] |
Status | Closed |
Resolved | 2020-09-28 19:51:21 |
Resolution | Fixed |
Path | /home/bkline/backups/jira/ocecdr/issue.275361 |
I ran the weekly publishing job as a test on DEV and ran into the following error. Adding ticket so we don't forget to take a look.
2020-09-22 15:21:11.396 [INFO] ssh host: ncias-p584.nci.nih.gov
2020-09-22 15:21:11.396 [INFO] rsync command: rsync --delete rae "ssh <ss options>" full* cdroperator@ncias-p584.nci.nih.gov:/sftp/sftphome/cdrstaging/pdq-dev
2020-09-22 15:21:12.459 [INFO]
2020-09-22 15:21:12.459 [INFO] *** run_command output
2020-09-22 15:21:12.459 [INFO]
2020-09-22 15:21:12.459 [INFO] *** Error:
2020-09-22 15:21:12.459 [INFO] 0 [main] ssh (8536) C:\Program Files\Git\usr\bin\ssh.exe: *** fatal error - cygheap base mismatch detected - 0x18032D408/0x180331408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version should
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
rsync: safe_read failed to read 4 bytes [sender]: No child processes (10)
rsync error: remote command not found (code 127) at io.c(276) [sender=3.1.2]
2020-09-22 15:21:12.459 [INFO] finished syncing files with errors!!!
It seems that the ssh version that's picked up is located in
C:\Program Files\Git\usr\bin
The program complains about this version but runs successfully if the full pathname for another ssh is specified (\cygwin\bin\ssh) within the rsync command. Oddly, the paths on QA are listed in the same order as the ones on DEV but we don't see the same error message on QA.
Let's add the full path for ssh to the script in Maxwell.
The following program has been updated and tested on DEV. We're now specifying the full path to ssh.exe.
sftp-export-data.py
https://github.com/NCIOCPL/cdr-publishing/commit/c1f9b86
The latest publishing job finished successfully without an error.
A full publishing job ran without error on QA.
I will close this ticket after the weekend publishing job ran successfully.
Last Friday's publishing job ran successfully with the changes to the ssh command.
Elapsed: 0:00:00.002013