guardicore / guardicore/monkey

Failing deployment scripts

Open
#1,847 0 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
Python
Stars
7.1k
Forks
830
PR merge metrics
No merged PRs in 30d

Description

## Describe the bug
Deployment scripts fail on both OS's.
On linux it fails to install swimm:
```
DEPLOYMENT SCRIPT: Installing swimm
dpkg-deb: error: '/home/vakaris_zilius/swimm' is not a Debian format archive
dpkg: error processing archive /home/vakaris_zilius/swimm (--install):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/home/vakaris_zilius/swimm
Hit:1 http://europe-west3.gce.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://europe-west3.gce.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu bionic InRelease
Hit:4 http://europe-west3.gce.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:5 https://deb.nodesource.com/node_16.x bionic InRelease
Get:6 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Fetched 88.7 kB in 2s (39.2 kB/s)
```

On windows pipenv is not found:
```
Installing python packages for island
pipenv : The term 'pipenv' 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.
At C:\Users\User\deploy_windows.ps1:148 char:5
+ pipenv install --dev
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (pipenv:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
```

Updating npm:
```
Npm already installed
Updating npm
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: infection-monkey@1.13.0
npm ERR! Found: webpack@5.71.0
npm ERR! node_modules/webpack
npm ERR! dev webpack@"^5.58.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^2.0.0 || ^3.0.0 || ^4.0.0" from file-loader@1.1.11
npm ERR! node_modules/file-loader
npm ERR! dev file-loader@"^1.1.11" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\User\AppData\Local\npm-cache\eresolve-report.txt for a full report.
```

Swimm install:
```
Downloading Swimm...
Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: The connection was closed
unexpectedly."
At C:\Users\User\deploy_windows.ps1:267 char:5
+ $webClient.DownloadFile($SWIMM_URL, $swimm_filename)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : WebException

Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
At C:\Users\User\deploy_windows.ps1:268 char:5
+ Start-Process $swimm_filename
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
```

## To Reproduce
Steps to reproduce the behavior:
1. Configure the Monkey with X settings
2. Run the monkey on specific machine
3. See error

## Machine version (please complete the following information):
- OS: Windows and Linux

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.