【问题标题】:How can I fix this bug with ScyllaDB?如何使用 ScyllaDB 修复此错误?
【发布时间】:2019-03-14 06:01:30
【问题描述】:

我正在努力学习 ScyllaDB 教程系列:https://www.scylladb.com/2017/11/30/mutant-monitoring-system-day-1/

我正在运行一个 Docker 容器(在 Windows 上,使用 Powershell)并克隆了他们的存储库,并使用 Docker Compose 运行它:

PS C:\repos\scylla-code-samples\mms> docker-compose up -d
mms_scylla-node3_1 is up-to-date
mms_scylla-node2_1 is up-to-date
Creating mms_scylla-node1_1 ... done

尝试使用 nodetool 检查其状态返回容器重启错误:

PS C:\repos\scylla-code-samples\mms> docker exec -it mms_scylla-node1_1 nodetool status
>>
Error response from daemon: Container c2940e14078fcdbbcf70f60392b05eb3d5c90273a15970c8575aad46cd797a02 is restarting, wait until the container is running

日志显示这些意外的文件结束错误:

2019-03-05T09:39:36.882128500Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:40:38.038237500Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:40:38.038383700Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:41:38.922861400Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:41:38.923067400Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:42:39.801821900Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:42:39.802078500Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:43:40.696641100Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:43:40.696928800Z /start.sh: line 36: syntax error: unexpected end of file

如何解决这个问题,最好不编写代码?

【问题讨论】:

    标签: scylla


    【解决方案1】:

    \r 表示 Windows 样式的回车符,因此它可能与您的 Windows 环境有关。建议在 Linux 机器上尝试此操作,同时使用 scylla-code-samples.git 项目打开一个错误,以便修复它。

    【讨论】:

    【解决方案2】:

    在 Windows 上,您可以尝试使用 Docker Toolbox,它使用基于 Virtual Box 的 docker 主机,而不是新的“Docker for Windows”的一部分。这确保您在没有 Linux 机器的情况下在 Linux 上运行。

    即使它说“旧版桌面解决方案”它仍然可以正常工作。

    https://docs.docker.com/toolbox/toolbox_install_windows/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-07-27
      • 2020-02-22
      • 2014-03-01
      • 2012-07-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多