[SERVER-70707] Spawnhost Script unzip failure on Windows Created: 19/Oct/22  Updated: 29/Oct/23  Resolved: 24/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Matt Kneiser Assignee: Matt Kneiser
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by SERVER-69994 broken spawnhost setup for debugging ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-10-31
Participants:

 Description   

Logs from a recent spawn (script had to be re-run on the host manually to see output):

----------------------
 
=> Setting _NT_SOURCE_PATH environment variable for debuggers to pick up source files.
Source Path: [/cygdrive/z/data/mci/source-mongodb-mongo-master-68b698/src]
+ setx _NT_SOURCE_PATH /cygdrive/z/data/mci/source-mongodb-mongo-master-68b698/src
 
SUCCESS: Specified value was saved.
 
=> Setting _NT_SYMBOL_PATH environment variable for debuggers to pick up the symbols.
Symbols Dir: [/cygdrive/z/data/mci/artifacts-68b698-windows-debug-suggested_archive_dist_test_debug/extracted_symbols/dist-test/bin]
 
=> Extracting Symbol files.
+ mkdir /cygdrive/z/data/mci/artifacts-68b698-windows-debug-suggested_archive_dist_test_debug/extracted_symbols
mkdir: cannot create directory '/cygdrive/z/data/mci/artifacts-68b698-windows-debug-suggested_archive_dist_test_debug/extracted_symbols': File exists
+ unzip -n -d /cygdrive/z/data/mci/artifacts-68b698-windows-debug-suggested_archive_dist_test_debug/extracted_symbols/dist-test/bin
UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.
 
Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
  Default action is to extract files in list, except those in xlist, to exdir;
  file[.zip] may be a wildcard.  -Z => ZipInfo mode ("unzip -Z" for usage).
 
  -p  extract files to pipe, no messages     -l  list files (short format)
  -f  freshen existing files, create none    -t  test compressed archive data
  -u  update files, create if necessary      -z  display archive comment only
  -v  list verbosely/show version info       -T  timestamp archive to latest
  -x  exclude files that follow (in xlist)   -d  extract files into exdir
modifiers:
  -n  never overwrite existing files         -q  quiet mode (-qq => quieter)
  -o  overwrite files WITHOUT prompting      -a  auto-convert any text files
  -j  junk paths (do not make directories)   -aa treat ALL files as text
  -U  use escapes for all non-ASCII Unicode  -UU ignore any Unicode fields
  -C  match filenames case-insensitively     -L  make (some) names lowercase
  -X  restore UID/GID info                   -V  retain VMS version numbers
  -K  keep setuid/setgid/tacky permissions   -M  pipe through "more" pager
  -O CHARSET  specify a character encoding for DOS, Windows and OS/2 archives
  -I CHARSET  specify a character encoding for UNIX and other archives
 
See "unzip -hh" or unzip.txt for more help.  Examples:
  unzip data1 -x joe   => extract all files except joe from zipfile data1.zip
  unzip -p foo | more  => send contents of foo.zip via pipe into program more
  unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer
+ setx _NT_SYMBOL_PATH '/cygdrive/z/data/mci/artifacts-68b698-windows-debug-suggested_archive_dist_test_debug/extracted_symbols/dist-test/bin;srv*;'
 
SUCCESS: Specified value was saved.
 
=> Extracting Core Dump to Desktop.
+ mkdir /cygdrive/z/data/mci/artifacts-68b698-generate-tasks-for-version_version_expansions_gen /cygdrive/z/data/mci/artifacts-68b698-windows-debug-suggested_disk_wiredtiger/extracted_dump
mkdir: cannot create directory '/cygdrive/z/data/mci/artifacts-68b698-generate-tasks-for-version_version_expansions_gen': File exists
+ tar -xzvf /cygdrive/z/data/mci/artifacts-68b698-generate-tasks-for-version_version_expansions_gen /cygdrive/z/data/mci/artifacts-68b698-windows-debug-suggested_disk_wiredtiger/mongo-coredumps-mongodb_mongo_master_windows_debug_suggested_68b69842d9bd5413cb0596643af2b4f12a410e16_22_09_30_19_42_51-disk_wiredtiger-0.tgz -C /cygdrive/z/data/mci/artifacts-68b698-generate-tasks-for-version_version_expansions_gen /cygdrive/z/data/mci/artifacts-68b698-windows-debug-suggested_disk_wiredtiger/extracted_dump
tar (child): /cygdrive/z/data/mci/artifacts-68b698-generate-tasks-for-version_version_expansions_gen: Cannot read: Is a directory
tar (child): At beginning of tape, quitting now
tar (child): Error is not recoverable: exiting now
 
gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Error is not recoverable: exiting now
+ cp -r /cygdrive/z/data/mci/artifacts-68b698-generate-tasks-for-version_version_expansions_gen '/cygdrive/z/data/mci/artifacts-68b698-windows-debug-suggested_disk_wiredtiger/extracted_dump/*' /cygdrive/c/Users/Administrator/Desktop
cp: cannot stat '/cygdrive/z/data/mci/artifacts-68b698-windows-debug-suggested_disk_wiredtiger/extracted_dump/*': No such file or directory
Copied to Desktop. 



 Comments   
Comment by Githook User [ 24/Oct/22 ]

Author:

{'name': 'Matt Kneiser', 'email': 'matt.kneiser@mongodb.com', 'username': 'themattman'}

Message: SERVER-70707 Fix bug in Windows portion of Spawnhost script
Branch: master
https://github.com/mongodb/mongo/commit/372fbb1a0383c33bd77f13755e0fb472d062749c

Generated at Thu Feb 08 06:16:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.