Giter VIP home page Giter VIP logo

Comments (5)

edwardcallahan avatar edwardcallahan commented on July 26, 2024

It only working for 127.0.0.1. Instead of empty stream, I get java.lang.RuntimeException: Problem loading the bundle: Connection failed. It works if you have ConductR reachable on localhost. cc: @huntc

from sbt-conductr.

huntc avatar huntc commented on July 26, 2024

@ktoso Could this be related to recent changes?

from sbt-conductr.

dsugden avatar dsugden commented on July 26, 2024

in TypesafeConductR

val request =
LoadBundle(
HttpUri(bundle.toString),
config map (u => HttpUri(u.toString)),
stm,
nrOfCpus,
memory.underlying,
diskSpace.underlying,
roles
)

config here is None

this is passed in from:

def loadSubtask(b: Option[File]): Parser[LoadSubtask] =
(token("load") ~> Space ~> bundle(b) ~ configuration.?) map { case (b, config) => LoadSubtask(b, config) }

where configuration is:
def configuration: Parser[URI] = Space ~> token(basicUri)

so, if you type conductr load file:///bundle.. http://x.x.x.x:9005

you get LoadSubtask(bundlefile, Some(http://x.x.x.x:9005))

from sbt-conductr.

dsugden avatar dsugden commented on July 26, 2024

You guys tell me to shut up whenever, I'm enjoying poking around though...

it looks like the ConductRController Actor is created in globalSetttings:

onLoad := onLoad.value.andThen(loadActorSystem).andThen(loadConductRController)

and is initialized with

url <- (conductrControlServerUrl in Global).get(settings)

So, not sure when/how the user inputted controlServer makes its way into that actor...

from sbt-conductr.

dsugden avatar dsugden commented on July 26, 2024

just read the other issue where @ktoso talks about supporting different configurations at load time. I guess that is what the LoadBundle.config URI is.

Would it make sense to define another message for ConductRController to set a host on

case Some(ControlServerSubtask(host)) =>

like:

TypesafeConductR.setControlServer(host)

?

from sbt-conductr.

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.