Skip to content

使用docker-compose up -d构建时 出现Restart(139)bug #23

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

Closed
PierceLiu opened this issue Jul 20, 2023 · 14 comments
Closed

使用docker-compose up -d构建时 出现Restart(139)bug #23

PierceLiu opened this issue Jul 20, 2023 · 14 comments

Comments

@PierceLiu
Copy link

image
以下时docker logs 的错误信息
image

@117503445
Copy link
Owner

我这边运行起来是好的..

请提供更多信息,比如 镜像哈希,完整的 Docker 日志,机器信息,剩余内存之类的

@PierceLiu
Copy link
Author

剩余内存,这个是已经打开docker 的时候
image
机器信息
image
镜像的话就是用的github里面的readme里面的内容,docker日志 完整导出我需要研究一下

@117503445
Copy link
Owner

可以通过 docker images 查看镜像信息,我想确认 yunzai-web 镜像的 IMAGE ID

@PierceLiu
Copy link
Author

image

@117503445
Copy link
Owner

IMAGE ID 没问题

@117503445
Copy link
Owner

你可以先 docker compose down, 再 docker compose up -d

开始重启的时候,docker logs yunzai-web > 1.txt,然后把 1.txt 发上来

@PierceLiu
Copy link
Author

使用docker logs dockerID > 1.txt后 文件被创建,但是里面并无任何内容

@117503445
Copy link
Owner

直接运行 docker logs ContainerID

@PierceLiu
Copy link
Author

也是没有的 我这边直接把terminal里面的log信息复制一下放在文档里面您看一下吧
1.txt

@117503445
Copy link
Owner

通过搜索 node[1]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion (0) == (uv_thread_create(t.get(), start_thread, this))' failed.` 看上去是比较通用的问题,你试一下 下列链接 能否解决问题

nodejs/node#43064
koush/scrypted#875

@PierceLiu
Copy link
Author

这边还是并未解决这个问题,麻烦问下你用的docker的版本和docker-compose的版本呢, 我这边的是docker18.03.1-ce
,docker-compose 是v2.20.0

@117503445 117503445 reopened this Jul 26, 2023
@117503445
Copy link
Owner

docker info 输出

Client:
 Version:    24.0.2
 Context:    default
 Debug Mode: false
 Plugins:
  compose: Docker Compose (Docker Inc.)
    Version:  2.20.2
    Path:     /usr/lib/docker/cli-plugins/docker-compose

Server:
 Containers: 3
  Running: 1
  Paused: 0
  Stopped: 2
 Images: 9
 Server Version: 24.0.2
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: true
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 0cae528dd6cb557f7201036e9f43420650207b58.m
 runc version: 
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.4.4-arch1-1
 Operating System: Arch Linux
 OSType: linux
 Architecture: x86_64

@PierceLiu
Copy link
Author

我重新装一下docker 换一个更高版本的尝试一下

@PierceLiu
Copy link
Author

更新了docker的版本后,现在使用的24.0.5 是没有任何使用问题 直接就可以打开,所以有理由怀疑是因为docker版本过低的问题,感谢,问题已经解决

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