建议使用以下浏览器,以获得最佳体验。 IE 9.0+以上版本 Chrome 31+ 谷歌浏览器 Firefox 30+ 火狐浏览器
请选择 进入手机版 | 继续访问电脑版
设置昵称

在此一键设置昵称,即可参与社区互动!

确定
我再想想
选择版块
直达楼层
标签
您还可以添加5个标签
  • 没有搜索到和“关键字”相关的标签
  • 云产品
  • 解决方案
  • 技术领域
  • 通用技术
  • 平台功能
取消

采纳成功

您已采纳当前回复为最佳回复

小猹狸

发帖: 14粉丝: 0

发消息 + 关注

发表于2021年07月15日 18:28:13 864 6
直达本楼层的链接
楼主
显示全部楼层
[问题求助] 【atlas 200dk】【容器化部署应用】使用docker部署acl推理应用,出现动态链接库缺失

按照容器基础镜像制作指南构建了5.0.2.alpha005 nnrt运行镜像,由于应用需要使用opencv库,所以在镜像制作完成后手工在容器内将opencv的so文件拷贝到了容器中相应的路径下。但是最终程序仍然有三个so文件找不到,如图所示:

正常情况下:

之后,我把这些缺失的so文件也拷贝到了容器内相应目录,并运行了程序,得到了如下错误日志:

[ERROR] DRV(241,main_t):2021-07-15-10:18:31.325.831 [devdrv_manager.c:97][devmng] [devdrv_open_device_manager 97] open device manager fail,name=/dev/davinci_manager,ret_fd=-1,old_fd=-1,err=2.
[ERROR] DRV(241,main_t):2021-07-15-10:18:31.326.119 [devdrv_info.c:1094][devmng] [dmanage_get_container_flag 1094] open davinci manager failed.
[ERROR] DRV(241,main_t):2021-07-15-10:18:31.326.186 [devdrv_manager.c:2205][devmng] [drvManagerInit 2205] get container flag failed.
[ERROR] DRV(241,main_t):2021-07-15-10:18:43.327.677 [hdc_core.c:502][hdc] [hdcPcieInit 502] HDC init fail, driver may not load.
[ERROR] DRV(241,main_t):2021-07-15-10:18:53.336.305 [hdc_core.c:487][hdc] [hdc_phandle_get 487] HDC init, open pcie device fail. error : No such file or directory
[ERROR] DRV(241,main_t):2021-07-15-10:18:53.337.307 [devdrv_manager.c:97][devmng] [devdrv_open_device_manager 97] open device manager fail,name=/dev/davinci_manager,ret_fd=-1,old_fd=-1,err=2.
[ERROR] DRV(241,main_t):2021-07-15-10:18:53.337.407 [devdrv_manager.c:536][devmng] [drvGetPlatformInfo 536] open device error.
[EVENT] PROFILING(241,main_t):2021-07-15-10:18:53.393.056 [msprof_callback_impl.cpp:151] >>> (tid:241) Started to register profiling callbacks to acl
[INFO] ASCENDCL(241,main_t):2021-07-15-10:18:53.393.366 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/acl/toolchain/acl_prof_api.cpp:64]241 _aclprofRegisterCtrlCallback: start to register ctrl callback
[INFO] ASCENDCL(241,main_t):2021-07-15-10:18:53.393.465 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/acl/toolchain/acl_prof_api.cpp:75]241 _aclprofRegisterCtrlCallback: successfully register ctrl callback
[INFO]  ModuleManager: begin to init Acl.
[INFO] ASCENDCL(241,main_t):2021-07-15-10:18:53.396.519 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/acl/common/acl.cpp:46]241 aclInit: start to execute aclInit
[INFO] ASCENDCL(241,main_t):2021-07-15-10:18:53.396.638 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/acl/common/acl.cpp:52]241 aclInit: call ErrorManager.Initialize
[INFO] GE(241,main_t):2021-07-15-10:18:53.397.049 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/metadef/error_manager/error_manager.cc:381]241 ParseJsonFile:Begin to parser json file
[INFO] GE(241,main_t):2021-07-15-10:18:53.397.163 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/metadef/error_manager/error_manager.cc:429]241 ReadJsonFile:Begin to read json file
[INFO] GE(241,main_t):2021-07-15-10:18:53.414.283 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/metadef/error_manager/error_manager.cc:460]241 ReadJsonFile:Read json file success
[INFO] GE(241,main_t):2021-07-15-10:18:53.422.620 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/metadef/error_manager/error_manager.cc:418]241 ParseJsonFile:Parse json file success
[ERROR] DRV(241,main_t):2021-07-15-10:18:53.424.326 [devdrv_manager.c:97][devmng] [devdrv_open_device_manager 97] open device manager fail,name=/dev/davinci_manager,ret_fd=-1,old_fd=-1,err=2.
[ERROR] DRV(241,main_t):2021-07-15-10:18:53.424.431 [devdrv_manager.c:536][devmng] [drvGetPlatformInfo 536] open device error.
[WARNING] ASCENDCL(241,main_t):2021-07-15-10:18:53.425.807 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/acl/common/acl.cpp:58]241 aclInit: init device's log failed
[INFO] ASCENDCL(241,main_t):2021-07-15-10:18:53.425.908 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/acl/common/acl.cpp:81]241 aclInit: set ProfilingConfig in aclInit
[INFO] ASCENDCL(241,main_t):2021-07-15-10:18:53.425.996 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/acl/toolchain/profiling.cpp:61]241 HandleProfilingConfig: start to execute HandleProfilingConfig
[INFO] ASCENDCL(241,main_t):2021-07-15-10:18:53.426.085 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/acl/toolchain/profiling.cpp:55]241 GetProfilingConfigFile: no profiling config file.
[INFO] ASCENDCL(241,main_t):2021-07-15-10:18:53.426.190 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/acl/toolchain/profiling.cpp:77]241 HandleProfilingConfig: configPath is null, no need to do profiling.
[INFO] ASCENDCL(241,main_t):2021-07-15-10:18:53.426.280 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/acl/common/acl.cpp:91]241 aclInit: call ge interface executor.Initialize
[INFO] GE(241,main_t):2021-07-15-10:18:53.426.378 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/executor/ge_executor.cc:247]241 Initialize:Init GeExecutor begin.
[WARNING] GE(241,main_t):2021-07-15-10:18:53.426.851 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/common/ge/op_tiling_manager.cc:79]241 LoadSo:Failed to dlopen /usr/local/Ascend/opp/op_impl/built-in/ai_core/tbe/op_tiling/liboptiling.so! errmsg:/usr/local/Ascend/opp/op_impl/built-in/ai_core/tbe/op_tiling/liboptiling.so: cannot open shared object file: No such file or directory
[WARNING] GE(241,main_t):2021-07-15-10:18:53.427.054 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/common/ge/op_tiling_manager.cc:88]241 LoadSo:Failed to dlopen /usr/local/Ascend/opp/op_impl/custom/ai_core/tbe/op_tiling/liboptiling.so! errmsg:/usr/local/Ascend/opp/op_impl/custom/ai_core/tbe/op_tiling/liboptiling.so: cannot open shared object file: No such file or directory
[INFO] GE(241,main_t):2021-07-15-10:18:53.427.168 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/ge_local_engine/engine/host_cpu_engine.cc:264]241 GetLibPath:Start to get host cpu lib path
[INFO] GE(241,main_t):2021-07-15-10:18:53.427.444 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/ge_local_engine/engine/host_cpu_engine.cc:276]241 GetLibPath:path_base is /usr/local/Ascend/nnrt/5.0.2.alpha005/arm64-linux/acllib/lib64/
[INFO] GE(241,main_t):2021-07-15-10:18:53.427.550 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/ge_local_engine/engine/host_cpu_engine.cc:282]241 GetLibPath:Get host cpu so path from PluginManager::GetPath: /usr/local/Ascend/nnrt/5.0.2.alpha005/arm64-linux/acllib/opp/op_impl/built-in/host_cpu
[WARNING] GE(241,main_t):2021-07-15-10:18:53.427.726 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/ge_local_engine/engine/host_cpu_engine.cc:363]241 GetRealPath:File path /usr/local/Ascend/nnrt/5.0.2.alpha005/arm64-linux/acllib/opp/op_impl/built-in/host_cpu is invalid.
[INFO] GE(241,main_t):2021-07-15-10:18:53.427.936 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/executor/ge_executor.cc:232]241 InitOpsProtoManager:path_base is /usr/local/Ascend/nnrt/5.0.2.alpha005/arm64-linux/acllib/lib64/
[INFO] GE(241,main_t):2021-07-15-10:18:53.428.057 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/executor/ge_executor.cc:237]241 InitOpsProtoManager:Get opsproto path is /usr/local/Ascend/nnrt/5.0.2.alpha005/arm64-linux/acllib/ops/op_proto/custom/:/usr/local/Ascend/nnrt/5.0.2.alpha005/arm64-linux/acllib/ops/op_proto/built-in/
[WARNING] GE(241,main_t):2021-07-15-10:18:53.428.247 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/metadef/graph/opsproto/opsproto_manager.cc:122]241 FindParserSo:[FindSo][Check] Get real_path for file /usr/local/Ascend/nnrt/5.0.2.alpha005/arm64-linux/acllib/ops/op_proto/custom/ failed, reason:No such file or directory
[INFO] GE(241,main_t):2021-07-15-10:18:53.428.377 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/metadef/graph/opsproto/opsproto_manager.cc:165]241 GetPluginSoFileList:OpsProtoManager full name = /usr/local/Ascend/nnrt/5.0.2.alpha005/arm64-linux/acllib/ops/op_proto/custom/
[WARNING] GE(241,main_t):2021-07-15-10:18:53.428.494 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/metadef/graph/opsproto/opsproto_manager.cc:122]241 FindParserSo:[FindSo][Check] Get real_path for file /usr/local/Ascend/nnrt/5.0.2.alpha005/arm64-linux/acllib/ops/op_proto/built-in/ failed, reason:No such file or directory
[INFO] GE(241,main_t):2021-07-15-10:18:53.428.563 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/metadef/graph/opsproto/opsproto_manager.cc:165]241 GetPluginSoFileList:OpsProtoManager full name = /usr/local/Ascend/nnrt/5.0.2.alpha005/arm64-linux/acllib/ops/op_proto/built-in/
[WARNING] GE(241,main_t):2021-07-15-10:18:53.428.625 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/metadef/graph/opsproto/opsproto_manager.cc:182]241 LoadOpsProtoPluginSo:[LoadSo][Check] OpsProtoManager can not find any plugin file in pluginPath: /usr/local/Ascend/nnrt/5.0.2.alpha005/arm64-linux/acllib/ops/op_proto/custom/:/usr/local/Ascend/nnrt/5.0.2.alpha005/arm64-linux/acllib/ops/op_proto/built-in/ 
[INFO] GE(241,main_t):2021-07-15-10:18:53.428.725 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_mem_manager.h:86]241 InitAllocator:Create Allocator memory type[2] success.
[INFO] GE(241,main_t):2021-07-15-10:18:53.428.807 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_mem_allocator.cc:23]241 Initialize:MemoryAllocator::Initialize
[INFO] GE(241,main_t):2021-07-15-10:18:53.428.920 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_mem_manager.h:86]241 InitAllocator:Create Allocator memory type[17] success.
[INFO] GE(241,main_t):2021-07-15-10:18:53.429.045 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_mem_allocator.cc:23]241 Initialize:MemoryAllocator::Initialize
[INFO] GE(241,main_t):2021-07-15-10:18:53.429.150 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_mem_manager.h:86]241 InitAllocator:Create Allocator memory type[2] success.
[INFO] GE(241,main_t):2021-07-15-10:18:53.429.243 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_caching_allocator.cc:104]241 Initialize:Device id 0
[INFO] GE(241,main_t):2021-07-15-10:18:53.429.342 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_caching_allocator.cc:363]241 FreeBlocks:Free blocks.
[INFO] GE(241,main_t):2021-07-15-10:18:53.429.439 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_caching_allocator.cc:330]241 FreeCachedBlocks:Free cached blocks
[INFO] GE(241,main_t):2021-07-15-10:18:53.429.541 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_mem_manager.h:86]241 InitAllocator:Create Allocator memory type[17] success.
[INFO] GE(241,main_t):2021-07-15-10:18:53.429.639 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_caching_allocator.cc:104]241 Initialize:Device id 0
[INFO] GE(241,main_t):2021-07-15-10:18:53.429.735 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_caching_allocator.cc:363]241 FreeBlocks:Free blocks.
[INFO] GE(241,main_t):2021-07-15-10:18:53.429.831 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_caching_allocator.cc:330]241 FreeCachedBlocks:Free cached blocks
[INFO] GE(241,main_t):2021-07-15-10:18:53.429.938 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_mem_manager.h:86]241 InitAllocator:Create Allocator memory type[2] success.
[INFO] GE(241,main_t):2021-07-15-10:18:53.430.047 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_mem_manager.h:86]241 InitAllocator:Create Allocator memory type[17] success.
[INFO] GE(241,main_t):2021-07-15-10:18:53.430.151 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_mem_manager.h:86]241 InitAllocator:Create Allocator memory type[2] success.
[INFO] GE(241,main_t):2021-07-15-10:18:53.430.254 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_mem_manager.h:86]241 InitAllocator:Create Allocator memory type[17] success.
[INFO] GE(241,main_t):2021-07-15-10:18:53.430.358 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_mem_manager.h:86]241 InitAllocator:Create Allocator memory type[2] success.
[INFO] GE(241,main_t):2021-07-15-10:18:53.430.448 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/session_scope_mem_allocator.cc:32]241 Initialize:Device id 0
[INFO] GE(241,main_t):2021-07-15-10:18:53.430.552 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/session_scope_mem_allocator.cc:76]241 FreeAllMemory:Free all memory
[INFO] GE(241,main_t):2021-07-15-10:18:53.430.654 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/graph_mem_manager.h:86]241 InitAllocator:Create Allocator memory type[17] success.
[INFO] GE(241,main_t):2021-07-15-10:18:53.430.753 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/session_scope_mem_allocator.cc:32]241 Initialize:Device id 0
[INFO] GE(241,main_t):2021-07-15-10:18:53.430.848 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/graph/manager/session_scope_mem_allocator.cc:76]241 FreeAllMemory:Free all memory
[INFO] GE(241,main_t):2021-07-15-10:18:53.430.958 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/opskernel_manager/ops_kernel_builder_manager.cc:58]241 Initialize:[Show][OpsKernelBuilderNum]Number of OpBuild = 0
[INFO] GE(241,main_t):2021-07-15-10:18:53.431.099 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/common/profiling/profiling_manager.cc:85]241 Init:ProfilingManager::Init  job_id:1
[INFO] GE(241,main_t):2021-07-15-10:18:53.431.198 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/common/profiling/profiling_manager.cc:114]241 Init:The profiling is off, skip the initialization
[INFO] GE(241,main_t):2021-07-15-10:18:53.431.297 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/graphengine/ge/executor/ge_executor.cc:282]241 Initialize:Init GeExecutor over.
[INFO] RUNTIME(241,main_t):2021-07-15-10:18:53.431.544 [runtime.cc:840] 241 BootRuntime: Boot runtime:new Runtime ok, Runtime_alloc_size 3344
[ERROR] DRV(241,main_t):2021-07-15-10:18:53.431.694 [devdrv_manager.c:97][devmng] [devdrv_open_device_manager 97] open device manager fail,name=/dev/davinci_manager,ret_fd=-1,old_fd=-1,err=2.
[ERROR] DRV(241,main_t):2021-07-15-10:18:53.431.778 [devdrv_manager.c:798][devmng] [drvGetDevInfo 798] open device error.
[ERROR] DRV(241,main_t):2021-07-15-10:18:53.431.862 [devdrv_manager.c:892][devmng] [drvGetSystemInfo 892] drvGetDevInfo failed ret = 2.
[ERROR] DRV(241,main_t):2021-07-15-10:18:53.431.946 [devdrv_manager.c:1247][devmng] [halGetDeviceInfo 1247] halGetDeviceInfo failed ret = 2, moduleType = 0, infoType = 1.
[ERROR] RUNTIME(241,main_t):2021-07-15-10:18:53.432.039 [runtime.cc:641]241 InitSocType:[INIT][DEFAULT]Call halGetDeviceInfo failed: drvRetCode=2, module type=0, info type=1.
[ERROR] RUNTIME(241,main_t):2021-07-15-10:18:53.432.360 [runtime.cc:719]241 Init:[INIT][DEFAULT]Init SocType failed.
[ERROR] RUNTIME(241,main_t):2021-07-15-10:18:53.432.534 [api_c.cc:2356]241 rtGetSocVersion:[INIT][DEFAULT]ErrCode=507000, desc=[null instance pointer], InnerCode=0x70b0001
[ERROR] ASCENDCL(241,main_t):2021-07-15-10:18:53.432.627 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/acl/common/acl.cpp:167]241 InitSocVersion: [INIT][DEFAULT][Get][SocVersion]get soc version failed, runtime result is 507000
[ERROR] ASCENDCL(241,main_t):2021-07-15-10:18:53.432.754 [/home/jenkins/agent/workspace/Compile_GraphEngine_Centos_ARM/acl/common/acl.cpp:100]241 aclInit: [INIT][DEFAULT][Init][Version]init soc version failed, ret = 507000
[ERROR]  ModuleManager: fail to init acl
[ERROR]  Init ModuleManager failed.

我只截取了部分打屏日志,看样子是DMP进程没启。我看了一下容器中根本没有/var/slogd 和 /var/dmp_daemon这两个文件。

想请问我容器构建过程中哪里出了问题?

Docker 容器

举报
分享

分享文章到朋友圈

分享文章到微博
精彩回复

采纳成功

您已采纳当前回复为最佳回复

cjl68

发帖: 30粉丝: 19

级别 : 版主,版块专家

发消息 + 关注

发表于2021年07月20日 09:48:53
直达本楼层的链接
显示全部楼层 最佳回复

是应用类日志这边没设置把,你设置下这边的环境变量,然后再试试。

https://support.huaweicloud.com/logreference-Atlas200DK202/atlaslog_24_0015.html

我这边试了环境变量有用

评论
小猹狸 2021-7-20 14:59 评论

在容器内修改环境变量后已经成功了。谢谢!

... 查看全部
点赞 评论 引用 举报

采纳成功

您已采纳当前回复为最佳回复

晓声

发帖: 0粉丝: 6

级别 : 版主,版块专家

发消息 + 关注

发表于2021年07月15日 18:45:35
直达本楼层的链接
沙发
显示全部楼层

定位中

点赞 评论 引用 举报

采纳成功

您已采纳当前回复为最佳回复

cjl68

发帖: 30粉丝: 19

级别 : 版主,版块专家

发消息 + 关注

发表于2021年07月15日 19:25:43
直达本楼层的链接
板凳
显示全部楼层
点赞 评论 引用 举报

采纳成功

您已采纳当前回复为最佳回复

小猹狸

发帖: 14粉丝: 0

发消息 + 关注

发表于2021年07月19日 10:06:14
直达本楼层的链接
地板
显示全部楼层

回复:cjl68 发表于 2021-7-15 19:25 https://gitee.com/ascend/tools/tree/master/dockerimages/atlas200dk-Development-O

您好,按照链接里的做法,镜像已经成功构建并能运行推理程序。但是在容器内无法拉起三个日志进程,导致系统日志与推理程序的打屏日志一起输出到终端上。请问如何在容器内拉起slogd、sklogd、log-daemon这三个日志进程呢?

点赞 评论 引用 举报

采纳成功

您已采纳当前回复为最佳回复

cjl68

发帖: 30粉丝: 19

级别 : 版主,版块专家

发消息 + 关注

发表于2021年07月19日 14:36:36
直达本楼层的链接
5#
显示全部楼层

你好,这几个进程在宿主机里控制,容器里控制不了


我刚才拉了个镜像试了下,默认会有event 日志输出,参照日志文档,修改配置文件,取消输出event日志输出,并重启日志进程后,就不会有多余的日志信息了。



https://support.huaweicloud.com/logreference-Atlas200DK202/atlaslog_24_0011.html

https://support.huaweicloud.com/logreference-Atlas200DK202/atlaslog_24_0019.html

宿主机里操作,这里改成0,然后重启日志进程。

点赞 评论 引用 举报

采纳成功

您已采纳当前回复为最佳回复

小猹狸

发帖: 14粉丝: 0

发消息 + 关注

发表于2021年07月19日 15:25:08
直达本楼层的链接
6#
显示全部楼层

回复:cjl68 发表于 2021-7-19 14:36 你好,这几个进程在宿主机里控制,容器里控制不了 我刚才拉了个镜像试了下,默认会有event 日志输出,参照日志文档,修改配置文件,取消输出event日志输出,并

按照文档修改日志配置文件后,容器内程序依然日志打屏。而且容器外运行程序生成的日志级别也没有因配置文件的改变而变化。

我kill进程时加了-15参数。

点赞 评论 引用 举报

游客

富文本
Markdown
您需要登录后才可以回帖 登录 | 立即注册

邀请回答
您可以邀请3位专家

结贴

您对问题的回复是否满意?
满意度
非常满意 满意 一般 不满意
我要反馈
0/200