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

./config.ps1 isn't being downloaded #1277

Closed
TRGamer-tech opened this issue Jun 29, 2021 · 7 comments
Closed

./config.ps1 isn't being downloaded #1277

TRGamer-tech opened this issue Jun 29, 2021 · 7 comments
Labels
Bug An error, flaw, misbehavior or failure in the Monkey or Monkey Island. Complexity: Low Impact: Low

Comments

@TRGamer-tech
Copy link
Contributor

Describe the bug

A clear and concise description of what the bug is.

The $webclient.downloadfile command doesn't work in combination with the deploy_windows.ps1 script.

To Reproduce

Steps to reproduce the behavior:

  1. Get deploy_windows.ps1 script from GitHub
  2. Run it
  3. See Error:
The term './config.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.

Expected behavior

A description of what you expected to happen.

The script is supposed to download the config.ps1 file and execute it without any problems.

Screenshots

If applicable, add screenshots to help explain your problem.

image

Machine version (please complete the following information):

  • OS: Windows 10
@TRGamer-tech TRGamer-tech added the Bug An error, flaw, misbehavior or failure in the Monkey or Monkey Island. label Jun 29, 2021
@shreyamalviya
Copy link
Contributor

shreyamalviya commented Jun 29, 2021

Hi @TRGamer-tech! config.ps1 is downloaded to the Monkey home directory (C:\Users\IslandAdm\Desktop\monkey for you), but the deployment script checks for it in the current directory. Can you try running deploy_windows.ps1 from the Monkey home directory?

@TRGamer-tech
Copy link
Contributor Author

I did just that and many more things together with @VakarisZ.
Nothing seems to work (at least for me)

@TRGamer-tech
Copy link
Contributor Author

image
Thats what it looks like (in englisch)

@shreyamalviya
Copy link
Contributor

The command it should be running is git clone --single-branch --recurse-submodules -b $branch $MONKEY_GIT_URL $monkey_home 2>&1 but since it couldn't find config.ps1, $MONKEY_GIT_URL is empty. What error do you get when you run deploy_windows.ps1 from within C:\Users\IslandAdm\Desktop\monkey?

@TRGamer-tech
Copy link
Contributor Author

TRGamer-tech commented Jun 30, 2021

I tried that as well, no results at all. When I replace the $WebClient.DownloadFile with Invoke-WebRequest it works just fine.

@mssalvatore
Copy link
Collaborator

@ordabach Did you see this issue when running the deployment script?

@mssalvatore
Copy link
Collaborator

This was resolved somewhere along the way. There are still some other issues with the deployment script, but this isn't one of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug An error, flaw, misbehavior or failure in the Monkey or Monkey Island. Complexity: Low Impact: Low
Projects
None yet
Development

No branches or pull requests

3 participants