gpt4 book ai didi

docker - 链接数据剧院| standard_init_linux.go:195:导致 “no such file or directory”的exec用户进程

转载 作者:行者123 更新时间:2023-12-02 20:06:46 25 4
gpt4 key购买 nike

在为git项目运行docker-compose up
Linked-Data-Theater
我收到错误standard_init_linux.go:195: exec user process caused "no such file or directory
下面是堆栈跟踪,

ifour.techno@ifour-137 MINGW64 /d/test/Docker/LinkData_Theater_Repo/Linked-Data-Theatre (master)
$ docker-compose up
Starting virtuoso ...
Starting ldt ... done
Attaching to virtuoso, ldt
virtuoso | standard_init_linux.go:195: exec user process caused "no such file or directory"
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: Server version: Apache Tomcat/7.0.85
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: Server built: Feb 7 2018 18:52:33 UTC
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: Server number: 7.0.85.0
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: OS Name: Linux
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: OS Version: 4.4.111-boot2docker
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: Architecture: amd64
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: JVM Version: 1.8.0_151-8u151-b12-1~deb9u1-b12
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: JVM Vendor: Oracle Corporation
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: CATALINA_BASE: /usr/local/tomcat
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: CATALINA_HOME: /usr/local/tomcat
virtuoso exited with code 1
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: Command line argument: -Dignore.endorsed.dirs=
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: Command line argument: -Dcatalina.base=/usr/local/tomcat
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: Command line argument: -Dcatalina.home=/usr/local/tomcat
ldt | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt | INFO: Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
ldt | Mar 01, 2018 7:35:48 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
ldt | INFO: Loaded APR based Apache Tomcat Native library 1.2.16 using APR version 1.5.2.
ldt | Mar 01, 2018 7:35:48 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
ldt | INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
ldt | Mar 01, 2018 7:35:48 AM org.apache.catalina.core.AprLifecycleListener initializeSSL
ldt | INFO: OpenSSL successfully initialized (OpenSSL 1.1.0f 25 May 2017)
ldt | Mar 01, 2018 7:35:48 AM org.apache.coyote.AbstractProtocol init
ldt | INFO: Initializing ProtocolHandler ["http-apr-8080"]
ldt | Mar 01, 2018 7:35:48 AM org.apache.coyote.AbstractProtocol init
ldt | INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
ldt | Mar 01, 2018 7:35:48 AM org.apache.catalina.startup.Catalina load
ldt | INFO: Initialization processed in 890 ms
ldt | Mar 01, 2018 7:35:48 AM org.apache.catalina.core.StandardService startInternal
ldt | INFO: Starting service Catalina
ldt | Mar 01, 2018 7:35:48 AM org.apache.catalina.core.StandardEngine startInternal
ldt | INFO: Starting Servlet Engine: Apache Tomcat/7.0.85
ldt | Mar 01, 2018 7:35:48 AM org.apache.coyote.AbstractProtocol start
ldt | INFO: Starting ProtocolHandler ["http-apr-8080"]
ldt | Mar 01, 2018 7:35:48 AM org.apache.coyote.AbstractProtocol start
ldt | INFO: Starting ProtocolHandler ["ajp-apr-8009"]

在此堆栈跟踪中,您可以看到 standard_init_linux.go:195: exec user process caused "no such file or directory
以下是我的 docker-compose.yml文件,
version: '2'

services:
ldt:
privileged: true
container_name: ldt
image: tomcat:7-jre8
hostname: ldt.local
ports:
- "8080:8080"
volumes:
- ./webapps:/usr/local/tomcat/webapps
- ./shared_import:/usr/local/tomcat/temp:z
networks:
- ldt

virtuoso:
privileged: true
container_name: virtuoso
build:
context: virtuoso
hostname: virtuoso.local
ports:
- "1111:1111"
- "8890:8890"
environment:
DBA_PASSWORD: "dba"
SPARQL_UPDATE: "true"
VIRTUOSO_DBA_PWD: dba
volumes:
- ./virtuoso_data:/var/lib/virtuoso/db:z
- ./shared_import:/var/lib/virtuoso/usr/local/tomcat/temp:z
networks:
- ldt

networks:
ldt:
external:
name: ldt

有什么不见了?我是Docker的初学者,因此请帮助我解决这个问题,并给我一些建议。我已经用谷歌搜索了,但是在任何地方都找不到问题的解决方案。

我也尝试了 docker-compose up --build,但收到与上述相同的错误。

最佳答案

您遇到的问题可能有多种原因,我通过尝试以下方法解决了同一问题:-

  • 确保所有文件夹都存在,在您的docker中看起来不错撰写
  • 将Windows的一些Shell脚本文件复制到Unix Docker容器中,确保复制后执行dos2unix命令。复制特殊字符时可能会导致上述问题。

  • 请添加您的docker文件,其可能的问题在docker文件中,而不在docker-compose中

    关于docker - 链接数据剧院| standard_init_linux.go:195:导致 “no such file or directory”的exec用户进程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49044883/

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