2016-09-29 8 views
0

AWS上にいくつかのscala JSコンテンツを提供するAkka HTTPサーバーがあります。いくつかの時間が経過すると、サーバはログの下のエラーを投げ始めますが、特定のURLの動作がブラウザでFailed to load resource: net::ERR_CONTENT_LENGTH_MISMATCHエラーで正しくダウンロードされないことがあります。サーバーのログ(それはすべてのインスタンスで、全く同じエラーです)以下のようになります。Akka Httpエラー:InvalidContentLengthException

[ERROR] [09/29/2016 21:29:22.150] [designer-actor-system-akka.actor.default-dispatcher-56831] [akka.actor.ActorSystemImpl(designer-actor-system)] Outgoing response stream error akka.http.scaladsl.model.InvalidContentLengthException: HTTP message had declared Content-Length 997 but entity data stream amounts to 164 bytes less at akka.http.scaladsl.model.InvalidContentLengthException$.apply(ErrorInfo.scala:50) at akka.http.impl.engine.rendering.RenderSupport$CheckContentLengthTransformer$$anon$2.onUpstreamFinish(RenderSupport.scala:130) at akka.stream.impl.fusing.GraphInterpreter.processEvent(GraphInterpreter.scala:732) at akka.stream.impl.fusing.GraphInterpreter.execute(GraphInterpreter.scala:616) at akka.stream.impl.fusing.GraphInterpreterShell.runBatch(ActorGraphInterpreter.scala:471) at akka.stream.impl.fusing.GraphInterpreterShell.receive(ActorGraphInterpreter.scala:433) at akka.stream.impl.fusing.ActorGraphInterpreter.akka$stream$impl$fusing$ActorGraphInterpreter$$processEvent(ActorGraphInterpreter.scala:603) at akka.stream.impl.fusing.ActorGraphInterpreter$$anonfun$receive$1.applyOrElse(ActorGraphInterpreter.scala:618) at akka.actor.Actor$class.aroundReceive(Actor.scala:484) at akka.stream.impl.fusing.ActorGraphInterpreter.aroundReceive(ActorGraphInterpreter.scala:529) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526) at akka.actor.ActorCell.invoke(ActorCell.scala:495) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257) at akka.dispatch.Mailbox.run(Mailbox.scala:224) at akka.dispatch.Mailbox.exec(Mailbox.scala:234) at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

私たちは、アッカのバージョン2.4.7を実行していると我々はアッカを再起動する場合はOpenJDKのバージョン1.8.0_101-b13.Theエラーが消えますHTTPサーバーを使用していますが、数時間後に再び表示されます。

問題の原因は不明です。どんな助けでも大歓迎です。

答えて

2

私はそれを引き起こしていたことを理解したと思います。 HTML/CSS/JavascriptファイルをAkkaサーバーにデプロイする自動デプロイメントプロセスがありました。 Akkaサーバーのコンテンツサイズがキャッシュされているように見えますが、スタティックファイルが再起動せずに更新された場合、InvalidContentLengthExceptionとなります。展開プロセスの一環として再起動を行いましたが、問題は解決されたようです。

関連する問題