CDR Tickets

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
Description

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!!!

Comment entered 2020-09-25 13:57:11 by Englisch, Volker (NIH/NCI) [C]

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.

Comment entered 2020-09-26 08:20:02 by Kline, Bob (NIH/NCI) [C]

Let's add the full path for ssh to the script in Maxwell.

Comment entered 2020-09-28 19:51:05 by Englisch, Volker (NIH/NCI) [C]

The following program has been updated and tested on DEV.  We're now specifying the full path to ssh.exe.

Comment entered 2020-10-29 16:52:51 by Englisch, Volker (NIH/NCI) [C]

The latest publishing job finished successfully without an error.

Comment entered 2020-11-23 13:21:48 by Englisch, Volker (NIH/NCI) [C]

A full publishing job ran without error on QA.

Comment entered 2020-12-09 16:26:21 by Englisch, Volker (NIH/NCI) [C]

I will close this ticket after the weekend publishing job ran successfully.

Comment entered 2020-12-17 15:00:12 by Englisch, Volker (NIH/NCI) [C]

Last Friday's publishing job ran successfully with the changes to the ssh command.

Elapsed: 0:00:00.002013