Comments (7)
Are you still having problems with the build? We've pushed a few fixes recently that may have resolved it.
from metasploitable3.
I'm getting same. Using
- Current master: ef8fed0
- OS: Debian testing
- Packer: v0.10.2
- Vagrant: 1.9.1
- Virtualbox: 5.1.14
Full log for vagrant up
https://gist.githubusercontent.com/anonymous/8bdcc2621d9f49869b1c002f59d444ce/raw/2408ba6093a20231a759560db58954f87f1bc64f/elastic.log Seems to be identical with this and #73.
from metasploitable3.
Hi everyone,
I changed the sleep time from 5 to 30 seconds within the metasploitable3\scripts\installs\install_elasticsearch.bat file. I believe that the original 5 seconds is not enough time for some machines to start elasticsearch and run a successful GetResponse().
The specific line that I changed in metasploitable3\scripts\installs\install_elasticsearch.bat file was from this:
powershell -Command "Start-Sleep -s 5"
to this:
powershell -Command "Start-Sleep -s 30"
This is the first time I have ever commented on anything on GitHub, so hopefully this helps with this specific problem.
This is what I am currently using, just in case anyone is wondering.
Packer: 0.12.2
Vagrant: 1.9.1
Virtualbox: 5.1.14
from metasploitable3.
Thanks. That fixed the problem.
from metasploitable3.
Nice fix, @a-garcia. Definitely sounds like that timer should be increased to have better support for more systems. Would you mind submitting a PR with the change?
from metasploitable3.
How much is enough for waiting time? Should it poll service until it's running and returning 200 for requests?
from metasploitable3.
@jbarnett-r7, I have attempted to submit the PR, please let me know if you don't see it. I haven't worked on a project in awhile so my git skills are a little rusty. Just kind of started tinkering with metasploitable :).
@jikuja, that sounds like an efficient way of solving that issue. A blanket time frame may not be the most optimal solution. How about a try catch? An issue I see is if for some reason the service does not start for some reason, does the polling functionality eventually stop? I think either way there might have to be some kind of timing mechanism for the given scenarios.
from metasploitable3.
Related Issues (20)
- Error executing action `run` on resource 'execute[patch php]'
- build issues HOT 1
- Vagrant failed to initialize at a very early stage
- Error building win2k8 qemu
- Digest initialization failed: initialization error HOT 4
- unable to build ubuntu1404 - Unknown provisioner chef-solo HOT 1
- Issues building Ubuntu1404 box - pink screen / SSH timeout HOT 3
- The SSH connection was unexpectedly closed by the remote end. HOT 5
- openjdk-1.6.0-unofficial repository to download not found HOT 4
- Cant login windows2k8 HOT 1
- Packer v1 issue HOT 1
- vagrant up stop here HOT 1
- [HELP] Can't build ps1 HOT 2
- "Script exited with non-zero exit status: 36" HOT 1
- packer in WSL windows cannot retrieve virtualbox VBoxGuestAdditions.iso HOT 1
- I have sam problem so where is answer for this Q ? HOT 1
- The virtual machine is unable to install Docker. HOT 3
- "./build.sh: line 36: 1.6.0: command not found" when running build.sh HOT 2
- Error executing action "run" on resource "execute[apt-get -q update]" -- SPECIFICALLY DOCKER-CE
- dependency versions causing troubles
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metasploitable3.