Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Timeout error on localhost https #147

Open
peacekeeper opened this issue Mar 4, 2015 · 2 comments
Open

Timeout error on localhost https #147

peacekeeper opened this issue Mar 4, 2015 · 2 comments

Comments

@peacekeeper
Copy link

If I start as follows:

./activator run -Dhttps.port=9001 -Dhttps.trustStore=noCA -Dakka.loglevel=DEBUG -Dakka.debug.receive=on -Drww.root.container.path=test_www -Dhttp.hostname=freedom.box 

And then I go to https://127.0.0.1:9001, I get this error:

Ask timed out on [Actor[akka://rww/user/router#-387609008]] after [30000 ms]
akka.pattern.AskTimeoutException: Ask timed out on [Actor[akka://rww/user/router#-387609008]] after [30000 ms]
        at akka.pattern.PromiseActorRef$$anonfun$1.apply$mcV$sp(AskSupport.scala:333)
        at akka.actor.Scheduler$$anon$7.run(Scheduler.scala:117)
        at scala.concurrent.Future$InternalCallbackExecutor$.scala$concurrent$Future$InternalCallbackExecutor$$unbatchedExecute(Future.scala:694)
        at scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:691)
        at akka.actor.LightArrayRevolverScheduler$TaskHolder.executeTask(Scheduler.scala:467)
        at akka.actor.LightArrayRevolverScheduler$$anon$8.executeBucket$1(Scheduler.scala:419)
        at akka.actor.LightArrayRevolverScheduler$$anon$8.nextTick(Scheduler.scala:423)
        at akka.actor.LightArrayRevolverScheduler$$anon$8.run(Scheduler.scala:375)
        at java.lang.Thread.run(Thread.java:745)
@almereyda
Copy link

I am getting the same error when using the Dockerfile from @michielbdejong

curl -k https://5.9.161.179:443/2013/card
Ask timed out on [Actor[akka://rww/user/router#-597804069]] after [30000 ms]
akka.pattern.AskTimeoutException: Ask timed out on [Actor[akka://rww/user/router#-597804069]] after [30000 ms]
        at akka.pattern.PromiseActorRef$$anonfun$1.apply$mcV$sp(AskSupport.scala:333)
        at akka.actor.Scheduler$$anon$7.run(Scheduler.scala:117)
        at scala.concurrent.Future$InternalCallbackExecutor$.scala$concurrent$Future$InternalCallbackExecutor$$unbatchedExecute(Future.scala:694)
        at scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:691)
        at akka.actor.LightArrayRevolverScheduler$TaskHolder.executeTask(Scheduler.scala:467)
        at akka.actor.LightArrayRevolverScheduler$$anon$8.executeBucket$1(Scheduler.scala:419)
        at akka.actor.LightArrayRevolverScheduler$$anon$8.nextTick(Scheduler.scala:423)
        at akka.actor.LightArrayRevolverScheduler$$anon$8.run(Scheduler.scala:375)
        at java.lang.Thread.run(Thread.java:745)

which also appears in the containers log. Despite that, the container uses heavy 620 MiB in RAM, but that may be okay for a Java application.

@reederz
Copy link

reederz commented Mar 23, 2015

When starting the server, you can provide -Dhttp.hostname flag (defaults to localhost). Then, you must have the same host added to your /etc/hosts file (or DNS configured). Unfortunately, requesting directly via ip address, will always give the aforementioned error.

Also see #152

@bblfish bblfish added this to the Initial Server Deployment milestone Feb 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants