gpt4 book ai didi

scala - SBT 运行最近停止工作,Play 服务项目中没有任何变化

转载 作者:行者123 更新时间:2023-12-04 12:38:56 25 4
gpt4 key购买 nike

您可能认为我遇到了 XY 问题。我认为情况并非如此。

我正在做一个项目

  • (PROD) 我可以使用运行 Play Framework 服务
    sbt dist

    然后从 target/universal/* 运行可执行脚本.
  • (DEV) 但不是开发服务器使用
    sbt run\ PORT_NUM

  • 第二个在几天前用来工作。现在(没有任何代码更改)我不能再运行 DEV 服务器了。如果使用 API,它会显示以下错误。
    [error] java.io.IOException: Resource temporarily unavailable
    [error] at java.io.FileInputStream.read0(Native Method)
    [error] at java.io.FileInputStream.read(FileInputStream.java:207)
    [error] at jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:245)
    [error] at jline.internal.InputStreamReader.read(InputStreamReader.java:257)
    [error] at jline.internal.InputStreamReader.read(InputStreamReader.java:194)
    [error] at jline.console.ConsoleReader.readCharacter(ConsoleReader.java:2151)
    [error] at jline.console.ConsoleReader.readCharacter(ConsoleReader.java:2141)
    [error] at play.sbt.PlayConsoleInteractionMode$.waitEOF$1(PlayInteractionMode.scala:62)
    [error] at play.sbt.PlayConsoleInteractionMode$.$anonfun$waitForKey$2(PlayInteractionMode.scala:73)
    [error] at play.sbt.PlayConsoleInteractionMode$.$anonfun$doWithoutEcho$1(PlayInteractionMode.scala:80)
    [error] at play.sbt.PlayConsoleInteractionMode$.$anonfun$doWithoutEcho$1$adapted(PlayInteractionMode.scala:77)
    [error] at play.sbt.PlayConsoleInteractionMode$.withConsoleReader(PlayInteractionMode.scala:57)
    [error] at play.sbt.PlayConsoleInteractionMode$.doWithoutEcho(PlayInteractionMode.scala:77)
    [error] at play.sbt.PlayConsoleInteractionMode$.$anonfun$waitForKey$1(PlayInteractionMode.scala:73)
    [error] at play.sbt.PlayConsoleInteractionMode$.$anonfun$waitForKey$1$adapted(PlayInteractionMode.scala:60)
    [error] at play.sbt.PlayConsoleInteractionMode$.withConsoleReader(PlayInteractionMode.scala:57)
    [error] at play.sbt.PlayConsoleInteractionMode$.waitForKey(PlayInteractionMode.scala:60)
    [error] at play.sbt.PlayConsoleInteractionMode$.waitForCancel(PlayInteractionMode.scala:83)
    [error] at play.sbt.run.PlayRun$.$anonfun$playRunTask$3(PlayRun.scala:125)
    [error] at play.sbt.run.PlayRun$.$anonfun$playRunTask$3$adapted(PlayRun.scala:65)
    [error] at scala.Function1.$anonfun$compose$1(Function1.scala:44)

    对我来说似乎是一个僵局问题,如何进一步解决这个问题?

    这是我尝试过的事情的列表:
  • 更改已安装系统 SBT 的版本
  • 将 build.properties 中的 SBT 版本更改为最新 (1.2.6)

  • Update 1: The whole system works on Ubuntu 16.04.5 LTS. I am trying to figure out why it isn't working in 18.04 LTS.

    Update 2a: On the machine where it works (it is running on a VM installed in Mac OS Mojave, and the OS is Ubuntu server),

    Java version ($ java -version) is

    openjdk version "1.8.0_191" 
    OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12)
    OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

    Ubuntu version ($ lsb_release -a) is

    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 16.04.5 LTS
    Release: 16.04
    Codename: xenial

    Update 2b: On the machine where it doesn't work (it is running on desktop system, and the OS is Ubuntu desktop),

    Java version ($ java -version) is

    openjdk version "1.8.0_191"
    OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12)
    OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

    Ubuntu version ($ lsb_release -a) is

    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 16.04.5 LTS
    Release: 16.04
    Codename: xenial

    Update 3: Created an issue on sbt's GitHub

    最佳答案

    最新的内核版本 4.15.0-45 是导致问题的原因。我重新启动到 4.15.0-43,现在工作正常。谢谢@Renato

    关于scala - SBT 运行最近停止工作,Play 服务项目中没有任何变化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54675569/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com