Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]Dockerfile执行到第30行时报错 #1759

Closed
1 task done
creact1990 opened this issue Feb 16, 2022 · 3 comments
Closed
1 task done

[Bug]Dockerfile执行到第30行时报错 #1759

creact1990 opened this issue Feb 16, 2022 · 3 comments

Comments

@creact1990
Copy link

Problem Type (问题类型)

other exception / error (其他异常报错)

Before submit

  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题

Environment (环境信息)

  • Server Version: v0.12.0
  • Backend: RocksDB
  • OS: xx CPUs, xx G RAM, ubuntu
  • Data Size: 0 vertices, 0 edges

Your Question (问题描述)

使用Dockerfile构建镜像失败,经过定位是第30行的
sed -n '63p' ./bin/start-hugegraph.sh | grep "&" > /dev/null && sed -i 63{s/&$/#/g} ./bin/start-hugegraph.sh
返回code=1,请问这句的作用是?同样31行的sed也返回1。
定位过程见下面两个截图。
image
image

另外,如果把30和31行两个sed注释掉,构建出的镜像可以启动,但启动成功后容器自动kill,这可能是什么原因?
image

而把51行的ENTRYPOINT注释掉后,手动进入镜像执行start-hugegraph.sh则可以正常服务。

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

@creact1990 creact1990 changed the title [Question]Dockerfile执行到第30行时报错 [Bug]Dockerfile执行到第30行时报错 Feb 16, 2022
@imbajin
Copy link
Member

imbajin commented Feb 16, 2022

你是用了最新的 server 代码/包么(0.10应该是正常的), 新旧版的脚本行数有点小区别, 你可以先临时改一下行数 (逻辑其实很简单, 就是让 server 保持前台运行)

后续我们会更新最新的 Dockerfile, 也欢迎你贡献, 相关 issue 见 #840

@creact1990
Copy link
Author

是的,用最新的0.12.0。
对,果然是30行的原因导致进程无法前台运行。
后续大概什么时候能更新Dockerfile?

@imbajin
Copy link
Member

imbajin commented Feb 16, 2022

大概时间在项目进入 Apache 社区左右? 相关需要和讨论可以在 #840 那个 issue 里说, 最好的后台解决应该是加一个开关, 而不是现在这样 hard code 注释或修改, 这样后续也都能兼容

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants