【发布时间】:2015-12-16 13:54:19
【问题描述】:
我在centos 上创建了两个带有闪亮服务器的码头工人:
这些 docker 位于 centos 上,因为假设最终将在 RHEL 上作为受支持的 Linux 版本(可能是 dockerised 或本机)运行。目前,它们提供了一种方便的测试和开发方式。
它们主要是为开发而设计的:它们包括 R、RStudio Server 和 Shiny Server:可能不是 Docker 纯粹主义者会做或推荐的(可能生产版本将基于 docker compose)。
我遇到的问题是,虽然带有 shiny server - 免费版的 Docker 工作正常,带有 shiny server pro 的 Docker 不起作用(可能是 supervisord 的问题?)。
2015-09-19 12:40:10,379 CRIT Supervisor running as root (no user in config file)
2015-09-19 12:40:10,385 INFO supervisord started with pid 1
2015-09-19 12:40:10,387 INFO spawned: 'shinyserver' with pid 8
2015-09-19 12:40:10,388 INFO spawned: 'rserver' with pid 9
2015-09-19 12:40:10,404 INFO success: rserver entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2015-09-19 12:40:10,405 INFO exited: rserver (exit status 0; expected)
2015-09-19 12:40:10,405 INFO received SIGCLD indicating a child quit
2015-09-19 12:40:10,955 INFO exited: shinyserver (exit status 8; not expected)
2015-09-19 12:40:10,955 INFO received SIGCLD indicating a child quit
2015-09-19 12:40:11,959 INFO spawned: 'shinyserver' with pid 31
2015-09-19 12:40:12,236 INFO exited: shinyserver (exit status 8; not expected)
2015-09-19 12:40:12,236 INFO received SIGCLD indicating a child quit
2015-09-19 12:40:14,243 INFO spawned: 'shinyserver' with pid 37
2015-09-19 12:40:14,520 INFO exited: shinyserver (exit status 8; not expected)
2015-09-19 12:40:14,521 INFO received SIGCLD indicating a child quit
2015-09-19 12:40:17,533 INFO spawned: 'shinyserver' with pid 43
2015-09-19 12:40:17,807 INFO exited: shinyserver (exit status 8; not expected)
2015-09-19 12:40:17,808 INFO received SIGCLD indicating a child quit
2015-09-19 12:40:18,811 INFO gave up: shinyserver entered FATAL state, too many start retries too quickly
2015-09-19 12:40:43,272 CRIT received SIGTERM indicating exit request
这是相当令人惊讶的,因为代码库很常见(当然)。也许是关于如何产生进程的问题?
如果有人能帮我找到shiny server pro 配置中的错误,那就太好了。
【问题讨论】:
-
“不起作用”是什么意思?你有错误信息吗,复制者,
docker events或docker logs your_container_id显示什么? -
@user2915097 更新了 supervisord 的错误日志
-
你能发布你的主管配置吗?这很糟糕
gave up: shinyserver entered FATAL state, too many start retries too quickly -
@user2915097 Dockerfile 和 supervisor 配置都在我的 github 页面,链接到这篇文章
标签: r docker centos supervisord shiny-server