Coder Social home page Coder Social logo

Comments (7)

jbarnett-r7 avatar jbarnett-r7 commented on September 4, 2024

Are you still having problems with the build? We've pushed a few fixes recently that may have resolved it.

from metasploitable3.

jikuja avatar jikuja commented on September 4, 2024

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.

a-garcia avatar a-garcia commented on September 4, 2024

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.

jikuja avatar jikuja commented on September 4, 2024

Thanks. That fixed the problem.

from metasploitable3.

jbarnett-r7 avatar jbarnett-r7 commented on September 4, 2024

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.

jikuja avatar jikuja commented on September 4, 2024

How much is enough for waiting time? Should it poll service until it's running and returning 200 for requests?

from metasploitable3.

a-garcia avatar a-garcia commented on September 4, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.