Hi all,

I have written a Scala web application using Akka+Spray, and am now trying 
to run it inside a Docker container - but am really struggling to get it to 
work.

It looks like the problem is that Akka messages are not being delivered. I 
have read some info about needing to set akka.remote.netty.tcp.bind-hostname
 and akka.remote.netty.tcp.bind-port settings IF using remote actors, 
however I am not using remote actors... at the moment I just have a 
standalone actor system inside a single docker container. So I have not set 
these properties.

The logs and errors that I'm seeing are:

2015-05-19 16:01:18 INFO 
 
[myservice-akka.actor.default-dispatcher-6:a.e.s.Slf4jLogger$$anonfun$receive$1$$anonfun$applyOrElse$3@74]
 
- Message [akka.dispatch.sysmsg.DeathWatchNotification] from 
Actor[akka://myservice/user/IO-HTTP/listener-0#-697002067] to 
Actor[akka://myservice/user/IO-HTTP/listener-0#-697002067] was not 
delivered. [1] dead letters encountered. This logging can be turned off or 
adjusted with configuration settings 'akka.log-dead-letters' and 
'akka.log-dead-letters-during-shutdown'.
2015-05-19 16:01:18 ERROR 
[myservice-akka.actor.default-dispatcher-4:a.e.s.Slf4jLogger$$anonfun$receive$1$$anonfun$applyOrElse$1@66]
 
- Error during selector management task: 
[java.nio.channels.ClosedChannelException]
java.nio.channels.ClosedChannelException: null
        at 
java.nio.channels.spi.AbstractSelectableChannel.register(AbstractSelectableChannel.java:194)
 
~[na:1.7.0_75]
        at 
akka.io.SelectionHandler$ChannelRegistryImpl$$anon$4.tryRun(SelectionHandler.scala:157)
 
~[akka-actor_2.11-2.3.9.jar:na]
        at 
akka.io.SelectionHandler$ChannelRegistryImpl$Task.run(SelectionHandler.scala:215)
 
~[akka-actor_2.11-2.3.9.jar:na]

I think this exception is caused when I try to bind to a port for HTTP:

IO(Http) ! Http.Bind(service, interface = "0.0.0.0", port = 8080)


I have exposed port 8080 and ran the container with a port mapping, -p 
8080:8080 ... and I have also tried using different a different port than 8080, 
so I don't think the problem is related to the binding itself, but rather I 
think perhaps the Akka message is not being delivered.


Does anyone have any idea what the problem might be? Have been trying to get 
this to work all day!


Thanks for any help,

Josh

-- 
>>>>>>>>>>      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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to