Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline usage of -GetPrereqs Timed out after 0 seconds #191

Closed
ndex11 opened this issue Apr 24, 2024 · 4 comments
Closed

Offline usage of -GetPrereqs Timed out after 0 seconds #191

ndex11 opened this issue Apr 24, 2024 · 4 comments

Comments

@ndex11
Copy link

ndex11 commented Apr 24, 2024

I have installed Atomics and Invoke-atomicred on the online machine.
Then run command Invoke-AtomicTest All -GetPrereqs and prereqs were downloaded and installed.
I have copied whole AtomicsRed directory to the same location on the offline machine.
When I try to run command Invoke-AtomicTest All -GetPrereqs on the offline machine I am getting error Process Timed out after 0 seconds, use '-TimeoutSeconds' to specify a different timeout
This error is generated for every test and no prereqs have being installed into the system.

Example:
Attempting to satisfy prereq: Computer must have python 3 installed
VERBOSE: Replacing inputArgs with user specified values, or default values if none provided
VERBOSE: Replacing inputArgs with user specified values, or default values if none provided
VERBOSE: Invoking Atomic Tests using defined executor
VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_Process'.
VERBOSE: Operation 'Enumerate CimInstances' complete.
Process Timed out after 0 seconds, use '-TimeoutSeconds' to specify a different timeout
VERBOSE: Invoking Atomic Tests using defined executor
VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_Process'.
VERBOSE: Operation 'Enumerate CimInstances' complete.
VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_Process'.
VERBOSE: Operation 'Enumerate CimInstances' complete.
VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_Process'.
VERBOSE: Operation 'Enumerate CimInstances' complete.
Process Timed out after 0 seconds, use '-TimeoutSeconds' to specify a different timeout
VERBOSE: Invoking Atomic Tests using defined executor
VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_Process'.
VERBOSE: Operation 'Enumerate CimInstances' complete.
Process Timed out after 0 seconds, use '-TimeoutSeconds' to specify a different timeout
Failed to meet prereq: Computer must have python 3 installed

@ndex11
Copy link
Author

ndex11 commented Apr 25, 2024

There is no check, If installer already exists in ExternalPayloads directory, in get_prereq_command in yaml file. Would be great to check if installer exists and then skip Invoke-WebRequest which is causing timeout error in my opinion.

@Jake151
Copy link
Contributor

Jake151 commented Apr 25, 2024

Hi @ndex11 - This bug should be fixed in #190. You'll need to redownload invoke-atomicredteam from the repo for this to work.

@ndex11
Copy link
Author

ndex11 commented Apr 26, 2024

Problem solved, thank you...

@cyberbuff
Copy link
Collaborator

Appreciate your help @Jake151 Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants