clong / DetectionLab

Automate the creation of a lab environment complete with security tooling and logging best practices
MIT License
4.6k stars 980 forks source link

Error on vagrant up provisioning #84

Closed bu3alwa closed 6 years ago

bu3alwa commented 6 years ago

Description of the issue:

When I vagrant up this is what happens as its provisions. Am I doing something wrong or is this a bug?

     logger: You are using pip version 9.0.1, however version 9.0.3 is available.
    logger: You should consider upgrading via the 'pip install --upgrade pip' command.
    logger: Created symlink from /etc/systemd/system/multi-user.target.wants/mongod.service to /lib/systemd/system/mongod.service.
    logger: --2018-04-05 09:48:05--  https://github.com/mitre/caldera-crater/releases/download/v0.1.0/CraterMainWin8up.exe
    logger: Resolving github.com (github.com)... 
    logger: 192.30.253.112
    logger: , 
    logger: 192.30.253.113
    logger: Connecting to github.com (github.com)|192.30.253.112|:443... 
    logger: connected.
    logger: HTTP request sent, awaiting response... 
    logger: 302 Found
    logger: Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/112815359/6783c26e-d6f1-11e7-93f2-05f1d1ccb53e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180405%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180405T094748Z&X-Amz-Expires=300&X-Amz-Signature=18b8bfae26126cb9bba835e88b60f84e185d6d80314755328fa692a2a2b553a5&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DCraterMainWin8up.exe&response-content-type=application%2Foctet-stream [following]
    logger: --2018-04-05 09:48:06--  https://github-production-release-asset-2e65be.s3.amazonaws.com/112815359/6783c26e-d6f1-11e7-93f2-05f1d1ccb53e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180405%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180405T094748Z&X-Amz-Expires=300&X-Amz-Signature=18b8bfae26126cb9bba835e88b60f84e185d6d80314755328fa692a2a2b553a5&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DCraterMainWin8up.exe&response-content-type=application%2Foctet-stream
    logger: Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 
    logger: 52.216.130.219
    logger: Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.130.219|:443... 
    logger: connected.
    logger: HTTP request sent, awaiting response... 
    logger: 200 OK
    logger: Length: 
    logger: 17920
    logger:  (18K)
    logger:  [application/octet-stream]
    logger: Saving to: ‘/home/vagrant/caldera/dep/crater/crater/CraterMain.exe’
    logger: 
    logger:      0K
    logger:  
    logger: .
    logger: .......
    logger: .. .......                                    100%  221K=0.08s
    logger: 
    logger: 2018-04-05 09:48:07 (221 KB/s) - ‘/home/vagrant/caldera/dep/crater/crater/CraterMain.exe’ saved [17920/17920]
    logger: Created symlink from /etc/systemd/system/multi-user.target.wants/caldera.service to /lib/systemd/system/caldera.service.
==> dc: Box '../Boxes/windows_2016_virtualbox.box' could not be found. Attempting to find and install...
    dc: Box Provider: virtualbox
    dc: Box Version: >= 0
==> dc: Box file was not detected as metadata. Adding it directly...
==> dc: Adding box '../Boxes/windows_2016_virtualbox.box' (v0) for provider: virtualbox
    dc: Downloading: ../Boxes/windows_2016_virtualbox.box
#<Thread:0x0000555a89cfcf90@/opt/vagrant/embedded/gems/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:471 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
    38: from /opt/vagrant/embedded/gems/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
    37: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
    36: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/machine.rb:188:in `action'
    35: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/machine.rb:188:in `call'
    34: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/environment.rb:592:in `lock'
    33: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/machine.rb:202:in `block in action'
    32: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/machine.rb:227:in `action_raw'
    31: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/runner.rb:66:in `run'
    30: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/util/busy.rb:19:in `busy'
    29: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/runner.rb:66:in `block in run'
    28: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/builder.rb:116:in `call'
    27: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/warden.rb:34:in `call'
    26: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
    25: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/warden.rb:34:in `call'
    24: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/builtin/call.rb:53:in `call'
    23: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/runner.rb:66:in `run'
    22: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/util/busy.rb:19:in `busy'
    21: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/runner.rb:66:in `block in run'
    20: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/builder.rb:116:in `call'
    19: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/warden.rb:34:in `call'
    18: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
    17: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/warden.rb:34:in `call'
    16: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/builtin/handle_box.rb:36:in `call'
    15: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/builtin/handle_box.rb:36:in `synchronize'
    14: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/builtin/handle_box.rb:42:in `block in call'
    13: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/builtin/handle_box.rb:82:in `handle_box'
    12: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/runner.rb:66:in `run'
    11: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/util/busy.rb:19:in `busy'
    10: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/runner.rb:66:in `block in run'
     9: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/builder.rb:116:in `call'
     8: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/warden.rb:34:in `call'
     7: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/builtin/box_add.rb:120:in `call'
     6: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/builtin/box_add.rb:146:in `add_direct'
     5: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/builtin/box_add.rb:330:in `box_add'
     4: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/builtin/box_add.rb:330:in `each'
     3: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/builtin/box_add.rb:338:in `block in box_add'
     2: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/action/builtin/box_add.rb:463:in `download'
     1: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/util/downloader.rb:147:in `download!'
/opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/util/downloader.rb:259:in `execute_curl': An error occurred while downloading the remote file. The error (Vagrant::Errors::DownloaderError)
message, if any, is reproduced below. Please fix this error and try
again.

Couldn't open file /run/media/carbon/cad34605-e6ad-4c7a-8468-14d35f0a6b3b/DetectionLab/Boxes/windows_2016_virtualbox.box
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Couldn't open file /run/media/carbon/cad34605-e6ad-4c7a-8468-14d35f0a6b3b/DetectionLab/Boxes/windows_2016_virtualbox.box
┌[carbon@carbon]
bu3alwa commented 6 years ago

nvm packer just never finished properly