Change the config of akka.remote.netty.tcp.port in a config that you pass to the respective ActorSystem.create
On Mon, Jun 30, 2014 at 1:29 PM, Rohit Kumar Gupta < rohitkumargupt...@gmail.com> wrote: > Here is my configuration. >> > > akka { > actor { > provider = "akka.cluster.ClusterActorRefProvider" > } > remote { > #log-remote-lifecycle-events = off > netty.tcp { > hostname = "127.0.0.1" > port = 2551 > } > } > > cluster { > seed-nodes = ["akka.tcp://Workers@127.0.0.1:2551", > "akka.tcp://Workers@127.0.0.1:2552","akka.tcp:// > Workers@127.0.0.1:2553"] > > auto-down-unreachable-after = 10s > } > > > extensions = ["akka.contrib.pattern.ClusterReceptionistExtension"] > } > > How should I change it to configure multiple ports as I am getting the > same error as below. > > ! @6il8mjhhg - Internal server error, for (GET) > [/fase/v1/job/product?isMaster=true] -> > > play.api.UnexpectedException: Unexpected exception[ChannelException: > Failed to bind to: /127.0.0.1:2551] > at > play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:148) > ~[play_2.10.jar:2.2.3] > at > play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:112) > ~[play_2.10.jar:2.2.3] > at scala.Option.map(Option.scala:145) ~[scala-library-2.10.2.jar:na] > at > play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:112) > ~[play_2.10.jar:2.2.3] > at > play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:110) > ~[play_2.10.jar:2.2.3] > at scala.util.Success.flatMap(Try.scala:200) ~[scala-library-2.10.2.jar:na] > at > play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:110) > ~[play_2.10.jar:2.2.3] > at > play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:102) > ~[play_2.10.jar:2.2.3] > at > scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24) > ~[scala-library-2.10.2.jar:na] > at > scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24) > ~[scala-library-2.10.2.jar:na] > at > scala.concurrent.forkjoin.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1361) > ~[scala-library-2.10.2.jar:na] > at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) > ~[scala-library-2.10.2.jar:na] > at > scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) > ~[scala-library-2.10.2.jar:na] > at > scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) > ~[scala-library-2.10.2.jar:na] > at > scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) > ~[scala-library-2.10.2.jar:na] > Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: / > 127.0.0.1:2551 > at > org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272) > ~[netty.jar:na] > at > akka.remote.transport.netty.NettyTransport$$anonfun$listen$1.apply(NettyTransport.scala:391) > ~[akka-remote_2.10-2.2.3.jar:na] > at > akka.remote.transport.netty.NettyTransport$$anonfun$listen$1.apply(NettyTransport.scala:388) > ~[akka-remote_2.10-2.2.3.jar:na] > at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:253) > ~[scala-library-2.10.2.jar:na] > at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:249) > ~[scala-library-2.10.2.jar:na] > at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:29) > ~[scala-library-2.10.2.jar:na] > at > akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.processBatch$1(BatchingExecutor.scala:67) > ~[akka-actor_2.10-2.2.3.jar:2.2.3] > at > akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:82) > ~[akka-actor_2.10-2.2.3.jar:2.2.3] > at > akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:59) > ~[akka-actor_2.10-2.2.3.jar:2.2.3] > at > akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:59) > ~[akka-actor_2.10-2.2.3.jar:2.2.3] > at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72) > ~[scala-library-2.10.2.jar:na] > at akka.dispatch.BatchingExecutor$Batch.run(BatchingExecutor.scala:58) > ~[akka-actor_2.10-2.2.3.jar:2.2.3] > at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:42) > ~[akka-actor_2.10-2.2.3.jar:2.2.3] > at > akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386) > ~[akka-actor_2.10-2.2.3.jar:2.2.3] > ... 4 common frames omitted > java.net.BindException: Address already in use > at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_20] > at > sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137) > ~[na:1.6.0_20] > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77) > ~[na:1.6.0_20] > at > org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193) > ~[netty.jar:na] > at > org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366) > ~[netty.jar:na] > at > org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290) > ~[netty.jar:na] > at > org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42) > ~[netty.jar:na] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > [na:1.6.0_20] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > [na:1.6.0_20] > at java.lang.Thread.run(Thread.java:636) [na:1.6.0_20] > 2014-06-30 19:28:28,145 INFO [Workers-akka.actor.default-dispatcher-5] > application play.Logger$ALogger info: Message in master is instance of - > CleanupTick > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to akka-user+unsubscr...@googlegroups.com. > To post to this group, send email to akka-user@googlegroups.com. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Cheers, √ -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.