Can't use activator on my Mac - get a timeout exception when I try to create an app from a template

So, I am following this tutorial:

https://www.playframework.com/documentation/2.3.x/Installing

Everything seems to be set - that is, all commands work, but when I try to call:

activator new my-first-app play-scala

      

I get the following:

Fetching the latest list of templates...


Could not fetch the updated list of templates.  Using the local cache.
Check your proxy settings or increase the timeout.  For more details see:
http://typesafe.com/activator/docs

OK, application "another-app" is being created using the "play-scala" template.

akka.pattern.AskTimeoutException: Ask timed out on [Actor[akka://default/user/template-cache#1575831997]] after [10000 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$.unbatchedExecute(Future.scala:599)
    at scala.concurrent.BatchingExecutor$class.execute(BatchingExecutor.scala:109)
    at scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:597)
    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:744)

      

And nothing happens.

I just installed it on a PC in my house on the same network, so I don't think my problem is related to this. I don't use a proxy server either.

Any ideas? I've been trying to get this to work for over a day now.

I'm on OSX Yosemite by the way.

+3


source to share


1 answer


Sometimes I have timeouts too, especially while working at university on some messy WLAN. There are two types of activator: regular light and standalone. In the second case, all storages are present, so the activator does not need to collect anything from the Internet.

When you go to https://www.playframework.com/download ... find the standalone distribution (about 400MB) and install it like a normal activator. If that solves your problem, there was something wrong with the activator trying to get something from the repository (you said you can run the project but get server timeouts).



[EDIT]: you can also set the timeout to 30 seconds and see if that helps

activator -Dactivator.timeout=30s new "project name"

      

0


source







All Articles